close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Ajax and Javascript Issues

Thread began 8/21/2022 1:35 pm by yogastudents362523 | Last modified 8/24/2022 10:14 am by yogastudents362523 | 313 views | 10 replies

yogastudents362523

Ajax and Javascript Issues

Hello,

I have created a 3-part Country/Region/City menu set that works well upon the page.
As soon as an individual selects a country (USA) on the country menu, then the next menu immediately opens up with all available US States. And then as soon as the person selects California, the City menu populates with all citities in California, and they can select "Carlsbad". I found databases to drive it and linked them together, and this now works all over the world.

However, because I do not know any Ajax or Javascript, I am unable to work out (from the pieces of code I picked up in various locations off the Internet) how to get the chosen country, region, and city to enter my database when the submit button is pressed.

I have placed the URL for a working page in the upcoming private area, and also attached the files that make it work.

I will convert them all into friendly webassist format and queries because those are reliable, but I have at present left all the coding alone as I found it, and graduallyh engineered it together to make everything work.

I will understand if you do not have the time or inclination for this, and will then simply revert to my previous method of getting everyone to simply write in the necessary information. But as I think you can see, the demo page is simply slicker and more bulletproof, and works for all countries, regions, and citiies worldwide.

Thank you.


But I am unfortunately unable to take the final step.

I am again looking for the method to gather up the data in a form, and submit it to the database, and preferably through your mySqli Update routines. Thank you.

Attached Files
z_cities-by-state.php
z_index.php
z_states-by-country.php

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...