Solved

jquery page load duplicates loading

Posted on 2015-02-12
2
58 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
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

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.

Question has a verified solution.

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

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
The viewer will learn the basics of jQuery including how to code hide show and toggles. 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…

820 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