Menu

#133 String "</anthemarea>" ist added to Multiline-Textboxes

open
nobody
None
5
2014-08-04
2007-10-04
George
No

Hello!

Problem:
In my Project I habe 4 Multiline-Textboxes (textareas). On Callback to all Textboxes but the first the String "</anthemarea>" is added to the Textbox.

The error is in anthem.js in line 74:

Original (1.5.2):

var response = { responseText: doc.getElementById("response").value.replace(/<\/anthemarea>/, "</textarea>") };

Problem solved when changing in
var response = { responseText: doc.getElementById("response").value.replace(/<\/anthemarea>/g, "</textarea>") };

The "/g" replaces all of "</anthemarea>" to "</textarea>"

Hope you can confirm this bug?!

Dennis George

Discussion

  • Andy Miller

    Andy Miller - 2007-10-04

    Logged In: YES
    user_id=1245761
    Originator: NO

    Hello Dennis,

    Do you have a sample page that you could attach? That would make it much easier to reproduce and confirm your fix.

     
  • George

    George - 2007-10-05

    Sample Page

     
  • George

    George - 2007-10-05

    Logged In: YES
    user_id=688786
    Originator: YES

    Hi!

    I user Visual Studio 2003 (.Net Framework 1.1). With Microsoft Internet Explorer Web Controls for my Tabs on the Page. Withing every Pageview of the Multipage there is a DIV with my Contols.

    See aspx page attached.

    Dennis
    File Added: detail.aspx

     
  • George

    George - 2007-10-05

    Logged In: YES
    user_id=688786
    Originator: YES

    The Javascript function replace replaces only the first found string. To replace all occurrences of a Strng you have to add the "g" to the regular expression.

     

Log in to post a comment.