wicket urls contain page /component id's and versions that are
generated based on the session (id counters etc), if that is what you
mean by session relative urls.
Your javascript will probably have a hard time figuring out which
sound to play if you use those urls as mapping, it might work if you
trigger using onclick, i don't know which is used.
Mounting bookkmarkable pages / resources will ease the mapping as you
said. So i am a bit confused as to what else you need.
If you use Link's or ResourceLink's you can simply override onclick to
increment your counter / do logging. Or am i missing something?
Maurice
On Sat, Mar 29, 2008 at 4:04 AM, jpswain <[EMAIL PROTECTED]> wrote:
>
> I have some JavaScript on my main page that contains a special Flash player
> that loads and starts playing a specific mp3 file for each associated link
> that the user clicks on. This currently works fine when I use
> mountSharedResource within my application subclass, then my JavaScript calls
> something (basically) like
> playFile('mpl','resource/track/trackId/1');
>
> What I would like to do create is session-relative URL's (correct term?)
> that allows my JavaScript to request the appropriate file from Wicket and
> also perform other actions at the same time, for example, increment download
> count of file or log user's download. Any guidance would be very welcome.
> I have spent a lot of time searching online and trying to understand the
> source code, but I'm still not grasping what's going on.
> Thanks,
> Jamie
> --
> View this message in context:
> http://www.nabble.com/JavaScript-w--Flash-Player---Need-guidance-on-to-generate-session-relative-url%27s-tp16366136p16366136.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]