Problem with automatic url detection and inclusion of required files
March 10, 2008 - 8:16am — crollmm
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.
Is it posible to deactivate automatic inclusion?
| Project: | jQuery Lightbox Plugin (balupton edition) |
| Version: | 1.0.1-final |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
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
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