close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

delete pop up

Thread began 7/25/2012 3:03 pm by randyw2394710 | Last modified 7/26/2012 10:52 am by Jason Byrnes | 1791 views | 1 replies |

randyw2394710

delete pop up

im try to create a delete popup with the line 152 <div class="band" id="gallery-<?php echo $row_gallery['id']; ?>">
i want the <div id="overlay-delete" class="overlay-popup"> line 194 to pop up when the delete button is pressed on line 163 <img class="delete-icon" src="../images/btn-delete-large.png"/> and be able to delete content

Attached Files
manage_Gallery.zip
Sign in to reply to this post

Jason ByrnesWebAssist

In the overlay-delete div, add a form, with a hidden element in it and a submit button

add a onclick event to the image tag that will show the delete overlay, and set the hidden element to the ID of the gallery to delete:

for example:

php:
<img class="delete-icon"  src="../images/btn-delete-large.png" onclick="document.getElementById('delete-id').value=<?php echo $row_gallery['id']; ?>;document.getElementById('overlay-delete').style.display = 'block'"  />




in the delete record behavior, set the ID Value to use the delete-id hidden element.

Sign in to reply to this post

randyw2394710

Originally Said By: Jason Byrnes
  In the overlay-delete div, add a form, with a hidden element in it and a submit button

add a onclick event to the image tag that will show the delete overlay, and set the hidden element to the ID of the gallery to delete:

for example:
php:
<img class="delete-icon"  src="../images/btn-delete-large.png" onclick="document.getElementById('delete-id').value=<?php echo $row_gallery['id']; ?>;document.getElementById('overlay-delete').style.display = 'block'"  />



in the delete record behavior, set the ID Value to use the delete-id hidden element.  



ive tride to do this example, the overlay popup works. but the info is not passed please check the page for me thanks

Attached Files
chooseGallery.zip
Sign in to reply to this post

Jason ByrnesWebAssist

the delete gallery form
<form action="" method="post" name="delete_gallery" id="delete-id">

is set to use the id delete-id


and so is the hidden element:
<input id="delete-id" type="hidden" value="<?php echo $row_gallery['gallery_id']; ?>" />


the form needs to use a unique ID name.

also search the ID's of other elements on the page and make sure only the hidden element uses the delete-id.

Sign in to reply to this post

randyw2394710

Originally Said By: Jason Byrnes
  the delete gallery form
<form action="" method="post" name="delete_gallery" id="delete-id">

is set to use the id delete-id


and so is the hidden element:
<input id="delete-id" type="hidden" value="<?php echo $row_gallery['gallery_id']; ?>" />


the form needs to use a unique ID name.

also search the ID's of other elements on the page and make sure only the hidden element uses the delete-id.  



hi im still having troulbes could you please look at the new ip files

Attached Files
chooseGallery.zip
Sign in to reply to this post

Jason ByrnesWebAssist

there is no delete record behavior on this page.

you need to add the delete record behavior in order to delete the record.

Sign in to reply to this post

randyw2394710

i dont want to delete it i want to show info in new div

Sign in to reply to this post

Jason ByrnesWebAssist

you said in your initial posting that you wanted to delete it?

  be able to delete content  



I dont recall reading anything about wanting to show something special in the popup, only that you wanted to delete the record...


what info do you want to show in the popup?

Sign in to reply to this post

randyw2394710

I want to push the delete button near the gallery then have a popup confirmation div appear with those details the popup appears but there is no info

Sign in to reply to this post

Jason ByrnesWebAssist

ok, change the hidden element in the pop up div to a text box.

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