BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 12-07-2009, 04:33 PM   #1 (permalink)
New Member
 
Join Date: Nov 2009
Model: 8900
PIN: N/A
Carrier: wifi
Posts: 10
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Switch CSS dynamically

Please Login to Remove!

Hi All,

In some javascript code I change dynamically a CSS in a link by the following code:

if(document) collection = document.getElementsByTagName("link");
collection[0].setAttribute("href", url);

It works well with all browsers. As soon as the new href attribute is set, the page gets relooked with the new CSS.

With the BlackBerry browser the attribute is correctly set by the setAttribute call. I can check the change by a getAttribute but the page does not reflect the change.

Do you have an idea of how I could achieve this ?

Thanks,

Last edited by aldebarande : 12-07-2009 at 04:36 PM.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

LIA3420, This IC is found on Commodore Amiga 2000 board And is a Buster Chip
$11.0
LIA3420, This IC is found on Commodore Amiga 2000 board And is a Buster Chip  pictureMOS MPS 6520 Commodore Amiga Atari PIA 40-Pin PDIP Used
$10.0
MOS MPS 6520 Commodore Amiga Atari PIA 40-Pin PDIP Used  pictureGenuine Noches Latinas UR3 Amiga Parala La Palma Vagina Mastrubator + Cream Gift
$29.99
Genuine Noches Latinas UR3 Amiga Parala La Palma Vagina Mastrubator + Cream Gift pictureGenuine Noches Latinas UR3 Amiga Para La Palma Culo Mastrubator + Cream Gift
$29.99
Genuine Noches Latinas UR3 Amiga Para La Palma Culo Mastrubator + Cream Gift pictureCSG/AMIGA 391077-01 PLCC
$14.2
CSG/AMIGA 391077-01 PLCC picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.