Grabbing data

Last post 02-02-2010, 5:25 AM by Meltdown. 3 replies.
Sort Posts: Previous Next
  •  01-15-2010, 8:26 AM 58187

    Grabbing data

    Hi,
     
    When I try to paste a word doc, a text box pops up and I insert the text into that. This box then inserts the text into the editor (removing all that word doc rubbish).
     
    Well, is there any way for me to capture the data from the popup box?  I want to insert the data into a second field that just has raw data with no html markup attached. Storing raw text in a second field would allow me to extract part of the text without having to worry about parsing out html markup.
     
    Regards
    Melt
  •  01-15-2010, 9:06 AM 58188 in reply to 58187

    Re: Grabbing data

    Melt,
     
    Only Non-IE browsers have this textbox pops up when pasting from word. For Non-IE browsers, it's possible to capture the data from the popup box by modifying the Dialog_gecko_pasteword.js file.
     
    But for IE, you have to modify the source code to capture the pasting data.

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  01-15-2010, 9:45 AM 58191 in reply to 58188

    Re: Grabbing data

    Hi Adam, thanks for the reply.
     
    Do you have any code to do that from the popup?
     
    Let's say I have another asp.net textbox control called 'rawtext' on the same page as the editor, when I click the insert button on the popup I'd like the text to go to the editor and  the 'rawtext' control as well.
     
    Regards
    Melt
  •  02-02-2010, 5:25 AM 58491 in reply to 58191

    Re: Grabbing data

    HI Adam,
     
    I see the final line in that file is:  return Ox2b;
     
    Can you give me any tips on how I might capture that value on the aspx page?
     
    Thanks
     
    Regards
    Melt
View as RSS news feed in XML