Bugs item #2349613, was opened at 2008-11-26 00:36 Message generated for change (Comment added) made by jhorigan You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=559966&aid=2349613&group_id=80503
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Closed >Resolution: Invalid Priority: 5 Private: No Submitted By: John Horigan (jhorigan) Assigned to: Nobody/Anonymous (nobody) Summary: jswidget not adding field info to forms in Safari & Firefox Initial Comment: My site embeds jswidget into a html form and the PHP file that is the target of the form action expects to see form fields named cc_js_result_uri, cc_js_result_img, and cc_js_result_name. This is the behavior that I see with jswidget v0.92. With jswidget 0.95 these form fields are not being sent from Safari 3.2 or Firefox 3.01, but they are being sent from Internet Explorer 7.0. My html looks like this: <form action='upload.php' method='post' enctype='multipart/form-data'> <table class='upload'> <tr class='lupload'><td><script type='text/javascript' src='http://api.creativecommons.org/jswidget/tags/0.95/complete.js?locale=en_US'></script></td></tr> <tr class='lupload'> <td> <input type='hidden' name='author' value='$byauthor' /> <input type='submit' name='submit' value='Change License' /> </td> </tr> </table> </form> My PHP file dumps the POST variable to see what the browser sent in the post. Under Safari and Firefox the POST variable looks like this: array(6) { ["cc_js_want_cc_license"]=> string(4) "sure" ["cc_js_share"]=> string(1) "1" ["cc_js_remix"]=> string(0) "" ["cc_js_jurisdiction"]=> string(7) "generic" ["author"]=> string(11) "MtnViewJohn" ["submit"]=> string(14) "Change License" } Under IE7 it looks like this: array(9) { ["cc_js_want_cc_license"]=> string(3) "nah" ["cc_js_share"]=> string(1) "1" ["cc_js_remix"]=> string(0) "" ["cc_js_jurisdiction"]=> string(7) "generic" ["cc_js_result_uri"]=> string(43) "http://creativecommons.org/licenses/by/3.0/" ["cc_js_result_img"]=> string(47) "http://i.creativecommons.org/l/by/3.0/88x31.png" ["cc_js_result_name"]=> string(41) "Creative Commons Attribution 3.0 Unported" ["author"]=> string(11) "MtnViewJohn" ["submit"]=> string(14) "Change License" } ---------------------------------------------------------------------- >Comment By: John Horigan (jhorigan) Date: 2009-04-05 07:54 Message: I'm closing this bug because the behavior that version 0.92 exhibits on some browsers does not seem to be a supported feature of jswidget. I now use javascript on form submission to grab the widget information from element cc_js_result_uri, etc. and copy it to hidden form input elements. I guess this is a more reliable way of getting the browser to include jswidget data in the form data set on submission. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=559966&aid=2349613&group_id=80503 _______________________________________________ cc-devel mailing list [email protected] http://lists.ibiblio.org/mailman/listinfo/cc-devel
