Hi All,
Thanks in advance for your help on this issue.
Here is my issue: I am writing a bit of code on an auto dealer's website called "Share with Friends. The idea is that someone can click on a button on a vehicle's page, and will be able to post that vehicle on myspace. You can see it here:
http://audi.checkeredflag.com/new-inventory/vehicle-details.htm?vehicleId=70068d8a4046381e01c4a198d5d3cd68&useHistory=true
I have used the default code from the "Post to Myspace" documentation, but I would like to be able to dynamically pull in the page's title, the main vehicle image, and the url to the page. Facebook's share feature does it automatically, trying to get the myspace button to behave in a similar fashion. This bit of html ends up on the page for every vehicle, so filling out the parameters one at a time is out of the question.
Here is my code so far...
<table width="620" height="90" border="0" cellpadding="0" cellspacing="0" bgcolor="#333333">
<tr>
<td height="26"><img src="http://pictures.dealer.com/checkeredflagaudi/aaa64f3340463872015092c020bd5e3d.jpg" width="171" height="26" /></td>
</tr>
<tr>
<td width="304" height="64"><script>function fbs_click() {u=location.href;t=document.title;window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');return false;}</script><a href="http://www.facebook.com/share.php?u=<url>" onclick="return fbs_click()" target="_blank"><img src="http://pictures.dealer.com/checkeredflagaudi/aaa5a1f040463872015092c02ffbceb3.jpg" width="304" height="64" /></a></td>
<td width="316" height="64"><form id="myspacepostto" method="post" action="http://www.myspace.com/index.cfm?fuseaction=postto"
target="_blank">
<input type="hidden" name="t" value="I am thinking of purchasing this car" />
<input type="hidden" name="c" value="I am thinking of purchasing this car’" />
<input type="hidden" name="u" value=" " />
<input type="hidden" name="l" value=" " />
<a href="#" onclick="document.getElementById('myspacepostto').submit();return false;"><img src="http://pictures.dealer.com/checkeredflagaudi/aaa6137b40463872015092c0ac1a24b3.jpg" width="316" height="64" /></a>
</form></td>
</tr>
</table>
Any ideas? Please keep in mind that I am a n00b, so please keep the instructions/advice as simple as possible. Thanks for the help.