Home  |  Linux  | Mysql  | PHP  | XML
From:Shao Chan Date:Thu Jan 14 09:48:58 2010
Subject:Re: .style.color (Re: How do I reference the current element in DHTML?)
Hi Jeff,

Yes, that's how it looks.

I even put it in my initialisation code which does not rely on the event
handler and it doesn't change the colour.

Cheers,

Shao

"Jeff Albion [Sybase iAnywhere]" <firstname.lastname@ianywhere.com> wrote in
message news:4b4ded1d$1@forums-1-dub...
> Hi Shao,
>
> Is this code inside the event handler? If so, I'd expect the code to look
> like:
>
> this.style.color = "#FF0000";
>
> ---
>
> Also, if this is on WinCE, note that for updates to the DOM (e.g. colour
> changes) via an onclick event are only handled after the Windows CE
> 'click-and-hold' functionality has been processed (after ~500ms, IIRC).
>
> So, if the function does something like:
>
> ======
> function getThisElementIdAndDoSomething() {
> var elementId;
> elementId = this.id;
>
> // Change colour of <input> element when clicked in order to
> // conform to Section 508 guidelines for accessibility
>
> this.style.color = "#FF0000";
>
> // Go to the next screen
>
> document.location.href = 'nextpage.html';
> }
> ======
>
> The colour change will not be rendered before the page location switches
> in the browser, due to the click-and-hold handler consuming 500 ms.
>
> To change this behaviour to render the immediate change in the DOM, you
> may have to disable the WinCE click-and-hold functionality handler. In the
> <body> tag, try adding an onLoad event to remove the handler:
>
> <body
> onLoad="avantgo.preferences.setBoolValueForKey('DisableRightClickPopup',
> true);">
>
> Regards,
>
> On 1/13/2010 6:11 AM, Shao Chan wrote:
>> I can't get
>>
>> nodeInput.style.color = "#FF0000";
>> to work.
>>
>> Is this supported or have I got my syntax wrong?
>>
> --
> Jeff Albion, Sybase iAnywhere
>
> iAnywhere Developer Community :
> http://www.sybase.com/developer/library/sql-anywhere-techcorner
> iAnywhere Documentation :
> http://www.ianywhere.com/developer/product_manuals
> SQL Anywhere Patches and EBFs :
> http://downloads.sybase.com/swd/summary.do?baseprod=144&client=ianywhere&timeframe=0
> Report a Bug/Open a Case : http://case-express.sybase.com/cx/


Navigate in group ianywhere.public.mbusinessanywhere.general at sever forums.sybase.com
Previous Next


Your recent visits
Re: Bootstrapping code base with ORCAscript
Re: TFS and PB 11.2 performance issues
Re: Problem with Dynamsoft SourceAnywhere and status
Re: Problem with Dynamsoft SourceAnywhere and status
Re: PB integration with Subversion



  
© No Copyright
You are free to use Anything, but please consult your advocate before doing so as this website
also list content from other sources which may be copyrighted.
Site Maintained by Zareef Ahmed
Powered By PHP Consultants