FreeTextBox

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

Emty text in version 4.0

Last post 09-26-2008, 12:29 PM by paradoxenygma. 11 replies.
Sort Posts: Previous Next
  •  10-26-2007, 2:58 PM 8655

    Emty text in version 4.0

    Hi all,

    I'm using the beta version (4.0) in an ASP.NET 2.0 application. The "refresh_web" folder and all sub-folders are in the root of my website and the "Refresh.Web.FreeTextBox.dll" is in my /bin folder. The text box displays fine in the test page and I'm able to enter text, however when I post the page back and write out the .Text property to a label control, it's always empty.

    Everything was working fine with the 3.1.6 version, I just wanted to try upgrading in an attempt to get the FreeTextBox to play nice with AJAX. Any thoughts?

    In my .aspx page, I've got the following page directive:
    <%@ Register Assembly="Refresh.Web.FreeTextBox" Namespace="Refresh.Web" TagPrefix="FTB" %>

    The code to create the text box:

    <FTB:FreeTextBox id="FreeTextBox1" runat="SErver" Width="650px" Height="300px" Theme="simple" EnableViewState="True">   
                <FTB:ToolbarGroup Title="Simple Toolbar">
                    <FTB:ToolbarItem Name="ParagraphMenu" />
                    <FTB:ToolbarItem Name="FontFacesList" />
                    <FTB:ToolbarItem Name="Bold" />
                    <FTB:ToolbarItem Name="Italic" />
                    <FTB:ToolbarItem Name="Underline" />
                    <FTB:ToolbarItem Name="Strikethrough" />
                    <FTB:ToolbarItem Name="separator" />           
                    <FTB:ToolbarItem Name="Superscript" />
                    <FTB:ToolbarItem Name="Subscript" />
                    <FTB:ToolbarItem Name="BulletedList" />
                    <FTB:ToolbarItem Name="NumberedList" />
                    <FTB:ToolbarItem Name="Indent" />
                    <FTB:ToolbarItem Name="Outdent" />
                    <FTB:ToolbarItem Name="break" />
                    <FTB:ToolbarItem Name="InsertRule" />
                    <FTB:ToolbarItem Name="InsertImage" />           
                    <FTB:ToolbarItem Name="CreateLink" />
                    <FTB:ToolbarItem Name="Unlink" />
                </FTB:ToolbarGroup>
            </FTB:FreeTextBox>

    And the code to write out the entered text:

    lblTest.Text = FreeTextBox1.Text;

    Any help would be greatly appreciated!
  •  11-05-2007, 7:53 PM 8676 in reply to 8655

    Re: Emty text in version 4.0

    i'm getting the same thing.  can't imagine that something this basic would not work.  any solutions? 
  •  11-06-2007, 2:50 AM 8677 in reply to 8676

    Re: Emty text in version 4.0

    I'm also getting the same thing.  There must be something "obvious" that we are missing.  I tried version 3, but that had problems if I made the control go invisible and then visibel again, I could not type anything into it.  I also tried fckEdit, but did no get far there either.  I want to use V4 because we are on the way down the AJAX track.
  •  11-09-2007, 10:10 AM 8689 in reply to 8677

    Re: Emty text in version 4.0

    I run into the same problem. The same code works for 3.1.6, though, so I think this is a bug in version 4, somehow.

    When debugging, the Text-property is always empty, even when pre-assigning it at declaration-time...
  •  11-15-2007, 9:29 AM 8714 in reply to 8689

    Re: Emty text in version 4.0

    I'm having similar problems in 4.0 when using ajax.  I can get it working fine within a formview, but as soon as I wrap an ajax UpdatePanel around it, it fails to render and gives a javascript error:

    sys.scriptLoadFailedException:  The script '......../prototype.js' failed to load.  Check for inaccessible path.

    I was previously running into problems with 3.x when trying to use in a formview.  The only way I could get it to work was if the formview's defaultmode was edit.  That didn't fit in with my plans, so I tried to upgrade to 4.x and am now running into additional problems. 

  •  11-18-2007, 9:12 AM 8726 in reply to 8714

    Re: Emty text in version 4.0

    I even can't get it working ...
    just the textarea that only appeared in my page no toolbar no nothing.

    is this forum monitored? or at least moderated by any of the developer?
    its been a month since the first thread...

  •  04-06-2008, 8:31 PM 9046 in reply to 8726

    Re: Emty text in version 4.0

    I FINALLY GOT THIS TO WORK!!!!

    It took nearly a week, and plenty of fist slamming screams, but this was what I came up with and it works!

    I am using FTB v4 Beta 1 in a VB.Net 2.0 UpdatePanel

    For my purpose, I had to move the "refresh_web" folder into another folder, but it seems to work either in the default location or a custom so long as you target it in the "scriptManager". In my case I am implimenting MasterPages, in my expample the code that makes this work is in the "ScriptManagerProxy".

    This is a three part fix, but following these steps should work.

    Open "prototype.js" and "ftb.js" in the root of "refresh_web". After the very last line, paste the following code:

    if( typeof(Sys) != "undefined" && typeof(Sys.Application) != "undefined" ){

    Sys.Application.notifyScriptLoaded();

    }

    Second, copy and rename the "ftb.js" as "ftb-pro.js".  This was my last step and took a while, but for whatever reason I did this on a whim and it worked. It seems that the component or support script is simply checking to see that it exists. If this causes issues down the road, oops... but for now, everything seems to work just fine (but don't get your hopes up, this do not unlock the Pro features, in fact it will cause a script error if you try).

    Finally, every AJAX enabled page utilizes the ScriptManager or SMProxy. The JavaScript code is pasted to report back to this Manager. Here is my Code (remember I need to move the "refresh_web" folder):

    <asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server">

    <Scripts>

    <asp:ScriptReference Path="~/Scripts/FTB_refresh_web/prototype.js" />

    <asp:ScriptReference Path="~/Scripts/FTB_refresh_web/ftb.js" />

    <asp:ScriptReference Path="~/Scripts/FTB_refresh_web/ftb-pro.js" />

    </Scripts>

    </asp:ScriptManagerProxy>

    You can see that I am using virtual paths and have even renamed the "refresh_web" folder. Simply name all three in scripts and you should be fine.

    go ahead and slam you FTB into your page. I don't remember what my final result was, but if this is still giving you a problem, add this to your FTB contol parameters:

    <FTB:FreeTextBox id="MyFreeTextbox" width="600px" Height="400px" runat="Server" IsSafari2Enabled="True" IsToolbarVisible="True" SupportPath="~/Scripts/FTB_refresh_web/" PrototypePath="~/Scripts/FTB_refresh_web/prototype.js">

    Not the Bolded tags. 

    Vwa La!  Happy Texting!

    (visit my site at www.the-sug.com)

  •  06-22-2008, 6:44 PM 9249 in reply to 9046

    Re: Emty text in version 4.0

    mmm, I could not make it work with this... does anyone succeeded?
  •  07-09-2008, 9:25 AM 9277 in reply to 9249

    Re: Emty text in version 4.0

    no... Any other idea ?
  •  07-24-2008, 3:44 AM 9305 in reply to 9046

    Re: Emty text in version 4.0

    Im Unable to do this will please help me

    please send your code and all files.  i despirately need it

    my email is : mahesh.mokal@gmail.com   

     

    Thank you

     

  •  08-22-2008, 3:55 AM 9392 in reply to 9046

    Re: Emty text in version 4.0

    Worked for me too!!! Thanks!!
    Mark
  •  09-26-2008, 12:29 PM 9486 in reply to 9046

    Re: Emty text in version 4.0

    this 'fix' doesn't work for me either.  I'm still getting the blank text...

    what could this be??

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