Results 1 to 4 of 4
May 22, 2012, 02:33 #1
- Join Date
- May 2012
- 0 Post(s)
- 0 Thread(s)
dynamic jquery loading, why script is executed 2 times?
I am making a widget to work on any site, that means not my site, so I have no control of what other libraries are used on the page.
Thats why I am loading my own jQuery libraries dynamically and then execute my own code.
An issue I have that some sites are loading fine and all is working as expected, but some sites are executing the code 2 times.
I have made a page dump and put on my own server, so I can replicate the issue better.
GOOD: here is a page that works OK: (see the button that says: send these contact details and map to your mobile.)
Even it shows 2 times, the popup appears just ok when you click on the button.
Would anyone be able to check what can be wrong here?
the code is in the:Code:
Any help would be much appreciated.