noConflict not working for multiple scripts Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) The Ask Question Wizard is Live! Data science time! April 2019 and salary with experienceWhy don't self-closing script elements work?How do JavaScript closures work?jQuery Tips and TricksWhere should I put <script> tags in HTML markup?How does JavaScript .prototype work?How can I select an element with multiple classes in jQuery?How does the “this” keyword work?How does data binding work in AngularJS?Jquery click trigger on Success or CompleteAfter submiting form the script is triggered again

Slither Like a Snake

What is the electric potential inside a point charge?

How do you clear the ApexPages.getMessages() collection in a test?

Writing Thesis: Copying from published papers

Cauchy Sequence Characterized only By Directly Neighbouring Sequence Members

No baking right

Choo-choo! Word trains

Stopping real property loss from eroding embankment

Determine whether f is a function, an injection, a surjection

What is the order of Mitzvot in Rambam's Sefer Hamitzvot?

Strange behaviour of Check

If I can make up priors, why can't I make up posteriors?

Classification of bundles, Postnikov towers, obstruction theory, local coefficients

Windows 10: How to Lock (not sleep) laptop on lid close?

Unexpected result with right shift after bitwise negation

Active filter with series inductor and resistor - do these exist?

Autumning in love

Why is there no army of Iron-Mans in the MCU?

Estimate capacitor parameters

Cold is to Refrigerator as warm is to?

Can a zero nonce be safely used with AES-GCM if the key is random and never used again?

How to market an anarchic city as a tourism spot to people living in civilized areas?

When communicating altitude with a '9' in it, should it be pronounced "nine hundred" or "niner hundred"?

Replacing HDD with SSD; what about non-APFS/APFS?



noConflict not working for multiple scripts



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
The Ask Question Wizard is Live!
Data science time! April 2019 and salary with experienceWhy don't self-closing script elements work?How do JavaScript closures work?jQuery Tips and TricksWhere should I put <script> tags in HTML markup?How does JavaScript .prototype work?How can I select an element with multiple classes in jQuery?How does the “this” keyword work?How does data binding work in AngularJS?Jquery click trigger on Success or CompleteAfter submiting form the script is triggered again



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















I'm having trouble executing two scripts with noConflict.



here is the code:



 var jq = $.noConflict();
jq(document).ready(function()
jq('#view1').on( 'change', '.select1', function()
var temporderVal = jq(this).val();
var temporder_id = jq(this).prop('id');
jq.ajax(
type: "POST",
url: "saveTempOrder.php",
data: temporderType : temporderVal, temporderID : temporder_id ,

success: function(data)
jq('#container').reload('#container', function() );

)
);

jq(".dontshow").click(function()
var details_id = jq(this).prop('id');
jq.ajax(
type: "POST",
url: "quoteshow.php",
data: detailsID: details_id ,
success: function(data)
jq('#container').reload('#container', function() );

)
);
);


In this example the scripts executes perfectly when the select field select1 is changed, but the second one will not work when the link is clicked. I I remove all other javascript from the page then both fire so its a case of using noConflict (I cannot remove or rewrite all other javascript). If I delete the first script the second one will fire.



Creating a second nocnflict like below also doesnt work



 var jq = $.noConflict();
jq(document).ready(function()
jq('#view1').on( 'change', '.select1', function()
var temporderVal = jq(this).val();
var temporder_id = jq(this).prop('id');
jq.ajax(
type: "POST",
url: "saveTempOrder.php",
data: temporderType : temporderVal, temporderID : temporder_id ,

success: function(data)
jq('#container').reload('#container', function() );

)
);
);

var qq = $.noConflict();
qq(document).ready(function()
qq(".show").click(function()
var details_id = qq(this).prop('id');
qq.ajax(
type: "POST",
url: "quotedontshow.php",
data: detailsID: details_id ,
success: function(data)
qq('#container').reload('#container', function() );

)
);
);


Has anyone had this issue of multiple scripts and noConflict or am I missing something and thinking its noConflict?










share|improve this question






























    0















    I'm having trouble executing two scripts with noConflict.



    here is the code:



     var jq = $.noConflict();
    jq(document).ready(function()
    jq('#view1').on( 'change', '.select1', function()
    var temporderVal = jq(this).val();
    var temporder_id = jq(this).prop('id');
    jq.ajax(
    type: "POST",
    url: "saveTempOrder.php",
    data: temporderType : temporderVal, temporderID : temporder_id ,

    success: function(data)
    jq('#container').reload('#container', function() );

    )
    );

    jq(".dontshow").click(function()
    var details_id = jq(this).prop('id');
    jq.ajax(
    type: "POST",
    url: "quoteshow.php",
    data: detailsID: details_id ,
    success: function(data)
    jq('#container').reload('#container', function() );

    )
    );
    );


    In this example the scripts executes perfectly when the select field select1 is changed, but the second one will not work when the link is clicked. I I remove all other javascript from the page then both fire so its a case of using noConflict (I cannot remove or rewrite all other javascript). If I delete the first script the second one will fire.



    Creating a second nocnflict like below also doesnt work



     var jq = $.noConflict();
    jq(document).ready(function()
    jq('#view1').on( 'change', '.select1', function()
    var temporderVal = jq(this).val();
    var temporder_id = jq(this).prop('id');
    jq.ajax(
    type: "POST",
    url: "saveTempOrder.php",
    data: temporderType : temporderVal, temporderID : temporder_id ,

    success: function(data)
    jq('#container').reload('#container', function() );

    )
    );
    );

    var qq = $.noConflict();
    qq(document).ready(function()
    qq(".show").click(function()
    var details_id = qq(this).prop('id');
    qq.ajax(
    type: "POST",
    url: "quotedontshow.php",
    data: detailsID: details_id ,
    success: function(data)
    qq('#container').reload('#container', function() );

    )
    );
    );


    Has anyone had this issue of multiple scripts and noConflict or am I missing something and thinking its noConflict?










    share|improve this question


























      0












      0








      0








      I'm having trouble executing two scripts with noConflict.



      here is the code:



       var jq = $.noConflict();
      jq(document).ready(function()
      jq('#view1').on( 'change', '.select1', function()
      var temporderVal = jq(this).val();
      var temporder_id = jq(this).prop('id');
      jq.ajax(
      type: "POST",
      url: "saveTempOrder.php",
      data: temporderType : temporderVal, temporderID : temporder_id ,

      success: function(data)
      jq('#container').reload('#container', function() );

      )
      );

      jq(".dontshow").click(function()
      var details_id = jq(this).prop('id');
      jq.ajax(
      type: "POST",
      url: "quoteshow.php",
      data: detailsID: details_id ,
      success: function(data)
      jq('#container').reload('#container', function() );

      )
      );
      );


      In this example the scripts executes perfectly when the select field select1 is changed, but the second one will not work when the link is clicked. I I remove all other javascript from the page then both fire so its a case of using noConflict (I cannot remove or rewrite all other javascript). If I delete the first script the second one will fire.



      Creating a second nocnflict like below also doesnt work



       var jq = $.noConflict();
      jq(document).ready(function()
      jq('#view1').on( 'change', '.select1', function()
      var temporderVal = jq(this).val();
      var temporder_id = jq(this).prop('id');
      jq.ajax(
      type: "POST",
      url: "saveTempOrder.php",
      data: temporderType : temporderVal, temporderID : temporder_id ,

      success: function(data)
      jq('#container').reload('#container', function() );

      )
      );
      );

      var qq = $.noConflict();
      qq(document).ready(function()
      qq(".show").click(function()
      var details_id = qq(this).prop('id');
      qq.ajax(
      type: "POST",
      url: "quotedontshow.php",
      data: detailsID: details_id ,
      success: function(data)
      qq('#container').reload('#container', function() );

      )
      );
      );


      Has anyone had this issue of multiple scripts and noConflict or am I missing something and thinking its noConflict?










      share|improve this question
















      I'm having trouble executing two scripts with noConflict.



      here is the code:



       var jq = $.noConflict();
      jq(document).ready(function()
      jq('#view1').on( 'change', '.select1', function()
      var temporderVal = jq(this).val();
      var temporder_id = jq(this).prop('id');
      jq.ajax(
      type: "POST",
      url: "saveTempOrder.php",
      data: temporderType : temporderVal, temporderID : temporder_id ,

      success: function(data)
      jq('#container').reload('#container', function() );

      )
      );

      jq(".dontshow").click(function()
      var details_id = jq(this).prop('id');
      jq.ajax(
      type: "POST",
      url: "quoteshow.php",
      data: detailsID: details_id ,
      success: function(data)
      jq('#container').reload('#container', function() );

      )
      );
      );


      In this example the scripts executes perfectly when the select field select1 is changed, but the second one will not work when the link is clicked. I I remove all other javascript from the page then both fire so its a case of using noConflict (I cannot remove or rewrite all other javascript). If I delete the first script the second one will fire.



      Creating a second nocnflict like below also doesnt work



       var jq = $.noConflict();
      jq(document).ready(function()
      jq('#view1').on( 'change', '.select1', function()
      var temporderVal = jq(this).val();
      var temporder_id = jq(this).prop('id');
      jq.ajax(
      type: "POST",
      url: "saveTempOrder.php",
      data: temporderType : temporderVal, temporderID : temporder_id ,

      success: function(data)
      jq('#container').reload('#container', function() );

      )
      );
      );

      var qq = $.noConflict();
      qq(document).ready(function()
      qq(".show").click(function()
      var details_id = qq(this).prop('id');
      qq.ajax(
      type: "POST",
      url: "quotedontshow.php",
      data: detailsID: details_id ,
      success: function(data)
      qq('#container').reload('#container', function() );

      )
      );
      );


      Has anyone had this issue of multiple scripts and noConflict or am I missing something and thinking its noConflict?







      javascript jquery ajax






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 8 at 15:10







      snookian

















      asked Mar 8 at 15:05









      snookiansnookian

      41041025




      41041025






















          0






          active

          oldest

          votes












          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55065932%2fnoconflict-not-working-for-multiple-scripts%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55065932%2fnoconflict-not-working-for-multiple-scripts%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Google colab Transport endpoint is not connectedHow do I connect to a MySQL Database in Python?Google Colab is very slow compared to my PCGoogle Colab script throws “Transport endpoint is not connected”Presentation mode for Google Colab notebooksGoogle Colab: cell has not been executed in this session?Google Colab and tensorflow: How to hypertune and save a modelIs it possible to connect jupyter running on my laptop with google colabDisplaying all output with linebreaks in Google ColabUsing extensions in Google colabGoogle Colab Error: Buffered data was truncated after reaching the output size limit

          IntelliJ IDEA underlines variables when using += in JAVA2019 Community Moderator ElectionHow can I permanently enable line numbers in IntelliJ?Is Java “pass-by-reference” or “pass-by-value”?When to use LinkedList over ArrayList in Java?How do I generate random integers within a specific range in Java?What is the scope of variables in JavaScript?How to determine if variable is 'undefined' or 'null'?How do I convert a String to an int in Java?IntelliJ inspection gives “Cannot resolve symbol” but still compiles codeCreating a memory leak with JavaHow to see JavaDoc in IntelliJ IDEA?

          Лубенський полк