Plugins

User login
Can't find a Plugin?

Can't find a Plugin you are looking for? Check out the jQuery Wiki page.

Are you a plugin developer? Please move your plugin over to this site.

Website Bug or Feature Request?

Found a bug on the new jQuery Plugin website? Have a feature request?

Submit it to the jQuery Plugin website issue queue to ensure it is noticed!

Problem with automatic url detection and inclusion of required files


Project:jQuery Lightbox Plugin (balupton edition)
Version:1.0.1-final
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

I use on the fly packer and compresor via .htaccess for *.js and *.css files. HTML code looks like:

<link rel="stylesheet" href="/css/default.css,jquery.lightbox.css" type="text/css" media="all" />
<script type="text/javascript" src="/javascript/jquery.pack.js,jquery.dimensions.js,jquery.lightbox.js"></script>

in this case, lightbox don't work - 'this.baseurl has no properties'
Problem is that phisical path is /js/ but virtual through packer is /javascript/ and then code is gziped.

When jquery.lightbox.js script is stand alone, everything is OK

<link rel="stylesheet" href="/css/default.css,jquery.lightbox.css" type="text/css" media="all" />
<script type="text/javascript" src="/javascript/jquery.pack.js,jquery.dimensions.js"></script>
<script type="text/javascript" src="/js/jquery.lightbox.js"></script>

Is it posible to deactivate automatic inclusion?

Comments

#1

Status:active» fixed

Fixed and will be in the next version.

Fix works by manually specifying a baseurl. For example:
<script type="text/javascript" src="jquery_lightbox/js/jquery.lightbox.js?baseurl=http://www.balupton.com/sandbox/jquery_lightbox/jquery_lightbox/"></script>

#2

Fixed release is now out, it is version 1.1.0-final.

#3

Status:fixed» closed