Sorry for replying late. Honestly, I have no idea of what was wrong.
Would it
be possible that some javascript code affected the css somewhere.
Could you use
string javascript="var a = document.getElementById('errorDiv');var
t = document.defaultView.getComputedStyle(a,null).color;document.write
(t)"
runScript(javascript)
to workaround this problem?
Thanks,
Jian
On Dec 10, 2:48 am, mugua <[email protected]> wrote:
> thanks for your quick response,it works for you because you have a
> diffrent way to load html and css.
> It seems we are using the getCss same way. but it dose not work.
> Now I am trying to use javascript instead ,but another question comes.
>
> When I am using codes below:
> string javascript="var a = document.getElementById('errorDiv');var
> t = document.defaultView.getComputedStyle(a,null).color;document.write
> (t)"
> runScript(javascript)
>
> in Firefox browser : rgb(255,0,0) shows up as expected
>
> while I change to
> string javascript="var a = document.getElementById('errorDiv');var t =
> document.defaultView.getComputedStyle(a,null).color;"
> String css = getEval(javascript) to get the return value ,error shows
> up
>
> getEval is working well in my other cases ,but for this one ,it
> doesn't. Could you help with it?
--
You received this message because you are subscribed to the Google Groups
"tellurium-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/tellurium-users?hl=en.