tags:

views:

6121

answers:

4

is there a difference in passing parameters to .load

$("#myDiv").load("myScript.php?var=x&var2=y&var3=z")

vs

$("#myDiv").load("myScript.php", {var:x, var2:y, var3:z})

also is there a size limit to how much .load can handle? can myScript.php return a couple hundred rows of data without issue?

+2  A: 

In the first case, the data are passed to the script via GET, in the second via POST.

http://docs.jquery.com/Ajax/load#urldatacallback

I don't think there are limits to the data size, but the completition of the remote call will of course take longer with great amount of data.

Davide Gualano
From my experience there is a limit the size of the GET in MSIE.
Sugendran
The limit is IE is 256 bytes (roughly 2048 characters).
Prestaul
A: 

Hi all, How can I send a dictionaty via load?

Nicu
A: 

hello im wondering if i can send 4 books in text via load

rolo
A: 

hi all, could i send my mother in law through load ?