Log in

View Full Version : page refresh



danyjoel
04-14-2010, 08:01 AM
hi all,

Update Part Of A Page Without Refreshing? - is it possible to refresh only part of the webpage (for exmpl .Textbox) without reloading the whole page again using java script.If so kindly give an example.

thanks in advance

djr33
04-14-2010, 05:32 PM
There are two ways:

1. Use Javascript to request a page load (and insert it as part of the page). This is usually with a method called 'Ajax'-- look that up on google and you'll find lots of info.

2. Use an iframe. Just refresh the iframe and the rest of the page will remain as it is. (You could also use frames if you prefer and your design works like that.)


Alternatively you could use flash or another plugin that can work like that.


Ajax is probably the answer you want.

danyjoel
04-19-2010, 01:48 PM
Thank u very much,Can you give me a example with code using ajax

djr33
04-19-2010, 05:31 PM
Just search google. Ajax is a very popular method (almost like it has status as a 'language' of its own, though it's just part of Javascript). There are many ways to do it. You can search for existing scripts or you can try to write your own.
Google "Javascript Ajax load" and you'll find information.
Be warned, though, if you are trying to code it yourself, it can get complex.

danyjoel
04-23-2010, 10:04 AM
Thank you Daniel i got it.

cheers,
Ramesh