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
Set CSS Parameter For DOM Tree Element. Exception.
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
  8 messages - Collapse 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
 
Ruslan  
View profile  
 More options Mar 19 2010, 12:24 pm
Newsgroups: mozilla.dev.tech.css
From: Ruslan <ruslan.fayzrakhma...@gmail.com>
Date: Fri, 19 Mar 2010 09:24:32 -0700 (PDT)
Local: Fri, Mar 19 2010 12:24 pm
Subject: Set CSS Parameter For DOM Tree Element. Exception.
I have an exception during trying to change computed CSS parameter in
xulrunner (v. 1.9.1.7).

I use an instance of the class nsIDOMCSSStyleDeclaration for accessing
css parameters.
By calling its function member setProperty("display", "none",
"important") I get an exception:
The function "setProperty" returned an error condition (0x80530007),
it's textual representation is
NS_ERROR_DOM_NO_MODIFICATION_ALLOWED_ERR.

Why i get this error and how to change css parameter for particular
element?

Thank you.


 
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.
Zack Weinberg  
View profile  
 More options Mar 19 2010, 12:41 pm
Newsgroups: mozilla.dev.tech.css
From: Zack Weinberg <zweinb...@mozilla.com>
Date: Fri, 19 Mar 2010 09:41:59 -0700
Local: Fri, Mar 19 2010 12:41 pm
Subject: Re: Set CSS Parameter For DOM Tree Element. Exception.

Ruslan <ruslan.fayzrakhma...@gmail.com> wrote:
> I have an exception during trying to change computed CSS parameter in
> xulrunner (v. 1.9.1.7).

> I use an instance of the class nsIDOMCSSStyleDeclaration for accessing
> css parameters.
> By calling its function member setProperty("display", "none",
> "important") I get an exception:
> The function "setProperty" returned an error condition (0x80530007),
> it's textual representation is
> NS_ERROR_DOM_NO_MODIFICATION_ALLOWED_ERR.

> Why i get this error and how to change css parameter for particular
> element?

The style object returned by getComputedStyle is read-only.  You have
to modify the specified values instead.

zw


 
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.
Ruslan  
View profile  
 More options Mar 19 2010, 5:47 pm
Newsgroups: mozilla.dev.tech.css
From: Ruslan <ruslan.fayzrakhma...@gmail.com>
Date: Fri, 19 Mar 2010 14:47:14 -0700 (PDT)
Local: Fri, Mar 19 2010 5:47 pm
Subject: Re: Set CSS Parameter For DOM Tree Element. Exception.
On Mar 19, 5:41 pm, Zack Weinberg <zweinb...@mozilla.com> wrote:

How can I modify specified value?
Which Interface to use for that, if I would like to set "display" to
"none"?

 
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.
Ruslan  
View profile  
 More options Mar 19 2010, 7:16 pm
Newsgroups: mozilla.dev.tech.css
From: Ruslan <ruslan.fayzrakhma...@gmail.com>
Date: Fri, 19 Mar 2010 16:16:48 -0700 (PDT)
Local: Fri, Mar 19 2010 7:16 pm
Subject: Re: Set CSS Parameter For DOM Tree Element. Exception.
I can reformulate the question.
How can I change the CSS parameter for the particular element and have
the changes visible.

Thank you.


 
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.
Zack Weinberg  
View profile  
 More options Mar 19 2010, 10:56 pm
Newsgroups: mozilla.dev.tech.css
From: Zack Weinberg <zweinb...@mozilla.com>
Date: Fri, 19 Mar 2010 19:56:49 -0700
Local: Fri, Mar 19 2010 10:56 pm
Subject: Re: Set CSS Parameter For DOM Tree Element. Exception.

Ruslan <ruslan.fayzrakhma...@gmail.com> wrote:
> I can reformulate the question.
> How can I change the CSS parameter for the particular element and have
> the changes visible.

Is there a reason you can't simply assign to
<element>.style.<parameter> ?

zw


 
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.
Ruslan  
View profile  
 More options Mar 20 2010, 4:39 am
Newsgroups: mozilla.dev.tech.css
From: Ruslan <ruslan.fayzrakhma...@gmail.com>
Date: Sat, 20 Mar 2010 01:39:00 -0700 (PDT)
Subject: Re: Set CSS Parameter For DOM Tree Element. Exception.
My programming language is Java. I use javaxpcom to have an access to
xpcom. Actually I can use only those interfaces. And unfortunately I
can not follow your suggestion.

Do you know any interfaces for that?
Or is it possible for example (in case if I can not change css) to set
anattribute for the element and ask xulrunner to recalculate css and
redraw this particular element, or all DOM tree elements?


 
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.
Neil  
View profile  
 More options Mar 20 2010, 3:23 pm
Newsgroups: mozilla.dev.tech.css
From: Neil <n...@parkwaycc.co.uk>
Date: Sat, 20 Mar 2010 19:23:44 +0000
Local: Sat, Mar 20 2010 3:23 pm
Subject: Re: Set CSS Parameter For DOM Tree Element. Exception.

Ruslan wrote:
>My programming language is Java. I use javaxpcom to have an access to xpcom. Actually I can use only those interfaces. And unfortunately I can not follow your suggestion.

>Do you know any interfaces for that?

Start with nsIDOMElementCSSInlineStyle perhaps?

--
Warning: May contain traces of nuts.


 
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.
Ruslan  
View profile  
 More options Mar 23 2010, 5:33 pm
Newsgroups: mozilla.dev.tech.css
From: Ruslan <ruslan.fayzrakhma...@gmail.com>
Date: Tue, 23 Mar 2010 14:33:25 -0700 (PDT)
Local: Tues, Mar 23 2010 5:33 pm
Subject: Re: Set CSS Parameter For DOM Tree Element. Exception.
On Mar 20, 8:23 pm, Neil <n...@parkwaycc.co.uk> wrote:

> Ruslan wrote:
> >My programming language is Java. I use javaxpcom to have an access to xpcom. Actually I can use only those interfaces. And unfortunately I can not follow your suggestion.

> >Do you know any interfaces for that?

> Start with nsIDOMElementCSSInlineStyle perhaps?

> --
> Warning: May contain traces of nuts.

It is not the solution:
1. You can get this interface only if the element has attribute
"style".
2. Mozilla do not redraw/recompute the CSS.

I did not found solution.


 
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 »