Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: Substring stuff

  1. #1
    New to the CF scene
    Join Date
    Jul 2002
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Substring stuff

    At first, I couldn't find a place to post this question, but i'm sure someone *cough* "jkd" *cough* - is bound to know off the top of his head.

    Just exactly how many characters can be pulled from a textarea by using subString(pointA, pointB); ? And is there a more compatible way of doing this (just for IE).

    These questions concern breaking the content of a textarea into two parts, the first being only 253 characters long, and the second being whatever is leftover out of the original content.

    thanks much!

  • #2
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    Umm, huh?

    refToTextArea.value.substring(start, offset)

    works in any browser... unless I misread?

  • #3
    New to the CF scene
    Join Date
    Jul 2002
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ok.. I see where you got that, I forgot to mention my little problem. For some reason, it will not allow using that method (im pretty sure its the only one), on larger amounts of data.

    I'm working with really larger documents of characters, all I want to do is split it up into two different strings.
    But for some reason, It wont allow it. (mabey its my code)?

    What i was asking is if you knew the limit. (if any) of characters you can define as a "String". from the subString method.


  •  

    Posting Permissions

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