I have created a custom page where a user fills a form and a table is generated based on the input(title, background color, etc.). I am working in VB.net with aspx pages. I am able to send back the generated code to a regular textbox in the parent window but not to the editor window. I tried using formname.editorinstance.innerhtml but it wouldn't work. Does anyone know how I might access the editor directly?
Here is the code that is run when the user clicks the submit button in the popup window:
Private Sub btnSubmit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSubmit.Click
Dim lm As String
lm = "<table width=540 bordercolor=" & Colourpicker1.SelectedColour & " border=1 cellspacing=0 cellpadding=2><tr bordercolor=" & Colourpicker1.SelectedColour & "><td width=120 align=center bgcolor=" & Colourpicker1.SelectedColour & "><p class=style1>Learn More</p></td><td>" & dropLM.SelectedItem.Text & "</td><td width=122 align=center bgcolor=" & Colourpicker2.SelectedColour & "><a href=#null class=style3 onclick=""javascript:window.open(\'view_LM.aspx\',\'Title\',\'resizable=yes, scrollbars=yes, width=500,height=500, top=10, left=10\')"">View</a></td></tr></table>"
Dim strjscript As String = "<script language=""javascript"">"
strjscript &= "window.opener." & _
HttpContext.Current.Request.QueryString("formname") & ".innerhtml = '" & _
lm & "';window.close();"
strjscript = strjscript & "</script" & ">" 'Don't Ask, Tool Bug
Response.Write(strjscript)
End Sub
Fri, 10/21/2005 - 13:46
#1