Hi,
I'm trying to call a javascript function from my aspx page. the
javascrpt function call looks like this
<a
href="javascript:initializepage('<%Replace(DataBinder.Eval(Container.DataItem,"BIGXMLFILE1"),"""","")%>','<%Replace(DataBinder.Eval(Container.DataItem,"BIGXMLFILE2"),"""","")%>')">Click
This Link</a>
I am basically passing the content of 2 large XML files to the
javascript function. When the XML files are of a reasonable size 1 kb -
2 kb it works fine but as the size increases the javascript function
just doesnt d anything ..
is there a good way to get around this problem
thanks,
mav
|
|
0
|
|
|
|
Reply
|
atulpandey (2)
|
4/24/2006 11:29:49 PM |
|
maverick1611 said:
>
>Hi,
>I'm trying to call a javascript function from my aspx page. the
>javascrpt function call looks like this
><a
>href="javascript:initializepage('<%Replace(DataBinder.Eval(Container.DataItem,"BIGXMLFILE1"),"""","")%>','<%Replace(DataBinder.Eval(Container.DataItem,"BIGXMLFILE2"),"""","")%>')">Click
>This Link</a>
>I am basically passing the content of 2 large XML files to the
>javascript function. When the XML files are of a reasonable size 1 kb -
>2 kb it works fine but as the size increases the javascript function
>just doesnt d anything ..
>is there a good way to get around this problem
Don't abuse the javascript:pseudo-protocol in this way.
<script type="text/javascript">
function initializepage() {
//dosomethingwithreallylongstring
}
</script>
<href="somepage.html" onclick="initializepage();return false">This Link</a>
--
|
|
0
|
|
|
|
Reply
|
Lee
|
4/25/2006 12:00:46 AM
|
|