• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Accessing javaScript in iframes via Objective-C
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Accessing javaScript in iframes via Objective-C


  • Subject: Re: Accessing javaScript in iframes via Objective-C
  • From: Dale Jensen <email@hidden>
  • Date: Mon, 30 Jul 2007 19:20:05 -0500

On Jul 30, 2007, at 7:16 PM, Andrew Farmer wrote:

Is it possible to make a call to javascript that's in an iframe? If so, what do I need to change in my code?

My first guess would be that you'll have to dig through the DOM structure, find the iframe object, get its associated WebFrame, and work with that.

Thanks. I have tried that, getting the proper WebFrame with findFrameNamed: but the webView of that frame is the main page, and windowScriptObject doesn't work from a WebFrame, only a WebView.



dale

--
a.d. jensen -- email@hidden   http://homepage.mac.com/adjensen/

musical blog:                                   dining blog:
   http://kandsmil.blogspot.com       http://gcdining.blogspot.com



Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Accessing javaScript in iframes via Objective-C (From: Dale Jensen <email@hidden>)
 >Re: Accessing javaScript in iframes via Objective-C (From: Andrew Farmer <email@hidden>)

  • Prev by Date: Re: Accessing javaScript in iframes via Objective-C
  • Next by Date: Re: _NSFastFillAllLayoutHolesUpToGlyphIndex crash in NSLayoutManager
  • Previous by thread: Re: Accessing javaScript in iframes via Objective-C
  • Next by thread: Correctly implementing page up/down, home and end for custom views?
  • Index(es):
    • Date
    • Thread