Displaying 20 results from an estimated 200 matches similar to: "DOM values in ERB Variable?"
2006 Mar 24
2
Basic Auth in WEBrick
Yo all,
All I want to accomplish at this moment in time is simple password
protection around a rails application in development using WEBrick on
a custom port. Just one account would be fine.
I have done an extensive Google hunt for an example, but I all find
are code chunks for starting WEBrick such as:
realm = "Gnome realm"
start_webrick {|server|
htpasswd
2006 Jan 25
1
@params Hash Access
I am trying to load an ActiveRecord object from an ID within a hidden
field in a submitted form. How do I do it?
I get this into the controller with the request:
Parameters: {"action"=>"index", "website"=>{"id"=>"7"},
"controller"=>"msa/setup"}
So, how do I load the Website object from ID 7?
@website
2007 Sep 13
1
minimize white space around lattice plot
Dear list,
I'm trying to produce a plot via xyplot with minimal sourounding white
space. However, I cannot find the options in xyplot, ps.options or
wherever which prevents lattice from drawing quite some white space
around my plot. However, this is quite a problem for me as I want to
produce an inset plot inside another lattice-plot. I'm using the panel
function to open a viewport and
2007 Mar 13
3
Prototype question invalid error in IE6
Hi, I''m new to using Prototype and script.aculo.us. I''m trying to use
prototype to adjust an elements top margin based on the height of the
screen. I''m also using script.aculo.us to make the element move
negatively off the left of the window to create a scrolling effect. It
works fine in Firefox, but I keep getting an Invalid argument error in
IE6.
Here my margin code
2006 Jun 20
1
Packaging platform-specific functions
I have a few functions, such as screenWidth() and screenHeight(), which
I have been able to implement for a Unix/Linux environment, but not for
Windows. (Does anyone know how to find the screen dimensions in
Windows?)
The Writing R Extensions manual tells me how to include
platform-specific sections in documentation, and even how to have
platform-specific help files. But it doesn't say
2003 Sep 30
0
VB Code to convert BMP to LSS for splash screens
The following code can be used to convert a 256 color BMP to LSS format for use as a SYSLINUX/ISOLINUX/PXELINUX Splash screen. The bitmap must be LESS than 640 pixels wide (bug) and only uses the first 16 colors. CorelDraw and PhotoShop are good for re-palletizing and dithering.
Paul Shebanow
pshebanow at iqcorp.com
--- Begin Code ---
Type RGBColor4
cBlue As Byte
cGreen As Byte
2009 Jun 08
6
Display of Photomatix GUI Has No Buttons, Checkmarks
I would like to use Photomatix Pro 3.1.3 on my WINE install. I was able to successfully install it after installing corefonts and .NET 2.0 using winetricks. The program opens fine but none of the buttons, checkmarks, or other window dressings appear:
[Image: http://img93.imageshack.us/img93/7739/photomatix.png ]
I have several other applications installed in WINE and none of them exhibit this
2006 Jan 23
0
form_remote_tag and Safari (HELP!)
<%= form_remote_tag :url => { :action => ''list_setups'' },
:loading => "Element.update(''setupslist_display'','''');
Element.show(''setupslist_progress'')",
:loaded => "Element.hide(''setupslist_progress'')",
:update => ''setupslist_display'',
2006 Jan 29
0
Pagination and AJAX
How does one do pagination with link_to_remote calls so the
pagination can be done with AJAX? For example, this obviously works
out of the box with the standard scaffold:
<%= link_to ''Next page'', { :page => @image_pages.current.next } if
@image_pages.current.next %>
to get users to the next page.
The tutorial at: http://wiki.rubyonrails.com/rails/pages/How+to
2005 Dec 31
0
Fall-Through for link_to_remote?
I see in the document for form_remote_tag a little note about
Javascript:
A "fall-through" target for browsers that doesn?t do JavaScript can
be specified with the :action/:method options on :html
Which works by populating the ACTION html field for the form with a
real URL, not a "#". Great.
Can this be done with link_to_remote as well? I see no similar note
in the
2003 Jul 01
1
crossed random effects
Hi,
I have a data set on germination and plant growth with
the following variables:
dataset=fm
mass (response)
sub (fixed effect)
moist (fixed effect)
pop (fixed effect)
mum (random effect nested within population)
iheight (covariate)
plot (random effect- whole plot factor for split-plot
design).
I want to see if moist or sub interacts with mum for
any of the pops, but I am getting an error
2005 Nov 04
19
Drag & Scroll
When using drag and drop, the browser window will not scroll if you move the mouse off the page. This makes it very difficult, if not impossible to create certain types of web applications.
I know this has been mentioned before and is on the Wish List, but it''s very frustrating.
If you look at this other Javascript library called "Drag''nDrop & DHTML Library"
2005 Apr 21
9
Screen capture, save to file
Is there anything in the utils to capture a screen ( or maybe just a
window) and save to a file.
I have this, but I have no idea where it came from, but it gives a
corrupted image
Paul
# -*- ruby -*-
# screen capture --
# This script runs with a Ruby/DL which is included in ruby-1.7.
require ''dl/import''
module ScreenCapture
extend DL::Importable
dlload
2000 May 22
1
RE:bug 548 graphics '*' (PR#549)
A little more followup. The gtk() device uses gdk_string_width to
find the character extents. That seems undocumented anywhere in the
gtk+ sources. It is returning the maximal descent for the font for all
input strings on my system. Looking at the current gtk+-1.2.7 sources it
appears to call XTextExtents, and that _should_ give the
string descent.
Since gdk fonts are private opaque structures
2008 Jan 19
5
Open a (redbox) modal popup from inside a controller?
Hi,
I''m trying to open a modal popup window using redbox to display a
styled notification/alert to the user. The helpers in the redbox
documentation only describe how to open a redbox when the user clicks
on a link, e.g., link_to_redbox() or link_to_remote_redbox().
Is there any way to open a redbox, or a different type rails-
compatible modal popup, from inside a controller action?
2007 May 22
0
tcl font size issue on centso 4.4 x86_64
I have a simply script that I cannot get a font size bigger than 40.
Changing the font_size value to 80 does not make
the font any bigger just the background.
How do I get a bigger font than 40?
I run this script as "wish -f file.tcl"
What am I doing wrong to not get bigger fonts?
THanks,
Jerry
---------------------------------------------
set font_size 40
set show_window_title 0
2006 Feb 03
0
Contribute: Center extension to Prototype''s Position object
If anyone is intrested, i was hardly missing such a feature in prototype
(for displaying well formatted error dialogs and things like that):
Position.center = function(element){
var options = Object.extend({
zIndex: 999,
update: false
}, arguments[1] || {});
element = $(element)
if(!element._centered){
2000 May 22
0
RE:bug 548 graphics '*' (PR#549)
> Date: Mon, 22 May 2000 16:52:59 +0200 (CEST)
> From: Martyn Plummer <plummer@iarc.fr>
> To: ripley@stats.ox.ac.uk
> Subject: Re: [Rd] RE:bug 548 graphics '*' (PR#549)
> Cc: R-bugs@biostat.ku.dk, r-devel@stat.math.ethz.ch
>
> On 22-May-00 ripley@stats.ox.ac.uk wrote:
> > A little more followup. The gtk() device uses gdk_string_width to
> > find the
2007 Apr 04
2
Is Element in Viewing Range
How could I tell if an element is visible? Not visible as in the css display
property, but visible in the browser''s clipping area. So if I had a long
list of columns and wanted to know if the user has to scroll horizontally to
see the last one.
Thanks!
Daniel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
2005 Dec 15
1
Some handy methods - perhaps cool enough to be committed some time
Hi.
Some time ago I posted some prototype-"extensions", which could come in
handy.
I''ve been updating them a bit and added a few more and I think its time
to share
it again.
Feel free to use it.
The code should be rather self explaining, but heres a quickguide.
- new Geometry.Size(width,height) - Creates a new instance of size
- new Geometry.Position(x,y) - Creates a new