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!

Not loading with URL variables?

  • mccomb
  • mccomb's Avatar Topic Author
  • New Member
  • New Member
More
IP: 190.244.7.87 13 years 8 months ago #1868 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.
More
IP: 207.229.131.129 13 years 8 months ago #1869 by admin
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.
  • mccomb
  • mccomb's Avatar Topic Author
  • New Member
  • New Member
More
IP: 190.244.7.87 13 years 8 months ago #1872 by mccomb
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.
More
IP: 207.229.131.129 13 years 8 months ago #1875 by admin
That is strange, it is completely independent.
I will take a look and try to reproduce the issue on my end.

Olivier.
More
IP: 207.229.131.129 13 years 8 months ago - 13 years 8 months ago #1877 by admin
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
Code:
$path = ltrim($path, '*');
into
Code:
$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: 13 years 8 months ago by admin.
  • mccomb
  • mccomb's Avatar Topic Author
  • New Member
  • New Member
More
IP: 190.244.7.87 13 years 8 months ago #1894 by mccomb
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.