I created a page to test the htmlextender.
I put two textboxes in it, one at the top, one at the bottom. Each had its own htmlextender.
I had a SUBMIT button, and when it is clicked, it copies the content of one textbox to the other, i.e.
textbox2.text = textbox1.text.
So I ran the program, and found some html on the web on Wikipedia:
http://en.wikipedia.org/wiki/Crucifixion
I highlighted part of the wikepedia page, including some pictures, and copied it, and pasted it into the top textbox. This did work, the pictures came over, and so forth and the top textbox did work as an html-editor.
Then I clicked the Submit button.
This crashed the htmlextender with a JavaScript error.
I've attached the source (minus libraries, which were over the limit for uploading here)
My website needs to store what the user types in to an htmlextender, but it also needs to let the user revise it. So I do need the ability to set the contents of a textbox to whatever originally was saved.
Comments: I've uploaded it (as an unlisted YouTube video) to: http://youtu.be/_fu3u-Ag-7E However, this time I don't get a JavaScript crash. I do get odd behavior though - both textboxes become filled with source html as opposed to the original. But you can see. the JavaScript crash did happen once, perhaps it depends on the precise html that is pasted into it. Or perhaps something about my context is responsible. (maybe another tab with another website while I was running Visual Studio in this tab?)
I put two textboxes in it, one at the top, one at the bottom. Each had its own htmlextender.
I had a SUBMIT button, and when it is clicked, it copies the content of one textbox to the other, i.e.
textbox2.text = textbox1.text.
So I ran the program, and found some html on the web on Wikipedia:
http://en.wikipedia.org/wiki/Crucifixion
I highlighted part of the wikepedia page, including some pictures, and copied it, and pasted it into the top textbox. This did work, the pictures came over, and so forth and the top textbox did work as an html-editor.
Then I clicked the Submit button.
This crashed the htmlextender with a JavaScript error.
I've attached the source (minus libraries, which were over the limit for uploading here)
My website needs to store what the user types in to an htmlextender, but it also needs to let the user revise it. So I do need the ability to set the contents of a textbox to whatever originally was saved.
Comments: I've uploaded it (as an unlisted YouTube video) to: http://youtu.be/_fu3u-Ag-7E However, this time I don't get a JavaScript crash. I do get odd behavior though - both textboxes become filled with source html as opposed to the original. But you can see. the JavaScript crash did happen once, perhaps it depends on the precise html that is pasted into it. Or perhaps something about my context is responsible. (maybe another tab with another website while I was running Visual Studio in this tab?)