I have just created this simple html page to test prototype: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http:// www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Untitled Page</title> <script type="text/javascript"> <!-- // function refreshList() { $(''messageList'').innerHTML = ''ciao ciao''; } // --> </script> <script type="text/javascript" src="jscode/prototype.js" /> </head> <body> <form id="form1"> <a onclick="refreshList()" href="#">Refresh</a> <div id="messageList"> </div> </form> </body> </html> I can see and run this page on Firefox, but unfortunately seems that IE7 doesn''t like it. IE7 doesn''t render the page. The problem is in the script tag used to include ''prototype.js''. If I remove this tag the page is rendered but of course I cannot use prototype. What do you think? I''m doing something wrong? Thanks Davide --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On Dec 10, 2007 10:37 AM, Davide <davide.icardi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > <script type="text/javascript" src="jscode/prototype.js" /> > > What do you think? I''m doing something wrong?That should be <script type="text/javascript" src="jscode/prototype.js"></script>. (You can''t use shorthand notation with the script tag--I guess because the resource specified by the "src" attribute become the element''s contents?) :Dan Dorman --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On Dec 10, 12:01 pm, "Dan Dorman" <dan.dor...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> That should be <script type="text/javascript" > src="jscode/prototype.js"></script>. (You can''t use shorthand notation > with the script tag--I guess because the resource specified by the > "src" attribute become the element''s contents?)It''s a long story. Read this: <http://webkit.org/blog/68/understanding- html-xml-and-xhtml/> Cheers, Andrew --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Thanks to all! I really missed it! Davide On Dec 10, 9:06 pm, Andrew Dupont <goo...-TiabPMV39B5K4mp1Ns0Z8Q@public.gmane.org> wrote:> On Dec 10, 12:01 pm, "Dan Dorman" <dan.dor...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > That should be <script type="text/javascript" > > src="jscode/prototype.js"></script>. (You can''t use shorthand notation > > with the script tag--I guess because the resource specified by the > > "src" attribute become the element''s contents?) > > It''s a long story. Read this: <http://webkit.org/blog/68/understanding- > html-xml-and-xhtml/> > > Cheers, > Andrew--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---