473,394 Members | 1,749 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,394 software developers and data experts.

Ajax and cascading drop downs

I have been asked to produce a web catalogue of services and associated
options, this eventually will be used for ordering the services.

My initial thought was to use a set of cascading drop downs, select an
option from the first fills the available options for the second and so on.
Given the current buzz about Ajax this would seem an opportunity to try out
some of its features.

Could anyone point me at an example of what I am trying to do? For
information, the target web server environment is Apache with both mod perl
and mod php being available.

The result should be browser neutral.

--
Colin Walls

Remove the pink meat to mail me
Jul 23 '05 #1
5 1691
VK
That's pretty close to what you're looking for:

<http://developer.apple.com/internet/webcontent/XMLHttpRequestExample/example.html>

Jul 23 '05 #2
VK wrote:
That's pretty close to what you're looking for:

<http://developer.apple.com/internet/webcontent/XMLHttpRequestExample/example.html>


It doesn't work in Safari 1.0.3 but it's fine in Firefox 1.0.4

Does I gotta get me Tigger?

:-x

--
Rob
Jul 23 '05 #3
VK
>> <http://developer.apple.com/internet/webcontent/XMLHttpRequestExample/example.html>
It doesn't work in Safari 1.0.3 but it's fine in Firefox 1.0.4
Does I gotta get me Tigger?


Grrh... :-)

This Safary is a real pain in one place. From one side it still seems
to be the browser of the choice on Mac OS X, from other side it's not
something you can install for testing on Win XP.
And one good profound test results table, just different rumors here
and there.
Got this link though, may be relevant or not:
<http://www.bitterpill.org/logid/1117777362000>

Jul 23 '05 #4
Colin Walls wrote:
I have been asked to produce a web catalogue of services
and associated options, this eventually will be used for
ordering the services.
So this is a commercial endeavour with the intention of making money.
My initial thought was to use a set of cascading drop downs,
Introducing a javascript dependency that will reduce the potential
customer base.
select an option from the first fills the available options
for the second and so on.
Given the current buzz about Ajax this would seem an
opportunity to try out some of its features.
But as AJAX depends on xmlHttpRequest objects you would compound
javascript dependency with a reliance on the user agent being one of a
limited set of modern(ish) dynamic visual browsers. And the most common
of those, IE, in a subset of configurations (ActiveX enabled).

AJAX has a place, but that is probably in web applications that can be
specified as trusted to be safe enough to place in a less restricted
security zone. In a public front line selling context the being 'flash'
with AJAX might have such an impact of potential turnover that its use
should be subject to informed confirmation before hand from those with a
business interest in the outcome.
Could anyone point me at an example of what I am trying
to do? For information, the target web server environment
is Apache with both mod perl and mod php being available.

The result should be browser neutral.


Then you cannot use AJAX and cannot be javascript dependent. So you are
left with doing the work on the server and generating standard HTML
forms for user input. So a 'wizard' style where the user enters a
selection on one page, submits it, and gets the narrower options
presented on the next. That is as near 100% reliable in all HTML user
agents as it gets, maximising the potential customer base.

More elaborate designs might start from the reliable server-side code
and use client-side technologies to enhance the process. Skipping steps
bringing information into new elements in existing forms in response to
user selections, with background requests. Such enhancements would be
conditional on the availability of the client-side features and designed
to fall-back to the server-side alternative in the absence of those
features. Thus a 'best of both worlds' approach providing the
reliability and browser neutrality of the server-side process and the
'flash' of a scripted dynamic client whenever it was available.

Richard.
Jul 23 '05 #5
Richard Cornford wrote:
Colin Walls wrote:
I have been asked to produce a web catalogue of services
and associated options, this eventually will be used for
ordering the services.
So this is a commercial endeavour with the intention of making money.


That is the aim for the company. My aim is to make an effective way for
people to order a complex product in as simple a fashion as possible.
My initial thought was to use a set of cascading drop downs,


Introducing a javascript dependency that will reduce the potential
customer base.


Ordinarily I would agree with you. However this is a direct extranet
connection between two companies.
select an option from the first fills the available options
for the second and so on.
Given the current buzz about Ajax this would seem an
opportunity to try out some of its features.
But as AJAX depends on xmlHttpRequest objects you would compound
javascript dependency with a reliance on the user agent being one of a
limited set of modern(ish) dynamic visual browsers. And the most common
of those, IE, in a subset of configurations (ActiveX enabled).

AJAX has a place, but that is probably in web applications that can be
specified as trusted to be safe enough to place in a less restricted
security zone. In a public front line selling context the being 'flash'
with AJAX might have such an impact of potential turnover that its use
should be subject to informed confirmation before hand from those with a
business interest in the outcome.


See above.

Could anyone point me at an example of what I am trying
to do? For information, the target web server environment
is Apache with both mod perl and mod php being available.

The result should be browser neutral.


Then you cannot use AJAX and cannot be javascript dependent. So you are
left with doing the work on the server and generating standard HTML
forms for user input. So a 'wizard' style where the user enters a
selection on one page, submits it, and gets the narrower options
presented on the next. That is as near 100% reliable in all HTML user
agents as it gets, maximising the potential customer base.


Again, I would normally agree with you. However, in these particular
circumstances I have chance to learn something new in a fairly controlled
environment.
More elaborate designs might start from the reliable server-side code
and use client-side technologies to enhance the process. Skipping steps
bringing information into new elements in existing forms in response to
user selections, with background requests. Such enhancements would be
conditional on the availability of the client-side features and designed
to fall-back to the server-side alternative in the absence of those
features. Thus a 'best of both worlds' approach providing the
reliability and browser neutrality of the server-side process and the
'flash' of a scripted dynamic client whenever it was available.


Actually, this is probably fairly close to what I was intending to do.

--
Colin Walls

Remove the pink meat to mail me
Jul 23 '05 #6

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

Similar topics

46
by: Kingdom | last post by:
In my data base I have a list of componet types e.g. type A - I have 8 off - type B I have 12 off etc. I'm using Set objRS = objDC.Execute("Select DISTINCT Component_Type FROM Parts_Table") ...
9
by: darrel | last post by:
Last week I asked about ASP.net 2.0 AJAX frameworks and there appears to be several to choose from. I haven't used ASP.net 2.0 yet, but from doing a bit of reading, it appears that ASP.net 2.0...
3
by: CSharpguy | last post by:
I have 3 drop downs that are populated from the databasem 4 of my web pages need to have this drop down, how can I trap the selection made in the drop down and popuate my grid on my form?
0
by: arunprabu | last post by:
Hi, I have a problecm with the AJAX request in my webpage. I have some filters on top of the page. I have a submit button and an empty div below the filters. Some of the filters have ajax...
0
by: robert | last post by:
I am using the new beta 2 ajax control toolkit. When using the cascading drop-down obviously the items in the lists are generated through javascript, I would like to access these items serverside...
6
by: Rob Meade | last post by:
Hi all, Looking for a bit of help if possible. For about 2 weeks now I've been investigating the best way to populate related drop down menus, and have their values pre-populated again if the...
1
by: JackInDaBox | last post by:
Hello, I am new to this and have run into a small problem. I am using the Ajax toolkit with VS 2005 to fill some drop downs through a web service and it works great. All of the cascading drop...
11
by: =?Utf-8?B?R2VyaGFyZA==?= | last post by:
I have run into a situation that if a page/tab that uses the Ajax toolkit (using .net version 3.5) is closed before the Ajax enable controls complete loading, then IE locks up. Does it in both IE7...
4
by: phub11 | last post by:
Hi all, I have started using AJAX to populate drop downs from a mySQL database; however, I want the option of modifying the selected OPTION of the drop down using an array of radiobuttons...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.