On Wed, Mar 25, 2009 at 8:43 PM, [email protected]
<[email protected]>wrote:
>
> It is. I'm sorry, I'm not use to watching the bottom right corner for
> error messages. I keep getting this error:
>
> missing } after property list.
>
> CmdUtils.makeSearchCommand({
> name: "AESearch",
> author: {name: "Cooper Click", email: "[email protected]"},
> description: "Looks up in Anime-Eden",
> url:"http://www.anime-eden.com/anime/search.htm?kw="{QUERY}",
The problem is the line above this - somehow a " has snuck in before {QUERY}
- I suspect gmail is to blame... it's much easier to share code in github in
the future... :-)
I should note, that right now the code is breaking (at least for me, on
latest tip) but it didn't yesterday, so I'm assuming that commit I've pulled
in the mean time has caused a regression of some sort.
>
> preview: function( pblock, thing ) {
> if (thing.text < 1) {
> pblock.innerHTML = "Search <b>Anime-Eden Anime</b>";
> }
> else {
> jQuery.get(this.url.replace("{QUERY}", thing.text), function
> (doc) {
> var result = jQuery("div#widemain > div.general >
> table.listing.clear", doc).eq(0);
> result.find("a").each(function correctPaths() {
> jQuery(this).attr("href", "http://www.anime-eden.com
> "+jQuery(this).attr("href"));
> });
> pblock.innerHTML = "<table>"+result.html()+"</table>";
> });
> }
> }
>
> });
>
>
> This is the code I got from Chrstian (Thanks). I might have copied it
> wrong, but I don't see anywhere with unmatched { and }. The only place
> I can think is here:
>
> jQuery.get(this.url.replace("{QUERY}", thing.text), function (doc) {
>
> Which looks like it's missing a ) or something.
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"ubiquity-firefox" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ubiquity-firefox?hl=en
-~----------~----~----~----~------~----~------~--~---