Postings

You can freely browse the forum and post in the community forum.
However, you need a valid license to write posts for support (own a valid commercial software license or have purchased a support membership).

Posts only show once reviewed. This is mainly preventive to keep spam away. Thank you for your understanding!

Minor change in regular expression - Test Sites

More
IP: 99.45.29.1 14 years 8 months ago #197 by benmillerj
I've just started using jQuery Easy on several of my test sites. The problem is that I have them running under subdirectories on a test server, so the URL is something like www.example.com/foo/index.php .

This caused issues with the plugin because it would put the create the path to the external jQuery libraries with this form /foo/https://ajax.google etc....

This can be simply fixed by changing the regular expressions that replace JQLIB, JQUILIB, AND JQUICSS with the following format:
Code:
preg_replace('#[^"]*?JQLIB#', $this->_jqpath, $body);

Since this extends the functionality of the plugin without changing its current features, I request that it be incorporated into the next release.

yours,
ben
The following user(s) said Thank You: admin
More
IP: 207.181.196.3 14 years 8 months ago #200 by admin
Thank you Ben for this fix.
I am working on an update and will definitely incorporate the code into the plugin.
This is a very useful post, thank you for helping make jQuery Easy even better!

Olivier.