[jQuery] Request Path
[jQuery] Request Path
This is probably isn't a jquery question, but I am using jQuery media
plugin in this case, so I am wondering if someone can assist here.
I have a http folder with my server-side scripts for media stuff
/public/wcflash/wcflash.wcx <-- server side compiled script
for our web server
I found jquery-media.js and want to see how I can use it. So I put the
following under the under the folder:
/public/wcflash/jmedia/jquery.media.js
/public/wcflash/jmedia/jquery.metadata.js
/public/wcflash/jmedia/mediaplayer.js
The wcx script spits out a html <script> tag:
<script type="text/javascript" src="/public/wcflash/jmedia/
jquery.media.js"></script>
<script type="text/javascript" src="/public/wcflash/jmedia/
jquery.metadata.js"></script>
The problem is that jquery.metadata.js is attempted to load
mediaplayer.swf from the /public/wcflash path, not the base path that
the script was under.
I don't want to copy this jmedia files to folders where they will be
used. wcx scripts can be anywhere in the web site?
Short of changing jquery.metadata.js, how can I resolve this?
thanks