Are you enjoying the extensions? Did you like the support? Help others decide.

Leave a review

file Not loading with URL variables?

More
11 years 7 months ago #1868 by mccomb
Not loading with URL variables? was created by mccomb
I have set JQuery Easy to only load on certain pages. One of these is my home page: /

I now want to run some Google experiment tests, which are adding a query string onto that URL: /?utm_expid=44244595-7

Once that is added, JQuery no longer loads. This query string can vary, so it is difficult to add every possible URL combination. Is there some other way around this?

Thanks.

Please Log in or Create an account to join the conversation.

More
11 years 7 months ago #1869 by admin
Replied by admin on topic Re: Not loading with URL variables?
Hello, there is no workaround I am afraid here.
You may want to try
/?utm_expid=*
instead of
/
Let me know if that helps.

Olivier.

Please Log in or Create an account to join the conversation.

More
11 years 7 months ago #1872 by mccomb
Replied by mccomb on topic Re: Not loading with URL variables?
When I put the wildcard in there, /?utm-expid=*, there seems to be a bug. It tried to load:

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js" type="text/javascript"></script>

That's missing the https:

When I take out the wildcard it works fine.

Please Log in or Create an account to join the conversation.

More
11 years 7 months ago #1875 by admin
Replied by admin on topic Re: Not loading with URL variables?
That is strange, it is completely independent.
I will take a look and try to reproduce the issue on my end.

Olivier.

Please Log in or Create an account to join the conversation.

More
11 years 7 months ago - 11 years 7 months ago #1877 by admin
Replied by admin on topic Re: Not loading with URL variables?
Do you feel confident enough to change code into the plugin itself? I would like you to try and modify a single line of code in jqueryeasy.php.
Just a matter of changing
$path = ltrim($path, '*');
into
$path = trim($path, '*');
Let me know if you can do it. If not, contact me through email at [email protected] and I will send you an updated file. Thanks!

Olivier.
Last edit: 11 years 7 months ago by admin.

Please Log in or Create an account to join the conversation.

More
11 years 7 months ago #1894 by mccomb
Replied by mccomb on topic Re: Not loading with URL variables?
Sorry about this, the JQuery problem was caused by another plugin - ARI Image Slider. I set that to not load jquery and the bad URL went away.

However, the problem seems to be that jQuery Easy is not recognizing wildcards. For example, when I enable it on this url, /?utm-expid=1234, it works properly and loads. When I change that URL to /?utm-expid=*, and go to /?utm-expid=1234, JQuery does not load.

Thanks.

Please Log in or Create an account to join the conversation.