This is a migrated thread and some comments may be shown as answers.

Javascript in loaded content

1 Answer 95 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Andrés
Top achievements
Rank 1
Andrés asked on 19 Jan 2012, 06:30 AM
Hi

I have a tabstrip, and load the tabs with ajax by means of the contentUrls setting.
One of those tabs is pretty much (for now) just a single div (that will later become a grid) and the javascript to load it. For reference, here's what's being loaded:

<div id="contactsList">
</div>
<script src="@Url.Content("~/Scripts/Contact.List.js")" type="text/javascript">
</script>

I see that the script is being downloaded but it does not execute. Is there something else that I need to do to make this work? Can this be done at all?

Thanks a lot.

1 Answer, 1 is accepted

Sort by
0
Andrés
Top achievements
Rank 1
answered on 19 Jan 2012, 06:41 AM
Nevermind, it DOES work. The javascript file being loaded had an error and I didn't get any warnings/errors.
Tags
TabStrip
Asked by
Andrés
Top achievements
Rank 1
Answers by
Andrés
Top achievements
Rank 1
Share this question
or