If that's the only thing your script is returning, a better solution would be to add an iframe to your gadget and make the form target the iframe (see http://www.w3schools.com/TAGS/att_form_target.asp). This way the gadget won't redirect, so you won't need to navigate back. The contents of the iframe will be the result of your form POST to the remote domain, so you can make it small and invisible if you don't need to display a result.
~Arne On Mon, Apr 13, 2009 at 9:45 AM, Pedro Vicente <neteinst...@gmail.com>wrote: > > Hello, > > I'm trying to submit a form (without AJAX) because i want to send also > a image..and there is that javascript protection stuff about local > files and remote pages. > > My widget is @ hi5.com.. the thing is when i submit the form the form > is returning a <script> history.back() </script> ... but what appears > in the iframe of hi5 is the < > escaped.. like > <pre><script>history.back() </script></pre> > > > How can i avoid this and have the script executed ? > > Thanks > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "OpenSocial Application Development" group. To post to this group, send email to opensocial-api@googlegroups.com To unsubscribe from this group, send email to opensocial-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/opensocial-api?hl=en -~----------~----~----~----~------~----~------~--~---