Announcement

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

#1 2005-04-15 08:31:08

con4mity
Xinha Community Member
Registered: 2005-04-06
Posts: 23

Using Xinha in frames creates "Unspecified Error"

Hello world!

I'm trying to replace an old HtmlArea system with Xinha.  I had it running in side a frame, where one frame was dynamically pulled to list the pages that could be edited and the other showed the page inside xinha so you could edit it.

Well, with htmlarea it worked okay, of course it didn't have nearly as many nice features.  So I replaced it, and got it working to some extent, but now when the frame loads I get the following error:

Line: 3847
Char: 5
Error: Unspecified error.
Code: 0
Url: http://pagewithXinhatextarea.com

Now I only get this error and associated problems when I call it inside a frame, if I call it directly in it's own page the problem doesn't occur.

If the Line # is correct this points to a function in htmlarea.js called: HTMLArea.prototype._createRange = function(sel)

Can anyone give me some clues as to what might actually be wrong?  Or if someone has a sample of how they have it working in frames maybe I could peak at that and see what've goofed up?

Thanks in advance!
con4mity

Offline

#2 2005-04-15 08:34:20

niko
Xinha Authority
From: Salzburg/Austria
Registered: 2005-02-14
Posts: 338

Re: Using Xinha in frames creates "Unspecified Error"

in general xinha works perfectly with frames (our cms uses frames)

take a look at the newbie-guide, it might help:
http://xinha.python-hosting.com/wiki/NewbieGuide


Niko

Offline

#3 2005-04-15 08:39:56

con4mity
Xinha Community Member
Registered: 2005-04-06
Posts: 23

Re: Using Xinha in frames creates "Unspecified Error"

Thanks, I did use the newbie-guide to implement xinha, but I didn't find anything to troubleshoot the unspecified error.  All I know is it works perfectly without frames, and errors with them.  Doesn't make a lot of sense.

I don't guess you'd let me look at your implementation to see if I missed something?  If I could just get it to give me a more detailed error that would help, lol.

Thanks though for responding so quickly.  I'm sure it works great with frames as that seems the most logical implementation, but something is going on, I just want to figure it out.

Cheers,
con4mity

Offline

#4 2005-04-15 08:51:54

niko
Xinha Authority
From: Salzburg/Austria
Registered: 2005-02-14
Posts: 338

Re: Using Xinha in frames creates "Unspecified Error"

I don't guess you'd let me look at your implementation to see if I missed something?

sorry, i can't - but its basically the newbie guide!

did you try the page with firefox? it usually has more useful error-messages.


Niko

Offline

#5 2005-04-15 09:13:57

con4mity
Xinha Community Member
Registered: 2005-04-06
Posts: 23

Re: Using Xinha in frames creates "Unspecified Error"

I don't get the problem in firefox just IE, and I'm not asking to see your config files, just the way you implemented the frames.  The Newbie guide doesn't do frames, but there must be a relationship to frames and the problem, maybe I need some extra tag, or something silly.

It was just a thought, keep in mind, the config works, so I got past the newbie guide, I'm just trying to understand why I get a javascript error when loading the editor in a framed page.

The error is coming from htmlarea.js, when viewed in Internet Explorer.

Offline

#6 2005-04-15 15:27:55

niko
Xinha Authority
From: Salzburg/Austria
Registered: 2005-02-14
Posts: 338

Re: Using Xinha in frames creates "Unspecified Error"

there is nothing special about the frames, its an ordinary frameset....

you could post your configuration! (or a demonstration where we can see the error)


Niko

Offline

#7 2005-04-15 17:52:15

con4mity
Xinha Community Member
Registered: 2005-04-06
Posts: 23

Re: Using Xinha in frames creates "Unspecified Error"

Yes, sure, and thank you for looking.  Keep in mind this is an IE error, as I mentioned somewhere else I don't get the problems with other browsers.

http://www.ecorey.com/pagekeeper/

The think to note is that if you click the link on the left that says "start_page(1)" if fails but if you right click it and open it in a new window it works fine.

I'm Corey by the way.  I wish I knew more javascript, but if you ever need some php help you let me know.

Thanks

Last edited by con4mity (2005-04-15 17:53:49)

Offline

#8 2005-04-16 08:18:18

con4mity
Xinha Community Member
Registered: 2005-04-06
Posts: 23

Re: Using Xinha in frames creates "Unspecified Error"

Well, Still toubleshooting this silly error.  And I have a few more hints towards the problem, but can not yet isolate the issue.

First, if I call the page with Xinha running in it directly it works fine in all browsers; like this: http://www.ecorey.com/pagekeeper/pagekeeper4.php  even if I proload it with some data from my database like this: http://ecorey.com/pagekeeper/pagekeeper … ction=edit

But the moment I try to load the exact same page in a frame, in Internet Explorer, it gives me an "Unspecified Error"  Which you can see here: http://www.ecorey.com/pagekeeper/

The thing I notice is that it stops also, the area next to path which usually says something like path >>body >>form#editors_here is blank.  It's as if it doesn't tell the system where it's at or that it finished loading, most likely it didn't finish loading.

If anyone can peak at this and give me a hint what I did wrong, my quess is I just did something stupid, but I've looked, looked, and relooked.

Thanks,

Offline

Board footer

Powered by FluxBB