similar to: simple client side javascript clock

Displaying 20 results from an estimated 4000 matches similar to: "simple client side javascript clock"

2006 Jun 21
5
newbie - question on radio_buttons
I have a view with a form and i want to be able to process the button selected in a controller - not sure how to do this. The form does not map directly to a model - all I want to do is be able to pass back the selected button and know which one it is. So, i have a form and several radio buttons - the submit (not shown) takes me to the process_answer action where I want to determine which
2010 Jul 12
1
newbie: what is preferred approach for including javascript files?
Hi, What is the cost of not cacheing javascript? If that cost is serious, do I prefer to selectively include javascript files only for view where they are needed? In other words I see four options: 1) Cache everything in layouts/application.html.erb and don''t worry about selective inclusion of .js files where they are needed; 2) cache some things in (e.g., dependencies like jquery) and
2006 Jan 25
3
Application Helper and Javascript
I have a "javascript_include_tag" including a Javascript function. I have a function being invoked via a helper in the same view, which prints out a script tag that uses the javascript function above. Problem is, the function being invoked via the helper can''t find the javascript function included in the "javascript_include_tag". I hardcoded the javascript that
2008 Jun 05
0
Javascript & Scrolling
I am currently in the middle of creating a horizontal scrolling product list with page buttons that use effects to scroll from one page to another using scriptaculous. I am having problem that when the window is resized, so only the viewable area of the div changes, this causes the width to change and then because of that the scroll effect will scroll to position 2000 but then when the scroll bar
2006 Jul 07
2
disabling a layout before calling javascript window.open
Hi, I have some code in which i open a pop up when a user clicks on a link. However, the new popup window comes with the layout of the page on which the user clicked the link. I would like to remove the layout only from the new window which is created with the javascript window.open - any ideas thanks -- Posted via http://www.ruby-forum.com/.
2007 Oct 27
1
Edge Javascript caching just not working
For some reason, in production, with this one line of code: javascript_include_tag :all, :cache => true I get this: <script cached="true" src="/javascripts/prototype.js?1193454472" type="text/javascript"></script> <script cached="true" src="/javascripts/effects.js?1193454472" type="text/javascript"></script>
2006 May 12
1
Problem in including javascript files
Hi, I am using this <%= javascript_include_tag ''/editor/xyz.js'' %> to include javascript source to my code. But I am getting this as output <script src="/editor/xyz.js?" type="text/javascript"></script> I just want to know why I am getting a question mark in "/editor/xyz.js?". Thanks for any assistance in advance. Regards
2013 May 29
2
Why can't get remote javascript libraries on Rails 4
In rails 3, I included this line: *<%= javascript_include_tag "http://cdn.leafletjs.com/leaflet-0.5.1/leaflet.js" %>* But when migrate to rails 4, its not posible and I get the next error: *Invalid argument - C:/Ruby193/findiner/app/assets/javascripts/http://cdn.leafletjs.com/leaflet-0.5.1 * So far, I won''t be able to get remote libraries. Thanks for help! -- You
2007 Nov 14
0
9 commits - libswfdec/swfdec_as_string.c libswfdec/swfdec_color_as.c libswfdec/swfdec_interval.c test/image test/trace
libswfdec/swfdec_as_string.c | 31 +++--- libswfdec/swfdec_color_as.c | 9 - libswfdec/swfdec_interval.c | 2 test/image/.gitignore | 2 test/trace/Makefile.am | 27 +++++ test/trace/array2-8.swf |binary test/trace/array2-8.swf.trace | 40 ++++++++
2008 Jul 17
1
child xxxxx (imap) returned error 83 (Out of memory)
Hi list, > Jul 17 12:15:10 seamus dovecot: IMAP(someone at somehost.org): block_alloc(): Out of memory > Jul 17 12:15:10 seamus dovecot: child 26181 (imap) returned error 83 (Out of memory) I found those two entries in the logs this morning. The system has ample free memory. What's going on? -- martin | http://madduck.net/ | http://two.sentenc.es/ "i wish i hadn't slept
2007 May 09
0
Scriptaculous Sortables: dragging between sortables and reordering them by javascript?
Hello, I wanted to drag elements from one sortable to another - not a problem. the hard thing is that i want to call a JS function to reorder the elements by certain criterias (ranking f.e.). So the two involved sortables are firering two onUpdate event. When I am changing the order of the LI-elements of the first Sortable (by removing them and adding them again), the second onUpdate event will
2006 Jun 26
8
id of last element in a table
Hi, I would like to figure out how to determine what the id of the last element in a table is. Is there an equivalent to the Table.find() method which will tell me the number of elements in a table? also, maybe more importantly, where are the available methods on tables documented? What i am trying to do is to increment the id and work through a table and check whether the id i am currently
2007 Oct 25
0
4 commits - libswfdec/swfdec_button.h libswfdec/swfdec_button_movie.c libswfdec/swfdec_resource.c libswfdec/swfdec_resource.h libswfdec/swfdec_sprite_movie.c test/trace
libswfdec/swfdec_button.h | 18 +++++++------- libswfdec/swfdec_button_movie.c | 10 ++++---- libswfdec/swfdec_resource.c | 10 ++++---- libswfdec/swfdec_resource.h | 2 - libswfdec/swfdec_sprite_movie.c | 3 -- test/trace/Makefile.am | 37 ++++++++++++++++++------------
2006 Jan 28
2
javascripts
Trying to use auto_complete_for which works fine on my home system. I see that when I use <%= javascript_include_tag "defaults" %> that when used, the webrick reports GET /javascripts/prototype.js GET /javascripts/dragdrop.js GET /javascripts/effects.js GET /javascripts/controls.js but on the system that I am trying to develop on and doing similarly, the webrick only reports
2006 Aug 14
2
Plugins: Validation Reflection and Client-Side Validation
I''ve just put two plugins on RubyForge. Included below are the READMEs. You can get the plugins at svn://rubyforge.org//var/svn/valirefl/validation_reflection/trunk svn://rubyforge.org//var/svn/clientsidevali/client_side_validation/trunk Michael Validation Reflection ===================== Version 0.2, 2006-08-06 This plugin adds reflective access to validations -
2006 Mar 22
1
Lightning Fast Javascript Auto complete
<%= javascript_tag("new AutoCompleter.Local(''search_start_station'',''start_station_auto_complete'', stations);") %> I have <%= javascript_include_tag :defaults %> in the head of my layout. But I always get an Error: "AutoCompleter is not defined". Im using Rails 1.0, so I should have the latest javascript files. The tag
2005 Jun 28
2
Problems with repeated calls to setTimeout?
Prototype.js and Thomas''s effects scripts use repeated setTimeout calls for timed looping, for instance in time-based observers. On Konqueror 3.4.1 (possibly other khtml-based browsers, too), these observers reproducibly crash the browser. Just keeping open a browser with such an observer is enough. After some time it invariably segfaults. When I substitute setInterval for setTimeout
2008 Sep 17
1
rejecting mail due to quota exceeded
Hi, we are using dovecot's deliver to deliver mails to a virtual mailbox tree owned by the vmail user, by piping the message to the following command spawned by vmail: /usr/bin/env HOME=/srv/vmail/mydomain.ch/myaccount /usr/lib/dovecot/deliver When a message is delivered to an account that has reached its quotum, deliver issues a failure message saying: From: Mail Delivery Subsystem
2008 Apr 27
4
Smoothing out effects/ consistent effects everytime
HI All, I am using this code here: setTimeout("Sound.play(''sounds/movieprojector.mp3'');", 600); setTimeout("Effect.Appear(''slideshow5'');", 850 + 600); setTimeout("Effect.Puff(''slideshow5'');", 850 + 600 + 850);
2012 Jun 28
2
Best practice on Javascript and rails
Hi, I get constantly nervy whenever trying to implement any javascript / jquery in rails, basically because I''m not sure where to put things in the project! I know the people at rails have thought long and hard about how to best structure an app, so I''d like to learn the correct way. I''m using rails 3.2, ruby 1.9.3 ///////////// 1st situation - using a gem to include