Loading ...
Sorry, an error occurred while loading the content.
  • Back
  • About Group

  • Join Group
No activity in last 7 days

Group Description

The JavaScript

Helper para o Ruby on Rails para criar um tag de link associado ao 'name' que executa o código 'javascript' no evento onclick. Os últimos dois parâmetros são os mesmos utilizados no link_to
def javascript_link_to(name, javascript, html_options = nil, *parameters_for_method_reference)
options = [ :action => @params["action"] ]
html_options = { :onclick => javascript+"return false" }
link_to(name, options, html_options, *parameters_for_method_reference)
end
to ruby rails javascript rubyonrails helpers link helper by rafee on Apr 20, 2006 Post A Comment
Wholinked
// description of your code here
Show the other websites linking to yours. Totally new and fully customizable, this simple cut-and-paste javascript queries the search engines for your links, then sends the results to your site's WhoLinked box for your visitors to see. Cool! http://wholinked.com




Now, for the script that made this work. Note how the prompt and if/else statements are in the HEAD section, while the actual writing of the name occurs in the BODY section.







Group Information

  • 2
  • JavaScript
  • Aug 10, 2006
  • English

Group Settings

  • This is a public group.
  • Attachments are permitted.
  • Members cannot hide email address.
  • Listed in Yahoo Groups directory.
  • Membership does not require approval.
  • Messages are not moderated.
  • All members can post messages.

Message History