Announcement

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

#1 2007-11-23 19:27:54

iseeuu
New member
From: Missouri, USA
Registered: 2007-11-23
Posts: 3
Website

Setting up Xinha

This is so exasperating because it should be so simple.  But I just don't get it.  I followed the newbie guide and the provided examples work, but when I open an html file in the root I get a nice box and no Xinha.  I downloaded the latest Xinha two days ago, I am using FF 2.0.0.9.  I set up a test environment here:  with the html file and the Xinha folder in the root subfolder, "testroot".

http://www.icwllc.biz/testroot/mytxt.html

I put copies of mytxt.html, and my_config in the mytxt link above and would really appreciate some hints on how to correctly set it up.


"The Possibilities Are Infinite"

Offline

#2 2007-11-24 16:41:09

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

Re: Setting up Xinha

You have your _editor_url set to "/xinha/XinhaCore/, but indeed your files reside in "/testroot/xinha/". Additionally you have a syntax error (missing ; between definitions of _editor_url and _editor_lang).

So correctly the respective lines should be like

<script type="text/javascript">_editor_url="/testroot/xinha/";
_editor_lang="en";
</script>
<script type="text/javascript" src="/testroot/xinha/XinhaCore.js"></script>
<script type="text/javascript" src="/testroot/xinha/my_config.js"></script>

Another thing: You might want to read this text on using tags inside a textarea

Offline

#3 2007-11-25 16:53:08

iseeuu
New member
From: Missouri, USA
Registered: 2007-11-23
Posts: 3
Website

Re: Setting up Xinha

Thank you, Ray!  I made the changes from your post and at last have the paths correct.  I have spent another day working on Xinha and have a working Xinha editor ( in IE only ) with a good amount of buttons.  However, the save button doesn't work.  If you double click on the error icon at the lower left corner of IE, it says:  Line: 3105, Char:1, Error: Invalid procedure call or argument, Code:0, URL:...  I am just too tired to research this out today. Also I saw some posts here about errors with FF but that will have to wait for another day as well.  Again, I have copied and pasted my code for "mytxt.html", "my_config.js", and "XinhaConfig.js" into "mytxt.html".  Just use the link from my first post and "Toggle HTML Source" to see the code.  Any hints or suggestions would be appreciated!


"The Possibilities Are Infinite"

Offline

#4 2007-11-26 18:51:18

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

Re: Setting up Xinha

Just a little oversight in your plugins array: you have getHtml where it should be GetHtml (which is the name of the folder in the plugins folder)

Offline

#5 2007-12-03 21:34:13

iseeuu
New member
From: Missouri, USA
Registered: 2007-11-23
Posts: 3
Website

Re: Setting up Xinha

OK! I have corrected the 'GetHtml' and have tried to get Xinha working.  I am about to give up as I can't get my head around what causes what.  IE will not load correctly, it gives me an error code: "invalid argument" character 1, line 1744.  I didn't know there were that many lines of code!  I don't have a clue where that's coming from.  What is so strange is IE has no problem loading the actual html file here:
http://www.herbalalternatives.biz/new/are.html
(This is an image of the actual site, not the real thing) but none of my pages will save, so whats the point?  IE says:  line: 80, Char: 1, Error: 'null' is null or not an object...what ever that means.

Stranger still is now FF loads OK, but it won't save either.

Now the real problem, the reason the 'examples' aren't much help to me, is I need the code in my my_config.  I can't have all the code the example has.  Look here:  http://www.herbalalternatives.biz/new/index.html
and see that the code: ">_editor_url="/new/xinha/";_editor_lang="en";<" appears on the actual site.  I tried commenting out the code and putting it in the "htmlarea.js", but as you can see it is still there.

I think what might help me the most is a complete "my_config" where I can comment out the stuff I don't need.  I am just not swift enough to figure this out.  Any suggestions would be appreciated.


"The Possibilities Are Infinite"

Offline

Board footer

Powered by FluxBB