0

I have a button, onclick of which I'm doing an AJAX call to one of my pages (which contains jqplot elements).

Now, the AJAX req/res works fine for the first click of the button.

When I click my button for the second time, I get an exception saying,

Uncaught Error: can't load XRegExp twice in the same frame

And it points to the jQuery-min file. Any idea on how I can solve this issue?

I have tried this solution and it does not work.

Community
  • 1
  • 1
painotpi
  • 6,894
  • 1
  • 37
  • 70

1 Answers1

0

I think the handler is getting "attached" before the DOM element in question actually exists. Try using jquery.on().

zeusdeux
  • 501
  • 1
  • 6
  • 14