• 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
Webkit question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Webkit question
      • From: Jim Correia <email@hidden>
  • Prev by Date: Re: Application design & menu question
  • Next by Date: Filling with a pattern *and* a color?
  • Previous by thread: Re: Application design & menu question
  • Next by thread: Re: Webkit question
  • Index(es):
    • Date
    • Thread