• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 91
  • Last Modified:

jquery page load duplicates loading

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
Mauro Cazabonnet
Asked:
Mauro Cazabonnet
1 Solution
 
Alexandre SimõesManager / Technology SpecialistCommented:
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
 
Mauro CazabonnetSenior Software EngineerAuthor Commented:
Alex,
Thx, i had mycustom jscript loading on other pages causing the multiple calls to the click event

Thx again!!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now