Click to See Complete Forum and Search --> : Javascript function parameter length


raghu
04-11-2003, 12:14 PM
Hi,

I Have a input parameter to a function which is around 4000 chars.I am not able to pass this value to a function,since
I guess javascript has got some limitations on the function
parameter length, I also tried splitting the string and then
pass it across as two parameters, but still the same problem
exists.

For example

function test(surl)
{
alert(surl);

}

<a href="javascript:test('<your string which is greater than 4000>')URLTEST</a>

has any one come across this problem.

Thanks in advance

Regards,
Sachin

raghu
04-11-2003, 06:37 PM
Hi Dave,

Thanks for the reply.
I did test,it works when the function is called directly.
But the same function needs to be called through
a anchor tag.

for example add this line to the above code and it
does not invoke the function(myfunc) in IE but it works well in Netscape.


document.write("<a href=javascript:myFunc('" + str+ "','" + j + "');>aaaa</a>");