954,593 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

function save ()

i have been asked to fix a problem on a content management system website. when the user edits the text and then clicks on the save button it is not updating the text on the pages selected. the code that is being used is

oEdit1.btnSave= true; // Enable save button
oEdit1.onSave = new Function("save()"); // Specify a function to call

and the function looks like this <script>
function save()
{
document.forms.form1.elements.inpContent.value = oEdit1.getHTMLBody();
document.forms.form1.submit()
}
</script>

if anyone can help please get back

kevin wood
Posting Whiz
347 posts since Feb 2008
Reputation Points: 27
Solved Threads: 1
 

it is using the innovastudio WYSIWYG editor which i have never come across. if there is anyone who has used this before and could help please shed some light on the situation.

kevin wood
Posting Whiz
347 posts since Feb 2008
Reputation Points: 27
Solved Threads: 1
 

Note that in IE, the screen will not update until all scripts stop running.

MidiMagic
Nearly a Senior Poster
3,319 posts since Jan 2007
Reputation Points: 730
Solved Threads: 182
 

> it is using the innovastudio WYSIWYG editor which i have never come across.

Why not try your luck at their support forums? You would have a much better chance of getting help there.

~s.o.s~
Failure as a human
Administrator
11,938 posts since Jun 2006
Reputation Points: 3,281
Solved Threads: 734
 

Hello ! Did you solve your problem ?

I'm having a slightly different problem with Innova Editor.

I'm trying to have a custom save button with javascript / ajax to avoid submiting the form so as to keep the editor open for further editing.

stephaneeybert
Newbie Poster
1 post since Dec 2009
Reputation Points: 10
Solved Threads: 0
 

just try that:

oEdit1.onSave = save;

but take care with this in the save function!

Mr.Bit
Newbie Poster
2 posts since Dec 2009
Reputation Points: 10
Solved Threads: 0
 

... and you need to add the event:

window.addEventListener("save",save, false) //invoke function

there are different syntax for IE and FF.

better use:

oEdit1.onclick = save;
Mr.Bit
Newbie Poster
2 posts since Dec 2009
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You