Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Photoalbum using ListView and Lightbox jquery plugin

Posted on 2010-11-08
6
Medium Priority
?
508 Views
Last Modified: 2012-05-10
http://aspdotnetcodebook.blogspot.com/2010/06/photoalbum-using-listview-and-lightbox.html

I need to insert a delete link

   <%-- <asp:LinkButton ID="lnkDelete" runat="server" CommandName="Delete" Text="Delete" />--%>
0
Comment
Question by:omegalove
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 17

Accepted Solution

by:
Shinesh Premrajan earned 2000 total points
ID: 34090275
<script type="text/javascript">
        $(function() {
             $('#images  a').lightBox({ fixedNavigation: true });
             $('#images  a').append('<img src="images/cross.gif" onclick="callremove('+this+')" class="deleteimage" />");

        });
    </script>

You can use the jquery to add the delete cross image over the image. And onclick of the image you will have the callremove function been called.function callremove(obj) will need to be written to clear the image from the album.This can be done with the getelementbyid tag.

Hope this helps
0
 

Author Comment

by:omegalove
ID: 34090327
<script type="text/javascript">
       <script type="text/javascript">
        $(function() {
             $('#images  a').lightBox({ fixedNavigation: true });
             $('#images  a').append('<img src="images/cross.gif" onclick="callremove('+this+')" class="deleteimage" />");

        });
    </script>

It opens the image up?
0
 
LVL 17

Assisted Solution

by:Shinesh Premrajan
Shinesh Premrajan earned 2000 total points
ID: 34090521
http://www.balupton.com/sandbox/jquery-lightbox/demo/

Hope this jquery site will resolve your issues
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:omegalove
ID: 34090824
still confused.
0
 
LVL 17

Assisted Solution

by:Shinesh Premrajan
Shinesh Premrajan earned 2000 total points
ID: 34090850
ok fine, Did u defined the function callremove(). If there is any screenshot then it will give more idea to resolve the issue.

if the function callremove() is not defined then define like this
function callremove(obj){

alert("Selected object is :"+obj.value);

}

Hope this helps
0
 

Author Closing Comment

by:omegalove
ID: 34095338
<script type="text/javascript">
       $(function () {
           $("a.lightbox").lightBox();
           });
  </script>
the problem was the css was being wrapped around the listview


                                                       
This did the job.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Suggested Courses

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question