Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
|
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 31st, 2009, 08:25 AM
Authorized User
 
Join Date: Jul 2008
Posts: 24
Thanks: 1
Thanked 0 Times in 0 Posts
Send a message via MSN to ramone_johnny
Question Bill I know you hate ajax, so can this be done with javascript...???

Hey Bill,
How are you mate? Hope you are well..... :)

Im putting together a form here, and Ive been dabbling in AJAX (scary huh?). Actually I have the form working, to a point, but Im wanting to add some additional features to make it dead easy for the end user, and to do so, need some assistance.

Basically I have an SQL DB that holds a table consisting of state, city, suburb and postcode, and Id like (if possible) to use dynamic dropdowns and a text box to complete the address component of the form (without having to reload the page after each selection).

To give you a rough idea of what Im doing, follow the link below. In particular pay close attention to the "address" section of the page. For the moment ignore "number" and "street."

http://www.housemates.com.au/placean...tured_ajax.asp

Now you *should* see that I have automated the city/suburb section of the form successfully, but its clunky and needs to be improved upon. (Im using AJAX btw...)

Now heres what I would like to do, and if this can be done in straight javascript, then Im all for it.

The user selects the state, then all of the relative cities are shown, then they select the city, and all of the relative suburbs are shown. They then select their suburb, to which the related postcode is automatically entered into the postcode text box.

Make sense?

If you need more info Bill, let me know and Ill do it via email if thats cool. Rather not post DB related content here if possible as this is a live site.

Cheers,
John

PS. I should probably note that I will most likely need some help in terms of adjusting your Google Whiz Bang Maps Do-dad to accommodate any changes. Cool? :)
__________________
Works Media - Online Marketing & SEO

Last edited by ramone_johnny; May 31st, 2009 at 08:29 AM..
 
Old June 1st, 2009, 04:45 PM
Friend of Wrox
 
Join Date: Jun 2008
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
Default

Since we are discussing this in another forum, it's bad netiquette to discuss it here, as well.

Oh, and incidentally I clearly do *NOT* hate AJAX. I just think it is overused and/or used for the wrong things, sometimes.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Bill are you here??? ramone_johnny Classic ASP Components 3 July 29th, 2008 12:57 AM
avoid postback using ajax in javascript kalyanykk Visual Studio 2005 1 May 30th, 2008 08:16 AM
Wrox.com JavaScript and Ajax Articles jminatel Javascript How-To 0 March 23rd, 2007 09:21 PM
Ajax and javascript loading pppswing Ajax 0 September 21st, 2006 01:27 AM
Don't Ya Just Hate This? Ben Horne Javascript 3 October 18th, 2004 09:46 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.