Setting text in an iframe via webbrowser control

xzibited2

Active member
Joined
Jul 9, 2008
Messages
26
Programming Experience
1-3
Guys - Need some help here. Trying to set the text in this iframe. Tried .innertext which does not seem to produce a result. Below is a screenshot of the object and the associated code.

----

realbird.png


----

HTML:
 <!-- CuteEditor Member1:_ctl0:ceDetails Begin --> 

<textarea name="Member1:_ctl0:ceDetails" id="Member1:_ctl0:ceDetails" rows="14" cols="50" class="CuteEditorTextArea" style="DISPLAY: none; WIDTH: 100%; HEIGHT: 100%"> </textarea><input type='hidden' name='Member1:_ctl0:ceDetails:ClientState' value=''/><input type='hidden' name='Member1:_ctl0:ceDetails:PostBackHandler'/><link rel="stylesheet" href="/CuteSoft_Client/CuteEditor/Load.ashx?type=themecss&file=style.css&theme=OfficeXP&EditorID=CE_Member1__ctl0_ceDetails_ID" />
<table width="500px" height="500px" cellspacing="0" cellpadding="0" _IsCuteEditor="True" id="CE_Member1__ctl0_ceDetails_ID" style="background-color:#F4F4F3;border-color:#DDDDDD;border-width:1px;border-style:Solid;height:500px;width:500px;">
	<tr><td class='CuteEditorToolBarContainer' unselectable='on' valign='top'><div id="CE_Member1__ctl0_ceDetails_ID_ToolBar" style="DISPLAY:none;">
		<table class='CuteEditorGroupMenu' cellSpacing='0' cellPadding='0' border='0'><tr><td class='CuteEditorGroupMenuCell'><nobr><span class="CuteEditorDropDown" id="CE_Member1__ctl0_ceDetails_IDformatblock" Command="FormatBlock" onchange="CuteEditor_DropDownCommand(this,'FormatBlock')" RichHideFirstItem="true" RenderItemBorder="true" _IsRichDropDown="True" style="width:40px;height:20px;"><span val="" selected="True" html="Paragraph" txt="Paragraph"></span><span val="<DIV>" html="DIV" txt="DIV"></span><span val="<P>" html="Normal" txt="Normal"></span><span val="<H1>" html="<b style='font-size:24pt'>Heading 1</b>" txt="Heading 1"></span><span val="<H2>" html="<b style='font-size:18pt'>Heading 2</b>" txt="Heading 2"></span><span val="<H3>" html="<b style='font-size:15pt'>Heading 3</b>" txt="Heading 3"></span><span val="<H4>" html="<b style='font-size:12pt'>Heading 4</b>" txt="Heading 4"></span><span val="<H5>" html="<b style='font-size:9pt'>Heading 5</b>" txt="Heading 5"></span><span val="<H6>" html="<b style='font-size:7pt'>Heading 6</b>" txt="Heading 6"></span><span val="<Address>" html="Address" txt="Address"></span><span val="<MENU>" html="Menu List" txt="Menu List"></span><span val="<PRE>" html="Formatted" txt="Formatted"></span><span val="<DT>" html="Definition Term" txt="Definition Term"></span></span><span class="CuteEditorDropDown" id="CE_Member1__ctl0_ceDetails_IDfontname" Command="FontName" onchange="CuteEditor_DropDownCommand(this,'FontName')" RichHideFirstItem="true" _IsRichDropDown="True" style="width:40px;height:20px;"><span val="" selected="True" html="Default Font" txt="Default Font"></span><span val="Arial" html="<font size=3 face='Arial'>Arial</font>" txt="Arial"></span><span val="Verdana" html="<font size=3 face='Verdana'>Verdana</font>" txt="Verdana"></span><span val="Comic Sans MS" html="<font size=3 face='Comic Sans MS'>Comic Sans MS</font>" txt="Comic Sans MS"></span><span val="Courier" html="<font size=3 face='Courier'>Courier</font>" txt="Courier"></span><span val="Georgia" html="<font size=3 face='Georgia'>Georgia</font>" txt="Georgia"></span><span val="Impact" html="<font size=3 face='Arial'>Impact</font>" txt="Impact"></span><span val="Lucida Console" html="<font size=3 face='Lucida Console'>Lucida Console</font>" txt="Lucida Console"></span><span val="Tahoma" html="<font size=3 face='Tahoma'>Tahoma</font>" txt="Tahoma"></span><span val="Times New Roman" html="<font size=3 face='Times New Roman'>Times New Roman</font>" txt="Times New Roman"></span><span val="Wingdings" html="<font size=3 face='Wingdings'>Wingdings</font>" txt="Wingdings"></span></span><span class="CuteEditorDropDown" id="CE_Member1__ctl0_ceDetails_IDfontsize" Command="FontSize" onchange="CuteEditor_DropDownCommand(this,'FontSize')" RichHideFirstItem="true" _IsRichDropDown="True" style="width:40px;height:20px;"><span val="" selected="True" html="Size" txt="Size"></span><span val="null" html="Not Set" txt="Not Set"></span><span val="1" html="<font size='1'>Size 1 </font>(8pt)" txt="1 (8pt)"></span><span val="2" html="<font size='2'>Size 2 </font>(10pt)" txt="2 (10pt)"></span><span val="3" html="<font size='3'>Size 3 </font>(12pt)" txt="3 (12pt)"></span><span val="4" html="<font size='4'>Size 4 </font>(14pt)" txt="4 (14pt)"></span><span val="5" html="<font size='5'>Size 5 </font>(18pt)" txt="5 (18pt)"></span><span val="6" html="<font size='6'>Size 6 </font>(24pt)" txt="6 (24pt)"></span><span val="7" html="<font size='7'>Size 7 </font>(36pt)" txt="7 (36pt)"></span></span></nobr></td></tr></table><table class='CuteEditorGroupMenu' cellSpacing='0' cellPadding='0' border='0'><tr><td class='CuteEditorGroupMenuCell'><nobr><img Command="CleanCode" title="Clean Up HTML" ThemeIndex="7" /><script language=javascript src='/CuteSoft_Client/CuteEditor/Load.ashx?type=script&file=spell.js'></script><img Command="netspell" title="Spell Check" ThemeIndex="8" /><img src='/CuteSoft_Client/CuteEditor/Load.ashx?type=theme&file=separator.gif&theme=OfficeXP' unselectable='on' class='separator'/><img Command="Cut" title="Cut" ThemeIndex="9" /><img Command="Copy" title="Copy" ThemeIndex="10" /><img Command="Paste" title="Paste" ThemeIndex="11" /><img Command="PasteText" title="Paste plain text" ThemeIndex="12" /><img Command="PasteWord" title="Paste From word" ThemeIndex="13" /><img Command="FullPage" title="[[FullPage]] - F12" ThemeIndex="5" /><img src='/CuteSoft_Client/CuteEditor/Load.ashx?type=theme&file=separator.gif&theme=OfficeXP' unselectable='on' class='separator'/><img Command="Undo" title="Undo" ThemeIndex="16" /><img Command="Redo" title="Redo" ThemeIndex="17" /><img src='/CuteSoft_Client/CuteEditor/Load.ashx?type=theme&file=separator.gif&theme=OfficeXP' unselectable='on' class='separator'/><img Command="Break" title="Break" ThemeIndex="48" /><img Command="InsertParagraph" title="Insert Paragraph" ThemeIndex="49" /></nobr></td></tr></table><br clear='both'/><table class='CuteEditorGroupMenu' cellSpacing='0' cellPadding='0' border='0'><tr><td class='CuteEditorGroupMenuCell'><nobr><img Command="Bold" title="Bold" ThemeIndex="66" /><img Command="Italic" title="Italic" ThemeIndex="67" /><img Command="Underline" title="Underline" ThemeIndex="68" /><img Command="StrikeThrough" title="Strikethrough Text" ThemeIndex="81" /><img Command="Superscript" title="Superscript Text" ThemeIndex="79" /><img Command="Subscript" title="Subscript Text" ThemeIndex="80" /><img Command="ForeColor" onclick="CuteEditor_GetEditor(this).ExecImageCommand('ForeColor',false,document.getElementById('CE_Member1__ctl0_ceDetails_ID_forecolorimg').style.backgroundColor,this)" id="CE_Member1__ctl0_ceDetails_ID_forecolorimg" Width="17" title="Font Color" src="/CuteSoft_Client/CuteEditor/Load.ashx?type=theme&file=fontcolor.gif&theme=OfficeXP" style="background-color: red;" /><img Command="SetForeColor" oncolorchange="CuteEditor_GetEditor(this).ExecImageCommand('ForeColor',false,this.selectedColor,this); document.getElementById('CE_Member1__ctl0_ceDetails_ID_forecolorimg').style.backgroundColor = this.selectedColor" onclick="CuteEditor_GetEditor(this).ExecImageCommand('SetForeColor',false,null,this);" title="Set Font Color" src="/CuteSoft_Client/CuteEditor/Load.ashx?type=theme&file=tbdown.gif&theme=OfficeXP" /><img Command="BackColor" onclick="CuteEditor_GetEditor(this).ExecImageCommand('BackColor',false,document.getElementById('CE_Member1__ctl0_ceDetails_ID_backcolorimg').style.backgroundColor,this)" id="CE_Member1__ctl0_ceDetails_ID_backcolorimg" Width="17" title="HighLight" src="/CuteSoft_Client/CuteEditor/Load.ashx?type=theme&file=colorpen.gif&theme=OfficeXP" style="background-color: yellow;" /><img Command="SetBackColor" oncolorchange="CuteEditor_GetEditor(this).ExecImageCommand('BackColor',false,this.selectedColor,this); document.getElementById('CE_Member1__ctl0_ceDetails_ID_backcolorimg').style.backgroundColor = this.selectedColor" onclick="CuteEditor_GetEditor(this).ExecImageCommand('SetBackColor',false,null,this);" title="Set Highlight" src="/CuteSoft_Client/CuteEditor/Load.ashx?type=theme&file=tbdown.gif&theme=OfficeXP" /><img src='/CuteSoft_Client/CuteEditor/Load.ashx?type=theme&file=separator.gif&theme=OfficeXP' unselectable='on' class='separator'/><img Command="JustifyLeft" title="Left Justify" ThemeIndex="69" /><img Command="JustifyCenter" title="Center" ThemeIndex="70" /><img Command="JustifyRight" title="Right Justify" ThemeIndex="71" /><img Command="Indent" title="Indent Text" ThemeIndex="77" /><img Command="Outdent" title="Outdent Text" ThemeIndex="78" /><img Command="RemoveFormat" title="Remove Format" ThemeIndex="74" /></nobr></td></tr></table><table class='CuteEditorGroupMenu' cellSpacing='0' cellPadding='0' border='0'><tr><td class='CuteEditorGroupMenuCell'><nobr><img Command="TableDropDown" onclick="var editor=CuteEditor_GetEditor(this);editor.TableDropDown(this)" title="Insert Table" src="/CuteSoft_Client/CuteEditor/Load.ashx?type=theme&file=instable.gif&theme=OfficeXP" /><img Command="BoxFormatting" title="Box Formatting" ThemeIndex="24" /><img Command="InsertLayer" title="Insert Layer" ThemeIndex="25" /><img Command="InsertHorizontalRule" title="Insert Horizontal Line" ThemeIndex="84" /><img Command="InsertLink" title="Insert Hyperlink" ThemeIndex="85" /><img Command="Unlink" title="Remove Link" ThemeIndex="86" /><img Command="InsertAnchor" title="Insert Anchor" ThemeIndex="87" /><img Command="AbsolutePosition" title="Position Absolutely" ThemeIndex="89" /><img Command="BringForward" title="Bring Forward" ThemeIndex="90" /><img Command="BringBackward" title="Send Backward" ThemeIndex="91" /><img Command="ToggleBorder" title="Visible Borders" ThemeIndex="92" /><img src='/CuteSoft_Client/CuteEditor/Load.ashx?type=theme&file=separator.gif&theme=OfficeXP' unselectable='on' class='separator'/><img Command="SelectAll" title="Select All" ThemeIndex="93" /><img Command="SelectNone" title="Select None" ThemeIndex="94" /><img Command="Help" title="Help" ThemeIndex="95" /></nobr></td></tr></table>
	</div><div id="CE_Member1__ctl0_ceDetails_ID_CodeViewToolBar" style="DISPLAY:none;">

	</div></td></tr><tr><td class='CuteEditorFrameContainer' style='height:100%'><iframe id="CE_Member1__ctl0_ceDetails_ID_Frame" src="/CuteSoft_Client/CuteEditor/Template.aspx?Referrer=http%3a%2f%2fwww.realbird.com%2fmember%2fDefault.aspx%3fp%3dmember.listings.add" FrameBorder="0" class="CuteEditorFrame" style="background-color:White;border-color:#DDDDDD;border-width:1px;border-style:Solid;height:100%;width:100%;">

	</iframe></td></tr><tr><td class='CuteEditorBottomBarContainer'><table border='0' cellspacing='0' cellpading='0' style='width:100%;'><tr><td class='CuteEditorBottomBarContainer' style='width:150px'><img Command="TabEdit" class="CuteEditorButton" src="/CuteSoft_Client/CuteEditor/Load.ashx?type=theme&file=design.gif&theme=OfficeXP" title="Normal" /><img Command="TabCode" class="CuteEditorButton" src="/CuteSoft_Client/CuteEditor/Load.ashx?type=theme&file=htmlview.gif&theme=OfficeXP" title="HTML" /><img Command="TabView" class="CuteEditorButton" src="/CuteSoft_Client/CuteEditor/Load.ashx?type=theme&file=preview.gif&theme=OfficeXP" title="Preview" /></td><td><div id='CE_Member1__ctl0_ceDetails_ID_TagListContainer' class='CuteEditorTagListContainer'> </div></td><td align='right' style='text-align:right;' nowrap='nowrap'><span class="WordCount"></span><span class="WordSpliter"> </span><span class="CharCount"></span></td><td style='vertical-align:bottom;text-align:right;width:20px;'><img src="/CuteSoft_Client/CuteEditor/Load.ashx?type=image&file=ResizeCorner.gif&theme=OfficeXP" onmouseover="(CuteEditor_GetEditor(this).RegisterResizeCornor||function(){})(this.parentNode)" ondragstart="return false" title="Resize" /></td></tr></table></td></tr>
</table><script src="/CuteSoft_Client/CuteEditor/Load.ashx?type=scripts&file=Gecko_Loader">

</script><img src="/CuteSoft_Client/CuteEditor/images/1x1.gif?634240302504218750" onload="CuteEditorInitialize('CE_Member1__ctl0_ceDetails_ID',{'_ClientID':'CE_Member1__ctl0_ceDetails_ID','_UniqueID':'Member1:_ctl0:ceDetails','_FrameID':'CE_Member1__ctl0_ceDetails_ID_Frame','_ToolBarID':'CE_Member1__ctl0_ceDetails_ID_ToolBar','_CodeViewToolBarID':'CE_Member1__ctl0_ceDetails_ID_CodeViewToolBar','_HiddenID':'Member1:_ctl0:ceDetails','_StateID':'Member1:_ctl0:ceDetails:ClientState','_PostBackHandlerID':'Member1:_ctl0:ceDetails:PostBackHandler','_TemplateUrl':'/CuteSoft_Client/CuteEditor/Template.aspx?Referrer=http%3a%2f%2fwww.realbird.com%2fmember%2fDefault.aspx%3fp%3dmember.listings.add','Culture':'en-US','Theme':'OfficeXP','ResourceDir':'/CuteSoft_Client/CuteEditor','ActiveTab':'Edit','ContextMenuMode':'Simple','MaxHTMLLength':'0','MaxTextLength':'0','TabSpaces':'3','ResizeStep':'100','BreakElement':'Div','URLType':'Default','EmptyAlternateText':'ForceAdd','ServerName':'www.realbird.com','RenderRichDropDown':'True','EditorOnPaste':'ConfirmWord','ResizeMode':'ResizeCorner','DNNArg':'','PreviewModeCss':'','PostBackScript':'__doPostBack(\x27Member1$_ctl0$ceDetails$PostBackHandler\x27,\x27\x27)','HelpPath':'/CuteSoft_Client/CuteEditor/Help/default.htm','DOCTYPE':'','BaseHref':'','EditorBodyStyle':'','EditorBodyId':'','EditorBodyClass':'','EditorSetting':'bDxlbi11czskYTE7PofivX0xkW!1C8KAodA6JdDSlqPcb','ToggleBorder':'1','EnableBrowserContextMenu':'1','EnableContextMenu':'1','ConvertHTMLTagstoLowercase':'1','RemoveTBODYTag':'1','EnableAntiSpamEmailEncoder':'1','EnableStripScriptTags':'1','AllowPasteHtml':'1','UseHTMLEntities':'1','EncodeHiddenValue':'1','EnableObjectResizing':'1','MaintainAspectRatioWhenDraggingImage':'1'})" style="display:none;" />

 <!-- CuteEditor Member1:_ctl0:ceDetails End c1 ms156.25-->
 
Back
Top