• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

can't access iframe variable but can call iframe method

 
Matt Kidd
Ranch Hand
Posts: 267
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to access a variable inside an iframe I've set up to make a web service call. The page it loads is just a basic html page that calls a local webservice which in turn calls the actual websevice I want to call.

This works just fine when I try to access a function:



However any attempt to access a variable in iFrame2 does not work. I get no errors though...it just sort of sits there:



This is the webpage inside the iframe itself:





Any ideas?
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should not have to specify contentWindow

Eric
 
Matt Kidd
Ranch Hand
Posts: 267
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eric Pascarello wrote:You should not have to specify contentWindow

Eric


I removed it and I still get that the variable is undefined.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic