User not logged in - login - register
Home Calendar Books School Tool Photo Gallery Message Boards Users Statistics Advertise Site Info
go to bottom | |
 Message Boards » » Java/Xinha question Page [1]  
Raige
All American
4386 Posts
user info
edit post

Making a form, used to used htmlarea and now working with Xinha. However there's one small bug. I'm used to having the ability to go back or make a back button using javascript and still having all the fields filled.

Xinha is reloading everytime the page is viewed. I believe this is the cluprit... but mind you i know very little about javascript.

window.onload = xinha_init;

What I want it to do is start up when you first view the page or intentionally refresh. But being able to go back and not lose the information in the Xinha enabled text fields is essential. Thanks!

11/14/2005 1:55:55 PM

Raige
All American
4386 Posts
user info
edit post

Here is the whole javascript.

<script type="text/javascript">
_editor_url = "/Xinha/"
_editor_lang = "en";
</script>
<script type="text/javascript" src="/xinha/htmlarea.js"></script>

<script type="text/javascript">
xinha_editors = null;
xinha_init = null;
xinha_config = null;
xinha_plugins = null;

xinha_init = xinha_init ? xinha_init : function()
{
xinha_plugins = xinha_plugins ? xinha_plugins :
[

];
if(!HTMLArea.loadPlugins(xinha_plugins, xinha_init)) return;
xinha_editors = xinha_editors ? xinha_editors :
[
'description'
];

xinha_config = xinha_config ? xinha_config : new HTMLArea.Config();
xinha_editors = HTMLArea.makeEditors(xinha_editors, xinha_config, xinha_plugins);
HTMLArea.startEditors(xinha_editors);
window.onload = null;
}

window.onload = xinha_init;
</script>

11/14/2005 1:56:48 PM

qntmfred
retired
40726 Posts
user info
edit post

well the first thing you need to know is that java != javascript

[Edited on November 14, 2005 at 2:02 PM. Reason : raige always makes the best threads]

11/14/2005 2:02:22 PM

Raige
All American
4386 Posts
user info
edit post

err my bad with the title.

[Edited on November 14, 2005 at 2:03 PM. Reason : I love you guys hehe. ]

11/14/2005 2:03:19 PM

dr_toast
Veteran
102 Posts
user info
edit post

The reason xinha screws up the back button is because it loads inside an inline frame.

11/14/2005 2:15:33 PM

 Message Boards » Tech Talk » Java/Xinha question Page [1]  
go to top | |
Admin Options : move topic | lock topic

© 2024 by The Wolf Web - All Rights Reserved.
The material located at this site is not endorsed, sponsored or provided by or on behalf of North Carolina State University.
Powered by CrazyWeb v2.39 - our disclaimer.