Forum Moderators: phranque

Message Too Old, No Replies

Nothing displays below script tag.

no page

         

zerosum

1:43 am on Sep 7, 2011 (gmt 0)

10+ Year Member



Hi,
In apache I am using UserDir to directly edit a site in my /home and not /var/www.

At the point that I write a script tag for jquery.js in the html doc, in the header, no other part of the html doc will display. For example if I write before the style sheet directive not even the background will show. If I move the script tag below the style sheet directive, the background shows but not any of the html in the page will display. If I remove the script tag, the page displays normally.

This did not happen when I became root and practiced with jquery under /var/www so I’m guessing this is some kind of safeguard for UserDir eg /home/public_html/,
but I have no idea what to do about it.

Thanks for any help.

I am using apache2 under Ubuntu.

phranque

6:32 am on Sep 7, 2011 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



welcome to WebmasterWorld, zerosum!

have you tried validating your markup?

The W3C Markup Validation Service:
http://validator.w3.org/ [validator.w3.org]

zerosum

7:54 pm on Sep 7, 2011 (gmt 0)

10+ Year Member



No, it was a pre-made page but I just validated it at the url you provided and the response was: This document was successfully checked as XHTML 1.0 Strict!

I am going to su back to root and move it all to /var/www and see what happens.

Thanks.