Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trying to click the ID

Status
Not open for further replies.

wca91

Programmer
Sep 7, 2017
1
SG
Hi I am trying to click on a Link and i think it is on javascript

i have used ie.document.getElementById("WOTRACK_APP").click or getElementsByName but it kept telling me object required.

I am trying to click on the "Work Order Tracking". And the id is WOTRACK_APP but the problem is when i read the source code, WOTRACK_APP is a sub of WO_MODULE. So I am having difficulties to get to WOTRACK_APP.

Do i need to trigger other commands to click on the link?

This is part of the source code

Code:
m9bc09af3_ncnavSections["m7f8f3e49_ns"]=
{"height":"","state":statem7f8f3e49_ns,"loaded":false};
m9bc09af3_ncnavSectionsOrder.push("m7f8f3e49_ns");
fillNavSection({"menu":{"id":"menu0nsaag-ns","mxevent":"changeapp","items":
{"id":"WO_MODULE","sub":{"id":"10","mxevent":"changeapp","items":
[{"id":"WOTRACK_APP","text":"Work Order Tracking","eventvalue":"WOTRACK"},
{"id":"LABREP_APP","text":"Labor Reporting","eventvalue":"LABREP"},
{"id":"WORKMAN_APP","text":"Assignment 
Manager","eventvalue":"WORKMAN"},{"id":"OTREP_APP","text":"Overtime 
Reporting","eventvalue":"OTREP"}],"type":1,"openat":null},"text":"Work 
Orders","image":"modimg_wo.gif"}],"type":1,"openat":null}},  
"labelledBy":"m7f8f3e49_ns_label","args":{"content":{"events": 
dojo.toJson([{"navSectionId":"m7f8f3e49_ns","containerId" : 
"m9bc09af3_nc","classname":"ns_goto","showImages" : "true","isQuery" : 
"false","render" : "true"}])}}});
</script>
</div>
 
Looks like some JSON data structure. Is there any VBScript in the code or is it all Javascript.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top