similar to: Focusing wedget using javascript PROBLEM

Displaying 20 results from an estimated 40000 matches similar to: "Focusing wedget using javascript PROBLEM"

2005 Dec 17
0
No javascript fallback
AJAX is good for a lot of things, but javascript is not always available. I think the new RJS templates are very good: http://www.codyfauser.com/articles/2005/11/20/rails-rjs-templates And they could be used to create a simple, automatic no javascript fallback. An example: You have a controller called PostsController. There is an action "new". The view displays a form. The form
2006 Jul 30
1
javascript ''point to file'' widget (as seen in dreamweaver)
hi all. I''m planning a rails app and am wondering if anyone knows if there''s a javascript widget with the same functionality as dreamweavers ''point to file'' tool for those who have not seen this it is basically a small, four pointing arrow which you can click and hold on, and then drag and hold to a file or directory to select that file as a link
2007 Dec 03
0
Re: how to use render & redirect_to togethe
On Dec 3, 2007 8:37 AM, Jason Roelofs <jameskilton-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > On Dec 3, 2007 8:24 AM, Advait Bellur <advait.bellur-/E1597aS9LQxFYw1CcD5bw@public.gmane.org> wrote: > > > > > Hi, > > > > I needed to know a way or method of using render and reditect_to > > methods. > > At present using them both is giving me
2006 Jul 05
0
Javascript repeating fields.
The one area I keep hitting my head against in Rails is repeating fields via javascript. I frequently have forms where one or more fields are actually broken out into sub tables because there can be multiple simultaneous values. Rails seems to want to you to use the [] construct in the form helpers (e.g. text_field(''employee[]'', ''name'')), but I can''t
2006 Aug 16
1
How to pass an array to a javascript function.
Hi - I''m having a bit of trouble with my application. I have this view that calls a javascript function "zip_map". I want to pass to it a scalar array "@zip_geo" but I don''t know how to pass an array to a javascript function in rails. This is what the code looks like: THE .rhtml file: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
2006 Feb 02
1
What''s the javascript to submit an AJAX Form?
HI Everyone, How do I form the href on an anchor so I can create a link-style submit for an ajax form? In this snippet, the INPUT generated by #submit_tag works OK, but the anchor results in the AJAX replacing the whole page? Can I make the anchor/href submit the AJAX form as well? Thank you! I have this (list.rhtml): <%= form_remote_tag :url =>
2007 Aug 31
2
Give focus to an input field of a form
Hi, I am new to rails and I have setup Typo on my site. One little thing bugs me, the login page doesn''t give focus to the "user_login" field. I was wondering what do I need to do to make rails help with this? I have seen some simple inline javascript to set the focus, sort of like: document.<form_name>.user_login.focus() However the rails view doesn''t
2009 Feb 26
7
javascript using jQuery.js and prototype.js doesnt work 2get
Hi........ M hving javascript "scripts.js" which uses jQuery.js in rails application. bt when it is used along with prototype.js, one of the javascripts which hs been included first in my application.rhtml fails... Do some1 hv any solution how to make both the scripts work 2gether... I tried using <script> jQuery.noConflict(); </script> bt of no use. problem
2006 Jul 26
6
Javascript tooltips in rails?
Does rails have built in functionality to do javascript tooltips? -- Posted via http://www.ruby-forum.com/.
2007 Jul 12
1
remote_form_for behavior on javascript submit();
Hey all, Tried this on the IRC channel but after an hour i figured nobody that was on knew, so i''ll try it here. I have a rhtml page with: <% remote_form_for(:performance_goal, :url => user_performance_goal_path(@user.account, @user, @performance_goal), :html => {:id => ''sidebar_form'', :method => :put}) do |f| %> <%= f.text_area :impact, :size
2006 Jan 14
14
Javascript/AJAX Debugging
Hello ! I''m trying to implement something similar to the "multiple updates" section of the Web2.0 chapter of the Agile book. I implemented my version, and nothing is happening. No javascript errors, my logs look fine, page is rendered fine... just no Effect.Highlight. Here is the code: views/causes/cause_home/index.rhtml =============== <%= form_remote_tag(:complete =>
2006 May 26
0
Expanding javascript before sending it
Hi, I had a simple javascript function directly in the rhtml with a rails helper in it. Before the page was sent to the client the rails help was of course expanded. Moving it into a separated .js file, the rails code is, once again of course, no more expanded. function save(id) { var el = document.getElementById(''s''+id); el.src = "<%=
2006 Mar 02
0
Way to put javascript you want to appear in the head but declare it in a template?
I have some javascript that is specific to an rhtml template but must appear in the <head></head> section. I figured I could just put it in a variable at the top of my template and make my layout conditionally output that variable if it existed. But is there a better way to do this that has already been standardized in rails? Thanks, Carl -------------- next part -------------- An
2007 Oct 18
0
A strange error with javascript and safari
Hi there. I have attached my file, containing the javascript, that does work in FF but not in Safari. The problem is, that the selectbox is not filled in Safari, as it should be. Is there a special way to do it for Saf? - Emil Attachments: http://www.ruby-forum.com/attachment/697/wordsList.rhtml -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~
2006 Feb 16
7
RoR vs JavaScript/AJAX vs Java interface. Conflicting ideas?
Hi, Over the past month I''ve been playing with some ideas for an admin interface for a ecommerce app. 1) Old-fashioned, forms-based, full-page-refresh, server-focused interface 2) Modern, JavaScript-Drag-Drop, AJAX, client-focused, Web2.0 interface The more I work on the second option with JavaScript an AJAX the more I feel like I''m moving away from building a server side
2007 Oct 26
1
Working or mongrel
Hello, I have started newly working on ruby on rails platform and making use of mongrel server.......I would like to know how does mongrel communicate with seagull database. I could not find any reverent links only for mongrel or the combined ..... Kindly do help me Thank You Advait -- Posted via http://www.ruby-forum.com/.
2006 Apr 04
3
Keeping javascript in the <head>
Given that Rails has built in ways to do almost everything else :) , is there a way to keep view specific javascripts inside the head tag of a layout without having to include that javascript on every page? -- Marlon -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060404/65e9bb6d/attachment.html
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
2007 Jan 27
5
Prototype not processing javascript
I''m trying to change over from Rails 1.1.6 to 1.2.1 and have discovered that either something is wrong with Prototype of else something has changed that I am not aware of and cannot find documentation on. (I just joined this group, so if this has already been cussed and discussed here or in another list then please point me in the right direction.) I am trying to use the
2006 Apr 12
4
CSS and Javascript with partials and layouts
Hi, I''m developing an application that uses a layout called main on every page. Most of the individual pages are represented with a single partial template, but there are several pages that are composed of multiple partials. My main layout looks something like this: Code: <html> <head> <title><%= @title %></title> <%= stylesheet_link_tag