INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Trying to click the ID

Trying to click the ID

(OP)
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 --> vbscript

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> 

RE: Trying to click the ID

Looks like some JSON data structure. Is there any VBScript in the code or is it all Javascript.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close