[jQuery] noob question: loading dynamic content with .load()

[jQuery] noob question: loading dynamic content with .load()


im kinda a noob with some of this jquery stuff. esp the ajax stuff so
any help i can get here would be greatly appreciated.
i am using this code to try to load new content into my content div.
$("myContentDiv").load("myScript.php?var1=x&var2=y&var3=z")
myScript.php generates my new content to load into my Div. there can
be anywhere from 0 to 1000 rows of data returned.
sometimes myScript doesnt load correctly. even if i add a callback,
the callback runs but the data doesnt load.
Is it best for me to have myScript.php generate all the html and then
have it loaded into myDiv or is there a better way.
thx for helping this noob.