cancel
Showing results for 
Search instead for 
Did you mean: 

Tab click event not firing after Archer 6.7 upgrade

lokeshkumar449
Contributor III

Hi,

         on load of an application based on a field value i should be able to switch between tabs.

in 6.4 version i was using   $("ul.rtsUL li.tab_3123").click();   which use to click 3123 tab on load.

after upgrade it is not working and getting below error:

TypeError: Unable to get property 'srcElement' of undefined or null reference

 

Existing code that used to work before upgrade:

<script>
$(document).ready(function () {
var tab;
var a = $.trim($('#master_DefaultContent_rts_sxxx_fxxxxc').text()).slice(0,1);
if(a>=3){
try{
$("ul.rtsUL li.tab_3123").click(); 

}
catch(e)
{
alert(e);
}
}

 

 

after googling and search in archer community tried below:

tabStrip = $find('master_DefaultContent_rts_ts1948_t');
tabStrip.set_selectedIndex(1);

this is selecting first tab which is what i am looking for but screen is frozen with loading symbol.

-------------------------------------------------

tab = $('li.tab_3123').find('a.rtsLink').trigger('click');
tab.find('span.rtsTxt').trigger('click');

same error as first implemented click() event

 

tab set HTML in Archer:

attached as tab click.png

 

any help is appreciated.

12 REPLIES 12

Hi David Petty‌ , i noticed that post back is firing for many events now may i know if there is a way to check postback and do the above if postback is false only.

 

only first time page load i want to trigger this event and enable tab after that any actions should not trigger this event, now for any event triggered in page it is firing postback and triggering tab1 click.

 

i tried javascript Page postback to validate if true and execute tab click with no luck inside archer.

<%= Page.IspostBack %>

document.getElementById('_ispostback')

Try,

function isPostBack() {
return <%= Page.IsPostBack %>;
}‍‍‍‍‍‍

It should return either true or false.

 Advisory Consultant

Hi David Petty, sorry for delay i used PostBack it is empty.