Answer the question
In order to leave comments, you need to log in
How to debug a script loaded via ajax?
I know, the question was ( toster.ru/q/17076 ), but I did not find an adequate solution to it.
The essence of the problem is this - there is a link, when you click on it, an ajax request goes and a pop-up window appears with your own scripts.
The problem itself is that neither firebug, nor the chromium debugger, nor the standard firefox debugger see this script, I tried to insert the script and so
<script>var foo = bar;</script>
and so
<script src="somescript.js"></script>
all to no purpose.
Can anyone come across this? How did you solve the problem?
Answer the question
In order to leave comments, you need to log in
I may be wrong, but something tells me that loading JS with ajax is not quite the right way. Maybe it makes sense to revise the architecture?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question