OZONE Asylum
Forums
DHTML/Javascript
Bug In Opera
This page's ID:
31101
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
First of all, did you check the error console ( Tools > Avanced > Error Console ) ? Even better, did you enable the "stack trace" as mentioned " [i]stacktrace: n/a; see opera:config#UserPrefs|Exceptions Have Stacktrace[/i] " in the error console to see exactly what and where the error is ? When doing so, Opera reports the following recurring error: [code]JavaScript - http://redsplat.org/ Unknown thread Error: name: TypeError message: Statement on line 57: Cannot convert undefined or null to Object stacktrace: Line 57 of linked script http://redsplat.org/script.js document.title='redsplat - '+document.getElementById('title').innerHTML; ... [/code]Which is fair considering that your page is invalid and you put an XML declaration right in the middle of the document. [quote]Line 20, Column 9: XML Parsing Error: XML declaration allowed only at the start of the document <?xml version="1.0" encoding="ISO-8859-1"?><h1 id="title">Weblog</h1><p>In t... [small]source: [url=http://validator.w3.org/check?uri=http%3A%2F%2Fredsplat.org%2F%23weblog&charset=%28detect+automatically%29&doctype=Inline&group=0]W3C validator on http://redsplat.org/[/url][/small][/quote] I know,street HTML and all, but I have no idea how user agents are supposed to treat such markup. It's already rare to see the same behavior across browsers with valid markup, one can't possibly expect invalid markup to be treated any better. Seeing from the other threads about your site and what I saw in the source code of your pages and scripts, it seems that you're a little bit confused about this web thing and try various things without really understanding or knowing what you are doing. I know it's not sexy but you should try to get the basics right before jumping onto more advanced things : read a bit about valid HTML and semantic markup ( IMO the easy way is HTML5 with XML syntax if you want XML ), DOM ( using innerHTML to inject content end users can contribute to is bad bad and super bad. Using innerHTML instead of textContent ain't very good either, inline events aren't really nice and you look into progressive enhancement : right now you site doesn't work in a browser with JS on but no XHR ) Don't hesitate to ask if you have any specific question. Hope all this helps a bit. [url=http://www.p01.org/][sigrotate][img]http://poi.ribbon.free.fr/files/p01_ozoneasylum_sig_teapot.png[/img][/sigrotate][/url] [small](Edited by [url=http://www.ozoneasylum.com/user/2185]poi[/url] on 07-06-2009 01:17)[/small]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »