By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,649 Members | 1,662 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,649 IT Pros & Developers. It's quick & easy.

location.reload() problem

P: 5

i have a problem with location.reload();

because i need to reload my page without clicking a button so
everytime i get a reply from server (using ajax) i call

in one of my codes, i was calling:

fill() --->this fills my form from data in db.

and then, the other call that i have, calls:


the first call does not have a prblem but when i call a function with
location.reload() previously, it gives out an error saying that
the fill(xmlResponse) is not defined.

what are the rules necessary when calling location.reload?

im stuck please help. thanks a lot.
Mar 17 '11 #1
Share this Question
Share on Google+
1 Reply

Expert 100+
P: 250
Why would you reload the page if you're using Ajax?

The whole purpose behind using Ajax is to avoid the full reloading of a page.

I think you should read up on the power of using Ajax.

If I understand you properly, your logic should be:
1- Button click
2- Make Ajax call
2a- Results return
3- Populate form
x- No page reloading; acts like desktop app
Mar 17 '11 #2

Post your reply

Sign in to post your reply or Sign up for a free account.