Change views using javascript

  •  12-04-2006, 11:46 AM

    Change views using javascript

    Hi
     
    We have noticed that when save is clicked while in HTML view that some javascript is being converted to lowercase. However when save is clicked via the normal view this does not happen. So to get round this for now we simply removed the save button from HTML view.
     
    However we have an autosave script that saves the page. However when its in HTML view the javascript gets reformatted as before. So I was wondering if there is a way I can get the javascript to change views from HTML to normal before it autosaves?
    Do you have any examples to do this?
     
    Or could you fix the save in html so that it doesnt lowercase my javascript.
     
    Thanks
    Andy
View Complete Thread