Do you mean get the value of a tag''s src attribute? Like you have,
<img src="http://www.rubyonrails.org/images/rails.png">
And you want the value "http://www.rubyonrails.org/images/rails.png"?
If so, use getSrc(). You can play around with this in my FBJS test
console app, http://apps.new.facebook.com/jstofbjs/.
Try translating,
<img src="http://www.rubyonrails.org/images/rails.png"
onclick="confirm(this.src)">
And then you should get a clickable RR icon which prompts you with the
src. The fbml result should be,
<img src="http://www.rubyonrails.org/images/rails.png"
onclick="
dlg = new Dialog().showChoice(''the page says'',
this.getSrc())
">
Richard
On Tue, 29 Jul 2008, Ken Schroeder wrote:
> Is there an easy way to retrieve callback_url for things like image source
> in JS?
>