Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
IE document.ready and VML namspaces
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Expand all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
weepy  
View profile  
 More options Apr 30 2008, 7:59 am
From: weepy <jonah...@gmail.com>
Date: Wed, 30 Apr 2008 04:59:52 -0700 (PDT)
Local: Wed, Apr 30 2008 7:59 am
Subject: IE document.ready and VML namspaces
Hi

I am trying to automatically add in namespaces into IE for my cornerz
plugin
(http://parkerfox.parkerfox.railsplayground.net/cornerz/)
However I am finding that it fails on the first line of the following
code in IE (6)

   if($.browser.msie && document.namespaces["v"] == null) {
        document.namespaces.add("v", "urn:schemas-microsoft-com:vml");
        var ss = document.createStyleSheet();
        ss.cssText = "v\\:*{behavior:url(#default#VML);}"
    }

I am using jQuery 1.2.3.

Any ideas ?

Jonah


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Diego Perini  
View profile  
 More options Apr 30 2008, 9:29 pm
From: Diego Perini <diego.per...@gmail.com>
Date: Wed, 30 Apr 2008 18:29:22 -0700 (PDT)
Local: Wed, Apr 30 2008 9:29 pm
Subject: Re: IE document.ready and VML namspaces
weepy,
can you try this instead (this code only for IE);

   if($.browser.msie && document.namespaces["v"] == null) {
        document.namespaces.add("v", "urn:schemas-microsoft-com:vml");
        var ss = document.createStyleSheet().owningElement;
        ss.styleSheet.cssText = "v\\:*{behavior:url(#default#VML);}"
    }

you say it gives error on the first line, but I believe adding a
namespace cannot be the problem, so this is only in case
the error is produced by attaching the style in that way.

I tested the above way of adding a stylesheet in the past,
I didn't try with your specific example, anyway let me know
if this solves your problem.

Diego Perini

On 30 Apr, 13:59, weepy <jonah...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
weepy  
View profile  
 More options May 1 2008, 5:24 am
From: weepy <jonah...@gmail.com>
Date: Thu, 1 May 2008 02:24:24 -0700 (PDT)
Local: Thurs, May 1 2008 5:24 am
Subject: Re: IE document.ready and VML namspaces
I've found that if I run this code immediately after the first line :

;(function($){

it works fine. If I include it anywhere else in the plugin (i.e. after
document.ready), simply accessing document.namespaces throws an error.

Strange - but I'm not too bothered now since I can call it just after
the first line.

Thanks

Jonah

On 1 May, 02:29, Diego Perini <diego.per...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »