My code snapshot: correct work in FF , Opera and Safari, but in IE7 - isn''t return result <form action="test.php" method="POST"> <div id="country" style="border: 1px solid #ccc; width: auto"></div> <br/> <a href="javascript:getTest()">test</a> </form> <script type="text/javascript"> function getTest() { new Ajax.Updater(''country'', ''test.php'', { evalScripts: true, asynchronous: true, parameters: {continent: 10} }); } </script> If i remove <form> tag: all work <div id="country" style="border: 1px solid #ccc; width: auto"></div> <br/> <a href="javascript:getTest()">test</a> <script type="text/javascript"> function getTest() { new Ajax.Updater(''country'', ''test.php'', { evalScripts: true, asynchronous: true, parameters: {continent: 10} }); } </script> ------ Code snapshot of test.php <script type="text/javascript"> alert(''test script''); </script> Any body like problem? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
I donno I cannot think of any reason why it would fail... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
"evalScripts: true" and "asynchronous: true" are already used by default , so there''s no need to define those. As for your problem, which version of prototype are you using? See if latest one (1.6.0.2) works. - kangax On Mar 22, 4:06 pm, pilot <pilo.ua...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> My code snapshot: correct work in FF , Opera and Safari, but in IE7 - > isn''t return result > > <form action="test.php" method="POST"> > <div id="country" style="border: 1px solid #ccc; width: auto"></div> > <br/> > <a href="javascript:getTest()">test</a> > </form> > > <script type="text/javascript"> > function getTest() > { > new Ajax.Updater(''country'', ''test.php'', { > evalScripts: true, > asynchronous: true, > parameters: {continent: 10} > }); > } > </script> > > If i remove <form> tag: all work > > <div id="country" style="border: 1px solid #ccc; width: auto"></div> > <br/> > <a href="javascript:getTest()">test</a> > > <script type="text/javascript"> > function getTest() > { > new Ajax.Updater(''country'', ''test.php'', { > evalScripts: true, > asynchronous: true, > parameters: {continent: 10} > }); > } > </script> > > ------ > Code snapshot of test.php > > <script type="text/javascript"> > alert(''test script''); > </script> > > Any body like problem?--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
I try prototype 1.5.0 and latest 1.6.0.2, but nothing happen, in IE7 results not returned. by default evalScript is false. On 23 мар, 06:42, kangax <kan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> "evalScripts: true" and "asynchronous: true" are already used by > default , so there''s no need to define those. > As for your problem, which version of prototype are you using? See if > latest one (1.6.0.2) works. > > - kangax > > On Mar 22, 4:06 pm, pilot <pilo.ua...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > My code snapshot: correct work in FF , Opera and Safari, but in IE7 - > > isn''t return result > > > <form action="test.php" method="POST"> > > <div id="country" style="border: 1px solid #ccc; width: auto"></div> > > <br/> > > <a href="javascript:getTest()">test</a> > > </form> > > > <script type="text/javascript"> > > function getTest() > > { > > new Ajax.Updater(''country'', ''test.php'', { > > evalScripts: true, > > asynchronous: true, > > parameters: {continent: 10} > > }); > > } > > </script> > > > If i remove <form> tag: all work > > > <div id="country" style="border: 1px solid #ccc; width: auto"></div> > > <br/> > > <a href="javascript:getTest()">test</a> > > > <script type="text/javascript"> > > function getTest() > > { > > new Ajax.Updater(''country'', ''test.php'', { > > evalScripts: true, > > asynchronous: true, > > parameters: {continent: 10} > > }); > > } > > </script> > > > ------ > > Code snapshot of test.php > > > <script type="text/javascript"> > > alert(''test script''); > > </script> > > > Any body like problem?--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
I found when i wrong. In test.php previously of <script/>, i put <form /> that''s incorrect for W3C xhtml standart --- incorrect --- <form name=1> <form name=2></form> </form> --- correct ---- <form name=1></form> <form name=2></form> On 23 мар, 15:33, pilot <pilo.ua...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I try prototype 1.5.0 and latest 1.6.0.2, but nothing happen, in IE7 > results not returned. > > by default evalScript is false. > > On 23 мар, 06:42, kangax <kan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > "evalScripts: true" and "asynchronous: true" are already used by > > default , so there''s no need to define those. > > As for your problem, which version of prototype are you using? See if > > latest one (1.6.0.2) works. > > > - kangax > > > On Mar 22, 4:06 pm, pilot <pilo.ua...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > My code snapshot: correct work in FF , Opera and Safari, but in IE7 - > > > isn''t return result > > > > <form action="test.php" method="POST"> > > > <div id="country" style="border: 1px solid #ccc; width: auto"></div> > > > <br/> > > > <a href="javascript:getTest()">test</a> > > > </form> > > > > <script type="text/javascript"> > > > function getTest() > > > { > > > new Ajax.Updater(''country'', ''test.php'', { > > > evalScripts: true, > > > asynchronous: true, > > > parameters: {continent: 10} > > > }); > > > } > > > </script> > > > > If i remove <form> tag: all work > > > > <div id="country" style="border: 1px solid #ccc; width: auto"></div> > > > <br/> > > > <a href="javascript:getTest()">test</a> > > > > <script type="text/javascript"> > > > function getTest() > > > { > > > new Ajax.Updater(''country'', ''test.php'', { > > > evalScripts: true, > > > asynchronous: true, > > > parameters: {continent: 10} > > > }); > > > } > > > </script> > > > > ------ > > > Code snapshot of test.php > > > > <script type="text/javascript"> > > > alert(''test script''); > > > </script> > > > > Any body like problem?--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---