close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

jquery delete clarification

Thread began 2/07/2014 1:43 am by Christopher West | Last modified 2/07/2014 1:04 pm by Jason Byrnes | 377 views | 3 replies |

Christopher WestCommunity Expert

jquery delete clarification

Hi, I wanted to implement a delete confirmation, whereupon I have a recordset with a repeat region and a corresponding delete button for each individual record that is displayed. I want to use the JQueryUI library. I have look around on Google, but just cannot find answers.

on the official JQueryUI website (under this link: http://jqueryui.com/dialog/#modal-confirmation) I have found the code for the Delete modal. However it opens automatically. How would I go about assigning it to each individual delete button? I have tried numerous times and even thought came close, have failed. Also at one point I got something working, However, what was happening is the very first record on the page called the JQueryUI modal box, but all the other records within the same repeat region didn't do anything. Just puzzled by it but wanting to learn it somehow.

There a lot of examples I have found, while searching Google, however it seems the examples (a) make the JQueryUi modal box open on pageload and (b) I just cannot find examples of how to assign the JQueryUI modal event to a link on the page.

Chris

Sign in to reply to this post

Jason ByrnesWebAssist

set the autoOption to false:
http://api.jqueryui.com/dialog/#option-autoOpen


you would then need to create a click event on your links that would open the model window::
http://www.w3schools.com/jquery/event_click.asp

Sign in to reply to this post

Christopher WestCommunity Expert

Thank you Jason, that helps a lot, What I am going to do is setup a support premiere ticket to get the fundamentals of using JQueryUI with php so I can do much more user friendly stuff.

Another issue I face is using the correct JQuery link from a CDN as I find some of the scripts I use fail if I use the latest JQuery build.

Hopefully once I understand more about how to call JQuery functions and vice versa with php it will benefit me greatly in learning more.

One issue that I found a lot while experimenting is that when I added some JQuery to my page, I got the modal box opening up, but then instantly closes...I removed this code and put it in a blank php file and it worked. So something was preventing keeping the modal box opened.

Chris

Sign in to reply to this post

Jason ByrnesWebAssist

Ray will be able to help you with all those questions in a premiere ticket.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...