close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Remove delete overlay screen

Thread began 12/09/2022 10:28 am by eric284736 | Last modified 12/13/2022 10:49 am by Ray Borduin | 155 views | 9 replies |

eric284736

Remove delete overlay screen

Hi Ray,

I want to remove the overlay screen when you click a delete button and just have that button delete the record immediately without the confirmation screen.

<input type="button" class="formButton ResultsPageButton unstyled DeleteButton" value="" onclick="document.getElementById('WADADeleteRecordID').value=<?php echo($row_WADAGalleryTable['gID']); ?>;document.getElementById('deleteBox').style.display = 'block';document.getElementById('deleteMessage').style.display = 'table';" />

Is that possible?

Thanks,
Eric

Sign in to reply to this post

Ray BorduinWebAssist

Please attach the page and I'll help. Yes it is possible.

Sign in to reply to this post
Did this help? Tips are appreciated...

eric284736

Awesome! Here it is.

Sign in to reply to this post

Ray BorduinWebAssist

I think the easiest solution is to update the code found on line 230 from:

onclick="document.getElementById('WADADeleteRecordID').value=<?php echo($row_WADAGalleryTable['gID']); ?>;document.getElementById('deleteBox').style.display = 'block';document.getElementById('deleteMessage').style.display = 'table';"


to:

onclick="document.getElementById('WADADeleteRecordID').value=<?php echo($row_WADAGalleryTable['gID']); ?>;WADFP_jQuery('#Delete').click();"
Sign in to reply to this post
Did this help? Tips are appreciated...

eric284736

updated the code when I click on the delete button nothing happens

Sign in to reply to this post

Ray BorduinWebAssist

There was a missing .js file that was probably removed when you moved your <head> code to an include file. I added it back on line 273 and it seems to work now.

Sign in to reply to this post
Did this help? Tips are appreciated...

eric284736

Hi Ray,

That works perfectly! I have one more page that does the same thing but I need it to redirect and keep the querystring.

Sign in to reply to this post

eric284736

pm

Sign in to reply to this post

Ray BorduinWebAssist

On line 157 try updating:

<form class="DetailsPage Basic_Default" id="Results_Basic_Default" name="Results_Basic_Default" method="post" action="<?php echo (htmlentities($_SERVER["PHP_SELF"], ENT_QUOTES)); ?>">


to:

<form class="DetailsPage Basic_Default" id="Results_Basic_Default" name="Results_Basic_Default" method="post" action="">
Sign in to reply to this post
Did this help? Tips are appreciated...

eric284736

Perfect! thanks!

Sign in to reply to this post
loading

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...