I am using a review program that requires that I use their javascript for purposes of displaying the review info for a product. I have a tabbed interface where I have one tab set to “customer reviews” . I need to assign the link value I have referenced below to their pr_read_review variable for their “read reviews” link to select the proper tab.
I do not know the proper syntax to assign a value within javascript based on a javascript function. My test link below gives me the desired result but I cannot determine how to incorporate that into their code (and thus far they have been of little help). Does anyone know the proper way to get the desired result?
This is my test page if you need to view the source – [url]http://www.petcratesdirect.com/dog-crates-icrates2.html
script type=”text/javascript”>POWERREVIEWS.display.snippet(document, { pr_page_id : “icrate 1500″, pr_read_review : link below needs to be here” });</script>
<a href=”javascript:void(0)”
onclick=”document.getElementById(‘producttabs’).tabber.tabShow(5)”)>Test
link</a>
Thanks,
Lori