• 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: WebKit: Inserting Values in form?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WebKit: Inserting Values in form?


  • Subject: Re: WebKit: Inserting Values in form?
  • From: Jonathan Wight <email@hidden>
  • Date: Fri, 9 Jan 2004 23:39:04 -0600

If you control the content and know the id/name of your form elements
then you can use -(NSString
*)stringByEvaluatingJavaScriptFromString:(NSString *)script; to execute
JavaScript in your HTML to set the content of the form.

If you don't own the HTML then you're probably out of luck. Actually
are you sure that WebKit doesn't just work like Safari anyway in this
respect?

Jon.

On Jan 09, 2004, at 17:48, Laurent Daudelin wrote:

> What is the best, easiest way to insert a value in an input field in a
> static HTML document I load in my app? A little bit like Safari when it
> inserts your user ID and password in some form?
>
> Thanks!
>
> -Laurent.
> --
> =======================================================================
> =====
> Laurent Daudelin AIM/iChat: LaurentDaudelin
> <http://nemesys.dyndns.org>
> Logiciels Nemesys Software
> mailto:email@hidden
>
> careware /keir'weir/ n.: A variety of shareware for which either the
> author
> suggests that some payment be made to a nominated charity or a levy
> directed
> to charity is included on top of the distribution charge. Syn.
> charityware;
> compare crippleware, sense 2.
> _______________________________________________
> cocoa-dev mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
> Do not post admin requests to the list. They will be ignored.

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: WebKit: Inserting Values in form?
      • From: Laurent Daudelin <email@hidden>
References: 
 >WebKit: Inserting Values in form? (From: Laurent Daudelin <email@hidden>)

  • Prev by Date: Re: NSTableHeaderView and NSTableView problem...
  • Next by Date: Main Event Loop.
  • Previous by thread: WebKit: Inserting Values in form?
  • Next by thread: Re: WebKit: Inserting Values in form?
  • Index(es):
    • Date
    • Thread