Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
452 rajveer 1
 <script>
2
     $(document).ready(function(){
3
          $("#util_addnewresearch").click(function(){ 
4
		  alert("here");
5
		  var research_tot=$("#research_total").val();
6
          var seldata=$("#item_id").val();
7
          var tot=1;
8
 
9
          var t=(research_tot*1)+(tot*1);
10
          $("#research_total").val(t);
11
          if(t > 0){
12
               $("#research_default").css("display","none");
13
          }     
14
          alert("AJAX request to add products in My research. Product ID: "+seldata);
15
 
16
 
17
        jQuery.ajax({
18
                  type: "POST",
19
                  url: "../myresearch",
20
                  data: "productid="+$("#item_id").val(),
21
                  success: function(msg){
22
				  	$("#pane1").prepend(msg);
23
					$('#pane1').jScrollPane({showArrows:true, scrollbarWidth: 15, arrowSize: 16});
24
					var tblid="#"+seldata+ " td";
25
					$(tblid).animate({ backgroundColor: "#fcffb3" }, 'slow');
26
                    $(tblid).animate({ backgroundColor: "#F5F5F5" }, 'slow');  
27
				       //alert( "Data Saved: " + msg );
28
 
29
                  }
30
         	});
31
 
32
          });
33
     });
34
</script>
35
 
36
<!-- Social bookmark end -->
37
<DIV class="utils"> 
38
     <INPUT type="button" name="" value="Compare">
39
     <INPUT type="button" name="" value="Add to Research" class="atr" id="util_addnewresearch">
40
	 <INPUT type="hidden" name="" id="product_id" value=$params.PRODUCT_ID > 	
41
     <A href="#" class="fb">1453</A>
42
     <A href="#" class="tw">1876</A>
43
     <A href="#" class="ork">&nbsp;</A>
44
     <A href="#" class="ml">&nbsp;</A>
45
     <A href="#" class="askfn">Ask a Friend:</A>
46
</DIV>
47
<!-- Social bookmark end -->
48