?
Solved

jquery page load duplicates loading

Posted on 2015-02-12
2
Medium Priority
?
75 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 2000 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

Enroll in September's Course of the Month

This month’s featured course covers 16 hours of training in installation, management, and deployment of VMware vSphere virtualization environments. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

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.
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

719 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