FreeTextBox

The no. 1 free ASP.NET HTML Editor.
Welcome to FreeTextBox Sign in | Join | Help
in Search

Change FreeTextBox value on client side

Last post 08-08-2008, 3:05 PM by RickHolc. 2 replies.
Sort Posts: Previous Next
  •  07-20-2008, 5:34 AM 9289

    Change FreeTextBox value on client side

    Hi all,

    I want to change the text of the FreeTextBox control on client side.

    I mean that I have the text I want to display on the FreeTextBox control as HTML and I want to display it by ckicking a html button ( client side not server side).

    Is this possible?

    Thanks in advance.

  •  08-06-2008, 2:42 AM 9342 in reply to 9289

    Re: Change FreeTextBox value on client side

     I have the same problem, I want to change value on client , I had try many times,but I can't solve it.

    Any one can help me?

  •  08-08-2008, 3:05 PM 9357 in reply to 9289

    Re: Change FreeTextBox value on client side

    This may help. Here is how I made a control (dropdownlist) to paste text into the FTB control based on a selection made from my dropdown. The scriptblock uses the InsertHtml function built into FTB to paste the selected value.

    Dim ftbReturn As New FreeTextBoxControls.FreeTextBox

    Dim toolbar1 As New FreeTextBoxControls.Toolbar

    Dim ddl1 As New FreeTextBoxControls.ToolbarDropDownList

    ddl1.Items.Add(New FreeTextBoxControls.ToolbarListItem("News All", "<DIV>%%NEWS%%</DIV>"))

    ddl1.Items.Add(New FreeTextBoxControls.ToolbarListItem("News Top 4", "<DIV>%%NEWS;4%%</DIV>"))

    ddl1.Items.Add(New FreeTextBoxControls.ToolbarListItem("Recent Rescues", "<DIV>%%RESCUES%%</DIV>"))

    ddl1.Items.Add(New FreeTextBoxControls.ToolbarListItem("Recent Rescues Last 10", "<DIV>%%RESCUES;10%%</DIV>"))

    ddl1.ScriptBlock = "{ this.ftb.InsertHtml(document.getElementById(this.id).options[document.getElementById(this.id).selectedIndex].value); }"

    toolbar1.Items.Add(ddl1)

    ftbReturn.Toolbars.Add(toolbar1)

View as RSS news feed in XML
www.freetextbox.com