html - submit form to iframe bug with MacOS -


i have form needs submit iframe. works in windows , in older version of mac os. doesn't works newer version. have tested mac os x mountain lion 10.8.3 , doesn't work. users have reported same problem on different os x version.

here code:

    <form action="https://nidieunimaitre.spreadshirt.com/shop/basket/addtobasket" style="padding: 0px;" method="post" target="formiframe" name="tshirt_form" id="tshirt_form">      <input type="hidden" name="product" id="productid" value="17695932"/>     <input type="hidden" name="article" id="articleid" value="7048248"/>     <input type="hidden" name="view" id="currentview7048248" value="351"/>     <input type="hidden" name="color" id="productcolor7048248" value="2"/>     <input type="hidden" name="size" id="size" value="2"/>     <input type="hidden" name="quantity" id="quantity" value="1"/>  <a onclick="document.tshirt_form.submit()" id="popupajouterpanier" href="#inlinepopupajouterpanier">ajouter au panier</a>  <iframe src="" name="formiframe" id="formiframe" width="400" height="400"></iframe>  </form> 

or can test live on website: http://www.ni-dieu-ni-maitre.com/mac.php

the form supposed add t-shirt basket, display basket's page t-shirt has been added. windows, works perfectly. os x 10.8.3, when submit form load basket's page iframe basket still empty !! looks form isn't sending data correctly.

when tested os x 10.8.3, bug happened safari. form worked firefox. of users have reported work didn't work under os x no matter if used safari or firefox.

note cross-domain (not sure if matters). page sending form's data different domain (spreadshirt.com's basket).

the form work if don't submit iframe.

update: form's action destination spreadshirt.com basket. noticed if visit page safari before submiting form work when submiting iframe !!! looks safari doesn't want create cookie if don't visit spreadshirt.com site first. don't understand why doesn't work other browsers , why bug affect iframes... work-around ? according topic, seems cross-domain cookie problem: setting cross-domain cookies in safari

update #2: setting safari's configuration never block cookies seems solve problem. default "block third party cookies". workaround situation, beside having ask users change settings ?


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -