Webkit question
Webkit question
- Subject: Webkit question
- From: Jerrod Fowkes <email@hidden>
- Date: Mon, 25 Sep 2006 11:10:20 -0700 (PDT)
Hi,
I have the following code :
[wbvWebView setFrameLoadDelegate:self];
[wbvWebView setUIDelegate:self];
[[wbvWebView mainFrame] loadHTMLString: @"Some html" baseURL: nil];
scriptObject = [wbvWebView windowScriptObject];
[scriptObject setValue: self forKey: @"program"];
-(void)eatAtJoes //also declared in my .h file.
{
NSLog(@"This is a test");
}
This code happens to be in my main application controller. What I am trying to do, is load some dynamic html that has _javascript in it. In my HTML I have an anchor tag that calls a _javascript function. Inside that function I have code that looks like this :
program.eatAtJoes();
I load all of my dynamic HTML in "loadHTMLString". For some reason I couldn't paste it into an e-mail. It wouldn't show up.
And I want that code (_javascript) to call back into my main application contoller into my function "-(void)eatAtJoes" Well currently my _javascript isn't doing that.
What am I doing wrong here? -Jerrod Fowkes
---------------------------------
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1ยข/min.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden