2 Replies - 1677 Views - Last Post: 05 September 2011 - 09:23 AM

#1 grasmanek94   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 48
  • Joined: 11-July 11

Problem: JavaScript won't fill in my form in IFRAME

Posted 05 September 2011 - 09:14 AM

Hello everybody!

I'm trying to create an automated page to log me into something, so I don't have to repeat annoying procedures. But somehow Javascript won't do something I want.
I want it to fill in the form and submit it, I am stuck at filling in the form.

This code Should work because I found it somewhere on internet ( http://www.webdevelo...ad.php?t=134074 )

<input type="button" value="test" onclick="addtext();">
<iframe src="http://cup.carolus.nl" id="RSIFrame" width="100%" height="100%"></iframe>
<script language="javascript" type="text/javascript">
var eyeframe; 
var eyeframedoc; 
function addtext() {
	eyeframedoc.getElementbyId('_nameTextBox').value="anything"; 
}
window.onload = fuction() {

            eyeframe = document.getElementById('RSIFrame'); 
                                     
            eyeframedoc = eyeframe.contentWindow ? eyeframe.contentwindow.document: eyeframe.contentDocument; 
             
            eyeframedoc.getElementbyId('_nameTextBox').value="anything"; 
}
</script>



Yes I know I sux at Javascript but thanks for your help and efforts!

Is This A Good Question/Topic? 0
  • +

Replies To: Problem: JavaScript won't fill in my form in IFRAME

#2 Gavisann   User is offline

  • D.I.C Regular
  • member icon

Reputation: 103
  • View blog
  • Posts: 382
  • Joined: 01-July 11

Re: Problem: JavaScript won't fill in my form in IFRAME

Posted 05 September 2011 - 09:22 AM

Just because you C&P from the internet, doesn't mean it is going to work.
Was This Post Helpful? 0
  • +
  • -

#3 grasmanek94   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 48
  • Joined: 11-July 11

Re: Problem: JavaScript won't fill in my form in IFRAME

Posted 05 September 2011 - 09:23 AM

View PostGavisann, on 05 September 2011 - 09:22 AM, said:

Just because you C&P from the internet, doesn't mean it is going to work.

If I need something and it's not in the languages that I can script, nor do I have any spare time to learn any new languages then I understand nobody is going to help me out here?
Anybody with some usefull answers?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1