similar to: javascripts

Displaying 20 results from an estimated 4000 matches similar to: "javascripts"

2008 Apr 04
4
Auto Complete Problems
Hello All, I''m a RoR newbiew, trying to experiment with Autocomplete, but I''m having some difficulties. When I start typing in my input box, instead of getting a nice drop down, the styling on my page is getting all out of wack (ie my background colours change, link styling changes, etc) and I''m not seeing any autcompletion data. Here are the steps I''ve taken
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 Apr 07
3
Strange errors in generated html
Hi! This: <%= javascript_include_tag :defaults %> <%= stylesheet_link_tag ''doitwithstyle'' %> generates this: <script src="/javascripts/prototype.js?1144418901" type="text/javascript"></script> <script src="/javascripts/effects.js?1144418901" type="text/javascript"></script> <script
2007 May 14
8
Problem with script.aculos.us script
I''m newbie to rails application. I like to use script.aculos.us script in my app. I faced the following problem. 1. first i creat my application. 2. Then I copied the files scriptaculous.js, builder.js, effects.js, dragdrop.js, controls.js and slider.js and prototype.js into my app/public/javascripts/ 3. Then included the <%= javascript_include_tag :defaults %> code into head
2006 Mar 29
4
Why doesn''t Rails 1.1 have all the Script.aculo.us 1.6 files?
Why aren''t builder.js, slider.js, and scriptaculous.js part of the Rails 1.1 javascripts? rab:javascripts $ pwd /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.0/html/javascripts rab:javascripts $ ls -l total 288 -rw-r--r-- 1 root wheel 148 Mar 28 08:56 application.js -rw-r--r-- 1 root wheel 28036 Mar 28 08:56 controls.js -rw-r--r-- 1 root wheel 23613 Mar 28 08:56 dragdrop.js
2007 Jan 19
4
Problem with link tags
Hell all, I have a layout were I add my stylesheets and javascript in the following manner: <%= stylesheet_link_tag "/form" %> <%= stylesheet_link_tag "/text" %> <%= javascript_include_tag :defaults %> But what happens is that in the actual web page the source is the following: <link href="/form.css?1168168516" media="screen"
2006 Mar 17
4
using ajax and layouts
Hi. I copied the layout-example from agile web dev. in rails. When I want to use ajax to create a search field including <head><%= javascript_include_tag "prototype" %></head> does''nt work when I include the line in my app/views/layout/demo.rhtml. Name of controller is demo_controller.rb. The search-field is in app/views/demo/observer.rthml and I have to
2008 Oct 31
2
Stubbing #javascript_include_tag in a helper spec
When writing specs for a helper method, how do you set an expectation for #javascript_include_tag ? describe NeighbourhoodsHelper do describe ''#initialise_map'' do it ''should include the "foo" JS file'' do # expectation here helper.foobar end end end I''ve tried replacing "# expectation here" with the
2005 Aug 18
2
Drag Errors anyone? Element.makePositioned
I tried to replicate the demo line for line. I even created a DB table, etc. etc. No dice. I''ve spent like 4 hours on this. I''m using rails 1.8.whatever and apache2. Basically latest everything from 2 days ago, using the newest RC in Firefox on Suse. Here is what I get: Error: Element.makePositioned is not a function Source File: http://cart/javascripts/dragdrop.js
2011 May 10
7
Webrick script/server file does not exist
Hello all, I worked fairly enough with PHP and MySQL, but am very new to Ruby. I have Windows machine with Apache and MySQL installed previously. Both Apache and MySql were stopped while installing Ruby. I tried several ways to install Ruby 1.8.7 and one-step installer. I can use Ruby with netbeans 6.0.1 with its own Ruby or with the one I installed now. The problem starts when I try to create
2005 Nov 08
2
Scriptaculous insertion fails when XHTML Strict used in FireFox
Hi ! I'm getting an uncaught exception requiring the Scriptaculous libraries when everything says XHTML 1.0 Strict: class ApplicationController < ActionController::Base before_filter :set_content_type protected def set_content_type response.headers['Content-Type'] = 'application/xhtml+xml; charset=ISO-8859-1' end end <?xml version="1.0"
2006 Apr 24
1
implementing a Slider control
i''m trying to implement a slider like "http://wiki.script.aculo.us/scriptaculous/show/SliderDemo", but i see that my code doesnt work. i seem to do everything correct but then if some one could look into it and help.. regards muddana The View Code: <%= javascript_include_tag "prototype", "effects"
2007 Feb 04
10
where to install script.aculo.us ?
I''d like to try autocompletion, and my understanding based on AWDWR:2, and on various website tutorials, is that I should install the script.aculos.us javascript library. My question is how to do that. The instructions on their site tell me to "Put prototype.js, scriptaculous.js, builder.js, effects.js, dragdrop.js, slider.js and controls.js in a directory of your website,
2006 Mar 23
3
drag and drop sorting recipe
The new pragmatic Rails Cookbook has a drag and drop sorting recipe. Does anyone know if this works with 1.0? I''ve followed the recipe (i think), and I can drag but when I drop everything goes back the way it was. It seems that the sort logic doesn''t get invoked. I put this code in my view: <%= sortable_element ''task-list'' , :url => {
2007 Jan 23
3
Too many session numbers per page request?
If I view the source on one of my pages I see: <script src="/javascripts/prototype.js?1168898271" type="text/javascript"></script> <script src="/javascripts/effects.js?1169242655" type="text/javascript"></script> <script src="/javascripts/dragdrop.js?1169241657" type="text/javascript"></script>
2006 Apr 11
4
text_field_auto_complete not working in IE?
Hi all, I''m looking for some insight on why my text_field_with_auto_complete might not work in Internet Explorer. I''m using it in a fairly simple way, without much customization. I''ve broken it down and made a test page at http://realty.colemanation.org/houses/test which shows the behavior I''m having problems with. For me on Windows XP this page works
2006 Jun 08
3
Back again; errors in depot app
Sorry, but this is a big one - after adding the Ajax portion of the Agile Web Development tutorial my page displays: Application error Change this error message for exceptions thrown outside of an action (like in Dispatcher setups or broken Ruby code) in public/500.html It started when I added - page[:current_item].visual_effect :highlight, :startcolor => "#88ff88" , :endcolor =>
2005 Dec 18
1
problems with text_field_with_autocomplete
I''m trying to set up a search field with autocomplete. I have verified that the server is called when I type a letter in the box, and that the handler creates the correct instance variable. However, I never see the partial that is supposed to be rendered. Here are the relevant files. I included their paths/names in case I am missing some nuance of the naming conventions.
2006 Dec 11
3
javascript_include_tag -- time stamp
Using, for example, <%= javascript_include_tag ''prototype'' %> results in <script src="/javascripts/prototype.js?1164912447" type="text/javascript"></script> I take it the number 1164912447 is the timestamp of the file (in seconds since the epoch) Isn''t it redundant to include this information? Isn''t part of the HTTP
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