PDA

View Full Version : Javascript after ajax request in ajax tabs



cheeko
07-09-2009, 02:37 AM
1) AJAX tabs

2) http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/index.htm

3) Getting javascript to execute when data fetched via ajax

Hi,
Im new to dynamic drive forums.

The issue im having is getting javascript to initiate when returned from ajax request.
I have found that you can use eval() to run javascript after its returned from ajax request if you use .replace() to trim the srcipt tags off but my problem is im trying to run google widgets and the scr attribute is in the script tag and using the above method returns nothing as there is nothing with-in the script tags.

Does anyone know a way around the javascrpt after ajax problem that doesn't use eval()

Thanks