iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hi
I have set EnableDocumentImport="True".
In Documentation I found following code snippet:
<script language="javascript" type="text/javascript" id="wteUserDescription"> <!-- function wteUserDescription_OnToolBarClick(controlId, command, commandSection) { var rte = ISGetObject(controlId); if (command.Name == "cmdImport") alert("implement document import"); } --> </script>
Now I want import a document from file.
How can I do this with Client Side event?
Thanks for help...
Michael
Currently we don’t provide client side method in order to import a document from file with client side event. Loading content from HTML file is only possible to be done in server side. For more detail about this information, please check the article at here.
You need to implement your own client side function that will import a document from file. I enclosed one simple sample that shows how to import html file into WebTextEditor with client side event. In the sample, XMLHttpRequest object is used to update the page with new data, the imported html file, without reloading the page. The imported file,"Breakthrough Editing Experience.html",is available in the WebTextEditorSamples project.
Please check the sample and let me know whether this helps or not.
Yudi;
The client side method you propose here works great in loading an HTML file in WebTextEditor and would be exactly what I need for my scenario. However, this method does not insert the HTML in RootTextEditor. So I cannot save the loaded HTML document to a database using XXXXXX.RootTextEditor.Content, because the content is null (empty).
Is it possible to save an HTML document loaded in WebTextEditor using this method to a database?
Jean
Glad to hear that the sample helps.
I enclosed the modified version of my sample so that it can be saved to database (Editor.mdb file).WebTextEditor1.RootTextEditor.Content not returns null (empty) value. Please modify my sample so that it replicates the issue to be investigated further.
For your information, I use WebTextEditor 1.0 build 6 and WebUI.NET Framework 3.0 build 705.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname