home *** CD-ROM | disk | FTP | other *** search
/ PC User 2003 July / Disc 1 / PCU0703CD1.iso / software / online / files / imacros.exe / DEMO-NEWWINDOW.IIM < prev    next >
Encoding:
Text File  |  2003-01-29  |  977 b   |  20 lines

  1. VERSION BUILD=3600128  
  2. 'Demonstrate the GOTOPUP / LEAVEPOP and TRAPPOPUP commands
  3. 'for handling popups and new browser windows.    
  4. URL GOTO=http://www.iopus.com/iim/demo/new-window.htm     
  5. SIZE X=664 Y=609    
  6. GOTOPOPUP  
  7. TAG POS=1 TYPE=FONT ATTR=TXT:Open<SP>new<SP>window<SP>-<SP>Javascript<SP>method  
  8. 'This next command run *in* the popup! 
  9. WAIT SECONDS=2
  10. TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:DataEntry ATTR=NAME:FNAME CONTENT=1 
  11. TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:DataEntry ATTR=NAME:SendButton&&VALUE:Click<SP>to<SP>submit<SP>data    
  12. LEAVEPOPUP 
  13. 'Ok, we are back to the main page
  14. TAG POS=1 TYPE=A ATTR=TXT:Open<SP>new<SP>window<SP>-<SP>HTML<SP>method 
  15. 'Make the popup page the new main page  
  16. TRAPPOPUP      
  17. TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:DataEntry ATTR=NAME:FNAME CONTENT=2 
  18. TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:DataEntry ATTR=NAME:SendButton&&VALUE:Click<SP>to<SP>submit<SP>data  
  19. URL GOTO=http://www.iopus.com/iim/messages/done.htm     
  20.