Re: [iPhone] Webview stringByEvaluatingJavaScriptFromString

2009-08-06 Thread Pavel Dudrenov
I dunno about that. Ether give the element an id and use getElementById, or use getElementsByName(theName)[0]. On Thu, Aug 6, 2009 at 8:20 AM, Development wrote: > It's always the smallest mistake that can frustrate a person no end. > Several people caught what I did not. getElementByName was wha

Re: [iPhone] Webview stringByEvaluatingJavaScriptFromString

2009-08-06 Thread Development
It's always the smallest mistake that can frustrate a person no end. Several people caught what I did not. getElementByName was what I wanted... getElementsByName is what I typed. Thank you every one for the catch and I'm sorry for using up bandwidth over a typo. On Aug 5, 2009, at 8:44 PM,

Re: [iPhone] Webview stringByEvaluatingJavaScriptFromString

2009-08-05 Thread Pavel Dudrenov
getElementsByName, as the name applies, returns a collection. On Wed, Aug 5, 2009 at 12:08 PM, Development 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

Re: [iPhone] Webview stringByEvaluatingJavaScriptFromString

2009-08-05 Thread Andrew Farmer
On 5 Aug 2009, at 12:08, Development wrote: NSString * aString =[theWebView stringByEvaluatingJavaScriptFromString :@"document.getElementsByName(\"encrypted\").value"]; This Javascript will never work correctly, no matter whether it's from HTML or from ObjC. getElementsByName returns a col

Re: [iPhone] Webview stringByEvaluatingJavaScriptFromString

2009-08-05 Thread glenn andreas
On Aug 5, 2009, at 2:08 PM, Development 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 :@"d

Re: [iPhone] Webview stringByEvaluatingJavaScriptFromString

2009-08-05 Thread Development
The html is pretty straight forward. It is created with php and is as follows when you view source from the page: it is also within a form. the UIWebView is built in IB and linked up. It loads correctly and the 'real' page passes it's variables along to the next correctly. The webview e

Re: [iPhone] Webview stringByEvaluatingJavaScriptFromString

2009-08-05 Thread Fritz Anderson
On 5 Aug 2009, at 2:08 PM, Development 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 :@"docum

[iPhone] Webview stringByEvaluatingJavaScriptFromString

2009-08-05 Thread Development
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"];