Hello! I searched the group but did not find something not working on this stage! :| All I do is simply loading the prototype.js and scriptaculous.js files.. and nothing is displayed on IE6 or IE7 (working with Konqueror, Opera, Firefox). I''m using an XHTML Doctype and specifying that the document has a "text/html" content, as suggested on many pages found on Google. I also tried to manually include every .js file i needed (as suggested on #prototype)... but nothing is working. A test page looks like this: <!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" xml:lang="en" lang="en"> <head> <title>Test</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <script src="javascripts/prototype.js" type="text/javascript"/> <script src="javascripts/scriptaculous.js" type="text/javascript"/></head> <body> Test <p>Test</p> <div>Test</div> <h1>Test</h1> </body> </html> and it produces an empty page! I really don''t know what else i can do in order to make it work, so i''m asking for suggestions here! Have a nice day! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Gareth Evans
2007-Nov-12 21:01 UTC
Re: Just loading the scripts prevent the content from being viewed
I tested/verified for you. I found that when I changed the script tag to be non-self-closing ie: ></script> I got the content up as expected but also got ''invalid character'' warnings. With the short tag, I got no errors but no content either. Very strange. Gareth On Nov 13, 2007 9:21 AM, AS <santini.alberto-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Hello! I searched the group but did not find something not working on > this stage! :| All I do is simply loading the prototype.js and > scriptaculous.js files.. and nothing is displayed on IE6 or IE7 > (working with Konqueror, Opera, Firefox). > I''m using an XHTML Doctype and specifying that the document has a > "text/html" content, as suggested on many pages found on Google. I > also tried to manually include every .js file i needed (as suggested > on #prototype)... but nothing is working. A test page looks like this: > > <!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" xml:lang="en" lang="en"> > <head> > <title>Test</title> > <meta http-equiv="content-type" content="text/html; > charset=utf-8" /> > <script src="javascripts/prototype.js" type="text/javascript"/> > <script src="javascripts/scriptaculous.js" type="text/javascript"/ > > > </head> > > <body> > Test > <p>Test</p> > <div>Test</div> > <h1>Test</h1> > </body> > </html> > > and it produces an empty page! I really don''t know what else i can do > in order to make it work, so i''m asking for suggestions here! > > Have a nice day! > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
AS
2007-Nov-12 22:27 UTC
Re: Just loading the scripts prevent the content from being viewed
Thanks a lot for the solution you''ve found out. I prefer having warnings AND content displayed, as you can understand :) This is very very strange... IE misteries! Thanks again :) :) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
RobG
2007-Nov-13 13:30 UTC
Re: Just loading the scripts prevent the content from being viewed
On Nov 13, 6:21 am, AS <santini.albe...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hello! I searched the group but did not find something not working on > this stage! :| All I do is simply loading the prototype.js and > scriptaculous.js files.. and nothing is displayed on IE6 or IE7 > (working with Konqueror, Opera, Firefox). > I''m using an XHTML Doctype and specifying that the document has a > "text/html" content, as suggested on many pages found on Google. I > also tried to manually include every .js file i needed (as suggested > on #prototype)... but nothing is working. A test page looks like this: > > <!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" xml:lang="en" lang="en"> > <head> > <title>Test</title> > <meta http-equiv="content-type" content="text/html; > charset=utf-8" /> > <script src="javascripts/prototype.js" type="text/javascript"/>That is invalid HTML, a closing script tag is required. If you are serving the content as application/XML, then IE will show a completely blank page (IE does not understand XML). Forget XHTML on the web, it is a complete waste of time and will remain so for the foreseeable future. :-x> <script src="javascripts/scriptaculous.js" type="text/javascript"/ > > </head> > > <body> > TestThat is invalid in both HTML and XHTML. [...]> and it produces an empty page! I really don''t know what else i can do > in order to make it work, so i''m asking for suggestions here!Use valid HTML 4. :-) -- Rob --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---