Groups
Groups
Sign in
Groups
Groups
phonegap
Conversations
About
Send feedback
Help
Problem with writeJavascript or stringByEvaluatingJavaScriptFromString
77 views
Skip to first unread message
barulho77
unread,
Nov 14, 2011, 11:23:27 AM
11/14/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to phonegap
Friends,
I have the problem below for several days.
//My initial class (MyClass) call other view
-(void)print:(NSMutableArray*)arguments withDict:
(NSMutableDictionary*)options
{
mapViewController = [[MapViewController alloc]
initWithNibName:@"MapView" bundle:nil];
[window addSubview:mapViewController.view];
[window makeKeyAndVisible];
[[super appViewController ]
presentModalViewController:mapViewController animated:YES];
}
//In the same Class I call a javascript
-(void)executeScript {
NSLog(@"I received this message");
[super writeJavascript:@"alert('message')"]; //not work
[super.webView
stringByEvaluatingJavaScriptFromString:@"alert('message')"]; //not
work
}
How to get work executeScript calling from my other view/class
(MapViewController)?
I tried many things like this:
[[[MyClass alloc] init] executeScript];
But only NSLog works.
Can anyone help me?
barulho77
unread,
Nov 14, 2011, 3:38:11 PM
11/14/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to phonegap
Friends,
I have great urgency in solving this problem?
Someone available to PAID SUPPORT now?
Download the sample project at:
http://www.rodriguesdesign.com.br/sample.zip
I just need to run javascript.
Thanks in advance.
Reply all
Reply to author
Forward
0 new messages