Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 3 of 3

Thread: Firefix and AJAX Postback

  1. #1
    Timmey is offline Junior Member
    Join Date
    May 2010
    Location
    Germany
    Posts
    25

    Default Firefix and AJAX Postback

    Hi,

    I'm having trouble with the Storefront atm.

    When clicking the Add to Cart Button it posts the data to the non rewritten url (Hardcoded in the CS File of the Form) and nothing happens.

    On the non url-rewritten Page you can then add the product correctly.

    Probably a missconfiguration of IIS? Well not too sure though.


    BTW: The "Ajax" Minicart does it do a Full Reload of the Page or does it do really AJAXIFIED add to cart? If not doing a classic Postback I think something other is wrong.

    Any suggestions would be helpful...
    Timmey

  2. #2
    kgupta is offline Junior Member
    Join Date
    Oct 2010
    Posts
    13

    Thumbs up Recieving the Same issue as stated above but noticed also few more things

    Hi ,

    When I click on Add to cart , it generates a complete postback and the Cart does not appear, only the number updates in the minicart.

    Sometimes even nothing happens , even number does not get added to shopping cart in FireFox only - this thing is happening not in I.E or Chrome.

    The URL become like this : http://localhost/m9031.4/showProduct.aspx?SEName=cheer-up&ProductID=25392

    I noticed 2 thing more -

    1: if the minicart is opened on your page - then ajax seems to work and the product gets added and updates the number finr - but note only if the mini cart is Expanded on the page.

    2: If I Reset the Cache from the backend of ASPDNSF , then it starts updating the product number in addtocart, but still the cart does not expands .

    Any suggestions , please help me on this issue - I found one more thread

    http://forums.aspdotnetstorefront.co...light=minicart

    This states that add the below code on shoppingcart.vb in file

    Method name GetaddtocartForm

    So we've tracked down this issue. The fix is as follows :

    Code:
    ThisCustomer.RequireCustomerRecord()

    But this even does not helps - Same issue

    Please help - its urgent and my client likes this Ajax cart but due to its incomplete functionality , he want a fix for the same so that We cannot loose potential customer coming to the site and its really very confusing.

    Please help ASPDNSF memebers. I will really appreciate an immediate help.

    Thank you,
    Kanav
    Last edited by kgupta; 03-05-2011 at 01:57 AM. Reason: missed the local url

  3. #3
    cjbarth is offline Senior Member
    Join Date
    Oct 2008
    Posts
    392

    Default

    This is likely a bug with ASP.Net instead of the store itself. Please note that you'll need to include some extra code in your ScriptManager. I added the following line:

    Code:
    <asp:ScriptReference Path="~/jscripts/SafariChromeAJAXFix.js" />
    The file contains:

    Code:
    // Safari 3 AJAX "issue". It no longer needs JavaScript hacks that are still implemented
    // http://forums.asp.net/p/1252014/2392110.aspx
    
    Sys.Browser.WebKit = {}; //Safari 3 is considered WebKit
    if (navigator.userAgent.indexOf('WebKit/') > -1) {
        Sys.Browser.agent = Sys.Browser.WebKit;
        Sys.Browser.version = parseFloat(
            navigator.userAgent.match(/WebKit\/(\d+(\.\d+)?)/)[1]);
        Sys.Browser.name = 'WebKit';
    }
    ML9.3.1.1
    SQL 2012 Express
    VS 2010
    Azure VM