Re: [uf-discuss] Microformats UI in Firefox 3

2007-08-30 Thread Martin McEvoy
Hello all 

The First thing every one notices when you start Firefox for the first
time Is how Simple it is to use. Operator works nicely with Firefox
because it too is simple and easy to use, especially when you use it as
an icon in the location bar, you dont even know its there until you
visit a page embedded with Microformats. Operators only problem is (as
was mentioned in an earlier post) when you visit pages with lots of
hcard's and or vevent's you dont really know who is who or what is
what... its like trawling through names in a telephone book

So keep it simple guys maybe all you need to do is create some click
actions on email links, and leave all the decisions up to the USER.

example here
http://www.flickr.com/photos/weborganics/1279305707/

Thanks

Martin

On Tue, 2007-08-28 at 09:00 -0700, Alex Faaborg wrote:
> My apologies if I'm reopening a long closed debate, I'll be sure to  
> review the wiki page.
> 
> > Side A: Publishers should be able to specify UI elements for their
> > Microformatted content in their HTML.
> >
> > Side B: The browser should be solely responsible for injecting UI into
> > the page
> 
> I should note that people inside Mozilla have argued these two sides  
> as well.  I'm personally in favor of A, or B if it is represented as  
> a modal overlay.
> 
> > It is important that the Firefox developers not only think of
> > Microformats, but eRDF, RDFa, and other semantic markup technologies
> > that are coming down the pipeline.
> 
> Yeah, it would be great if whatever solution we came up with scaled  
> across different semantic markup technologies.  The latest version of  
> Operator now supports eRDF and RDFa.
> 
> -Alex
> 
> 
> On Aug 28, 2007, at 8:09 AM, Manu Sporny wrote:
> 
> > Alex Faaborg wrote:
> >> Yes, while previous Firefox designs have focused on the browser
> >> injecting UI into the page, this discussion is about how the content
> >> creator should provide links and buttons for acting on microformatted
> >> content.
> >
> > I'm probably being a bit dense, but it looks like we're entering  
> > into a
> > philosophical debate. Without taking sides, it looks like the
> > philosophical rift is this:
> >
> > Side A: Publishers should be able to specify UI elements for their
> > Microformatted content in their HTML.
> >
> > Side B: The browser should be solely responsible for injecting UI into
> > the page?
> >
> > This debate has been tracked on the wiki:
> >
> > http://microformats.org/wiki/audio-info- 
> > issues#Historical:_Graphic_buttons_in_rel-patterns
> >
> > The current resolution is to leave implementation for user actions  
> > up to
> > the browser and uF plug-ins. Without going into the nasty details,  
> > which
> > are fully documented on the wiki, there is opposition to directly
> > specifying UI through uF markup. Microformats are about data, not UI.
> >
> > That being said, if there is a desire to add generic UI actions to any
> > sort of semantic data (keep in mind eRDF and RDFa), the one idea that
> > seems to be most compatible with "Microformats are about data" but  
> > able
> > to give the publishers of any semantic data some control over the  
> > UI is
> > the "uf:// protocol idea".
> >
> > Perhaps a generic set of "actions" that are defined by all semantic  
> > data
> > communities (uF, eRDF, RDFa, etc.). The assumption is that some  
> > sort of
> > ID mechanism is utilized. So for data like this:
> >
> > ...
> >
> > Something like the following:
> >
> > Add to address  
> > book
> > E-mail Alex
> >
> > Here are some other examples:
> >
> > action://map/find/eiffel-tower
> > action://
> >
> > The above mechanism would allow people to specify default behaviors  
> > for
> > actions. Some could specify that "action://map/" is handled by Yahoo
> > Maps, while others might choose Google Maps or Microsoft Streets  
> > and Trips.
> >
> > It is important that the Firefox developers not only think of
> > Microformats, but eRDF, RDFa, and other semantic markup technologies
> > that are coming down the pipeline.
> >
> > -- manu
> > ___
> > microformats-discuss mailing list
> > microformats-discuss@microformats.org
> > http://microformats.org/mailman/listinfo/microformats-discuss
> 
> ___
> microformats-discuss mailing list
> microformats-discuss@microformats.org
> http://microformats.org/mailman/listinfo/microformats-discuss

___
microformats-discuss mailing list
microformats-discuss@microformats.org
http://microformats.org/mailman/listinfo/microformats-discuss


Re: [uf-discuss] Microformats UI in Firefox 3

2007-08-28 Thread Alex Faaborg
My apologies if I'm reopening a long closed debate, I'll be sure to  
review the wiki page.



Side A: Publishers should be able to specify UI elements for their
Microformatted content in their HTML.

Side B: The browser should be solely responsible for injecting UI into
the page


I should note that people inside Mozilla have argued these two sides  
as well.  I'm personally in favor of A, or B if it is represented as  
a modal overlay.



It is important that the Firefox developers not only think of
Microformats, but eRDF, RDFa, and other semantic markup technologies
that are coming down the pipeline.


Yeah, it would be great if whatever solution we came up with scaled  
across different semantic markup technologies.  The latest version of  
Operator now supports eRDF and RDFa.


-Alex


On Aug 28, 2007, at 8:09 AM, Manu Sporny wrote:


Alex Faaborg wrote:

Yes, while previous Firefox designs have focused on the browser
injecting UI into the page, this discussion is about how the content
creator should provide links and buttons for acting on microformatted
content.


I'm probably being a bit dense, but it looks like we're entering  
into a

philosophical debate. Without taking sides, it looks like the
philosophical rift is this:

Side A: Publishers should be able to specify UI elements for their
Microformatted content in their HTML.

Side B: The browser should be solely responsible for injecting UI into
the page?

This debate has been tracked on the wiki:

http://microformats.org/wiki/audio-info- 
issues#Historical:_Graphic_buttons_in_rel-patterns


The current resolution is to leave implementation for user actions  
up to
the browser and uF plug-ins. Without going into the nasty details,  
which

are fully documented on the wiki, there is opposition to directly
specifying UI through uF markup. Microformats are about data, not UI.

That being said, if there is a desire to add generic UI actions to any
sort of semantic data (keep in mind eRDF and RDFa), the one idea that
seems to be most compatible with "Microformats are about data" but  
able
to give the publishers of any semantic data some control over the  
UI is

the "uf:// protocol idea".

Perhaps a generic set of "actions" that are defined by all semantic  
data
communities (uF, eRDF, RDFa, etc.). The assumption is that some  
sort of

ID mechanism is utilized. So for data like this:

...

Something like the following:

Add to address  
book

E-mail Alex

Here are some other examples:

action://map/find/eiffel-tower
action://

The above mechanism would allow people to specify default behaviors  
for

actions. Some could specify that "action://map/" is handled by Yahoo
Maps, while others might choose Google Maps or Microsoft Streets  
and Trips.


It is important that the Firefox developers not only think of
Microformats, but eRDF, RDFa, and other semantic markup technologies
that are coming down the pipeline.

-- manu
___
microformats-discuss mailing list
microformats-discuss@microformats.org
http://microformats.org/mailman/listinfo/microformats-discuss


___
microformats-discuss mailing list
microformats-discuss@microformats.org
http://microformats.org/mailman/listinfo/microformats-discuss


Re: [uf-discuss] Microformats UI in Firefox 3

2007-08-28 Thread Manu Sporny
Manu Sporny wrote:
> Here are some other examples:
> 
> action://map/find/eiffel-tower
> action://

Sorry, here are the other examples:

action://location/find/eiffel-tower
action://license/fulltext/Harry-Potter-and-the-Order-of-the-Phoenix
action://feed/subscribe/cool-hatom-feed
action://audio/play/haudio-punk-rock-song
action://resume/findjob/my-hresume

-- manu

___
microformats-discuss mailing list
microformats-discuss@microformats.org
http://microformats.org/mailman/listinfo/microformats-discuss


Re: [uf-discuss] Microformats UI in Firefox 3

2007-08-28 Thread Pelle W

This idea is really good, the best possible I think.

If there is a need for interaction on a website then the options are 
limited to the browser UI and the script languages available, right?
And this way you're suggesting the user will have the possibility of 
adding their own interaction with javascript and the user will have a 
fallback on the browser UI.


This way there are the fewest possible restrictions for the designers 
letting them choose themselves how they would like to solve this problem.


The functionality you previosuly suggested can for example easily be 
added by a third party javascript to make it easier for non javascript 
gurus to add actions to their sites, but that should really be the job 
of such javascripts like it's javascripts like Lightbox job to show 
galleries in a fashionable way. The question about any class names would 
also be up to such javascripts.


/ Pelle W


Alex Faaborg wrote:
Perhaps instead of new classes and protocols, we could just do this 
completely in javascript.  Here is a general example, probably all the 
function names would end up being different:



 Alex Faaborg
 Mozilla
 
  1981 Landings Dr. Building S
  Mountain View
,
  CA
,
  94043
  
 if (navigator.microformatAware("hCard")){
document.write("onclick='navigator.sendToAddressBook('hcard-Alex-Faaborg')'>Add to Address Book");
  document.write(", ")
document.write("onclick='navigator.sendToMap('hcard-Alex-Faaborg')'>Send to Map");
  }
  
 
It seems you'll still need a way for the browser to inject UI for 
actions the content creator didn't foresee.
We can include these actions on context menus, and in the browser UI 
(similar to Operator's interface).  However, I'm not sure content 
creators would be too happy with Firefox modifying their pages by 
literally injecting UI.


-Alex

___
microformats-discuss mailing list
microformats-discuss@microformats.org
http://microformats.org/mailman/listinfo/microformats-discuss


Re: [uf-discuss] Microformats UI in Firefox 3

Alex Faaborg wrote:
> Yes, while previous Firefox designs have focused on the browser
> injecting UI into the page, this discussion is about how the content
> creator should provide links and buttons for acting on microformatted
> content.

I'm probably being a bit dense, but it looks like we're entering into a
philosophical debate. Without taking sides, it looks like the
philosophical rift is this:

Side A: Publishers should be able to specify UI elements for their
Microformatted content in their HTML.

Side B: The browser should be solely responsible for injecting UI into
the page?

This debate has been tracked on the wiki:

http://microformats.org/wiki/audio-info-issues#Historical:_Graphic_buttons_in_rel-patterns

The current resolution is to leave implementation for user actions up to
the browser and uF plug-ins. Without going into the nasty details, which
are fully documented on the wiki, there is opposition to directly
specifying UI through uF markup. Microformats are about data, not UI.

That being said, if there is a desire to add generic UI actions to any
sort of semantic data (keep in mind eRDF and RDFa), the one idea that
seems to be most compatible with "Microformats are about data" but able
to give the publishers of any semantic data some control over the UI is
the "uf:// protocol idea".

Perhaps a generic set of "actions" that are defined by all semantic data
communities (uF, eRDF, RDFa, etc.). The assumption is that some sort of
ID mechanism is utilized. So for data like this:

...

Something like the following:

Add to address book
E-mail Alex

Here are some other examples:

action://map/find/eiffel-tower
action://

The above mechanism would allow people to specify default behaviors for
actions. Some could specify that "action://map/" is handled by Yahoo
Maps, while others might choose Google Maps or Microsoft Streets and Trips.

It is important that the Firefox developers not only think of
Microformats, but eRDF, RDFa, and other semantic markup technologies
that are coming down the pipeline.

-- manu
___
microformats-discuss mailing list
microformats-discuss@microformats.org
http://microformats.org/mailman/listinfo/microformats-discuss


Re: [uf-discuss] Microformats UI in Firefox 3

I don't know if this has been discussed before... but what about
showing a bar similar to the popup-blocker one and say there is
microformats on the page with a button to "Reveal". And _then_ inject
the extra code?


On 8/28/07, Alex Faaborg <[EMAIL PROTECTED]> wrote:
> Perhaps instead of new classes and protocols, we could just do this
> completely in javascript.  Here is a general example, probably all
> the function names would end up being different:
>
> 
>   Alex Faaborg
>   Mozilla
>   
>1981 Landings Dr. Building S
>Mountain View
> ,
>CA
> ,
>94043
>
> if (navigator.microformatAware("hCard")){
> document.write("Add to Address Book");
> document.write(", ")
> document.write(" Alex-Faaborg')'>Send to Map");
> }
>
>   
>
> > It seems you'll still need a way for the browser to inject UI for
> > actions the content creator didn't foresee.
>
> We can include these actions on context menus, and in the browser UI
> (similar to Operator's interface).  However, I'm not sure content
> creators would be too happy with Firefox modifying their pages by
> literally injecting UI.
>
> -Alex
>
>
> On Aug 28, 2007, at 6:37 AM, Scott Reynen wrote:
>
> > On Aug 28, 2007, at 6:33 AM, Alex Faaborg wrote:
> >
> >> Yes, while previous Firefox designs have focused on the browser
> >> injecting UI into the page, this discussion is about how the
> >> content creator should provide links and buttons for acting on
> >> microformatted content.
> >
> > It seems you'll still need a way for the browser to inject UI for
> > actions the content creator didn't foresee.  And for that you'll
> > need to know 1) whether a given action is already labeled by the
> > content creator, 2) where to put it if it's not, and 3) what to do
> > with actions the content creator labels but Firefox doesn't
> > understand.  For #1, each action will need a unique identifier.
> > URLs make good unique identifiers on the web, and could point to
> > somewhere useful (#3), removing the need for hidden content.  For
> > #2, it might be useful to have something like class="put-actions-
> > here".  I'd suggest something like this:
> >
> > 
> >   http://mozilla.org/add-to-address-book/"; rel="user-
> > action">Add to Address Book
> >   http://random-website.org/crazy-unknown-action/";
> > rel="user-action">Do Something Crazy
> > 
> >
> > So if Firefox has two actions it could apply to a given hCard, it
> > could do something like this:
> >
> > 1) find where the content creator wants user actions inserted,
> > ul.user-actions
> > 2) check all a[rel=user-action] for already-labeled actions
> > 3) compare those against available actions and update UI accordingly:
> > 3a) the action identified by the URL http://mozilla.org/add-to-
> > address-book/ is already added and available, so update the link to
> > point to the action rather than the identifier
> > 3b) the action identified by http://maps.google.com/firefox/add-to-
> > map/ is available but not added, so add the action with default label
> > 3c) the action identified by http://random-website.org/crazy-
> > unknown-action/ is added but not available, so offer a prompt to
> > install the new action
> >
> > Peace,
> > Scott
> >
> > ___
> > microformats-discuss mailing list
> > microformats-discuss@microformats.org
> > http://microformats.org/mailman/listinfo/microformats-discuss
>
> ___
> microformats-discuss mailing list
> microformats-discuss@microformats.org
> http://microformats.org/mailman/listinfo/microformats-discuss
>
___
microformats-discuss mailing list
microformats-discuss@microformats.org
http://microformats.org/mailman/listinfo/microformats-discuss


Re: [uf-discuss] Microformats UI in Firefox 3

Perhaps instead of new classes and protocols, we could just do this  
completely in javascript.  Here is a general example, probably all  
the function names would end up being different:



 Alex Faaborg
 Mozilla
 
  1981 Landings Dr. Building S
  Mountain View
,
  CA
,
  94043
  
if (navigator.microformatAware("hCard")){
document.write("Add to Address Book");
document.write(", ")
document.write("Alex-Faaborg')'>Send to Map");
}
  
 

It seems you'll still need a way for the browser to inject UI for  
actions the content creator didn't foresee.


We can include these actions on context menus, and in the browser UI  
(similar to Operator's interface).  However, I'm not sure content  
creators would be too happy with Firefox modifying their pages by  
literally injecting UI.


-Alex


On Aug 28, 2007, at 6:37 AM, Scott Reynen wrote:


On Aug 28, 2007, at 6:33 AM, Alex Faaborg wrote:

Yes, while previous Firefox designs have focused on the browser  
injecting UI into the page, this discussion is about how the  
content creator should provide links and buttons for acting on  
microformatted content.


It seems you'll still need a way for the browser to inject UI for  
actions the content creator didn't foresee.  And for that you'll  
need to know 1) whether a given action is already labeled by the  
content creator, 2) where to put it if it's not, and 3) what to do  
with actions the content creator labels but Firefox doesn't  
understand.  For #1, each action will need a unique identifier.   
URLs make good unique identifiers on the web, and could point to  
somewhere useful (#3), removing the need for hidden content.  For  
#2, it might be useful to have something like class="put-actions- 
here".  I'd suggest something like this:



	http://mozilla.org/add-to-address-book/"; rel="user- 
action">Add to Address Book
	http://random-website.org/crazy-unknown-action/";  
rel="user-action">Do Something Crazy



So if Firefox has two actions it could apply to a given hCard, it  
could do something like this:


1) find where the content creator wants user actions inserted,  
ul.user-actions

2) check all a[rel=user-action] for already-labeled actions
3) compare those against available actions and update UI accordingly:
3a) the action identified by the URL http://mozilla.org/add-to- 
address-book/ is already added and available, so update the link to  
point to the action rather than the identifier
3b) the action identified by http://maps.google.com/firefox/add-to- 
map/ is available but not added, so add the action with default label
3c) the action identified by http://random-website.org/crazy- 
unknown-action/ is added but not available, so offer a prompt to  
install the new action


Peace,
Scott

___
microformats-discuss mailing list
microformats-discuss@microformats.org
http://microformats.org/mailman/listinfo/microformats-discuss


___
microformats-discuss mailing list
microformats-discuss@microformats.org
http://microformats.org/mailman/listinfo/microformats-discuss


Re: [uf-discuss] Microformats UI in Firefox 3


On Aug 28, 2007, at 6:33 AM, Alex Faaborg wrote:

Yes, while previous Firefox designs have focused on the browser  
injecting UI into the page, this discussion is about how the  
content creator should provide links and buttons for acting on  
microformatted content.


It seems you'll still need a way for the browser to inject UI for  
actions the content creator didn't foresee.  And for that you'll need  
to know 1) whether a given action is already labeled by the content  
creator, 2) where to put it if it's not, and 3) what to do with  
actions the content creator labels but Firefox doesn't understand.   
For #1, each action will need a unique identifier.  URLs make good  
unique identifiers on the web, and could point to somewhere useful  
(#3), removing the need for hidden content.  For #2, it might be  
useful to have something like class="put-actions-here".  I'd suggest  
something like this:



	http://mozilla.org/add-to-address-book/"; rel="user- 
action">Add to Address Book
	http://random-website.org/crazy-unknown-action/";  
rel="user-action">Do Something Crazy



So if Firefox has two actions it could apply to a given hCard, it  
could do something like this:


1) find where the content creator wants user actions inserted,  
ul.user-actions

2) check all a[rel=user-action] for already-labeled actions
3) compare those against available actions and update UI accordingly:
3a) the action identified by the URL http://mozilla.org/add-to- 
address-book/ is already added and available, so update the link to  
point to the action rather than the identifier
3b) the action identified by http://maps.google.com/firefox/add-to- 
map/ is available but not added, so add the action with default label
3c) the action identified by http://random-website.org/crazy-unknown- 
action/ is added but not available, so offer a prompt to install the  
new action


Peace,
Scott

___
microformats-discuss mailing list
microformats-discuss@microformats.org
http://microformats.org/mailman/listinfo/microformats-discuss


Re: [uf-discuss] Microformats UI in Firefox 3

I've understood that it's inserted by the web developer to enable  
him/her to implement the Microformat-actions in their own designs  
and it's suggested that the class "user-action" should be used to  
indicate that something is meant to be a link to such an action.


Yes, while previous Firefox designs have focused on the browser  
injecting UI into the page, this discussion is about how the content  
creator should provide links and buttons for acting on microformatted  
content.


Another problem might be that the browser will be changing the  
visibility property because that disables the designer from turning  
of the action-div's visibility. For example - the designer wants  
the action-button/link to only be shown when you hover over the  
hCard it's connected to, therefor the designer hides it by setting  
the visibility property to hidden and changing it upon hover. If  
the browser then changes the visibility the design won't look like  
it was intended to.


Yeah, that's a good point.

-Alex




On Aug 28, 2007, at 4:53 AM, Pelle W wrote:


André Luís skrev:

One thing I need someone to clarify:

Is that  div.user-action inserted by the user-agent, in this case,
Firefox 3? Or do the authors have to include that code on their  
pages?


This wasn't very clear to me...

I've understood that it's inserted by the web developer to enable  
him/her to implement the Microformat-actions in their own designs  
and it's suggested that the class "user-action" should be used to  
indicate that something is meant to be a link to such an action.

On 8/28/07, Andy Mabbett <[EMAIL PROTECTED]> wrote:


In message <[EMAIL PROTECTED]>, Alex
Faaborg <[EMAIL PROTECTED]> writes


The last class is new:
 Add to Address
Book

The text "Add to Address Book" is hidden by default, unless the  
browser

(or an extension) recognizes user-action


...or unless the user agent has no CSS functionality available.

Is that "degrading gracefully"?

What I don't understand in thate example is that the "user-action"  
is applied onto a div which doesn't contain any links or buttons.  
An action is most often initiated by clicking on either a link or a  
button. Will the browser add such a control? If so the control over  
the design won't be completely handed over to the designer which it  
should be.


Another problem might be that the browser will be changing the  
visibility property because that disables the designer from turning  
of the action-div's visibility. For example - the designer wants  
the action-button/link to only be shown when you hover over the  
hCard it's connected to, therefor the designer hides it by setting  
the visibility property to hidden and changing it upon hover. If  
the browser then changes the visibility the design won't look like  
it was intended to.


If a class is to be used it should only connect an action and not  
add anything or change anything about the site.


/ Pelle W
___
microformats-discuss mailing list
microformats-discuss@microformats.org
http://microformats.org/mailman/listinfo/microformats-discuss



___
microformats-discuss mailing list
microformats-discuss@microformats.org
http://microformats.org/mailman/listinfo/microformats-discuss


Re: [uf-discuss] Microformats UI in Firefox 3


André Luís skrev:

One thing I need someone to clarify:

Is that  div.user-action inserted by the user-agent, in this case,
Firefox 3? Or do the authors have to include that code on their pages?

This wasn't very clear to me...
  
I've understood that it's inserted by the web developer to enable 
him/her to implement the Microformat-actions in their own designs and 
it's suggested that the class "user-action" should be used to indicate 
that something is meant to be a link to such an action.

On 8/28/07, Andy Mabbett <[EMAIL PROTECTED]> wrote:
  

In message <[EMAIL PROTECTED]>, Alex
Faaborg <[EMAIL PROTECTED]> writes


The last class is new:
 Add to Address
Book

The text "Add to Address Book" is hidden by default, unless the browser
(or an extension) recognizes user-action
  

...or unless the user agent has no CSS functionality available.

Is that "degrading gracefully"?

What I don't understand in thate example is that the "user-action" is 
applied onto a div which doesn't contain any links or buttons. An action 
is most often initiated by clicking on either a link or a button. Will 
the browser add such a control? If so the control over the design won't 
be completely handed over to the designer which it should be.


Another problem might be that the browser will be changing the 
visibility property because that disables the designer from turning of 
the action-div's visibility. For example - the designer wants the 
action-button/link to only be shown when you hover over the hCard it's 
connected to, therefor the designer hides it by setting the visibility 
property to hidden and changing it upon hover. If the browser then 
changes the visibility the design won't look like it was intended to.


If a class is to be used it should only connect an action and not add 
anything or change anything about the site.


/ Pelle W
___
microformats-discuss mailing list
microformats-discuss@microformats.org
http://microformats.org/mailman/listinfo/microformats-discuss


Re: [uf-discuss] Microformats UI in Firefox 3

Instead of having to checking whether the userAgent is right or  
wrong in my javascript - wouldn't it be possible to check for the  
presence of any hCard-related function instead?


Yeah, if we wanted to solve this problem with javascript, that is  
probably what we should do.  But I'm a little weary of requiring  
javascript for exposing microformatted content to browsers due to it  
commonly being blocked on most wikis, and it potentially being  
unfamiliar to content creators.


Perhaps a good compromise would be to just break backwards  
compatibility on wikis, since they can't use javascript to figure out  
if the action is going to actually work.


There are really two separate issues here:

1) backwards compatibility
-navigator.userAgent
-style="visibility:hidden" hack
-if (navigator.microformatAware("hCard")){document.write(" ")}
2) instructing the browser to take action on a piece of data
-user-action-app class
-protocols
-third solution?


Couldn't another solution be to add some kind of a "protocol"?


The general uf:// protocol wouldn't distinguish what the user wants  
to do with the content (for instance, hCards could be sent to an  
address book, or a map).  So this might result in some really  
implementation-level UI, like links that say "Send hCard to your  
Browser."


We could create protocol handlers for each generic application type  
(map://, addressBook://, calendar://).  The only thing that seems a  
little unusual is that normally content creators would expect to send  
the data by value instead of my reference, for instance:


 mailto://[EMAIL PROTECTED] is the subject?body=this is  
the body


(although I'm not really sure how commonly known this is)

Like uf://foobar.com/foo.html#bar-hcard Firefox could process such  
a link by extracting the hcard with the id "bar-hcard"


I do like really like the idea of being able to reference  
microformats elsewhere on the page, or on any other page.  Something  
else that makes this is a little unusual is that the browser may not  
get a 404, but the data is still missing.  Also, since the  
information is still being transported using http, using a new  
protocol in the URI would be technically inaccurate.


This design might encourage people to reference information instead  
of duplicating it.  I honestly don't know if that is a good thing or  
a bad thing.


One potentially major problem: if you change the scheme from http,  
you can't have a relative URI, you have to create an absolute one:


   Relative URI references are distinguished from absolute URI in that
   they do not begin with a scheme name.  Instead, the scheme is
   inherited from the base URI
http://www.ietf.org/rfc/rfc2396.txt

This could be a problem for content creators because in most cases  
they would want to reference the microformat they are currently in,  
but they may not know what its URI is going to end up being, or they  
don't want to take the time to figure it out.  It would also be  
impossible for creators (like the hCard creator) to know what the URI  
is eventually going to be.


I think overall using protocols is conceptually simpler, because what  
you are creating is in fact a hyperlink.  But what we would need is  
relative URIs with different schemes, maybe something like:


Map

Unfortunately this twists the definitions of "relative" and  
"absolute."  It's likely that other people from Mozilla (or on this  
list) won't be too fond of breaking a bunch of RFCs from the 90s.


What do other people think about using protocols for microformat  
handling?


-Alex




On Aug 27, 2007, at 10:54 PM, Pelle W wrote:


Alex Faaborg skrev:
This is a bit of a hack, but it is also considerably easier than  
asking the author to write javascript to check  
navigator.userAgent, know which browsers handle microformatted  
content (and subsequently update this as it changes), and then  
display the link accordingly.  Also, I'm interested in allowing  
user generated microformatted content to be added to blogs and  
wikis where javascript is not commonly allowed.
A bit of friendly fedback here, not saying that I would be right at  
all only sending out some thoughts that may be useful or may be  
garbage.


Instead of having to checking whether the userAgent is right or  
wrong in my javascript - wouldn't it be possible to check for the  
presence of any hCard-related function instead? This way it would  
at least be theoretically possible for any web browser to add such  
a function, either officially or through a third party plugin, and  
so trigger the website to view the possible actions.


It seems a bit unusual to me to have a class like "user-action"  
which the browser should find and change to visible and make a link  
out of or something. Couldn't another solution be to add some kind  
of a "protocol"? Like uf://foobar.com/foo.html#bar-hcard Firefox  
could process such a link by extracti

Re: [uf-discuss] Microformats UI in Firefox 3

One thing I need someone to clarify:

Is that  div.user-action inserted by the user-agent, in this case,
Firefox 3? Or do the authors have to include that code on their pages?

This wasn't very clear to me...

Thanks.

Cheers,
André

On 8/28/07, Andy Mabbett <[EMAIL PROTECTED]> wrote:
> In message <[EMAIL PROTECTED]>, Alex
> Faaborg <[EMAIL PROTECTED]> writes
>
> >The last class is new:
> >  Add to Address
> >Book
> >
> >The text "Add to Address Book" is hidden by default, unless the browser
> >(or an extension) recognizes user-action
>
> ...or unless the user agent has no CSS functionality available.
>
> Is that "degrading gracefully"?
>
> --
> Andy Mabbett
> ___
> microformats-discuss mailing list
> microformats-discuss@microformats.org
> http://microformats.org/mailman/listinfo/microformats-discuss
>

___
microformats-discuss mailing list
microformats-discuss@microformats.org
http://microformats.org/mailman/listinfo/microformats-discuss


Re: [uf-discuss] Microformats UI in Firefox 3

In message <[EMAIL PROTECTED]>, Alex 
Faaborg <[EMAIL PROTECTED]> writes



The last class is new:
 Add to Address 
Book


The text "Add to Address Book" is hidden by default, unless the browser 
(or an extension) recognizes user-action


...or unless the user agent has no CSS functionality available.

Is that "degrading gracefully"?

--
Andy Mabbett
___
microformats-discuss mailing list
microformats-discuss@microformats.org
http://microformats.org/mailman/listinfo/microformats-discuss


Re: [uf-discuss] Microformats UI in Firefox 3


are you saying that the
blogger/webmaster is deciding the actions rather than fx3 or an  
Operator

like extension.


No, the browser should still act as a mediator between data and  
applications, otherwise people will tie there information to  
particular apps (like what is currently happening with RSS and  
podcasts).  This results in a lot of problems, like a complex UI,  
lock in, content creators having to regularly update their sites, etc.


However, I understand your confusion, the fact that there are  
multiple actions that can be applied to an hCard messes up my example.


What if we agreed on some basic default "application types" (map,  
calendar, address book, etc.), and so the example would then have two  
actions (assuming they both made sense in context):


Add to  
Address Book

Map

And third party extensions could register additional user actions  
(here is a genetics example):


Look up  
Gene


-Alex



On Aug 28, 2007, at 1:33 AM, Farndon, Tony wrote:


Not sure I quite understand this (so a good example of a general
'blogger' wanting to put uf on their blog/site), are you saying  
that the
blogger/webmaster is deciding the actions rather than fx3 or an  
Operator
like extension. Using your example code, would I be required to put  
in a

multitude of actions at the webpage level:


Add to Address
Book
View Address in
Google Maps
View Address in
Yahoo Maps
Add to some  
Address

Book Website

Then, along comes another web service/app and I have to go back and  
add

another user agent to all my previously marked-up uf

Add to some other
Address Book Website

A bad analogy, but is this not slightly akin to target="_blank" which
imho is wrongly taking the decision of the browser/user away and  
forcing

it upon them?

Tony

+ The Forestry Commission's computer systems may be monitored  
and communications carried out on them recorded, to secure the  
effective operation of the system and for other lawful purposes. +


The original of this email was scanned for viruses by the  
Government Secure Intranet (GSi) virus scanning service supplied  
exclusively by Cable & Wireless in partnership with MessageLabs.


On leaving the GSi this email was certified virus-free
___
microformats-discuss mailing list
microformats-discuss@microformats.org
http://microformats.org/mailman/listinfo/microformats-discuss


___
microformats-discuss mailing list
microformats-discuss@microformats.org
http://microformats.org/mailman/listinfo/microformats-discuss


RE: [uf-discuss] Microformats UI in Firefox 3

Not sure I quite understand this (so a good example of a general
'blogger' wanting to put uf on their blog/site), are you saying that the
blogger/webmaster is deciding the actions rather than fx3 or an Operator
like extension. Using your example code, would I be required to put in a
multitude of actions at the webpage level:


Add to Address
Book
View Address in
Google Maps
View Address in
Yahoo Maps
Add to some Address
Book Website

Then, along comes another web service/app and I have to go back and add
another user agent to all my previously marked-up uf

Add to some other
Address Book Website

A bad analogy, but is this not slightly akin to target="_blank" which
imho is wrongly taking the decision of the browser/user away and forcing
it upon them?

Tony

+ The Forestry Commission's computer systems may be monitored and 
communications carried out on them recorded, to secure the effective operation 
of the system and for other lawful purposes. +

The original of this email was scanned for viruses by the Government Secure 
Intranet (GSi) virus scanning service supplied exclusively by Cable & Wireless 
in partnership with MessageLabs.

On leaving the GSi this email was certified virus-free
___
microformats-discuss mailing list
microformats-discuss@microformats.org
http://microformats.org/mailman/listinfo/microformats-discuss


Re: [uf-discuss] Microformats UI in Firefox 3


Alex Faaborg skrev:
This is a bit of a hack, but it is also considerably easier than 
asking the author to write javascript to check navigator.userAgent, 
know which browsers handle microformatted content (and subsequently 
update this as it changes), and then display the link accordingly.  
Also, I'm interested in allowing user generated microformatted content 
to be added to blogs and wikis where javascript is not commonly allowed.
A bit of friendly fedback here, not saying that I would be right at all 
only sending out some thoughts that may be useful or may be garbage.


Instead of having to checking whether the userAgent is right or wrong in 
my javascript - wouldn't it be possible to check for the presence of any 
hCard-related function instead? This way it would at least be 
theoretically possible for any web browser to add such a function, 
either officially or through a third party plugin, and so trigger the 
website to view the possible actions.


It seems a bit unusual to me to have a class like "user-action" which 
the browser should find and change to visible and make a link out of or 
something. Couldn't another solution be to add some kind of a 
"protocol"? Like uf://foobar.com/foo.html#bar-hcard Firefox could 
process such a link by extracting the hcard with the id "bar-hcard" and 
for Internet Explorer a third party program could deal with the link in 
the same way that Skype deals with call: and Thunderbird deals with 
mailto: or I could choose to hide the link from IE users. This would be 
a more usual approach because it already exists for other kind of data 
like mailto: , javascript: , call: etc.



/ Pelle W
___
microformats-discuss mailing list
microformats-discuss@microformats.org
http://microformats.org/mailman/listinfo/microformats-discuss


Re: [uf-discuss] Microformats UI in Firefox 3

Sorry for the long delay in posting an update to this thread, we are  
still working on finalizing the UI for interacting with microformats  
in Firefox.


Here is something Mike Beltzner, Mike Kaply and I have been  
considering for microformat handling in Firefox 3, in terms of the  
content area.  We would like to propose a way for content authors to  
add actions to their microformats, without having to worry about  
backwards compatibility.  For instance:



 Alex Faaborg
 Mozilla
 
  1981 Landings Dr. Building S
  Mountain View
,
  CA
,
  94043
  Add to Address  
Book

 

The last class is new:
  Add to Address  
Book


The text "Add to Address Book" is hidden by default, unless the  
browser (or an extension) recognizes user-action, in which case the  
text is rendered as a hyperlink, and clicking it sends the structured  
data in the hCard to the user's address book.


user-action is just an example of what we could call this class, it  
seemed to make sense.  Also instead of a hyperlink the author could  
use an image, like Wolfgang's icons (http://factorycity.net/projects/ 
microformats-icons/).


This is a bit of a hack, but it is also considerably easier than  
asking the author to write javascript to check navigator.userAgent,  
know which browsers handle microformatted content (and subsequently  
update this as it changes), and then display the link accordingly.   
Also, I'm interested in allowing user generated microformatted  
content to be added to blogs and wikis where javascript is not  
commonly allowed.


Since this is something we are thinking about for microformat  
handling in Firefox 3, we would really like to get feedback from the  
uF community before we consider implementing it.


-Alex



On Aug 1, 2007, at 11:40 AM, Alex Faaborg wrote:

Mike Beltzner, Mike Kaply and I are going to try to finalize the  
user interface for interacting with microformatted content in  
Firefox 3 this week, possibly later today.


If anyone has any last minute suggestions or thoughts, please post  
them soon.  I'll also update this thread with mockups of what we've  
decided on so we can get feedback on the proposed interface.


-Alex
___
microformats-discuss mailing list
microformats-discuss@microformats.org
http://microformats.org/mailman/listinfo/microformats-discuss


___
microformats-discuss mailing list
microformats-discuss@microformats.org
http://microformats.org/mailman/listinfo/microformats-discuss


Re: [uf-discuss] Microformats UI in Firefox 3

did you carry on working on the idea of showing whats a microformat in 
the page? There was talk of a mouse cursor change when a user hovers 
over. The last mockup i saw had an icon at the end of the address bar 
with action. I think both of those would be a good way forward.


I started a thread a while ago about the idea of coming up with a more 
user friendly name/description for microformats. You supported the idea 
then, has there been any thought on it from the FF guys?


___
microformats-discuss mailing list
microformats-discuss@microformats.org
http://microformats.org/mailman/listinfo/microformats-discuss