Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-09-2012, 01:02 AM   PM User | #1
anarchoi
New Coder

 
Join Date: May 2007
Posts: 65
Thanks: 4
Thanked 0 Times in 0 Posts
anarchoi is an unknown quantity at this point
submit form to iframe not working with Safari

I have a simple form that submits a form with an iframe as target. Under firefox, internet explorer and google chrome it works perfectly.

But with Safari the form isn't submited. The target page will open in the iframe when clicking the submit button but the form isn't submitted.

Here's the page with the problem: http://www.ni-dieu-ni-maitre.com/tsh...hirt-A10568008

Try it with firefox: it will work and the product will be added to the basket. But with Safari it doesn't work.

Please help me ! I'm desperate
anarchoi is offline   Reply With Quote
Old 11-09-2012, 01:14 AM   PM User | #2
felgall
Master Coder

 
felgall's Avatar
 
Join Date: Sep 2005
Location: Sydney, Australia
Posts: 5,532
Thanks: 0
Thanked 503 Times in 494 Posts
felgall is a jewel in the roughfelgall is a jewel in the roughfelgall is a jewel in the rough
The target attribute was declared to be obsolete back in 1997. Browsers are no longer required to support it - although they all still do on links. I don't think that they all ever did for forms - particularly brrowsers created since that attribute was deleted from the standards back in 1997.
__________________
Stephen
Learn Modern JavaScript - http://javascriptexample.net/
Helping others to solve their computer problem at http://www.felgall.com/
felgall is offline   Reply With Quote
Old 11-09-2012, 10:27 AM   PM User | #3
anarchoi
New Coder

 
Join Date: May 2007
Posts: 65
Thanks: 4
Thanked 0 Times in 0 Posts
anarchoi is an unknown quantity at this point
But the target seems to be working with my script. If you try to submit the form, the target page will load in the correct iframe. But the form won't be submitted.

Well here's my situation: i want to submit a form to an external website without opening the page in the browser. Instead, i am opening a lightbox telling users that the form has been submitted. So the way i found to do it is to submit the form inside an hidden iframe and then detect with javascript if the iframe has finished loading to confirm the form has been sent.
Any idea what alternative way i could use to submit my form without changing page ?
anarchoi is offline   Reply With Quote
Reply

Bookmarks

Tags
form, html, iframe, osx, safari

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:12 PM.


Advertisement
Log in to turn off these ads.