Jump to content

how to get the IE "window.open"


Recommended Posts

example :

a.htm

there is a web function like choice something,

the function link id a button, button call a javascript function like these

( java script: window.open(b.htm?id=czxzcxzcdfdsf&fr=dsfsdfdsk156165dfg515dks) )

b.htm

is a form page need to set value like file index or something ( ex: choice a pic to upload ),

and sand the form will auto close the b.htm window, the information wiil send to the a.htm

if use $r = _IEcreate ("b.htm") ---> can`t get the "red text something"

if use $r = _IEAction ($b3,"click") ---> can`t get the collection,so i can`t send the information by AUTOIT

my question is :

how to get the b.htm collection ?

if don`t use WinWaitActive....els

sorry for my poor English,

hope someone can give me an idea, thanks... :)

the a.htm , B3 is a Button object

$b3 = _IEFormElementGetObjByName ($r_Form, "b3")

the Button call a function is :

function GodirWindow()
{
  document.all['errmsg'].innerHTML = '';
    if (hWnd)
        hWnd.close();
    hWnd = window.open("addphoto.htm?g_no=&allpicture="+main.picture.value,"","resizable=yes,scrollbars=yes,width=755,height=585");
  if ((document.window != null) && (!hWnd.opener))
        hWnd.opener = document.window;
}
Edited by abiteric

My website about Y-mate 網拍輔助程式 : http://www.L2play.comMy Blog ( Tranditional Chinese ) 開發小組的部落格 : http://tw.myblog.yahoo.com/play19990909

Link to comment
Share on other sites

I don't understand the question you are asking. I tried, sorry.

"how to get the b.htm collection ?" - what specifically are you trying to get?

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

Link to comment
Share on other sites

Dale :

Thanks~

for example :

A.htm is "xxx site Join Member" , need to enter the name,phone,mail,photo,...... etc.

while click the button " Upload Your Pic" than open B.htm (the button is call a javascript function )

i can choice my photo file ( like "c:\image\123.jpg" ) from my computer ~ and click the button " OK "

b.htm will close by itself and A.htm will show the pic what u upload.

so...

if i want to set value in the B.htm ( "c:\image\123.jpg" -- form object input type) , and press " OK " how can i to do it ?

i don`t no how to set the B.htm to be my target

$a = _IEcreate("A.htm") <---- $a is the target.

$b = _IEAction ($b3,"click") <---- $b3 is the button "Upload Your Pic" target... but when the B.htm open, what $ is the B.htm target ?

i need to get the Target and to write the script...

how to dim a var for B.htm ?

sorry... my English is too bad....

Edited by abiteric

My website about Y-mate 網拍輔助程式 : http://www.L2play.comMy Blog ( Tranditional Chinese ) 開發小組的部落格 : http://tw.myblog.yahoo.com/play19990909

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...