sayedsohail Posted May 1, 2007 Share Posted May 1, 2007 Hi, Sorry for my silly question, I have got a form which contains 20 fields, one of the fields is a drop down list box, which contains a sql query results, this results are huge, thus i am worrying for the speed. I thought about an option ie., populating the results in a separate window and onclick method just bringing the select info to my form field. I am able to populate the results in a separate window, but just having problem in select the result from it. Any suggestions, please advise. Thanks Quote Link to comment Share on other sites More sharing options...
monk.e.boy Posted May 1, 2007 Share Posted May 1, 2007 I guess you'd need javascript to return the result to the parent window. You have a user interface design problem, not really a PHP question monk.e.boy Quote Link to comment Share on other sites More sharing options...
sayedsohail Posted May 2, 2007 Author Share Posted May 2, 2007 can you please suggest or refer to any simple code site. please. thanks Quote Link to comment Share on other sites More sharing options...
jitesh Posted May 2, 2007 Share Posted May 2, 2007 At pop up <select ..... onclick="window.opener.document.formname_of_parent_window.any_hidden_com_of_parent_window's_form.value=this.value"> </select> Quote Link to comment Share on other sites More sharing options...
sayedsohail Posted May 2, 2007 Author Share Posted May 2, 2007 thanks jitesh, when i open the popup window, its loosing focus, how do i set focus the popup window and restrict the user from performing other actions on the parent window. please advise. Quote Link to comment Share on other sites More sharing options...
monk.e.boy Posted May 2, 2007 Share Posted May 2, 2007 thanks jitesh, when i open the popup window, its loosing focus, how do i set focus the popup window and restrict the user from performing other actions on the parent window. please advise. You can't and for good reason, some evil spammer would do this and I'd lose all control of *my* browser. You need to re-think how you are going to display this info. Take a look at ebay.com, they manage to display lists of millions of items by splitting them up into 20 per page and using product hierarchies. Again, this is a user interface design problem, not a PHP problem. You need to ask a web site designer. monk.e.boy Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.