Shopify is serving the .htc file with the correct content-type, but IE is giving me an "access denied" error when I load the page. I suspect this is due to the .htc file residing on a different domain than the host document. Has anyone come across this issue? I haven't been able to find many relevant articles when I google ".htc crossdomain" and such.

Also, btw, I've tried it without the ?128... query string (Shopify uses this as a cache-buster for updated files). That doesn't make a difference.

Thanks for your time.

Thu Aug 12, 2010 10:00 am

Spudley

Joined: Mon Jul 19, 2010 4:46 amPosts: 34

Re: Accessing PIE.htc from a different domain than the host

From other comments on this forurm, I gather that HTC behavior files cannot be loaded cross-domain. Sorry to be the bearer of bad news.

I wonder if you could use the PHP (or some other) wrapper to re-locate it within your domain?

Thu Aug 12, 2010 10:23 am

jonwolfe

Joined: Thu Aug 12, 2010 9:41 amPosts: 2Location: Berkeley, CA

Re: Accessing PIE.htc from a different domain than the host

Thanks for the reply. Yeah, it turns out you can't use .htc files on a different domain than the host document. Bummer.

Unfortunately I can't use the php wrapper with Shopify. I'll keep my eyes peeled to see if there's a pure-js alternative to the .htc file.

Thu Aug 12, 2010 12:23 pm

Spudley

Joined: Mon Jul 19, 2010 4:46 amPosts: 34

Re: Accessing PIE.htc from a different domain than the host

jonwolfe wrote:

Thanks for the reply. Yeah, it turns out you can't use .htc files on a different domain than the host document. Bummer.

Unfortunately I can't use the php wrapper with Shopify. I'll keep my eyes peeled to see if there's a pure-js alternative to the .htc file.

Let us know what you find. Before PIE, I wasted a lot of time trying to find something suitable, but I every other solution I found has show-stopping problems.

As far as pure JS options go, the best I found are some JQuery solutions, but none of them completely worked for me.

I'm hoping that Jason will release a pure JS variant of the PIE HTC. I don't need it myself but I can see a few use cases where it would be good to have, and I don't suppose it would be too difficult for him (HTC files are just a wrapper for Javascript anyway).

Fri Aug 13, 2010 3:10 am

jason

Joined: Wed Jul 14, 2010 11:46 amPosts: 1452

Re: Accessing PIE.htc from a different domain than the host

Yup a pure JS version is in the works. It'll have some downsides to it (e.g. no automatic attachment/detachment) so the HTC will remain the preferred approach, but it should be a good option for many people.

Who is online

Users browsing this forum: Steeler [Crawler] and 1 guest

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum