Forums
View unanswered posts | View active topics It is currently Sat Oct 25, 2014 11:29 am



Reply to topic  [ 6 posts ] 
 'element is undefined' 
Author Message

Joined: Fri Oct 29, 2010 12:07 am
Posts: 3
Post 'element is undefined'
So, I am trying to get PIE up and running on a simple site.

I have pared it down to only use PIE in my main style sheet (IE specific served by conditional comment is all commented out).

I am only attempting to fix one thing, a linear gradient background.

URL: http://ciaudio.perfectfifth.net/

I am seeing the error in the IE developer toolbar console:
'element' is undefined PIE.htc, line 20 character 114

I'm calling PIE on line 156 of my CSS.

Any ideas or suggestions greatly appreciated.


Fri Oct 29, 2010 12:11 am
Profile

Joined: Wed Jul 14, 2010 11:46 am
Posts: 1446
Post Re: 'element is undefined'
That's strange, I don't see that error when loading your page. However if I try to go to /javascripts/PIE.htc directly, then I see the error. This is because PIE.htc is being served as text/html, so IE thinks it's an HTML document and tries to execute its script content, which fails due to the differences between HTC and normal JS scopes.

At the very least you need to make your server send the correct content-type; see the Known Issues documentation page for details.


Fri Oct 29, 2010 6:32 pm
Profile

Joined: Fri Oct 29, 2010 12:07 am
Posts: 3
Post Re: 'element is undefined'
Okay.. perhaps that is a red herring then.
I fixed how it is being served.

I'm using it on another project (which I can't link to unfortunately) and it's being served as regular text and it's working fine. I can't figure out what is different in this scenario.

I have tried changing the paths etc but nothing seems to want to work.


Sat Oct 30, 2010 12:56 pm
Profile

Joined: Wed Jul 14, 2010 11:46 am
Posts: 1446
Post Re: 'element is undefined'
Well I hate to say it but I'm stumped. I've loaded your site while using Fiddler to log the HTTP traffic, and for some reason IE is not even trying to make any request whatsoever for the htc file. It's as if it's ignoring the behavior property altogether, even though it's clearly there! I have no idea why it would be doing this, and web searches for this issue have turned up nothing yet.

To make it even more bizarre, I've pulled down a copy of your HTML/CSS/etc. to a local server, adjusting paths as necessary, and it works just fine from there!

Hmmmm... :|


Sat Oct 30, 2010 4:08 pm
Profile

Joined: Fri Oct 29, 2010 12:07 am
Posts: 3
Post Re: 'element is undefined'
I appreciate your effort on my behalf.. time for plan B I think.


Sat Oct 30, 2010 4:15 pm
Profile

Joined: Wed Nov 14, 2012 9:18 am
Posts: 4
Post Re: 'element is undefined'
Hi,

did you ever manage to solve this one? I am having the exact same problem but only with IE7 and IE6 it works in IE8

Thanks
Jason


Thu Nov 15, 2012 5:07 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 

Who is online

Users browsing this forum: Exabot [Bot] and 2 guests


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

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.