How do I pass variables to and from a custom dialog box?

  •  03-28-2006, 6:12 AM

    How do I pass variables to and from a custom dialog box?

    Hi,
     
    I want to create a function where a user selects some text and then clicks a custom button to open a dialog box, makes some selection from the dialog box which subsequently pastes some HTML code to the editor. I'm fine with creating the button, opening a dialog box and then pasting the HTML. The only thing I can't figure out is how to pass a value (in this case the selected text) to the dialog box.
     
    Is there a simple way to do this?
     
    Nick
     
     
View Complete Thread