Solved

jquery page load duplicates loading

Posted on 2015-02-12
2
62 Views
Last Modified: 2015-02-12
I have a click in event setup in a javascript behind code

 $('.cgcct-baselines').click(function () {            
            $("#pages").load("/html/baselines/baselines.aspx");
              return false;
        });

I'm seeing duplicate page loads of baseline.aspx in the firebug console
every time I fire off the click event

Any ideas?
0
Comment
Question by:Mauro Cazabonnet
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 30

Accepted Solution

by:
Alexandre Simões earned 500 total points
ID: 40605860
Where are you executing this code?
This usually happens when you pass through this code more than once (twice in your case).

So make sure that this click event handler assignment code is only executed once.
0
 
LVL 4

Author Closing Comment

by:Mauro Cazabonnet
ID: 40606174
Alex,
Thx, i had mycustom jscript loading on other pages causing the multiple calls to the click event

Thx again!!
0

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
The viewer will learn how to count occurrences of each item in an array.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question