Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Javascript problem to submit a form in Safari or Firefox



Without details of the code, it's hard to tell what the issue is. However, can you confirm the form is actually being submitted under Safari & Firefox? It seems from your description that the php script then sends a different form (with updated dropdowns) based on the value of the source dropdown. You might want to consider doing this differently as that's an expensive operation, reloading the entire form to change one dropdown. AJAX would let you update the target dropdown when your source dropdown changes, without an entire page load. It's usually much faster.

Niels

On Mar 19, 2006, at 11:07 PM, Louis Philip Morin wrote:

Hello all,

I have a form on my website on which some dropdowns data depend on previous dropdowns on the same form. Right now the way it's handled, when one of the important dropdowns change, a javascript event get's ticked and submits the form, which when reloading loads the right info in the other dropdowns. My main problem is that this event handling doesn't seem to work with Safari or Firefox. I tried sending a sample of the code to this dev-list, but it didn't come through, which is why I'm sending this one without code.

I'm also conscious this might not be the best way to handle this, so if you have another option to give me I'd be glad anyhow.

Currently the page is a .php that loads an html template in which the javascript is located.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Web-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/web-dev/email@hidden

This email sent to email@hidden
References: 
 >Javascript problem to submit a form in Safari or Firefox (From: "Louis Philip Morin" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.