List all Antibodies

ADDING AN AFFILIATE WIDGET TO YOUR SITE

The AntibodyResource Affiliate Widget allows you to take a user's protein search string and display a link to our search page for the matching antibody products found in our database.

When the user enters a search and then clicks away from the input field, the Affiliate Widget will update using the search term. Try it with this demonstration:

Search for anthrax antibodies at www.antibodyresource.com

Integration technical details

The Affiliate Widget requires JavaScript to operate. In your web page, you need to include the following <script> within the head section as follows:

<head>
<title>Widget Demo</title>

<script type="text/javascript"

src="http://www.antibodyresource.com/js/affiliate.js">

</script>

</head>

You also need to add the following HTML to your page at the position where you want the widget to appear. Replace 'anthrax' in the example below with your own protein name.

<a id="arpsearch"
h
ref="http://www.antibodyresource.com/proteinsearch/Protein/anthrax">
Search for anthrax antibodies at www.antibodyresource.com
</a>

If you want to update the widget with a new protein search, call the JavaScript function ARP_search(). One way to do this is to attach an event handler to your normal search field, e.g.

<input type="text" name="mysearch" onBlur="ARP_search(this.value)"/>

Alternatively, simply assign the CSS class 'arpsearchinput' to your input field, e.g.

<input type="text" name="mysearch" class="arpsearchinput"/>

 



 

Advert