This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getting iframe elements

 
aleah de guzman
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have 2 forms, 1 of which is an iframe. i want to get the elements of my iframe to be passed to my other form. before i was doing window.frames[0].document.all.param.value and it was working but when i changed deployed my project in another pc im getting null, im not sure if this is a dependency issue.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
document.all is very outdated

parent.frameName.formName.ElementName.value

document.getElementById("iframeId").formName.elemtnName.value

Eric
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic