You are not logged in.
Pages: 1
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
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
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
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
Pages: 1