Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Fill form data in another frame

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,59940
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Fill form data in another frame
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Fill form data in another frame - 5/7/2008 8:45:15 AM   
  SConnell

 

Posts: 2
Score: 0
Joined: 5/7/2008
Status: offline
Hello All.

Im new to VBScript but have been using VB for a while for basic things, and am in need of scripting something that can fill form data in for me.

My plan is to have an iframe on my page with an external website loaded in there (say ebay for example) and be able to click a button to fill in any form details.


Something like:
Sub cmdtest_onclick
iframe.formname.txtusername.value = "Test Username"
End Sub

If i do this with the frame source as an external website (Changing the form and text ID as relevant) it comes up with an error. But if I make a test page to load as the frame source, then it works fine.

Any help with this would be highly appreciated,

Many thanks
 
 
Post #: 1
 
 RE: Fill form data in another frame - 5/8/2008 5:45:05 AM   
  Rischip


Posts: 341
Score: 2
Joined: 3/26/2007
Status: online
Well, funny, that's called cross domain scripting. The browser frowns upon it. 

_____________________________

Rischip
Author of - The Grim Linker

(in reply to SConnell)
 
 
Post #: 2
 
 RE: Fill form data in another frame - 5/8/2008 9:45:29 AM   
  SConnell

 

Posts: 2
Score: 0
Joined: 5/7/2008
Status: offline
So effectively im screwed to start with? Unless I get my script hosted on the same server as the page I want to fill in?

Thanks for the reply

(in reply to SConnell)
 
 
Post #: 3
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Fill form data in another frame Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts