Home > Software engineering >  Ajax button click with VBA to simulate
Ajax button click with VBA to simulate

Time:09-19

The browser source code is as follows:

Var $toolbar=jQuery (' # ToolBarDiv). LigerToolBar ({
ToolbarShowInLeft: false,
The items: [
{
Text: 'run', id: 'qs0yx, click: function () {//icon:' yx,

ChangeToolBtnBGC (enclosing id, 'qs0);
Var accStr=' ';
Var modL=yx. Length;
for (var i=0; i AccStr +='& lt; Div title="' + yx [I] text + '" & gt;
';
Var CHD=yx [I]. Children;
Var chdL=CHD. Length;
For (var j=0; J & lt; ChdL; J++) {
If (CHD [j]. Journal of facility==jQuery (' # facility option: selected '). The val () | | CHD [j]. Journal of facility=="") {
If (CHD [j]. J type=='temp') {
AccStr +='& lt; A style="color: # 913830;" Href="javascript: f_addTab (\ 'doc_6_ + j + + I +' _ ', '\', \ '+ CHD [j]. Journal of text +' \ ', \ '+ CHD [j]. Journal of url +' \ ')" & gt; '+ CHD [j]. Journal of text +' & lt;/a> ';
} else if (CHD [j]. J type=='openwin') {
AccStr +='& lt; A style="color: # 243966;" Href="https://bbs.csdn.net/topics/#" onclick="window. The open (\ '+ CHD [j]. Journal of url +' \ ')" & gt; '+ CHD [j]. Journal of text +' & lt;/a> ';
} else if (CHD [j]. J type=='hr') {
AccStr +='& lt; A style="color: # 913830;" Href="javascript: transhr (\ 'doc_6_ + j + + I +' _ ', '\', \ '+ CHD [j]. Journal of text +' \ ', \ '+ CHD [j]. Journal of url +' \ ')" & gt; '+ CHD [j]. Journal of text +' & lt;/a> ';
} else {
AccStr +='& lt; A style="color: # 243966;" Href="javascript: f_addTab (\ 'doc_6_ + j + + I +' _ ', '\', \ '+ CHD [j]. Journal of text +' \ ', \ '+ CHD [j]. Journal of url +' \ ')" & gt; '+ CHD [j]. Journal of text +' & lt;/a> ';
}
}
}
AccStr +='& lt;/div> ';
}

JQuery (' # accordion1). Remove ();
JQuery (' # lm) append (' & lt; Div id="accordion1" & gt;
');
JQuery (' # accordion1 '). The HTML (accStr);

JQuery (" # accordion1 "). LigerAccordion ({
Height: - 20, speed: null
});
}
},
{line: true},

CodePudding user response:

http://www.autohotkey.com
  •  Tags:  
  • VBA
  • Related