jquery pop up asp.net problem! -
jquery pop up asp.net problem! -
i have problem getting pop-up jquery: http://www.htmldrive.net/items/show/431/jquerynotice-animated-notification-tooltip script work in shop coded in asp.net. when product added basket, have pop allows go checkout click - go basket. below se script, can click go basket, product added, if not click, product not show in basket - should ... - have been told 'post back' problem ... have thought how solve problem.? - have asked problem - see also: link in message of jqnotice - hope somone can/will help ;0)
$(document).ready(function() { $('a.buy').click(function() { jqnotice('message..!<a href="' + $(this).attr('href') + '">go shop</a>'); homecoming false; }); });
html btn:
<span class="buy"><a href="/order/cart/add/productnr.." id="buy" class="buy">add basket</a></span>
if there have simple solution problem, please tell
use this:
$(function () { $("a.buy").click(function () { $.get($(this).attr("href"), function (data) { var newbasket = $("#basket", data); $("#basket").html(newbasket.html()); }); jqnotice('message..!<a href="' + $(this).attr('href') + '">go shop</a>'); homecoming false; }); });
i create few assumptions here: first 1 ajax phone call homecoming html updated basket markup basket element has id 'basket'. 1 time again, warned if user click link in popup message same action executed 1 time 1 time again maybe improve alter "go shop" link's href add together new product action navigating basket review page.
jquery asp.net postback
Comments
Post a Comment