Hi All,
I have an include file with all my functions, including the one that dinamically generates a list of divs, each one containing a picture with name, descriptions etc, plus the buttons to edit the content of that div (eg, the name of the picture).
The idea is that when clicking one of these buttons, that div becomes a form, so the content can be changed. Problem is, reloading the page means that it will start from the top again (and I have to scroll down to the picture I wanted to modify)
What do you think is the best strategy to avoid this?
I was thinking of using ajax, so only the content of that div could be replaced with the form - but if I do so, how can I send the post data to a function inside an include, instead of a page?
Any other ideas?
thanks,
Patrick