Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-16-2012, 04:30 PM   PM User | #1
habs20
New to the CF scene

 
Join Date: Mar 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
habs20 is an unknown quantity at this point
click java link in iframe

Hi all,

Very new to this but I am trying to automate some webdownloads I need to do daily.

I have a link I am trying to click via applescript do javascript


I can return the frames html by doing


tell application "Safari"
do JavaScript
"document.getElementById('iframesearch').contentDocument.getElementById('frmAccountList').innerH TML"
in document 1
end tell


the html returned contains the link link I want to click/fire
<span id="SWGrdAccSearch_ctl06_lblAsterix">&nbsp;</span>

<a onclick="javascript:return getDefaultAccount('John
Doe','0890','0','0');" id="SWGrdAccSearch_ctl06_lnkAccount"
href="javascript:__doPostBack('SWGrdAccSearch
$ctl06$lnkAccount','')">123456</a>


how can I get his link to launch/fire?


Any and all help deeply appreciated.
habs20 is offline   Reply With Quote
Reply

Bookmarks

Tags
iframe javascript

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:52 AM.


Advertisement
Log in to turn off these ads.