I currently have a usercontrol that is loaded into my tooltip. The UC needs to have our product rating script on it that comes from power reviews. This is an inline JS thats placed in the code where we want the rating stars to appear.
I know there are issues with JS running with Ajax, as per this thread, but I can't understand how to use RegisterStartupScripts or anything else of that sort to perform inline JS such as this. Can anyone explain this, maybe with some code snippets?
Thx!
<asp:Literal ID="ltrCustomerReviewSnippet" runat="server" Visible="false"> |
<div class="pr_snippet_category" > |
<span id="pr_snippet_headertxt" class="bv-light-grey">Product Rating</span> |
<script type="text/javascript"> |
var pr_snippet_min_reviews=0; POWERREVIEWS.display.snippet(document, { pr_page_id : "PAGE_ID" }); |
</script> |
</div> |
</asp:Literal> |
I know there are issues with JS running with Ajax, as per this thread, but I can't understand how to use RegisterStartupScripts or anything else of that sort to perform inline JS such as this. Can anyone explain this, maybe with some code snippets?
Thx!