similar to: Positioning cursor to first form field

Displaying 20 results from an estimated 20000 matches similar to: "Positioning cursor to first form field"

2006 Jun 15
3
how to give a form a name
Using a <%= form_tag ... %>, how do I give a form a name, so that I can reference it with javascript? I sure can''t figure this out from the docs... Thanks, Shelby PS - what I am trying to do is just have the focus in the first form field when the form is loaded. There has to be an easy way to do this, but I can''t figure it out... -------------- next part --------------
2005 Dec 14
4
newbie q: Form element focus
This is probably a dumb question, but is there an easy way to set the focus of a form to the first visible/editable element? I''ve been googling lots and searching documentation and haven''t come up with anything. Help would be appreciated. -- Posted via http://www.ruby-forum.com/.
2006 Mar 08
19
Creating multiple rows with one form
Hello. I''ve been trying this out for the past two days and I can''t seem to get it. I''m going to have a page where you can upload x amount of images at once. Lets say 10 images need to be uploaded, all with a caption. I''d like to have a browse button to choose the file, then the caption. Now, if I put 10 of them in one form, fill them all out and submit, I get
2005 Dec 24
2
Ajax Help: Multiple Updates - ?
Hi! Wondering if anyone can tell me what''s wrong with my code? I''m trying to use the onChange event of a select list to update multiple divs... Agile Web Development with Rails (p. 403) suggests using ":complete => eval(request.responseText) instead of :update" I''ve attempted the following test code: # in the view <select name="plist",
2006 Apr 26
3
Setting focus in a rhtml view
How do I set focus on a specific form field when I render a partial from the controller? I can do it with page[''name''].focus from an RJS view, but I can''t figure out how to do it when rendering this rhtml partial from the controller. I''m rendering a partial with two fields and neither one has focus until I hit the tab key or put the cursor in a field with the
2006 Jun 29
3
cat and positioning of the output
Hello R users! I like to use cat in a loop. I know, loops are not the best way in R ... but my question: It is possible to overwrite the expression "Reading row: i" in each iteration of the loop (print out in the below loop on the screen) or more particulary to overwrite the counter "i". for(i in 1:header$M){ cat("Reading row: ", i) SparseIndex[[i]] <-
2006 Feb 22
1
Cursor position
How can I get the cursor position relative to the page, and store it in a variable? (Preferably without using javascript) Thanks, Chris -- Posted via http://www.ruby-forum.com/.
2006 Mar 13
2
Keypress events with no AJAX needed
Is anyone else finding it frustrating to do in Ruby client-side things that would be simple in Javascript? It seems like all of the "helpers" involve server (controller) communication. For example, having a text field that just echos below what the user types. Is this the only way to do it? <div id=''word_panel''> <%= text_field_tag
2007 Jun 19
1
javascript_tag replacing whitespaces w/ '%20'
javascript_tag replacing whitespaces w/ ''%20'' Hello, I have a form that tests if a title has been changed since the page was loaded and the page has been submitted. If the page title has been changed then a confirm box will ask if the user wants to have the title changed. The problem is if the person hits cancel, all white spaces in the title get replaced w/
2007 Mar 06
3
Strange issue with windows positioning
Hi, I just compiled and installed the latest compiz from git head and I have a strange issue with windows positioning: all newly created windows are placed at 0,0 (upper left corner) of the screen, so the title bar (and menu bar too) is under my gnome panel. I attach a screenshot to show the problem. I can't understand if this is a problem of compiz configuration (plugin order or something
2006 Feb 03
2
JavaScript Prototype Help?
I have a form with a text area. I want to have an observer watch the text area and update a div with the running count of characters in the text area. I tried "onchange" but that doesn''t update until you leave the text area. I was able to get it working using AJAX, but it''s silly to make a needless round trip to the server, when the page already knows
2006 Mar 01
2
In_place_editor in a For loop
I''m using Ajax to create a list of items. Once these items have been created the user can edit in place and delete them. I''ve got the ajax working for delete and removing the element from the page, but the in_place_editor_field doesn''t seem to like being in a for loop. I''ve got in_place_editor working for single items, but what''s the syntax
2008 May 26
0
setfocus to a field in view
Hi I have a div "reason_for_transfer_search_sd" like <div id="reason_for_transfer_search_sd" > <%= render :partial => "service_desk_part/on_action_transfer_reason_sd_search", :locals => { :sd_ticket=>sd_ticket } %> </div> And in on_action_transfer_reason_sd_search <%= text_area_tag "transfer_reason", nil, :size =>
2009 May 06
1
Positioning a legend via X and Y coordinates
Dear R Users, I'm able to display a legend using the following code: > legend("topright", c("Simulation", "Observation"), fill=2:3, bty="n") However, this causes the legend to be positioned too close to the bars in my barplot. I'd like to move the legend up slightly. I have been trying to determine the necessary values by trial and error to do
2010 May 09
0
[PATCH] drm/nouveau: allow cursor image and position to survive suspend
- This isn't triggered yet on a normal kernel, because it still does a VT switch, but it seemed like a good idea to fix this now. Tested-by: Maxim Levitsky <maximlevitsky at gmail.com> Signed-off-by: Maarten Maathuis <madman2003 at gmail.com> --- drivers/gpu/drm/nouveau/nouveau_crtc.h | 2 ++ drivers/gpu/drm/nouveau/nouveau_drv.c | 29 +++++++++++++++++++++++++++++
2008 Jan 08
1
cursor position on image
Hi, I am using the EBImage package for image display and analysis and want to read the cursor (mouse) position on the image. The function "locator()" would be ideal, but this appears to work only on plots, not images. > a <- Image((0:(w^2))/w^2, c(w,w)) > if ( interactive() ) display(a) > locator(n = 10, type = "p") Error in locator(n = 10, type = "p")
2013 Feb 27
3
positioning of R windows
I have 2 (related, I think) questions about positioning of windows within R. 1. I often work with a second monitor and sometimes like to arrange 1 or more plot windows on the second monitor, while keeping the console on the primary monitor (so I can see things better). I used to be able to do this (when using Windows XP), but it seems that now (using Windows 7) I can't even move the
2006 Jan 13
5
Form field naming semantics question
Hi, I have a question today regarding how the various form elements in _form.rhtml are named. I understand that for a database table "persons" with a column headed by "name", then in _form.rhtml it will probably be like: <p><label for="person_name">Name><br/> <%= text_field ''person'', ''name''
2012 May 22
2
Wx:Grid Setting Cursor Position
I''m using the grid widget with an underlying GridTableBase and trying to implement a "Find" button which would cause the current cursor position to go to the next matching cell. I''m wondering if there''s an easy way to do it? I''m playing with the Grid.select_block_row(), Grid.set_grid_cursor() and Grid.scroll() methods, but the results are a bit
2001 Mar 28
1
Returning position of mouse cursor (without button press) ?
I would like a function that return the X,Y position of the mouse cursor whenever it is called PERIOD, i.e., without the button presses of locator() or identify(). E.G., > where.is.mouse() [1] 123 34 # X and Y coordinates of present mouse position in current graphics window Is this a conceivable R function or does it need to be addressed with a call to the OS (Windows 2000 in my case)?