Re: [webkit-dev] XML Events in WebKit

2007-12-07 Thread Raj Kiran Talusani
Guys,

thanks very much for all the comments. let me be more specific about my
problem.

i want to add multimodal capabilities to the webkit. I want to trigger (or
communicate with) an external app based on events happening in the xhtml
document. Also i want to insert custom events into the XHTML context based
on results from the external process. Is there any way i can do this with
current version of webkit. any pointers on what needs to be done?

Raj

On Dec 8, 2007 5:44 AM, Ian Hickson <[EMAIL PROTECTED]> wrote:

> On Fri, 7 Dec 2007, Antoine Quint wrote:
> >
> > XML Events basically come in handy when you want a generic markup-based
> way to
> > add event listeners for custom events. For instance, if XBL was
> implemented in
> > WebKit, and I had my own custom magic UI control implemented with some
> custom
> > XML element, [...]
>
> ...then you shouldn't be sending it over the wire, so it shouldn't
> matter... (You shouldn't send custom, aka proprietary, vocabularies over
> the wire, since you have no way to guarentee the end user can handle it.)
>
> --
> Ian Hickson   U+1047E)\._.,--,'``.fL
> http://ln.hixie.ch/   U+263A/,   _.. \   _\  ;`._ ,.
> Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
> ___
> webkit-dev mailing list
> webkit-dev@lists.webkit.org
> http://lists.webkit.org/mailman/listinfo/webkit-dev
>
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] XML Events in WebKit

2007-12-07 Thread Ian Hickson
On Fri, 7 Dec 2007, Antoine Quint wrote:
> 
> XML Events basically come in handy when you want a generic markup-based way to
> add event listeners for custom events. For instance, if XBL was implemented in
> WebKit, and I had my own custom magic UI control implemented with some custom
> XML element, [...]

...then you shouldn't be sending it over the wire, so it shouldn't 
matter... (You shouldn't send custom, aka proprietary, vocabularies over 
the wire, since you have no way to guarentee the end user can handle it.)

-- 
Ian Hickson   U+1047E)\._.,--,'``.fL
http://ln.hixie.ch/   U+263A/,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] XML Events in WebKit

2007-12-07 Thread Maciej Stachowiak


On Dec 7, 2007, at 8:53 AM, Antoine Quint wrote:


Hi,

On 7 déc. 07, at 17:38, David Hyatt wrote:


Yeah, they don't seem particularly compelling to me either.

If someone does implement these, they should put the implementation  
behind an #ifdef so that those projects that aren't interested in  
them can turn them off.


XML Events basically come in handy when you want a generic markup- 
based way to add event listeners for custom events. For instance, if  
XBL was implemented in WebKit, and I had my own custom magic UI  
control implemented with some custom XML element, I'll likely want  
to fire custom DOM Events, and XML Events would be a neat way for  
users of my widget to listen to some of these custom events without  
resorting to a purely script-based approach using addEventListener().


XML Events doesn't seem terribly compelling to me, because event  
handling about running script, so avoiding use of script to define  
event handlers isn't hugely compelling. And on the other hand, it's  
much more verbose for very simple cases than "onkeypress"/"onclick"/ 
etc style event listener attributes.


Furthermore, the current trend among web developers is to attach all  
event handlers separately in script ("unobstrusive JavaScript"), so  
XML Events seems to be going in the wrong direction by putting more  
event listeners back in the markup.


It's a lot of ifs, but if WebKit ever supports XBL and custom DOM  
Events, then it'd be worth re-thinking the usefulness of XML Events  
in WebKit.



I think XBL bindings could support onwhatever style attributes if they  
want to make simple cases easy for their custom events.


Regards,
Maciej


___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] -[WebFrameLoadDelegate didReceiveIcon:forFrame:] never called?

2007-12-07 Thread Todd Ditchendorf
In case anyone's curious (or googling in the future), Brady discovered  
the reason for this issue and a temporary solution. see comments in  
this bug:


http://bugs.webkit.org/show_bug.cgi?id=16296

Todd Ditchendorf


On Dec 4, 2007, at 2:09 PM, Todd Ditchendorf wrote:




Sent from Todd's iPhone

On Dec 4, 2007, at 13:52, Brady Eidson <[EMAIL PROTECTED]> wrote:


Todd,

I tried to run your favicon test, but it doesn't seem to be working:
2007-12-04 13:45:56.517 WebKitFaviconTest[43824:813] init
2007-12-04 13:45:56.521 WebKitFaviconTest[43824:813] *** - 
[NSKeyedUnarchiver decodeObjectForKey:]: cannot decode object of  
class (WebView)


Hi Brady, thanks for checking... Apparently my proj is not finding  
the webkit framework on ur system... Would u mind relinking ur local  
webkit framework in the Xcode ui and trying again?


I'm very curious to see if others have this issue. The test case is  
quite simple.


I checked a few bugs in radar and found this issue had been  
reported awhile ago but closed as works.


Hmmm my search of bugzilla for didReceiveIcon returned nothing, but  
I saw several mentions of the issue in a google search...




Using a debug build of WebKit, I just set a breakpoint in  
_dispatchDidReceiveIconFromWebFrame in WebView.mm  (which is where  
the delegate call is sent from) and visited a site I knew I didn't  
have the icon for, and the breakpoint was hit immediately.


 Brady

On Dec 4, 2007, at 1:36 PM, Todd Ditchendorf wrote:


Any advice?





http://bugs.webkit.org/show_bug.cgi?id=16296


Any WebKit ninjas out there know how to get this method to be  
called:


-[WebFrameLoadDelegate didReceiveIcon:forFrame:]

in my frame load delegate on 10.5.1 (and maybe other systems  
too)??? It never seems to be called. More details about my  
problem in the bug link above.



I've tried running the app against WebKit.framework from WebKit  
nightly, but no luck. I've got a simple test case that shows the  
issue here:


http://ditchnet.org/WebKitFaviconTest.zip


thanks,

Todd Ditchendorf

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev



___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev


___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] XML Events in WebKit

2007-12-07 Thread Antoine Quint

Hi,

On 7 déc. 07, at 17:38, David Hyatt wrote:


Yeah, they don't seem particularly compelling to me either.

If someone does implement these, they should put the implementation  
behind an #ifdef so that those projects that aren't interested in  
them can turn them off.


XML Events basically come in handy when you want a generic markup- 
based way to add event listeners for custom events. For instance, if  
XBL was implemented in WebKit, and I had my own custom magic UI  
control implemented with some custom XML element, I'll likely want to  
fire custom DOM Events, and XML Events would be a neat way for users  
of my widget to listen to some of these custom events without  
resorting to a purely script-based approach using addEventListener().


It's a lot of ifs, but if WebKit ever supports XBL and custom DOM  
Events, then it'd be worth re-thinking the usefulness of XML Events in  
WebKit.


Antoine
--
Blog — http://the.fuchsia-design.com



___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] XML Events in WebKit

2007-12-07 Thread David Hyatt

Yeah, they don't seem particularly compelling to me either.

If someone does implement these, they should put the implementation  
behind an #ifdef so that those projects that aren't interested in them  
can turn them off.


dave

On Dec 6, 2007, at 11:48 PM, Eric Seidel wrote:

I've not yet seen a compelling use-case for XML events.  But perhaps  
I just haven't looked hard enough.


-eric

On Dec 6, 2007, at 10:50 PM, Raj Kiran Talusani wrote:


Hello all,

Does webkit support the XML Events specification .

To be specific, some thing like the following is valid for WebKit?



thanks in advance

Raj
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev


___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev


___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev