When I previously designed my static sites in dreamweaver, I used an
Open Browser Window behavior which opened a URL in a new window of
fixed size by inserting the following:
<a href="javascript:;"
onclick="MM_openBrWindow(''example.html'', ...
''width=300,height=300'')</a>
Is there a simple way to do the same thing in ruby?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
this has nothing to do with ruby. that function you show is some custom Dreamweaver function. it''s just a wrapper for the javascript function window.open(). http://www.w3schools.com/htmldom/met_win_open.asp On 4/10/07, Steve <sdf259-RWB/UN2hA5c@public.gmane.org> wrote:> > When I previously designed my static sites in dreamweaver, I used an > Open Browser Window behavior which opened a URL in a new window of > fixed size by inserting the following: > > <a href="javascript:;" > onclick="MM_openBrWindow(''example.html'', ... > ''width=300,height=300'')</a> > > Is there a simple way to do the same thing in ruby? > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
link_to "blabla", {:controller => some, :action => :thing },
:popup =>
["new_window_name","width=300,height=300"]
Rails API on :popup => :
:popup => true || array of window options: This will force the link to
open in a popup window. By passing true, a default browser window will
be opened with the URL. You can also specify an array of options that
are passed-thru to JavaScripts window.open method.
On 11 Apr., 12:52, "Chris Hall"
<christopher.k.h...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> this has nothing to do with ruby. that function you show is some
> custom Dreamweaver function. it''s just a wrapper for the
javascript
> function window.open().
>
> http://www.w3schools.com/htmldom/met_win_open.asp
>
> On 4/10/07, Steve <sdf...-RWB/UN2hA5c@public.gmane.org> wrote:
>
>
>
>
>
> > When I previously designed my static sites in dreamweaver, I used an
> > Open Browser Window behavior which opened a URL in a new window of
> > fixed size by inserting the following:
>
> > <a href="javascript:;"
> > onclick="MM_openBrWindow(''example.html'',
...
> > ''width=300,height=300'')</a>
>
> > Is there a simple way to do the same thing in ruby?- Zitierten Text
ausblenden -
>
> - Zitierten Text anzeigen -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
Maybe Matching Threads
- graphs of gamma, normal fit to a histogram are about half as large as they should be
- GSOC - 2012
- Rails 2.2.2 and globalize - undefined method `render_file' for class `ActionView::Base' (NameError)
- avoiding expression evaluation when calling a function
- undefined method `save' for :Array