I was struck in a task for changing the banner images.
Actually my task was,
I have a folder banner inside images. It contains some sample gif
images. I need to display the current banner image.
Like i have banner.gif, banner1.gif, banner2.gif inside my banner
folder. my banner image is always banner.gif.
I have an controller advertisements and no model.
I have a list page, which has two parts like, current banner image(div)
which display the banner image(banner.gif) and next part is banner list
which displays all images in banner folder(banner.gif, banner1.gif,
The list is a draggable one and current banner is a droppable. so from
the list any one can drag a image and drop in curreent banner image, so
that the banner image should change and list should also change because
always my banner image would be banner.gif
So on drag and drop i have renamed the file names inside banner folder.
So the renaming of file names works fine as a result of drag and drop
but it was not updated in the view. Could any one suggest on the above
Even if i restart the server the view was not updated but when i clear
cache in the browser and refresh the page, now the view is updates. So
could any one please suggest and help me to complete my task.
Here with i have attached the code: