On Thu, Aug 6, 2009 at 9:34 AM, Roland Liebl<[email protected]> wrote:
> Hi all,
>
> please give me advice how to change the tablink class to "tablink
> tablink-selected" from the settings iframe.
>
> Currently I do ...
>
> <script type="text/javascript">
> function selectTab(){
>   try{
>     parent.document.getElementById("settingstabaccount").className="tablink
> tablink-selected";
>   }
>   catch(e){
>     //selectTab();
>   }
> }
> setTimeout('selectTab()','1000');
>
> ... but I'm sure there is a more professional way!
>
> Thanks in advance.
>
> -Roland

Try jQuery:
$('#settingstabaccount').addClass(), .removeClass(), .toggleClass(),
.hasClass().

Till
_______________________________________________
List info: http://lists.roundcube.net/dev/

Reply via email to