• 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: [iPhone] Webview stringByEvaluatingJavaScriptFromString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [iPhone] Webview stringByEvaluatingJavaScriptFromString


  • Subject: Re: [iPhone] Webview stringByEvaluatingJavaScriptFromString
  • From: Pavel Dudrenov <email@hidden>
  • Date: Wed, 5 Aug 2009 14:58:50 -0700

getElementsByName, as the name applies, returns a collection.

On Wed, Aug 5, 2009 at 12:08 PM, Development <email@hidden>wrote:

>
> I'm trying to get a value for a specific variable to tell if a transaction
> is complete on iphone. In the didFinishLoading delegate method I have placed
> this code:
>
> NSString * aString =[theWebView stringByEvaluatingJavaScriptFromString:@
> "document.getElementsByName(\"encrypted\").value"];
>        NSLog(@"AString: %@",aString);
>
> The string is empty. I get nothing although I clearly have a field variable
> named encrypted in the html source of the page it is loading, and that field
> has a value because I have assigned it the value "Success!"
> So I am concerned... What am I doing wrong?
>
> I've spent half the morning googling examples, and looking on the developer
> site and all the examples and information tell me that my code should be
> good but it isn't.
> _______________________________________________
>
> 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
>
_______________________________________________

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: 
 >[iPhone] Webview stringByEvaluatingJavaScriptFromString (From: Development <email@hidden>)

  • Prev by Date: NSOutlineView Not Updating After Adding Items
  • Next by Date: Mac OS X 10.5.8 update breaks tokenize function in -[NSXMLNode objectsForXQuery:error:]
  • Previous by thread: Re: [iPhone] Webview stringByEvaluatingJavaScriptFromString
  • Next by thread: How do I compute the screen width of a particular font?
  • Index(es):
    • Date
    • Thread