views:

43

answers:

2

i am loading a page with xmlhttprequest it was working fine but now it is giving me only the number 4 output when i load the page it gives me only [ 4 ] output without[] i.e 4 how can i fix that

A: 

Not too sure about that, perhaps it's an error code? Also, check the page that you're loading, does the page have any code that might cause it to return that value?

Also, have you considered using an AJAX library? Might help simplify development. Check out jQuery and Dojo, and see if it might help you out.

gamers2000
i have used both but i want to refresh page content only with xmlhttprequest not $.ajax because $.ajax is to heavy as compare to xmlhttp............any way thanks for answering me
testkhan
A: 

"it was working fine but now it is giving me only the number 4"

This is why you need to use a good Version Control system like SVN.

SoftwareGeek