Displaying 20 results from an estimated 10000 matches similar to: "Problem with "javascript_include_tag :all" tag."
2008 Jun 19
2
undefined method `text_field_with_auto_complete'
Hello everybody,
I am new to ruby on rails, I am trying to create an auto_complete field
on Ruby on Rails 2.0 and even though I have installed the auto_complete
plugin and followed the instructions of various tutorials, specially the
following: http://trix.pl/blog/auto-complete-for-rails-2-0-tutorial.html
I am still getting the same error:
undefined method
2007 Jan 04
0
javascript_include_tag emits self-closing <script> tag
hello,
here is a sample rhtml:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head><%= javascript_include_tag :defaults %></head>
<body>test</body>
</html>
the
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
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
2008 Feb 01
0
javascript_include_tag and controller actions
Hello folks,
I''d like to include the javascript generated by an RJS file in an
RHTML file using the <script></script> tags. I was going to use
javascript_include_tag to do this, mostly in order to ensure that the
contents are not cached by the browser.
Unfortunately, javascript_include_tag appends a ".js" to the file name
if there is not a period in the file name.
2006 May 14
3
need help for simple form tag (noob)
when the user click on "Search" I would like it to point to
http://curentpage/?filter=searchtext (the filtering code is already
written)
it would look like this:
<%= start_form_tag(url_for_options = {<something>}) %>
<%=text_field (<my_filter>) %>
<%= submit_tag(value = "Search")%>
any idea how to do this?
thanx in advance
2010 Jun 02
1
Ajax with JQuery
I have used Ajax link and live validation in index.rhtml
Ajax link requires JavaScript "prototype" and live validation requires
"jquery".
i got "element.dispatchEvent is not a function" on the firebug console
when i used "prototype" and "jquery" in same page index.rhtml
after i removed javascript "prototype" library, i got "Ajax is
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
2011 Aug 10
3
javascript_include_tag error
<!DOCTYPE html>
<html>
<head>
<title><%= @title %></title>
<%= csrf_meta_tag %>
<%= javascript_include_tag
"http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js",
"jquery.rails.js"
%>
<script type="text/javascript">
...app/views/layouts/application.html.erb:7: syntax error, unexpected
2006 Feb 11
1
auto_complete
hi guys
I am trying to work the AJAX text_field auto_complete and I was
wondering if someone can show me a sample code of how it works
thanks I really appreciate it
--
Posted via http://www.ruby-forum.com/.
2006 Jan 28
8
how to pass search parameters to pagination links
I have a search page with a text_field as below
<%= text_field ''program'', ''program_name'' %>
After I perform the search in my controller I go to a search results
view which shows search results and uses Rails pagination. Now how to
pass the search paramters (i.e. params[:program][:program_name] in my
controller) to the pagination links (next and
2011 Oct 12
4
How to access controller's instance variable in a js.erb loaded by javascript_include_tag?
Hello!
In rails 3.1 app I have a controller UsersController with ''show'' action.
show.html.erb contains:
<% content_for(:head) do %>
<%= javascript_include_tag ''myscript'' %>
<% end %>
<p>Hello @user.name</p>
And I have this in myscript.js.erb
$jQuery(document).ready(function() {
alert(<%= @user.name %>);
});
@user is being
2006 Jun 20
0
No opening form tag in rendered HTML
I cannot get my form to submit for my simple blog site (based on the "How to Build a Blog Engine in 15 Minutes" presentation)
Any ideas?
Thanks,
Tom
----------------------------------------------------------------------------
Here is my code:
#Post controller
class PostsController < ApplicationController
def index
list
render :action => ''list''
end
2008 Jun 02
0
stylesheet_link_tag, javascript_include_tag, caching problems
So, the new caching for stylesheet_link_tag, javascript_include_tag
which rolls up the files into one all.js or all.css files is great ...
however I''ve run into an issue:
If all.cs or all.js don''t exist, they get generated ... great, I''ve
reduced the number of gets ...
The problem is what occurs when the files already exist ... even if
I''ve changed my list of
2009 Feb 10
0
javascript_include_tag -- 500 internal server error
Hi,
I''m trying to use (in my view/layout) javascript_include_tag and it
generates something like:
<script type="text/javascript"
src="http://apps.facebook.com/fbml_static_get.php?src=%2Fcanvas_name%2Fjavascripts%2Ffacebooker.js%3F1234225416&appid=my_app_id&pv=1&sig=995d0e338609600ecbc28c3caf156f29&filetype=js"></script>
But when trying
2007 Oct 11
2
relative_url_root and javascript_include_tag
Hi. In my environment.rb, I have:
ActionController::AbstractRequest.relative_url_root = "/foobar"
In my layout, I have:
<%= javascript_include_tag :defaults %>
Question 1:
I am getting an error:
ActionController::RoutingError (no route found to match
"/javascripts/prototype.js" with {:method=>:get}):
When I remove the relative_url_root, everything works great.
2006 Mar 01
1
observe_field question
I''m sure this is a simple problem, but I''ve been working on it for a
couple days and can''t seem to figure out the correct way to structure my
observe_field call. The HTML and Javascript generated all appear
correct, but the AJAX call is never made. Below is the code I''m using
and any help would be much appreciated.
models_controller.rb
def
2007 Jan 20
1
Not appear error message
I have a partial form "empresa". In new.rhtml of "empresa", I call the
partial form of "usuario". Well, it is happening the following: When
save empresa, and stop in validates, as much in "empresa" how much
"usuario", appear only error message of "empresa", and not of "usuario".
Because this happening?
ps1.: I use flash_message
2006 Feb 22
0
Need help getting value from text_field_with_autocomplete
Good day.
I have setup of a text field with auto complete and I need to grab the value
from that text field and pass it into a method to update a row in a table.
Here is the view:
<tr>
<td align="center" colspan="6"><%= text_field_with_auto_complete(
:product, :product_code ) %></td>
</tr>
<tr>
<td
2011 Feb 03
1
How to transfer a javascript value into a symbol used in Ruby on Rails
Hi,
I am currently using Rails 2.0.2 with Ruby 1.8.7. My Prototoype.js
version is 1.7(if required). I am basically trying to integrate the
calendar_date_select plugin in my app.
The link/tutorial I am referring is: http://ianli.com/site/HowTo/UseCalendarDateSelectRailsPlugin
I am trying to save the date I receive through the date select plugin
and store in a rails symbol :publishing_date.
I am