Flickr Search in Firefox
It seems like Flickr searching seems to be “in” for the moment :) Mark Birbeck has just announced a tutorial for how to create an XForm to search in Flickr. I modifed it to work in Firefox (1.5.0.1 + official XForms extension 0.3):
When can we see an information bar for XForms? When I try to submit to flickr, it should pop up saying something along the lines of: “To protect your computer, Firefox prevented this site (www.beaufour.dk) from sending data to a different domain. [Edit Options]” it will really make it a lot easier for the day when sites built off of XForms communicating with webservices becomes commonplace.
I have FF 1.5.0.1, XForms 0.3, “allow cross domain xforms” added flickr.com as trusted domain
but I still get no result. Also no javascript error.
I don’t even get the search form. What’s wrong?
duck1123: That’s a good suggestion. I’ve been looking at that but haven’t gotten anywhere yet. But someday it’ll be there :)
Jens: If you do not get the search form at all, then something is very wrong. You might have hit a non-functioning XPI, if you run Linux (see my previous blog post). And you need to add “beaufour.dk” as your trusted domain, not “flickr.com”.
ok, reinstalled xforms extension and now it does work :) Nice example.
Great demo…the “Spinner/throbber” is a nice touch. Is there a standard way that the XForms UI shows that it’s busy, something similar to the way Firefox animates the main throbber when loading a page? Using and is a nice way to do it, but does that interfere with using something like a “wizard” form?
ifland: There’s no standard way to do that. We “suffer” a bit of the same as AJAX does. The browser does not really have a way to show the asynchroneous activity going on. We could look at giving the main throbber a spin on submissions — at least as an option. There are pros and cons to it, though. I’ve created bug 328702 for it .
The example should not interfere with a “wizard form” I think. It is quite generic, and should work for any submit activity. It’s just a question of placing the spinner somewhere, where it is always visible.
Ps. The credit for the throbber goes to Mark Birbeck. I just “converted” his example.