Announcement

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

#1 2010-12-31 19:26:18

PKnight
New member
Registered: 2010-12-31
Posts: 9

Followed Newbie Guide, but Xinha Editor Does Not Show in text-area

Followed the instructions in Newbie Guide.  No Xinha Editor shows in text area. As per one post suggestion, I changed the my_config.js to my_config.php and changed the reference to it.  Still nothing.   I have since changed it back to .js.  I then changed the page to php from html  to see if that would help.  Still No Xinha editor in text area.
Details:  BrowserIE 8.   Xinha 0.96.1  URL:  http://0326610.netsolhost.com/lrw/testform.html (Sorry -- had it as php for awhile so had a bad URL here.) No javascript errors or other errors.  Just no Xinha editor.  Can see example page though.
I don't know where to begin to figure out what is wrong.  I would highly appreciate any direction.  Thanks!

Last edited by PKnight (2011-01-01 03:43:33)

Offline

#2 2011-01-01 00:35:59

gogo
Xinha Leader
From: New Zealand
Registered: 2005-02-11
Posts: 1,015
Website

Re: Followed Newbie Guide, but Xinha Editor Does Not Show in text-area

That URL is a 404.

For starters, ditch IE8 until you have confirmed it works in more capable browsers, use Chrome for example and open the console (CTRL-Shift-J), look for errors, look for missing files.


James Sleeman

Offline

#3 2011-01-01 04:47:38

PKnight
New member
Registered: 2010-12-31
Posts: 9

Re: Followed Newbie Guide, but Xinha Editor Does Not Show in text-area

OK,  I used Chrome and now have a hint.  (Thank you, gogo!)  Here's what I got and what I did:  The website is actually a SUBWEB.  Therefore it looks like I need to fix some location info.  The xinha folder is  at "http://0326610.netsolhost.com/lrw/xinha/" .  Chrome said I have 404's for XinhaCore.js and my_config.js.  The addresses Chrome was trying to use did NOT show the /lrw/ before the /xinha/ .  So I think I fixed that.  I now have:
_editor_url = "http://0326610.netsolhost.com/lrw/xinha/"  and
<script type="text/javascript" src="http://0326610.netsolhost.com/lrw/xinha/XinhaCore.js"></script> and
<script type="text/javascript" src="http://0326610.netsolhost.com/lrw/xinha/my_config.js"></script> I am NOW getting an error msg on the _editor_url.  The error msg says "WARNING! _editor_url is not set!  You should set the variable to the editor's file path."  and more...Given what I've said my location is, can you tell me what I am supposed to have as the _editor_url?

Offline

#4 2011-01-01 05:28:56

PKnight
New member
Registered: 2010-12-31
Posts: 9

Re: Followed Newbie Guide, but Xinha Editor Does Not Show in text-area

It's working!!!!  Using Chrome, I was able to see there were a number of missing files!  I had them on my computer (in the extracted files folder) but for some reason that did not copy into my software I'm using to publish to the web (Expression Web 3).   Thank you, gogo!!! I haven't tested everything yet, but I think we're OK now.  Will post again if I find I still have problems I can't resolve.

Offline

#5 2011-01-01 05:43:00

PKnight
New member
Registered: 2010-12-31
Posts: 9

Re: Followed Newbie Guide, but Xinha Editor Does Not Show in text-area

Sorry.  Spoke too soon.  I can use the form just fine.  But system first gives me a WARNING that I don't have the _editor_url set.  Please, if someone can, tell me what I should give as that url.  What I have there now is editor_url = "http://0326610.netsolhost.com/lrw/xinha/" .

Last edited by PKnight (2011-01-01 05:43:29)

Offline

#6 2011-01-01 19:26:59

gogo
Xinha Leader
From: New Zealand
Registered: 2005-02-11
Posts: 1,015
Website

Re: Followed Newbie Guide, but Xinha Editor Does Not Show in text-area

The leading underscore is important, it's "_editor_url" not "editor_url".

Also you must set it before XinhaCore.js is loaded.

  <head>
    <script type="text/javascript">
       _editor_url = "http://0326610.netsolhost.com/lrw/xinha/";
    </script>

James Sleeman

Offline

#7 2011-01-01 22:48:01

PKnight
New member
Registered: 2010-12-31
Posts: 9

Re: Followed Newbie Guide, but Xinha Editor Does Not Show in text-area

gogo (James) that worked! (The lack of the _ was a typo in my post; it was fine in the <head> area.) BUT the problem was what you alerted me to.  I was setting _editor_url AFTER loading XinhaCore.js.  So I just now moved them to the following  order in the head of the page with the form.  Thank you for being so helpful!
<head>
<meta content="en-us" http-equiv="Content-Language" />
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>testing page</title>
<script type="text/javascript">
_editor_url  = "http://0326610.netsolhost.com/lrw/xinha/"   // (preferably absolute) URL (including trailing slash) where Xinha is installed
    _editor_lang = "en";       // And the language we need to use in the editor.
    _editor_skin = "silva";    // If you want use a skin, add the name (of the folder) here
    _editor_icons = "classic"; // If you want to use a different iconset, add the name (of the folder, under the `iconsets` folder) here
</script>
<script type="text/javascript" src="http://0326610.netsolhost.com/lrw/xinha/XinhaCore.js"></script>
<script type="text/javascript" src="http://0326610.netsolhost.com/lrw/xinha/my_config.js"></script>
</head>

Last edited by PKnight (2011-01-01 22:48:50)

Offline

Board footer

Powered by FluxBB