SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Aug 2006
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Printing a Euro sign with the scriptaculous Builder function

    Hi,

    in my code i'm building a new <tr> with the scriptaculous Builder function. In it are ofcourse new <td>'s. One of the <td>'s is used to print a price with the Eurosign in front. I'm making the new price <td> like this:

    td2 = Builder.node('td',[ Builder.node('span','&euro; '+price)]);

    So far so good...the new <tr> is being build with all the new <td>'s but in td2 the Euro sign is being displayed as '&euro;' and not like ''.

    Does anybody has a solution for this?

  2. #2
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try this:
    Code:
    td2 = Builder.node('td',[ Builder.node('span','\u20AC '+price)]);
    Oh ... and welcome to SitePoint!
    Birnam wood is come to Dunsinane

  3. #3
    SitePoint Member
    Join Date
    Aug 2006
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It works....Thanx!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •