PDA

View Full Version : extended info


inverisle
28-Jan-2004, 11:34 AM
Can anyone tell me if it is possible to link information that is on another websites page, to the extended info section, so that when the extended info link is clicked the other websites page content appears in the pop up window.

Thanks!

NormanRouxel
28-Jan-2004, 12:53 PM
That's not easy. However you can simply embed some HTML in your Product Description that does the same thing:

!!< <a href="javascript:ShowPopUp('http://news.bbc.co.uk',800,600)">NEWS HERE</a> >!!

or

!!< <input type=button value="NEWS HERE" onclick="javascript:ShowPopUp('http://news.bbc.co.uk',800,600)"> >!!

Norman

inverisle
28-Jan-2004, 12:57 PM
thanks Norman, I've managed with a customvar.

NormanRouxel
28-Jan-2004, 01:17 PM
If you're using a Customvar you can automate this somewhat. E.g. Customvar INFOPAGE containing news.bbc.co.uk, then put the following in your Product Template where you want the link button:-

<script language=JavaScript>
<!--
var link = 'CUSTOMVAR:INFOPAGE';
if ( link ) document.write('<input type="button" value="More..." onclick="javascript:ShowPopUp(\'http://' + link + '\',800,600)">');
// -->
</script>

Note that the if (link)... bit should be one long line.

Norman