Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7542691
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T08:14:02+00:00 2026-05-30T08:14:02+00:00

when i try to alert the id after inside the first function which is

  • 0

when i try to alert the id after inside the first function which is just above
var ajax0 = false; it doesn’t alert and the dialog box doesn’t show at all even if i don’t alert the id as it doesn’t exist and it’s inside document ready

$(document).on("click","a.del_cart",function(){
var id = $(this).attr("title");
noty({ text: 'product will be deleted',"modal":"true","layout":"center", buttons: [{type: 'button green', text: 'Ok', click: function() {
var ajax0 = false;
ajax0 = new XMLHttpRequest();
var qst0 = "?id="+id;
ajax0.open("POST","ajax/del_product.php"+qst0);
    noty({"text":"cancelled successfully.","layout":"center","type":"success","textAlign":"center","easing":"swing","animateOpen":{"height":"toggle"},"modal":"true","animateClose":{"height":"toggle"},"speed":"500","timeout":"2000","closable":true,"closeOnSelfClick":true});
    $(".cart").fadeOut(100,function(){
        display_cart();
        $(".cart").fadeIn(2000);
    });
ajax0.send(null);
 } }, {type: 'button pink',text: 'Cancel', click: function() { /**/ } }],closable: false,timeout: false });
});
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T08:14:04+00:00Added an answer on May 30, 2026 at 8:14 am

    The line

    noty{"text":"", ..., "closeOnSelfClick":true};
    

    Should be

    noty({"text":"", ..., "closeOnSelfClick":true});
    

    You are missing parentheses.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

It's amazing to try to understand why the function alert(hello) is not generated after
I tried to do this: try{ (function($){ ... my plugin stuff })(jQuery); }catch(er){ alert(an
Here's my script: var Ajax = { init: function(){ try{ this.xmlHttp = new XMLHttpRequest();
Try to see which cast is faster (not necessary better): new c++ case or
I have a div <div id=aDiv></div> When I try Window.alert(RootPanel.get(aDiv).toString()); I get the element
var c = [{Id:40,Action:null,Card:0484}]; $('#hidJson', window.parent.document).val(c); alert($('#hidJson', window.parent.document).val()); // returns [object Object] alert($('#hidJson', window.parent.document).val()['Card');
I try to make a page to go to the startpage after eg. 10sec
i try to allow only number 01 (1) to 53) after / and after
I am showing my alert dialog in a separate thread and its not working
I wanted to try out jQuery Templates after being inspired by these 2 blog

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.