This example shopping cart test page will be open to the public on the web so it has to work in all major browsers.
I want to update a choice in our sql2000 database, similar to what Netfix does when one clicks on the big X to remove a DVD from the list of DVD titles in the "Your Queue" page. The image here is the X. That works here. That's not the problem.
In any event, the code I'm using does not work. I want to use the best possible choice, even if it means I take some time to understand it, and it may take more than one question.
Can someone help, or point me to a clear, basic example how to achieve what I want. I'm a novice and need this explained, what needs to be done to call my update.cfm without moving away from the current page or refreshing it.
Also, I'm not at all certain if using iframe could be a problem, if it could be seen as a pop up.
myselfrandhawa: Looks interesting but some of your suggestions are confusing to me:
You wrote: "complete.cfm - you update goes here do whatever u want to do and return anything whatever message u wanna display to user, and div will reload"
Where does "complete.cfm", or in my case, "update.cfm" go? You seem to indicate it goes on the same page, or do you mean to cfinclude it? And if so, under what condition? I don't have a clue as to what you mean, as to where the cfquery update actually goes, and how, and even when.
Also not sure of this:
Did you mean <div id="message"></div> (I changed your "is" to "id")? Is that correct, id instead of is?
And what does the refreshMe id do, for what?
And just as important, you suggested, "why not use jquery here like this:"
Did you mean to also include a jquery code somewhere? This is also confusing. You may be thinking I know what you mean, when I don't. You took some time to explain, and I appreciate it, but what I wrote above is most of what I don't understand.
Please clarify soon as you can as I URGENTLY need this. Thanks!