I have a Flash based video player that uses a javaScript function on the
page to modify variables within the Flash. This is so, external, jpg,
thumbnails can change the video without reloading the page. This works great
using:
<a href="javascrip t:changeVideo(' videoName.flv') "><img
src="thumbname. jpg"></a>
Now, my client wants to be able to track which videos are watched by calling
a cgi script she has in place. I've been trying all morning to come up with
something so I can call my current changeVideo() function, and also post a
variable to a cgi.
<a href="javascrip t:changeVideo(' videoName.flv') "
onClick="myTrac ker('videoName. flv');"><img src="thumbname. jpg"></a>
Then, within myTracker I am trying to submit a form with a hidden field...
it does work, except when I submit the form I redirect to the url I am
calling. I need to 'silently' post the form data.
function myTracker(vname ){
//set form value
document.hidden Video.vname.val ue=vname;
document.hidden Video.submit();
}
--
Dave -
Adobe Community Expert
www.blurredistinction.com
http://www.macromedia.com/support/fo...am_macromedia/