On Feb 27, 2009, at 12:12 AM, John Resig wrote:

>
> Do you have a demo that we can look at? Kind of hard to tell from
> these snippets.

OK, you can test it with the attached.

How to reproduce:
1) Place the attached file inside your server root.

2) Adjust in your favorite editor the reference to the jquery.js file.
    <script type="text/javascript" src="jss/jquery.js"></script><!--  
tested with 1.2.6 and 1.3.2 -->

2) Add in a terminal a "tail -f" on your apache-access log-file.

3) Load the file in your browser

4) Then upon load, it generates an alert "#button binded at ready()"

5) Click OK of the alert.

6) Verify in the apache log.

89.251.2.62 - - [27/Feb/2009:07:59:44 +0000] "GET /jQuery-Test.html  
HTTP/1.1" 200 386
89.251.2.62 - - [27/Feb/2009:07:59:44 +0000] "GET /jss/jquery.js HTTP/ 
1.1" 200 35347

7) Click the button ONCE.

8) An alert with 'Button Click' shows up and click 'OK'

9) A new alert shows the content of the page itself (as retrieved from  
the server) and click 'OK'

10) Verify the Apache log file and 2 lines/requests show.

89.251.2.62 - - [27/Feb/2009:07:59:50 +0000] "GET /trunk/jQuery- 
Test.html?parameter=value HTTP/1.1" 200 386
89.251.2.62 - - [27/Feb/2009:07:59:50 +0000] "GET /trunk/jQuery- 
Test.html?parameter=value HTTP/1.1" 200 386

11) Repeat the click of the button

12) An alert with 'Button Click' shows up and click 'OK'

13) A new alert shows the content of the page itself (as retrieved  
from the server) and click 'OK'

14) Verify the Apache log file and ONLY ONCE the request to the server  
has been made.

89.251.2.62 - - [27/Feb/2009:08:02:06 +0000] "GET /trunk/jQuery- 
Test.html?parameter=value HTTP/1.1" 200 386


The 'odd thing is that firebug shows the first time the request ONLY  
once, while it hit
twice the server. This is not an apache log file issue as the PHP  
script with which I
discovered it was executed twice also.


regards,
Harrie





--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to jquery-dev@googlegroups.com
To unsubscribe from this group, send email to 
jquery-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Title: jQuery Test


Reply via email to