0

Hello, I have a page, all there is in it is:

<script type="text/javascript">
alert('my test');
</script>

When I open the page by itself, it displays the alert.

Using the Tabs Content script, I call that page via ajax. Page displays, but not alert.

So please how do I initialize javascript in a page when calling it via Ajax?

This is important to me as that page in reality will contain a lot of jQuery script. With the simple example above, I pinpointed the problem with Ajax not recognizing Javascript.

Thank you for any help.

2
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by linomatti
0

Basically ajax will work in the background.
I thing you might call ajax through java script file or JQuery.

In this case I thing you are writing java script inside the server side script.
So don't write a java script server side.
Before you call an ajax file write a java script whatever you want.

Otherwise if you want it server side script itself then let me know...

0

Thanks for reply. I managed to do what I wanted with jQuery live

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.