Thanks for advice. But I don't think I can do it this way by javascript located in the iframe while the tab is in the parent. Could you please give me a hint how to reference jquery in the parent by js in an iframe?
----- Original Message ----- From: "till" <[email protected]> To: "Roland Liebl" <[email protected]> Cc: <[email protected]> Sent: Thursday, August 06, 2009 11:36 AM Subject: Re: [RCD] Advice for changing tab class (settings) 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/
