[BUG-Add to Cart] Causing javascripts to break when clicked

I tried to use a jquery plugin for the shop but it kept breaking once "Add to Cart" was clicked. I tried deleting all JS & CSS code and just go with a plain html page but same error kept popping up.
On Firefox i dont get any error message, but the same issue occurs.
Any ideas?
This is straight from the chrome console
Refused to set unsafe header "Connection" prototype-core.ashx:579
AjaxPro.Request.invokeprototype-core.ashx:579
AjaxPro.AjaxClass.invokeprototype-core.ashx:690
Object.extend.Object.extend.ServerSideAddItemToOrderCMS.CatalogueRetrieve,Catalyst.Web.CMS.ashx:6
AddToCartJava_OnlineShopping.js?vs=b2364.r426701:1
onclickitem-3:1
The part chrome is complaining about in prototype-core.ashx:579
if(!MS.Browser.isIE) {
  this.xmlHttp.setRequestHeader("Connection", "close"); // Mozilla Bug #246651

Bump.

Similar Messages

  • I get a a message "javascript: void (0); whenI click on a hyperlink on my Weather Undrground page.

    there is a button to click to scroll thru the 10 day forecast, it used to work fine, but it doesn't work anymore, I get the javascript: void (0); message whne the cursor is over the "arrow'...Java is enabled...

    To avoid confusion:
    *http://kb.mozillazine.org/JavaScript_is_not_Java
    A href set to <i>javascript: void (0);</i> is always a place holder.<br />
    The actual URL is handled via an onclick event that evaluates the link and open the page.<br />
    So make sure that you aren't blocking JavaScript.
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Breaks when clicking on names in a ListView

    So as the title suggests, I am having trouble when I select an item in a list view. If I click on the name of the item in the list, the program will break giving the following error/reason: 
    An unhandled exception of type 'System.InvalidCastException' occurred in PresentationFramework.dll
    Additional information: Unable to cast object of type 'System.Windows.Controls.ContentPresenter' to type 'System.Windows.Controls.Panel'.
    If I click anywhere else on the line the item is on it will select the item just fine.
    Another issue I am having is that when I try to check if the item is a directory after it is selected the program will break giving the following exception:
    An unhandled exception of type 'System.NullReferenceException' occurred in Information.exe
    Additional information: Object reference not set to an instance of an object.
    Code:
    private void ExploreDirectories2(TreeViewItem item)
    var directoryInfo = (DirectoryInfo)null;
    if (item.Tag is DriveInfo)
    directoryInfo = ((DriveInfo)item.Tag).RootDirectory;
    else if (item.Tag is DirectoryInfo)
    directoryInfo = (DirectoryInfo)item.Tag;
    else if (item.Tag is FileInfo)
    directoryInfo = ((FileInfo)item.Tag).Directory;
    if (object.ReferenceEquals(directoryInfo, null)) return;
    try
    foreach (var directory in directoryInfo.GetDirectories())
    var isHidden = (directory.Attributes & FileAttributes.Hidden) == FileAttributes.Hidden;
    var isSystem = (directory.Attributes & FileAttributes.System) == FileAttributes.System;
    if (!isHidden && !isSystem)
    expanded_directory.Items.Add(this.GetItem(directory));
    catch (IOException)
    verify1 = false;
    private void ExploreFiles2(TreeViewItem item)
    var directoryInfo = (DirectoryInfo)null;
    if (item.Tag is DriveInfo)
    directoryInfo = ((DriveInfo)item.Tag).RootDirectory;
    else if (item.Tag is DirectoryInfo)
    directoryInfo = (DirectoryInfo)item.Tag;
    else if (item.Tag is FileInfo)
    directoryInfo = ((FileInfo)item.Tag).Directory;
    if (object.ReferenceEquals(directoryInfo, null)) return;
    try
    foreach (var file in directoryInfo.GetFiles())
    var isHidden = (file.Attributes & FileAttributes.Hidden) == FileAttributes.Hidden;
    var isSystem = (file.Attributes & FileAttributes.System) == FileAttributes.System;
    if (!isHidden && !isSystem)
    expanded_directory.Items.Add(this.GetItem(file));
    catch (IOException)
    verify2 = false;
    private void directory_tree_SelectedItemChanged(object sender, RoutedPropertyChangedEventArgs<object> e)
    expanded_directory.Items.Clear();
    var tree = (TreeView)sender;
    var selected = (TreeViewItem)tree.SelectedItem;
    selected.BringIntoView();
    ExploreDirectories2(selected);
    ExploreFiles2(selected);
    private void expanded_directory_SelectionChanged(object sender, SelectionChangedEventArgs e)
    try
    var list = (ListView)sender;
    var selected = (TreeViewItem)list.SelectedItem;
    if (selected.Tag is DirectoryInfo)
    if (selected.IsExpanded)
    list.SelectedIndex = -1;
    catch(InvalidCastException)
    private void expanded_directory_MouseDoubleClick(object sender, MouseButtonEventArgs e)
    var list = (ListView)sender;
    var item = (TreeViewItem)list.SelectedItem;
    if (item.Tag is DirectoryInfo)
    expanded_directory.Items.Clear();
    ExploreDirectories2(item);
    ExploreFiles2(item);
    If you would like to view the entire program you can download it here:  
    https://drive.google.com/file/d/0B2h5hXOyNkgfWjU4emlVNlo3ZWc/view?usp=sharing
    If you do download it, you may need to comment out the if statement in expanded_directory_SelectionChanged function. That is the one that won't let me check if the item is a directory.
    Let me know if you need anything!
    Thanks,
    Jesse

    Please close your previous threads by marking helpful posts as answer before you start a new one.
    You seem to adding TreeViewItems directly to a ListView without an ItemTemplate and this doesn't seem to work very well as the exception is thrown from the framework code and not your code.
    Why don't you just replace the ListView with a TreeView in FileExplorer?
    <TreeView x:Name="expanded_directory" HorizontalAlignment="Left" Height="521" Margin="155,28,0,0"
    SelectedItemChanged="expanded_directory_SelectionChanged" MouseDoubleClick="expanded_directory_MouseDoubleClick"
    VerticalAlignment="Top" Width="777" Background="#FF2D2D30" BorderBrush="#FF2D2D30" Foreground="#FF0066CC" FontFamily="Microsoft Sans Serif" FontWeight="Bold"/>
    private void expanded_directory_MouseDoubleClick(object sender, MouseButtonEventArgs e)
    var list = (TreeView)sender;
    var item = (TreeViewItem)list.SelectedItem;
    if (item.Tag is DirectoryInfo)
    expanded_directory.Items.Clear();
    ExploreDirectories2(item);
    ExploreFiles2(item);
    private void expanded_directory_SelectionChanged(object sender, RoutedPropertyChangedEventArgs<object> e)
    try
    var list = (TreeView)sender;
    if (list != null)
    var selected = (TreeViewItem)list.SelectedItem;
    if (selected != null)
    if (selected.Tag is DirectoryInfo)
    if (selected.IsExpanded)
    selected.IsSelected = false;
    list.Focus();
    catch (InvalidCastException)
    That should solve the problem. You may have to make some additional slight modifications to your code other than the ones listed above but the key here is to replace the ListView with a TreeView.
    Hope that helps.
    Please remember to close your threads by marking helpful posts as answer and please start a new thread if you have a new question.

  • Flash 9 button sound bug? Sound in Over frame plays again when clicked

    I've been using Flash for years and I've only just noticed this problem, I guess because I haven't had much call for noisy buttons for a while. In the olden days (FlashMX and earlier) I swear that I could make a button, put a keyframe on the Over frame and attach an Event sound to it, put a keyframe on the Down frame and attach a different Event sound to it and the first sound would ONLY play when the button was rolled over and the second sound would ONLY play when the button was clicked. I just tried doing the same in Flash 9 and when I click on the button, not only does the Down sound play, but the Over sound also plays simultaneously. They're both in the same layer, but the "Over" sound only has its keyframe and the very next keyframe under "Down" is the Down sound.
    Switching the sync to Start makes no difference. Synching with Stop on the "Down" frame for the "Over" sound sort of works if there is no Down sound, but there's still a brief snippet of the sound. If I add the Down sound back on new layer, the original problem returns. Of course Streaming doesn't work at all.
    This is incredibly maddening, especially since I found this old tutorial on Kirupa that shows exactly what I want, and what I can no longer get in Flash 9, apparently:
    http://www.kirupa.com/developer/flash5/buttonsound.htm
    I've attached a demo .swf.
    Thanks in advance

    maijakg,
         You've stumbled onto a good one!  If memory serves me right, the Kirupa article indeed shows how this used to work (Kirupa is always top notch), but this behavior changed in one of the recent versions of Flash Flayer.  Not sure now if it was 8, 9, or what.  It should be easy enough to pinpoint with one of the legacy Flash Players at http://www.adobe.com/go/tn_14266.
         This issue is easy enough to address with ActionScript, which may not be what you want to hear.  Still, it's an option.    I'll go into that in just a minute.  If you want to stick with the button timeline ... well, I'm finding that this proves to be a challenge (and it really shouldn't be).  I notice, for example, that I can create an empty movie clip symbol, put my Over sound in frame 1 of that symbol (Event sound), and then drag that symbol into the Over frame of the button.
         That does keep the audio from repeating when I actually click the button -- that is, when I enter the Down frame -- so that does work.  You can put your Down audio directly into the button's Down frame, but ... using this approach, you'll hear the Over sound when you release the mouse, even if the mouse hasn't left the button.  That's because the movie-clip–with-audio in the Over frame is summoned again when the mouse lifts, and that naturally causes the movie clip in that frame to play its audio again.
         Here's how you can do exactly what you want using ActionScript.
    // ActionScript 2.0
    var overSound:Sound = new Sound();
    overSound.attachSound("sndOver");
    var downSound:Sound = new Sound();
    downSound.attachSound("sndDown");
    btn.onRollOver = overHandler;
    btn.onPress = pressHandler;
    function overHandler():Void {
        overSound.start();
    function pressHandler():Void {
        downSound.start();
         Here's what's going on.  In the first two lines, I've declared a variable -- arbitrarily named overSound -- and set it to an instance of the Sound class.  At this point, the variable overSound contains all the rights and priviledges of a sound object, because that's exactly what it is.  If you look in the Sound class entry of the ActionScript 2.0 Language Reference, you'll see that it has an attachSound() method (methods are things an object can do; they're basically verbs).  So in the second line, you'll see that I'm attaching an audio file from the library.  In ActionScript 2.0, this happens by way of a linkage identifier, which you can get to by right-clicking a sound and selecting Properties.  In the dialog box that opens, you'll see an "Export for ActionScript" checkbox.  Select that, and you can type in your identifier, which is just a unique label.  In this case, I used the same name as the variable (sndDown) -- only, the linkage identifier is referenced with quotes.
         In the second pair of lines, the same thing happens, but with a different sound.
         In the third pair of lines, I'm referencing the button symbol by way of an instance name.  To give a button an instance name, select it in the timeline and then look at the Property inspector.  You'll see an "instance name" input field.  Here, my instance name is btn, but you could choose whatever makes sense for that button's purpose.  In these two lines, I'm simply associating the Button.onRollOver event with one custom function (overHandler) and the Button.onPress event with another custom function (pressHandler).  Events are something an object can react to, and you'll see events listed in class entries too.  Because we're dealing with a button simple, the class in question is the Button class.  When a rollover or press occurs ... I want these custom fuctions to be triggered.
         Finally, the last few lines are the definitions for the custom functions.  One, overHandler(), invokes the Sound.start() method on the overSound instance of the Sound class.  The other, downHandler(), does the same for the downSound instance.
         The mechanics of the AS3 version are slightly different, but the principles are the same.  Instead of linkage identifers, AS3 has linkage classes.  When you select that "Export for ActionScript" checkbox in an AS3 document, the identifier input field will be disabled.  You'll enter an identifier-like value into the Class field, and the Base Class field will be filled in for you automatically with flash.media.Sound (just go with the default).  After that, the code goes like this:
    // AS3
    var overSound:sndOver = new sndOver();
    var downSound:Sound = new sndDown();
    btn.addEventListener(MouseEvent.MOUSE_OVER, overHandler);
    btn.addEventListener(MouseEvent.MOUSE_DOWN, pressHandler);
    function overHandler(evt:MouseEvent):void {
        overSound.play();
    function pressHandler(evt:MouseEvent):void {
        downSound.play();
         In this case, you don't need the attachSound() method anymore, because you're invoking the constructor function of each library sound itself (these are linkage classes, remember, and classes create objects directly).  The events are managed the same in princple.  Once again, each mouse event is associated with its corresponding custom function.  In AS3, this happens via the addEventListener() method.
         Finally, the custom functions invoke the Sound.play() method on each Sound instance.  Remember, these are instances of the Sound class, even though their linkage classes are actually sndOver and sndDown:  each of those inherits its functionality from the base class, which is Sound in both cases.  Note that in AS3, the method that starts audio is play(), instead of start().  Just minor differences in syntax.
         Granted, that's a lot to do -- in either version of the language -- just to associate a couple sounds with a button, but off the top of my head, it looks like scripting is the way it has to be done.  If I'm wrong, I'd love to hear about it.  Maybe there's a simpler workaround!
    David Stiller
    Contributor, How to Cheat in Adobe Flash CS4
    http://tinyurl.com/dpsCheatFlashCS4
    "Luck is the residue of good design."

  • Javascript preferences error when clicking insert

    hi,
    i tried looking around on the net however no solution i could see for this.
    when i click insert in DW CS3 i get an error in "yy/scripts/preferences.js" error 3
    i cannot see that file in my program files, how can i resolve this?
    many thanks

    hi,
    i gave this a go however it did not resolve the issue. still error when clicking insert. only started happening past few days. cant think of what has happened to make it do it.
    any other suggestions?
    many thanks

  • BC Add To Cart Button Not Displaying Correctly

    I have been told by BC Tech support that Muse is causing the BC Add To Cart Button to have issues when exporting my site live. Here are two pages, one created in Muse where the button does not work correctly & one not created in muse where the same button information does work correctly.
    1.) Doesn't Work: Custom Made Outdoor Logo Mat - Customized Aqua Flow Entry Mats
    2.) Works: bctest
    Any ideas on how to get that working?
    The page which doesn't work was designed in Muse & I added the module code: {module_product,201955,6549130}    via the Insert HTML function in Muse. Apparently things get jumbled up on export or something to that effect.
    Thanks
    even on a page created from my side with no content whatsoever other than the Buy Button Code still will not work: Test01
    & interestingly, a page created in Dreamweaver with the same module code works correctly. Test 02

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    Make sure that you allow pages to choose their colors and that you haven't enabled High Contrast in the Accessibility settings.
    *Tools > Options > Content : Fonts & Colors > Colors : [X] "Allow pages to choose their own colors, instead of my selections above"
    See also:
    *http://kb.mozillazine.org/Website_colors_are_wrong
    *http://kb.mozillazine.org/Websites_look_wrong

  • Error when using "Add to Cart" on Orderhistory page

    Hi,
    I am having a problem in that when I use the "Add to Cart" button on the Orderhistory page for most B2B accounts, I either get an exception or the order does not get added to the cart.
    the exception is:
    Version 5.9.2.22349
    Message Object reference not set to an instance of an object.
    Source NetPoint.API
    Stack at netpoint.api.commerce.NPOrder.CreateOrderFromHistory(Int32 orderid, String sessionid, String carttype, NPPartPricingMaster priceList)
    at netpoint.common.controls.OrderHistoryBlock.btnOrderFromHistory_Click(Object sender, ImageClickEventArgs e)
    at System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e)
    at System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
    at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
    at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) 
    Now on some accounts I dont get the exception but the order doesn't get added to the cart.
    to make things more complicated, I have a B2B account that I use for testing and this one works 100% fine. It only seems to be B2B accounts that are "real" that are causing this problem.
    Any ideas? (netpoint version 5.9)

    Hi Shane,
    I figured out the second issue as well.
    The orders are getting added - but under the same contact/user who originally placed the order.
    so if I have a B2B account, with 2 users, A and B
    A and B both see ALL of the account's previous orders in the Order History page.
    But if A clicks "Add to Cart" on an order that was placed by "B" nothing shows up in their cart. The order was duplicated alright, but as a cart belonging to user "B", not user "A"..if you log off user A and log in as user B, you see the stuff is in their cart.
    I suppose the "fault" there lies with the Orderhistory page whereby its showing all account orders, not just account orders placed by that user - but this is probably better anyway since most accounts will want to see all of their orders.
    And since I am going to rewrite the handler for the button, I can just ensure that the new Order uses the CURRENT userID, not the previous order's userID.
    Phew. don't you just love bugs?

  • Image gallery approach for additional details and add to cart option?

    With efficiency and minimalist downloads for smartphone users I would appreciate advice on a product image gallery.
    Currently I have an intro page and other simple information pages. My gallery pages ( four distinct pages for different leather goods) need  either a pop up or a link to a new page for additional details and an option to add to cart.
    Within the image gallery, How should I link each photo to the new detail/cart page? Can clicking  the image itself be the action or do I need a button?

    I made a mistake. I think I got it right this time. The pop up of the title box works but the images are all gone.
    <!DOCTYPE>
    <html>
    <head>
    <meta charset="UTF-8">
    <title>Lapinel Arts Leatherwork</title>
    <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
    <link href='http://fonts.googleapis.com/css?family=Overlock:400,700|Simonetta:400,900|Marcellus|Junge' rel='stylesheet' type='text/css'>
    <style>
    box-sizing: border-box;
    body {
    margin: 0;
    padding: 0;
    background: #fff;
    font: 14px/20px 'Lucida Sans',sans-serif;
    .wrap {
    overflow: hidden;
    .box {
    float: left;
    position: relative;
    width: 25%;
    text-align: center;
    margin-bottom: 24px;
    .boxInner {
    position: relative;
    text-align: center;
    margin: 0 12px;
    overflow: hidden;
    img {
    max-width: 100%;
    .titleBox {
    position: absolute;
    bottom: 0;
    width: 100%;
    margin-bottom: -70px;
    background: #000;
    background: rgba(0, 0, 0, 0.5);
    color: #FFF;
    padding: 10px;
    text-align: center;
    -webkit-transition: all 0.3s ease-out;
    -moz-transition: all 0.3s ease-out;
    -o-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out;
    .titleBox h2 {
    font-size: 16px;
    margin: 0;
    padding: 0 0 5px 0;
    .titleBox a {
    text-decoration: none;
    color: #fff;
    .boxInner:hover .titleBox {
    margin-bottom: 0;
    @media only screen and (max-width : 768px) {
    .box {
    width: 50%;
    margin-bottom: 24px;
    @media only screen and (max-width : 480px) {
    .box {
    width: 100%;
    @media only screen and (max-width : 1290px) and (min-width : 1051px) {
       /* Medium desktop: 4 tiles */
       .box {
          width: 25%;
          padding-bottom: 25%;
    </style>
    <style>
    section, header, nav {
    display: block;
        box-sizing: border-box;
    body{
    font-family: 'Marcellus', normal;
    background-image: url(DRA-042010-LeatheryTexture-MBFT.jpg);
    font-size: 90%;
    line-height: 140%;
    color: #555;
    margin: 0;
    padding: 0;
    background-color: #FFF;
    #hover-image {
    background-color: #cfc6b0;
    text-align: center;
    img {
    max-width: 100%;
    height: auto;
    .container {
    width: 85%;
    max-width: 1000px;
    margin: 0 auto;
    color: #000;
    header h1 {
    font-size: 300%;
    line-height: 150%;
    text-align: center;
    letter-spacing: 4px;
    padding: 20px 0;
    color: #000;
    font-weight: bold;
    /* top level navigation */
    nav {
        background-color: #E5E4E2;
    nav ul {
    display: block;
    text-align: center;
    margin: 0;
    padding: 0;
    nav li {
    margin: 0;
    padding: 0;
    display: inline;
    position: relative;
    nav a {
        display: inline-block;
        text-decoration: none;
        padding: 10px 25px;
        color: #000;
    nav a:hover {
        background-color: #cfc6b0;
        color: #000;
    nav span {
    display: none;
    /* droplist navigation */
    nav ul ul {
    position: absolute;
    z-index: 1000;
    left: 0;
    top: 2em;
    background-color: #E5E4E2;
    text-align: left!important;
    display: none;
    nav ul ul li a {
    display: block;
    width: 12em;
    border-top: 1px dotted #ccc;
    .about {
    padding: 0 8%;
    margin: 0 auto;
    text-align: center;
    background-color: #E5E4E2;
    .about h2 {
        font-size: 260%;
        line-height: 200%;
        margin: 0;
        padding: 0;
        color: #000;
    .about p {
    font-size: 110%;
    line-height: 150%;
    margin: 0;
    padding: 0 0 20px 0;
    .productsWrapper {
    background-color: #000;
    overflow: hidden;
    padding: 30px 25px;
    .product {
    float: left;
    width: 25%;
    padding: 12px;
    text-align: center;
    color: #fff;
    .product img {
    border: 1px solid #fff;
    .view_details {
    text-decoration: none;
    display: inline-block;
    padding: 15px 20px;
    border-radius: 6px;
    border: 1px dotted #ccc;
    color: #555;
    background-color: #fff;
    .view_details:hover {
    background-color: #E5E4E2;
    #mobileTrigger {
    padding: 10px 25px;
    font-size: 120%;
    display: none;
    color: #000;
    footer {
    clear: both;
    background-color: #cfc6b0;
    padding: 30px;
    color: #fff;
    text-align: center;
    overflow: hidden;
    footer a {
    text-decoration: none;
    color: #000;
        float: left;
        width: 33.33%;
        color: #000;
        border: #000
    .footerBox {
        float: left;
        width: 33.33%;
        color: #000;
    @media screen and (max-width: 768px) {
        .container {
    width: 100%;
    .product {
    width: 50%;
    #mobileTrigger {
    display: block;
    text-align: right;
    nav ul {
    display: none;
    nav li {
    display: block;
    text-align: left;
    nav a {
    display: block;
    font-size: 120%;
    border-top: 1px dotted #ccc;
    nav span {
    display: inline-block;
    float: right;
    font-size: 130%;
    /* droplist navigation */
    nav ul ul {
    position: static;
    nav ul ul li a {
    width: 100%;
    @media screen and (max-width: 480px) {
    .product {
    float: none;
    width: 100%;
    body,td,th {
    font-family: Marcellus, normal;
    #copyright {
    color: #000;
    font-weight: bold;
    </style>
    <script type="text/javascript" src="http://lapinelarts.com/JS/jquery-1.11.2.min.js"></script>
    <script type="text/javascript" src="http://lapinelarts.com/JS/jquery.cycle2.min.js"></script>
    <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
    <script>
    $(document).ready(function() {
    //activate mobile navigation icon when window is 768px
    $('#mobileTrigger').css('cursor','pointer').click(function() {
    $('#mobileTrigger i').toggleClass('fa-bars fa-times');
    $('nav ul').toggle();
    // show main desktop navigation onresize/hide sub navigation
    $(window).on('resize', function(){
    var win = $(this); //this = window
    if (win.width() > 768) {
    $('nav ul').show();
    $('nav ul ul').hide();
    //listen for navigation li being clicked
    $('nav ul li').click(function() {
    $(this).find('ul').slideToggle();
    //toggle font awesome icons
    $(this).find('i').toggleClass('fa-bars fa-times');
    //events if window is less than 768px
    if ($(window).width() < 768) {
    //stops submenu sliding up when mouse leaves mobile
    $('nav ul ul').show();
    else {
    //activate desktop submenu on hover
    $('nav ul li').mouseenter(function() {
    $(this).find('ul').slideToggle();
    //toggle font awesome icons
    $(this).find('i').toggleClass('fa-bars fa-times');
    //desktop submenu slides up when mouse leaves ul/li
    $('nav ul ul').mouseleave(function() {
    $(this).slideUp();
    $('nav ul li').mouseleave(function() {
    $(this).find('ul').slideUp();
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    </script>
    <style type="text/css">
    </style>
    </head>
    <body onLoad="MM_preloadImages('810_0776_smaller.jpg')">
    <header>
    <h1>LAPINEL ARTS LEATHERWORKS</h1>
    <nav>
    <div id="mobileTrigger"><i class="fa fa-bars"></i></div>
    <ul>
    <li><a href="#">ABOUT US</a></li>
    <li><a href="#">PROCESS</a></li>
    <li><a href="#">PRODUCTS<span><i class="fa fa-bars"></i></span></a>
    <ul>
    <li><a href="#">PURSES</a></li>
    <li><a href="#">POUCHES</a></li>
    <li><a href="#">TOTES</a></li>
    <li><a href="#">WALLETS</a></li>
    </ul>
    </li>
    <li><a href="#">CART</a></li>
    <li><a href="#">CONTACT</a></li>
    </ul>
    </nav>
    </header>
    <section class="about">
    <h2>PURSES</h2>
    <p>There are several styles and sizes of purses available. Custom orders can be arranged but most of these purses are unique and with limited runs of art styles.</p>
    <p>Please click on the detail button for larger and additional views and the opportunity to add the item to your cart.<strong></strong></p>
    </section>
    <div id="hover-image">
    <div class="wrap">
    <!-- Define all of the tiles: -->
    <div class="box">
    <div class="boxInner">
    <img src="http://oddiant.poatemisepare.ro/wp-content/uploads/Viceroy-Butterfly-Limenitis-archippus.j pg" />
    <div class="titleBox">
    <h2>Butterfly</h2>
    <a href="http://www.bbc.co.uk">View Details</a>
    </div>
    </div>
    <!-- end boxInner -->
    </div>
    <!-- end box -->
    <div class="box">
    <div class="boxInner">
    <img src="http://oddiant.poatemisepare.ro/wp-content/uploads/Viceroy-Butterfly-Limenitis-archippus.j pg" />
    <div class="titleBox">
    <h2>Butterfly</h2>
    <a href="http://www.bbc.co.uk">View Details</a>
    </div>
    </div>
    <!-- end boxInner -->
    </div>
    <!-- end box -->
    <div class="box">
    <div class="boxInner">
    <img src="http://oddiant.poatemisepare.ro/wp-content/uploads/Viceroy-Butterfly-Limenitis-archippus.j pg" />
    <div class="titleBox">
    <h2>Butterfly</h2>
    <a href="http://www.bbc.co.uk">View Details</a>
    </div>
    </div>
    <!-- end boxInner -->
    </div>
    <!-- end box -->
    <div class="box">
    <div class="boxInner">
    <img src="http://oddiant.poatemisepare.ro/wp-content/uploads/Viceroy-Butterfly-Limenitis-archippus.j pg" />
    <div class="titleBox">
    <h2>Butterfly</h2>
    <a href="http://www.bbc.co.uk">View Details</a>
    </div>
    </div>
    <!-- end boxInner -->
    </div>
    <!-- end box -->
    </div>
    <!-- end wrap -->
    <footer>
      <div class="footerBox"><a href="mailto:[email protected]">EMAIL CATHY </a></div>
    <div class="footerBox"><a href="https://www.facebook.com/LapinelArtsLeatherwork"> FACEBOOK</a></div>
    <div class="footerBox">COPYRIGHT 2015</div>
    </footer>
    </div>
    </body>
    </html>

  • Hide 'Add To Cart' for a Specific Catalog

    I need to hide the 'add to cart' button on only one of my catalogs. How can I hide this feature for only one catalog?

    In catalogue details you can set the dropdown to Existing Customers Only.
    That will hide it from everyone who's not logged in, so if you're not using
    secure zones you're set.
    The other option is to use JavaScript.
    Cheers,
    _M

  • Return to products page after Add to Cart

    hi,
    is it possible to return the the current catalog products page after the user presses Add to Cart?
    thanks in advance.
    Frank.

    thanks.
    had i think about it and what i really need is for the javascript to be refreshed on the Large Product page after clicking Add to Cart.
    Frank.
    edit: i searched the forum and found this:
    <script type="text/javascript">
    function AddProductExtras(){
    document.location.reload(true);
    </script>
    and also tried to refresh the js using this:
    <script type="text/javascript">
    function AddProductExtras(){
    javascript:location.reload(true);
    </script>
    but both get rid of the "items added to cart" message and both reload the whole page which looks and feels rubbish!
    i've decided to go to the shop cart using tag_buynow and added a continue shopping button using {module_goback,image}.
    it's not the way i wanted the site to work but it's better than having clunky reloads and js not working.

  • Is it possible not to update Product Stock Quantity upon ADD TO CART event?

    Greetings,
    Is it possible that the Product Stock Quantity (In Stock) not to be updated on Add to Cart event or when the basket still exist?
    And the updates/decrease of quantity will only happen when the customer have successfully paid or checked out.

    Not at the moment no. BC removes the item from the system on add to cart.

  • Bug report: Energy Manager causes slow performance...

    Very slow Windows Startup..
    Energy Manager's plans and the problem occured using any plan as I remember, and it wasn't an issue with the maximum processor state. I had heavy disk usage, especially access to the Page File, which is what the person in the second link I posted also described. CPU usage was low. The disk usage was seemingly not related to Energy Manager (Chrome was usually the worst), but removing Energy Manager completely resolved the problem. If you would find it helpful. I'm quite confident that even with Maximum Processor state at %100, CPU usage was low when it was slow, and that disk access was the culprit.
    previously have use 1.0.0.31 or 32 not sure.
    Windows 8.1
    Im using Lenovo Energy Management Driver
    1.0.0.28
    4.6.2014

    I actually have the same problem.  Sorry to work on a old thread, but...
    I've got my Lenovo B50-70 less than 1 month ago, and had switched it to SSD and had set everything up and is working perfectly.  However there are a bunch of lenovo programs that came pre-installed.  This computer is used mainly for work and I really don't like programs that suddenly pop-up and ask you to do stuff, as it is quite distracting, and with Lenovo Energy Manager being one of them so I removed it.  (I did do some research before I remove...)
    Everything was fine, until when I try to switch on my wifi (I usually have it off, as I use LAN most of the time)...  For the B50-70 there is a airplane button on F7, which allow the user to switch wifi and bluetooth on/off.  That button was unresponsive...  After some digging it is actually related to the power energy manager being removed.  So I've downloaded the latest version from Lenovo and it was working again...
    However though, whenever I start my computer it is taking so long to start...  And I tried uninstalling the power energy manager and it solved the problem...  And I am stuck with either having no wifi on/off ability or a really slow boot, which loses the whole purpose of the SSD.  After you enter your username and password it originally takes around 5~10 seconds to login, now it takes over 1 minute.
    I have found this other link, which says Lenovo Power Manager having the same problem.
    https://forums.lenovo.com/t5/ThinkVantage-Technologies/Bug-report-Power-Manager-causes-slow-performa...
    There is a solution, which you can change the registry to switch a function off.  I've tried it and it didn't work, which is not surprising as it's a different program..  But I am hoping that Lenovo can provide a similar solution for Lenovo Energy Manager...

  • Hi. I have a website that uses Virtuemart and the 'add to cart' feature will not work in Firefox but will in IE. I am running XP and 'Accept all cookies' is enabled. HELP, PLEASE... Thankyou

    I am testing our website :www.winningsportstips.com and we have Virtuemart installed and the site will not allow me to select 'add to cart' feature. However if I open the website in Internet Explorer, the feature is available and it functions correctly. I am running XP and have 'accept all cookies' enabled in settings.
    Can you give me any clues? Thanks , Vern Nowland

    Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox. <br />
    http://forums.mozillazine.org/viewforum.php?f=25 <br />
    You'll need to register and login to be able to post in that forum.

  • [BUG] javascript error on mozilla when click()

    Hello I use javascript to simulate button click and send a postback to the server. Here is the java script:
    document.getElementById('myId').click();
    the button defenition in JSF id classic :
    <h:commandButton id="myId" actionListener="#{myListener}">
    When used with Internet Explorer this code works, when used in Firefox it complaines that it cannot find the javascript for the submit operation.!!!!!
    Please give me a workaround, or some way to go ahead thank you.

    Which Mozilla version are you using? This just works here in FF 1.5 and 2.0. And even IE 6.0 and 7.0.
    JSF<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <f:view>
    <html>
        <head>
        </head>
        <body>
        <h:form id="formId">
            <h:commandButton id="commandButtonId" value="button" action="#{myBean.action1}" />
            <h:commandLink id="commandLinkId" value="link" action="#{myBean.action2}" />
        </h:form>
        <a href="#" onclick="document.getElementById('formId:commandButtonId').click();">invoke button</a>
        <a href="#" onclick="document.getElementById('formId:commandLinkId').onclick();">invoke link</a>
        </body>
    </html>
    </f:view>MyBeanpackage mypackage;
    public class MyBean {
        public void action1() {
            System.out.println("action1");
        public void action2() {
            System.out.println("action2");
    }By the way .. This is definitely not a bug in JSF.

  • "Add to Cart" is not working and not showing up?

    In "PartsListBlock.ascx" I have got a row:
    <asp:TemplateColumn HeaderText="www" Visible="True">
                            <ItemStyle HorizontalAlign="center"></ItemStyle>
                            <ItemTemplate >
                             <asp:HyperLink id="lnkAddToCart" runat="server" ImageUrl="~/assets/common/themes/balticpolo/addtocart.gif"
                                    NavigateUrl="../../commerce/cart.aspx?AddPartNo=" visible="True">In den Einkaufskorb.</asp:HyperLink>
                            </ItemTemplate>
                        </asp:TemplateColumn>
    But this row is not visible.
    I need to provide the opportunity to add an item right from PartList Block to the shopping cart..
    Any idea ?
    [Edit you can see the shop here: <a href="http://195.226.73.238/catalog/partlist.aspx?CategoryID=9&serverid=balticpolo">clicky</a>
    Message was edited by:
            Bjoern Kaiser

    Thanks Stephen,
    I got one step further =)
    Now there is at least an output from the codeblock.
    But:
    <asp:HyperLink id="lnkAddToCart" runat="server" ImageUrl="../../assets/common/icons/addtocart.gif"
                                    NavigateUrl="../../commerce/cart.aspx?AddPartNo=">Add To Cart.</asp:HyperLink>
    shows the "Search" Button, which leads to the detail site.
    But I didnt declared it nor wanted it to pop up there (http://195.226.73.238/catalog/partlist.aspx?CategoryID=9&serverid=balticpolo)
    I use the original partlistblock, only with changes in style and order.
    Is the order important ?!
    I tried to make the code readable:
    <asp:TemplateColumn>
                            <ItemStyle VerticalAlign="top" CssClass="catDetail" ></ItemStyle>
                            <ItemTemplate >
                                 <h2 class="catDetailPartName">
                                    <asp:Literal id=ltlPartName runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.PartName") %>'>
                                    </asp:Literal>
                                </h2>
                                 <p >
                                    <asp:Literal id=ltlPartDescription runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Description") %>'>
                                    </asp:Literal><br /><br />
                                    Preis: <asp:Literal id="ltlPartPrice" runat="server" Text="N/A"></asp:Literal>
                                </p>
                                <asp:HyperLink  id="lnkImage" runat="server" NavigateUrl="../partdetail.aspx?partno=" Text='<%# DataBinder.Eval(Container, "DataItem.PartName") %>'>
                                </asp:HyperLink>
                                <br clear="all" />                           
                                 <asp:HyperLink id="lnkAddToCart" runat="server" ImageUrl="../../assets/common/icons/addtocart.gif"
                                    NavigateUrl="../../commerce/cart.aspx?AddPartNo=">Add To Cart.</asp:HyperLink>
                            </ItemTemplate>
                        </asp:TemplateColumn>
    is this totally wrong ?

Maybe you are looking for