[Facebooker-talk] FBJS, Ajax, Select box, Dialog

Lee Mallabone lee at crossbonesystems.com
Wed Jan 7 05:46:25 EST 2009


You don't seem to be using the FBJS ajax calls, is that intentional?
http://wiki.developers.facebook.com/index.php/FBJS#AJAX

Lee.


2009/1/6 Alan Larkin <alan.larkin at gmail.com>:
> So I have been at this all day. I am trying to trigger an Ajax request and
> subsequent dialog popup in response to a change in a Select box. Heres what
> Ive got:
>
> <%= select_tag :player, options_for_select(...),
>    :onchange => "Ajax.Request(this.getValue(),
>      { onSuccess: \"new Dialog().showMessage('Dialog', 'Ok'); return
> false;\" });" %>
>
> (the values of the select items are URLs)
>
> The logs show the query runs and returns successfully, but I cannot get
> anything to happen beyond that. There is nothing in the JS error console.
>
> Can anyone see whats wrong with the above?
>
> Alan.
>
> --
> <a href="http://wikimediafoundation.org/wiki/Donate/en"><img border="0"
> alt="Wikipedia Affiliate Button"
> src="http://upload.wikimedia.org/wikipedia/foundation/5/58/2008_fundraiser_micro_button-en.png"
> /></a>
> _______________________________________________
> Facebooker-talk mailing list
> Facebooker-talk at rubyforge.org
> http://rubyforge.org/mailman/listinfo/facebooker-talk
>



-- 
Lee Mallabone.
Crossbone Systems Ltd.

http://www.crossbonesystems.com/
http://www.fonicmonkey.net/
http://CambridgeWebHeads.ning.com/


More information about the Facebooker-talk mailing list