Welcome visitor
* Login
* Register
It is currently July 20th, 2019, 5:06 am
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » HTML



Post new topic Reply to topic  [ 2 posts ] 
Author Message
  How to fill a form inside an iframe?
PostPosted: September 14th, 2009, 9:00 pm 

Posts: 39
Im trying to fill a form that is inside an iframe using a textarea on my parent window. The frame is called "framito" and i set it as the base target. This is the javascript im using but it says that form is not defined.
Quote:
Error: form is not defined
Line: 9

<script>
function fillform(str){
form.field1.value=str;}
</script>

Do I need to do something else to refer the target of the data to the iframe? isnt the base target good for this?


Top
 Profile  
 
  Re: How to fill a form inside an iframe?
PostPosted: September 14th, 2009, 11:17 pm 
User avatar

Posts: 79
base target is to set the target of the links that are opened from the parent window.

to link the framed form with your textarea add the framito.document on your syntax.
<script>
function fillform(str){
framito.document.form.field1.value=str;}
</script>


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

FORUMS » Client Side » HTML


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron