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 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Feb 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Maximum length of String in javascript in IE6

    Hey I'm trying to send data from flash (in a large string) to javascript. This works fine for ie7 and firefox. But in ie6 it does nothing.
    I started to do some tests to find the problem and came to the conclusion that when I put this text in the ie6 addressbar (first run the testpage and then put this script in the addressbar)
    "javascript:testFunction("A very long string, more than 1000 characters ...")" it does nothing,
    but when i put "javascript:testFunction("A small string, around 100 characters ...")" it works fine in ie6.

    If I put this in the addressbar of ie6 it shows an alert box with the text:
    javascript:testFunction("ttttttttttttttttttttttttttt")


    If I put this in the addressbar of ie6 it doesn't work:
    javascript:testFunction("ttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt")



    this is my javascript test function:

    function testFunction(s){
    alert(s);
    }

    Is there someone who knows an answer for this problem?

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,048
    Thanks
    0
    Thanked 251 Times in 247 Posts
    The URL size has a limit different for each browser. IE has a limitation of 2,083 characters. For other browsers I'm not sure but you can see it from here.


  •  

    Posting Permissions

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