473,385 Members | 1,907 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Fill dropdown on demand from script

Hi !

I have a page with a large amount of dropdowns, which are quite big
sometimes. All these are generated with PHP. Some timing tests tell me
that the problem is not the database, but the sheer data.

So, I would like to do something to fill the dropdown-box on demand. I
thought of maybe opening a Pop-Up window (maybe even an IE dialog box)
and copying the information from there into the select box.

How would you guys do that? Use a popup window, IE dialog or a hidden
frame?

Would you store the information in that popup? In a javascript array
or HTML form or something else?

Thanks for any idea.

Jochen
--
Jochen Daum - CANS Ltd.
PHP DB Edit Toolkit -- PHP scripts for building
database editing interfaces.
http://sourceforge.net/projects/phpdbedittk/
Jul 20 '05 #1
6 7142
If I were guaranteed an MS browser, I'd look at using javascript to
"CreateActiveXObject", and look at Microsoft's XMLHTTP object (part of
MSXML 3 or 4).

Post an xml doc to the server and receive server's response as an xml
doc. Server code can be php I guess, if that's what you like. Can do all
this asynchronously on the client if you wish.

HTH
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 20 '05 #2
"Peter Hurford" <pe***********@microcrest.com> wrote in message
news:3f***********************@news.frii.net...
If I were guaranteed an MS browser, I'd look at using javascript
to "CreateActiveXObject", and look at Microsoft's XMLHTTP object
(part of MSXML 3 or 4).

<snip>

And if you were interested in authoring for non-Microsoft Windows
browsers (in their default configuration) you would know that
Mozilla/Gecko browsers offer a parallel mechanism for doing exactly the
same:-

<URL: http://jibbering.com/faq/#FAQ4_38 >

Though the only cross-browser method would involve re-loading the pages
and having the server scripts fill in the required information. Given
that the stated problem is the size of the resulting HTML the best
solution might be to split the page up over several pages (a wizard
style interface instead of a single form).

Richard.
Jul 20 '05 #3
Hi Richard, Peter!

On Mon, 1 Sep 2003 16:26:49 +0100, "Richard Cornford"
<Ri*****@litotes.demon.co.uk> wrote:
"Peter Hurford" <pe***********@microcrest.com> wrote in message
news:3f***********************@news.frii.net...
If I were guaranteed an MS browser, I'd look at using javascript
to "CreateActiveXObject", and look at Microsoft's XMLHTTP object
(part of MSXML 3 or 4).

<snip>

And if you were interested in authoring for non-Microsoft Windows
browsers (in their default configuration) you would know that
Mozilla/Gecko browsers offer a parallel mechanism for doing exactly the
same:-

<URL: http://jibbering.com/faq/#FAQ4_38 >

Though the only cross-browser method would involve re-loading the pages
and having the server scripts fill in the required information. Given
that the stated problem is the size of the resulting HTML the best
solution might be to split the page up over several pages (a wizard
style interface instead of a single form).


This sound actually much more complicated than opening a new page and
copying the content of an array into a select tag. I think I keep
sticking to that.

Jochen
--
Jochen Daum - CANS Ltd.
PHP DB Edit Toolkit -- PHP scripts for building
database editing interfaces.
http://sourceforge.net/projects/phpdbedittk/
Jul 20 '05 #4
You're right, it is more complicated our way. But what you get is the
ability to load things dynamically - potentially only as and when
they're needed - rather than having to load everything at the start.

If your users can handle the delay when the page first shows, stick with
your original. Your right it'll be less complex code-wise.

P

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 20 '05 #5
Hi Peter!

On 02 Sep 2003 08:22:34 GMT, Peter Hurford
<pe***********@microcrest.com> wrote:
You're right, it is more complicated our way. But what you get is the
ability to load things dynamically - potentially only as and when
they're needed - rather than having to load everything at the start.
That exactly what I want as well, but I don't quite see, why I need
XML for that.
If your users can handle the delay when the page first shows, stick with
your original. Your right it'll be less complex code-wise.


Ok, so does IE load this asynchronously, without the javascript event?
Jochen
--
Jochen Daum - CANS Ltd.
PHP DB Edit Toolkit -- PHP scripts for building
database editing interfaces.
http://sourceforge.net/projects/phpdbedittk/
Jul 20 '05 #6
Jochen Daum <jo*********@cans.co.nz> wrote in
news:g2********************************@4ax.com:
Hi Peter!

On 02 Sep 2003 08:22:34 GMT, Peter Hurford
<pe***********@microcrest.com> wrote:
You're right, it is more complicated our way. But what you get is the
ability to load things dynamically - potentially only as and when
they're needed - rather than having to load everything at the start.

That exactly what I want as well, but I don't quite see, why I need
XML for that.
If your users can handle the delay when the page first shows, stick with
your original. Your right it'll be less complex code-wise.


Ok, so does IE load this asynchronously, without the javascript event?
Jochen


you might also want to look at remote scripting with an IFRAME which is
more cross browser that the process described previously.

http://www.oreillynet.com/pub/a/java...08/iframe.html
http://developer.apple.com/internet/...pt/iframe.html

basically you use an invisible IFRAME (pre-created or created dynamically)
and use it to load pages that will output javascript statements to perform
whatever action you wish, such as filling a drop down with values.

--
Sean Jorden
Norada Corp.
Jul 20 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: J P Singh | last post by:
Hi There We have dropdown on ASP page. The problem is we have about 900 items in the dropdown. Users scrolling through the list have become very frustrated in the past. Can someone suggest...
1
by: Joseph Barron | last post by:
Here is a SIMPLE problem that I'm trying to solve. It works in Netscape 6.2, but IE6 gives ""No such interface supported." Below are page1.htm and page2.htm . In page1.htm, there are two...
3
by: Maurice Mertens | last post by:
Hi all, In VB.NET you can set the DropDownStyle for a combobox to 'DropDown' or 'DropDownList'. When you set it to DropDownList, it supports auto-fill. But when you set it to 'DropDown', the...
32
by: Continental Translations | last post by:
Can anybody help me? I am trying to create two drop down menus, where the results of the second one vary depending on what was selected in the first one. I am using MS Script Editor in MS Front...
19
by: Alex | last post by:
Hello list This question has probably already been asked, but let me ask again I have a mysql database to which I connect with my php scripts. The database contains articles. Name, Unit_Price...
0
by: Kay | last post by:
Hello, I have written my own custom control and I want one of its properties to display as a dropdown list when clicked, so the user can select from the list, it would be similar to the asp...
0
by: Kay O'Keeffe | last post by:
Hello, I have written my own custom control and I want one of its properties to display as a dropdown list when clicked, so the user can select from the list, it would be similar to the asp...
6
by: Venkatesh | last post by:
Hello All, I have couple of doubts regarding the concept of on-demand javascript loading using javascript code. I could see on the net different techniques for achieving this - techniques like:...
1
by: bytesFTW99 | last post by:
I have been struggling with this for some time can anyone help out? just trying to have 3 dropdown boxes that fill depending on what is selected, then in some cases click a button and have the second...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.