WaYdotNET Web Blogs

Il blog di Carlo Bertini e qualcosa di .NET
posts - 57, comments - 384, trackbacks - 1041

[rails] LightWindowHelper [plugin helper]

Visto che per colpa di Davide D'Agostino (DAddYE) mi sono avvicinato a Rails (http://rubyonrails.org/) e sto cercando di creare per l'azienda dove lavoro, una piccola applicazione web per uso interno, ho deciso di farla in rails :D

 

L' intenzione era di usare il js Ligh Window 2.0 (http://www.stickmanlabs.com/lightwindow/)  che mi piace molto, ho deciso di fare un piccolo helper per poter "aggirare" un problema che ho pure io (ovviamente :P:P:P) (http://railsforum.com/viewtopic.php?pid=46594)

Alcune foto per far vedere come funziona questo plugin :D

In poche parole questo js non fa altro che "aprire" un div con dentro il percorso di quello che gli abbiamo passato in ingresso, all interno della pagina stessa (quindi niente pop-up, ma una finta pop-up interna :D)

Il funzionamento di questo helper è molto sempilice:

una volta installato il plugin tramite il comando

ruby script\plugin install http://waydotnet.googlecode.com/svn/trunk/lightwindow_helper/

 

basta inserire nel file della "vista" il tag

<%= stylesheet_link_tag 'lightwindow' %>

per poter avere a disposizione il css di lightwindow

e poi il tag per poterlo utilizzare è:

<%= lightwindow_link_to(name, options = {}, html_options = {}, *parameters_for_method_reference) %>

un esempio:

<%= lightwindow_link_to(
        "Click me !", {:action => 'edit', :id => "12/"}, :title => "This is a te
st!",
        :author=>"Carlo Bertini",
        :caption=>"Ruby on rails is beautyfull :D"
      ) %>

 

Questo è tutto.

 

Ovviamente il repository è :

http://waydotnet.googlecode.com/svn/trunk/lightwindow_helper/

 

Ogni commento , giudizio, critica, migliorie, sono ben accette

 

ps: si lo so il mio italiano fa schifo :P

Share this post :

Print | posted on martedì 11 dicembre 2007 12.53 |

Feedback

Gravatar

# re: [rails] LightWindowHelper [plugin helper]

I took my first loan when I was not very old and it aided my family very much. However, I require the small business loan again.
18/08/2011 2.18 | ShafferCasandra33
Gravatar

# re: [rails] LightWindowHelper [plugin helper]

Consequently people do not have a guy to ask for aid. Some people are worried about that. An internet gives you an opportunity to Buy Paper. You will not worry just about research papers writing anymore.
16/09/2011 8.12 | TOWNSENDIngrid20
Gravatar

# re: [rails] LightWindowHelper [plugin helper]

When you have a possibility to utilize the cheap essay writing service service, never doubt, purchase custom research papers and relax.
16/09/2011 8.46 | Palmer26YOUNG
Gravatar

# re: [rails] LightWindowHelper [plugin helper]

From time to time, students compose the french dissertation by their own. But some students like to order the useful theme associated with this topic in the dissertation service, just because that is more simple.
19/09/2011 22.43 | OliviaSheppard20
Gravatar

# re: [rails] LightWindowHelper [plugin helper]

Reputable university students state that they are the best. But, you can be better when order an essay.
22/09/2011 19.45 | Maggie21Weiss
Gravatar

# re: [rails] LightWindowHelper [plugin helper]

This is great that we can receive the mortgage loans moreover, this opens new opportunities.
22/10/2011 19.24 | LoraineHuffman
Gravatar

# re: [rails] LightWindowHelper [plugin helper]

bhggggOnline shop wholesale designer handbags in our wholesale handbags store,Find the latest style fashion handbags with world famous brand and top quality, discount designer handbags however are by far the most popular product under the fashion label, thanks to their second to none quality,shows through in every cheap designer handbags,They are all of high quality and with unique designs。Buy cheap handbags it’s easy for you,welcome to come!
25/10/2011 8.08 | ymdeaklk123
Gravatar

# re: [rails] LightWindowHelper [plugin helper]

it aided my family very much. However, I require the small business loan again.
20/11/2011 13.45 | casino på nätet
Gravatar

# re: [rails] LightWindowHelper [plugin helper]

the dissertation service, just because that is more simple.
21/11/2011 18.31 | Digital Marketing Orlando
Gravatar

# re: [rails] LightWindowHelper [plugin helper]

You will not worry just about research papers writing anymore.
30/11/2011 12.23 | Web Design
Gravatar

# re: [rails] LightWindowHelper [plugin helper]

I don\'t know what to say except that I hav
03/12/2011 13.44 | pokerstars room review
Gravatar

# re: [rails] LightWindowHelper [plugin helper]

Do you realize that, in order to locate or identify the owner of a Verizon or Sprint phone number, you will need to consult a good cell phone lookup directory? This is the only way to do a Verizon reverse phone lookup or a Sprint reverse phone lookup!
15/01/2012 16.57 | reverse phone lookup

Post Comment

Title  
Name  
Email
Url
Comment   
Please add 8 and 4 and type the answer here:

Powered by: