Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2006-03-17 01:15:16

Air
New member
From: NYC
Registered: 2005-06-15
Posts: 9

Works in Firefox, JS errors in IE

I just downloaded the newest build Thursday (471) and I'm running into a strange problem.  It seems to work fine in Firefox (1.0.7) but I'm getting weird errors in IE (IE6.0.2900.2180.xpsp_sp2_gdr.050301-1519IS) on Win XP Professional.  Originally I got an error in my CMS that said Error: 'null' is null or not an object on line 1921.  There is no line 1921 however and if I added some spaces to the code that line number didn't change. 

I pulled the code out and put it on a static page.  Now the error says "Error: 'style' is null or not an object" on line 97.  Again, there's no line 97.  I tried looking in the htmlarea.js file but there wasn't anything around there that coincided with that.  I checked out the example page and I'm not getting that error at all.

Found this ticket concerning that version of IE but since I'm not getting the error on the example page I'm leaning towards something stupid I'm missing rather than a bug.

Here's the static page[edit - link removed] - let me know if you're getting a similar problem.

Thanks!!

Last edited by Air (2006-03-23 16:22:24)

Offline

#2 2006-03-17 01:50:57

mokhet
Xinha Authority
From: Paris, France
Registered: 2005-04-03
Posts: 105
Website

Re: Works in Firefox, JS errors in IE

Fix your HTML markup, in your example there's this :

<textarea id="Body" name="Body" rows="10" cols="50" style="width:100%> Test text here</textarea>
notice the missing quote in the style declaration and change it to

<textarea id="Body" name="Body" rows="10" cols="50" style="width:100%"> Test text here</textarea>

Offline

#3 2006-03-17 02:35:51

Air
New member
From: NYC
Registered: 2005-06-15
Posts: 9

Re: Works in Firefox, JS errors in IE

Sigh... like I said, something freakin' stupid!  Thanks a ton - can't believe I missed that!

Offline

#4 2006-03-21 22:12:40

Air
New member
From: NYC
Registered: 2005-06-15
Posts: 9

Re: Works in Firefox, JS errors in IE

Ahhh, not so fast apparently.  So that worked in the static page but I'm still getting the errors on the dynamic page though the code was exactly the same.  Been playing with it for a few days but now I'm turning to you guys to see if I'm missing something else.

I put up anew test static page[edited- link removed]] which is a copy of the code the dynamic page created.  Works in both IE and Firefox.

Here's the link[edited- link removed] for the dynamic spot.  [Edited]  is the username password, hit modify pages, choose one and you'll see what's going on.  I stripped out as much extraneous code as I could.

I have no idea what's going on - totally baffled.  One possible thought was maybe the way it was loading but that's a complete stab.  Any thoughts?

Thanks!!

Last edited by Air (2006-03-23 16:23:24)

Offline

#5 2006-03-22 05:29:27

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

Re: Works in Firefox, JS errors in IE

1. the problem is that your page is not on the same server as your xinha installation. That's the reason why your test on http://69.36.178.177 is working and on http://lindyhopnyc.com/ it does not. Put it on the actual server and use   _editor_url  = "/xinha/";
2. Your markup is desastrous, especially as you specify doctype xhtml 1.0. I advise you to pay at least a little attention to that. Have a look at this extension which is a great help to write "good" html documents.

PS.: Your example neither  worked in IE nor in FF

Last edited by ray (2006-03-22 05:30:38)

Offline

#6 2006-03-23 16:31:25

Air
New member
From: NYC
Registered: 2005-06-15
Posts: 9

Re: Works in Firefox, JS errors in IE

Thanks for the response!  Sorry about the sloppy code - I grabbed older code snippets to isolate the problem and glazed over the doctype.  Bad!

Turns out that the server was the problem though they are on the same server (the ip is the main server and the other is hosted off of that).  I needed to create a link on the server from there to where xinha was stored to work.  Not sure why it didn't work for you in either platform though - tested it on a few machines here...   hmm

Last edited by Air (2006-03-23 17:46:20)

Offline

Board footer

Powered by FluxBB