Hi Everyone! First post here and I'm hoping someone can help me out. :)
I'm trying to lightbox a page containing a SWF via the nifty AJAX feature in Facebox (for jQuery). The trouble is that the paths now work relative to the main index page, not the directory that houses the flash page. Here's a directory breakdown:
./
- index.html (loads projects/projectName/index.html)
+ js/
+ jquery/
- facebox.js
- jquery.js
+ swfobject/
- swfobject.js
+ projects
+ projectName
- index.html (works when viewed by itself with relative paths to JS)
+ swf/
Could anyone tell me if there's some way of preserving the scope of relative paths via jQuery (or any Javascript really)
Thanks!