?
Solved

Photoalbum using ListView and Lightbox jquery plugin

Posted on 2010-11-08
6
Medium Priority
?
499 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
Learn by Doing. Anytime. Anywhere.

Do you like to learn by doing?
Our labs and exercises give you the chance to do just that: Learn by performing actions on real environments.

Hands-on, scenario-based labs give you experience on real environments provided by us so you don't have to worry about breaking anything.

 

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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This article discusses how to create an extensible mechanism for linked drop downs.
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

770 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