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.

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...

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.