Solved

Photoalbum using ListView and Lightbox jquery plugin

Posted on 2010-11-08
6
479 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
  • 3
  • 3
6 Comments
 
LVL 17

Accepted Solution

by:
shinuq earned 500 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:shinuq
shinuq earned 500 total points
ID: 34090521
http://www.balupton.com/sandbox/jquery-lightbox/demo/

Hope this jquery site will resolve your issues
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

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

Assisted Solution

by:shinuq
shinuq earned 500 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Requirements JQuery 1.6+ HTML CSS Introduction This article was inspired by an EE question (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28372511.html) on how to make a page show some balloons animate up a page…
There are a couple ways to attach a JavaScript function to dynamically created elements. You can make a new script for each element as it’s created or you can use delegation. Delegation allows a single script that is added at page creation to mat…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. 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…

746 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now