SitePoint Sponsor |
|
User Tag List
Results 1 to 4 of 4
Thread: attribute length
-
Jul 24, 2004, 22:03 #1
- 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...)
-
Jul 24, 2004, 22:54 #2
- 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.
-
Jul 24, 2004, 23:16 #3
- 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...
-
Jul 25, 2004, 06:33 #4
- 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