Rev 550 | Blame | Last modification | View Log | RSS feed
<script><!--$(document).ready(function() {// Research "delete" Item$("#research_delete").click(function(){var research_tot=$("#research_total").val();var seldata="";var tot=0;var saprt="";var containerdiv = "#pane1";var par= containerdiv + " input[type=checkbox]:checked";$(par).each(function(){saprt = (tot>0)? "_":"";seldata += saprt+$(this).val();tot++});if(tot>0){var t=(research_tot*1)-(tot*1);$("#research_total").val(t);//alert("AJAX request to delete products in research. Product ID: "+seldata+" and total: "+tot);jQuery.ajax({type: "GET",url: "/myresearch/" + seldata + "?_method=delete",data: "productid="+seldata,success: function(msg){// alert( "Data Saved: " + msg );}});var arrayprod_id=seldata.split("_");jQuery.each(arrayprod_id,function(intIndex, objValue){var tableref="#"+objValue;var tblid="#"+objValue+ " td";$(tblid).animate({ backgroundColor: "#fcffb3" }, 'slow');$(tblid).animate({ backgroundColor: "#F5F5F5" }, 'slow', function() { $(this).fadeOut('slow', function() { $(this).remove(); if(t === 0){ $("#research_default").css("display","block");} } ) });});}else{alert("Please select atleast one product");}});});//--></script><!-- Widget My Research start --><div class="lightbox"><div class="hdr" id="hdr0"><A href="javascript:void(0);">My Research</A></div><div class="holder osX" style="margin:0;width:100%;" id="winker0"><div class="tools"><A style="cursor:pointer;" id="research_delete">Delete</A><!-- <A href="#">Compare</A> --><A onclick="javascript:addToCart('pane1', 'multi')">Add to Cart</A></div>#set($totalitems = 0)#if($itemDetails)#set($totalitems = $itemDetails.size())#end<input type="hidden" name="research_total" id="research_total" value="$totalitems"><div id="pane1" class="scroll-pane tabwrap makeScroll" style="width:240px;" ><TABLE cellspacing="1" cellpadding="0" border="0" width="100%" id="research_default" #if($totalitems != 0 ) style="display:none;" #end ><TBODY><TR><TD> Please Register/Sign-in to use My Research tool</TD></TR></TBODY></TABLE>#set( $count = 0)#foreach( $itemDetail in $itemDetails )#set( $count = $count+1)#set( $divid = "res" + $count)$itemDetail.ITEM_SNIPPET#end</div>#if($userId == 0)<div class="quicksign"><A href="#">Sign In</A> | <A href="/register">Register</A> to save <br />" My Research "</div>#end</div></div><!-- Widget My Research end -->