Jump to content
Sign in to follow this  
Amo

Internet Explorer Frame questions

Recommended Posts

Amo

I would like to use the _IEFormGetObjByName functions to select farm but I tried and tried, but I cannot find a way to fix my problem.

I want to Get "Quick_Order" ,but I can't get it correct how can it do ?? Help me please ...

I used _IEFrameGetCollection it can get 6 frame correct.

It can't show frame 4 locationurl and Frame.name.

<meta http-equiv="Content-Type" content="text/html; charset=big5">
&lt;script src="include/JsFunc.js"></script>

<HTML><HEAD><TITLE>日盛All in One交易網</TITLE>
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<META HTTP-EQUIV=Content-Type CONTENT="text/html; CHARSET=Big5">
&lt;script language="Javascript1.2">
window.focus ();
</script>
</HEAD>
<FRAMESET FRAMEBORDER="no" BORDER="0" rows="86,16,18,*,48,0" framespacing="0" ID="HomeJSF">
    <frame src="LoginTop.asp?r_NationalID=A123361662&r_total_&r_secure_kind=36361621&r_login_tran_code=36361620&r_StrCaStatus=YY&r_displayName=%C4%AC%ABH%A9%BE&r_LoginType=01&r_NBSecNo=&r_Risk=NN&r_LogoutUrl=http://www.jihsun.com.tw&r_ap_kind=&r_QS=&r_LoginSub=11" name="LoginTop" scrolling="no"  noresize>
    <frame src="LoginSub1.asp?r_NationalID=A123361662&r_total_21&r_secure_kind=36361621&r_login_tran_code=36361620&r_StrCaStatus=YY&r_displayName=蘇小信&r_LoginType=01&r_NBSecNo=&r_Risk=NN&r_LogoutUrl=http://www.jihsun.com.tw&r_ap_kind=&r_QS=" name="LoginSub1" scrolling="no"  noresize>

    <frame src="LoginSub2.asp?r_NationalID=A123361662&r_total_secure_kind=36361621&r_login_tran_code=36361620&r_StrCaStatus=YY&r_displayName=蘇小信&r_LoginType=01&r_NBSecNo=&r_Risk=NN&r_LogoutUrl=http://www.jihsun.com.tw&r_ap_kind=&r_QS=" name="LoginSub2" scrolling="no"  noresize>    
    <frame src="" name="Content"  MARGINWIDTH=0 MARGINHEIGHT=0 scrolling="auto" >

    <frame src="https://secure5.jihsun.com.tw/JssFHCTrade/Asp/secure/wSkQuick_Order.asp?r_NationalID=A123361662&r_total_&r_secure_kind=36361621&r_login_tran_code=36361620&r_StrCaStatus=YY&r_displayName=蘇小信&r_LoginType=01&r_NBSecNo=&r_Risk=NN&r_LogoutUrl=http://www.jihsun.com.tw&r_ap_kind=&r_QS=" name="Quick_Order" scrolling="no"  noresize>
     
     <frame src="https://secure5.jihsun.com.tw/JssFHCTrade/Asp/secure/CheckMaxCerts.asp?r_NationalID=A123361662&r_total_&r_secure_kind=36361621&r_login_tran_code=36361620&r_StrCaStatus=YY&r_displayName=蘇小信&r_LoginType=01&r_NBSecNo=&r_Risk=NN&r_LogoutUrl=http://www.jihsun.com.tw&r_ap_kind=&r_QS=&r_LoginSub=41" name="ApplySaveMenu" scrolling="no"  noresize>
</FRAMESET>


<body>您的機器不支援框架頁</body>
</HTML>

I use _IEFrameGetCollection try to get it

$AFrames =   ($oIE , -1)
    $CountFrames = @extended
    MsgBox(0, "FramesA " & $CountFrames, "see above")
    For $i = 0 to ($CountFrames - 1)
    $AFrame = _IEFrameGetCollection ($oIE, $i) 
    MsgBox(0, "Frame Info for Frame " & $i, _IEPropertyGet ( $AFrame, "locationurl"))
    MsgBox(0, "Frame Name", $AFrame.name)
    Next

Share this post


Link to post
Share on other sites
DaleHohm

From a quick look, your issue is caused by cross-site frame security restrictions in the browser... Frames 4 and 5 are on different sites and IE (and all browsers) prevent script access.

Only work around I know is to display the URL for Frame 4 in a new browser window and then access it's contents in the new window.

Dale


Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×