control control

  • Thread starter Thread starter Fritz the Cat
  • Start date Start date
F

Fritz the Cat

I have a control that displays an random image whenever the page is loaded.

I wanna have a button that says click me for a new image

I just want the control to be reloaded, not the whole page.


Can I do that ***with the existing setup as i just described** ?

How?

Would I add some ajaxulation on it or what?
 
I have a control that displays an random image whenever the page is loaded.

I wanna have a button that says click me for a new image

I just want the control to be reloaded, not the whole page.

Can I do that ***with the existing setup as i just described** ?

How?

Would I add some ajaxulation on it or what?

Hi,

if you want to load only that control then ajax is a right choice...
go for it...

Thanks
Masudur
 
You may ajax to make a call to get the new image path, or you could load a
list of next image paths into javascript and then on button click just
replace the image src property and there is no need to post to the server.

HTH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top