SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast kaos's Avatar
    Join Date
    Jun 2004
    Location
    CANADA
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    attribute length

    I have a jscript that writes HTML to a hidden layer which creates floating layer/alt txt effect in onmouseover action.

    however I noticed some longer text(over 300 character) just won't show, is there a limit on how long an html tag can be(or attribute can be? eg. 255 or something...)

  2. #2
    SitePoint Aficionado JVLB's Avatar
    Join Date
    Jan 2002
    Location
    N 44 56.537' W 123 3.683'
    Posts
    1,127
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    More likely, it is the size and overflow attribute of the element that contains the text that is causing the cutoff.

  3. #3
    SitePoint Enthusiast kaos's Avatar
    Join Date
    Jun 2004
    Location
    CANADA
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks, I experiment some more and found length is okay, but all trouble ones has ^M in it so maybe that's why...

  4. #4
    SitePoint Aficionado JVLB's Avatar
    Join Date
    Jan 2002
    Location
    N 44 56.537' W 123 3.683'
    Posts
    1,127
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The caret (^) is used in regular expressions, though I wouldn't expect it to be invalid in a plain string variable. You could try escaping the caret with the backslash (\^) and see if that gets you anywhere.


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
  •