Displaying 20 results from an estimated 20000 matches similar to: "Template is missing 'show.rjs.rhtml' error in safari only?"
2006 Jul 29
0
RJS templates, Safari 1.3
Hello,
I''m having a problem getting RJS templates working with Safari 1.3
(latest version available to OS X 10.3 and earlier). I''m using Rails
1.1.4, running on either linux or OS X.. same results.
My RJS pages work fine using Safari 2.0, IE and Firefox.. just not
Safari 1.3.
The twist is that the following RJS sites work fine in Safari 1.3:
http://depot.iamjp.com/demo
2006 May 12
0
RJS, Safari, Error - DOM exception 7
I''m having nasty cross-browser headache.
Not new to Rails, but quite new to AJAX/RJS.
My app works perfectly in Firefox, but generates
the error in the subject line in Safari.
Pretty simple circumstance, completely reproducible
in all cases:
Any ideas? Relevant code attached.
Layout:
-------
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC
2006 Apr 14
18
RJS Templates & Safari?
Hello,
I tried Cody Fauser RJS tutorial
(http://www.codyfauser.com/articles/2005/11/20/rails-rjs-templates)
on my railsplayground dev site and got it to work when using Firefox,
but when I tried it on Safari, nothing happens.
Then I tried this tutorial -
http://rewrite.rickbradley.com/articles/2006/02/06/rjs-templates
Similarly, it works fine on Firefox... but with Safari the list is not
2008 Jan 07
3
Rails check for a .js template instead of .rjs?
respond_to do |format|
format.html
format.js { render :template => "login" }
end
Whenever I send an AJAX request to the action that has that code it says
it cant find the template login.js. Why isnt it looking for login.rjs?
Also when I take out the render it serves up the rhtml template instead
of the rjs template. Any idea why this is? I am using edge rails and the
latest
2008 Mar 19
6
Back button behavior has changed again in Safari 3.1, after doing a dom update via ajax/RJS
GAH!
Here is the firefox behavior, which is perfect:
1) View page 1
2) Update some text by using link_to_remote or remote_form_for, along
with an RJS replace or replace_html
3) Navigate to page 2
4) Hit back
5) Page was cached with dom updates, note that the page is show in the
same state as it was left
Safari 3.0 behavior
1..4) repeat
5) Page reloads, ending up in the state where it was left
2006 Mar 22
1
RJS - Still not working in IE
The previous thread on this topic got a little disjointed, so I thought
I''d summarize the issue again, in hopes that someone could help. To
re-iterate, this rjs works in Firefox and Safari on Mac, and in Firefox
on Windows. It fails, in IE on Windows. The failure is that the second
page.replace_html seems to do nothing.
My environment is:
Rails 1.0 + RJS Plugin
Updated
2006 Jun 17
2
RJS templates - newbie
I am trying to test drive RJS templates in Rails 1.2. Here is what I
did:
create table categories (name varchar(255) );
rails RJSTest
cd RJSTest
rake update_javascripts
script/generate controller home index add
script/generate model category
Note: When I did a rake update_javascripts, I did not see any output.
I configured database.yml to talk to mysql.
Next I wrote
2006 Jun 06
0
Get value from form using rjs, and problem with Safari
Hi,
I have got two forms, the first is a textarea plus a link that activates
some javascript to change the form, the second activates some javascript on
the onchange event which changes it into a textarea form.
This works in Firefox, but not in Safari.
Also, I need the value which is selected. I''ve found an example that gives
the parameter to the javascript, like this:
<input
2008 Oct 29
0
RJS problem after upgrading to Rails 2.0.2
I just updated an old app from 1.2.6 to 2.0.2 and I''m having an rjs problem.
I have one page that has 2 submit to remote buttons, one to do a price
override and the other to remove the lineitem. Everything is working
perfectly before the update but now the price override doesn''t update the
page. I''ve verified that the price_override method still gets called
because
2006 May 30
2
No rhtml, rxml, rjs... problem with Action Mailer, again
Hi all
I have seen a lot of people writing my same problem but I haven''t found
the solution yet. This is the problem:
"ActionView::ActionViewError in Periodico#index
No rhtml, rxml, rjs or delegate template found for..."
when trying to send email through action mailer.
I have created the Notifier.rb model (in app/models/ folder)
def signupthanks(user)
# Email
2006 Jul 03
2
rjs renders string or partial but not template or action
Hi,
I have an rjs file. I only have one controller called called front. I
have views called "new_title.rhtml" and "_new_title.rhtml"
These work
page.replace_html ''title'', ''new title''
page.replace_html ''title'', :partial => ''new_title''
page.replace_html ''title'',
2006 Aug 17
2
RJS - slower than normal RHTML?
I know that isn''t supposed to be the case, and it usually isn''t, but
today, I''ve run across a situation where rendering the same partial
through RJS is taking about 5 times longer than rendering the partial in
the RHTML.
I have in my main RHTML
<tbody id="account_transactions">
<%= render :partial =>
2006 Jul 20
2
Why is my rxml view being wrapped by the rhtml template in views/layouts?
Why is my rxml view being wrapped by the rhtml template in views/
layouts?
I was experimenting with REST, I had a nice little test program with
one table: ''resources''. Here''s what the show method looks like:
def show
@resource = Resource.find(params[:id])
respond_to do |accepts|
accepts.html
accepts.xml
end
end
I have a show.rhtml
2007 Jun 25
2
passing parameters from rhtml to rjs
I need some parameters to go from my rhtml to my rjs. Anyone know how
to do this?
--
Amos King
A. King Software Development and Consulting, L.C.
http://dirtyInformation.com
--
Looking for something to do? Visit http://ImThere.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
2006 Mar 29
0
rhtml & rjs syntax hilighting in scite
Hi
Is there anyone here who uses scite for development?
Im looking for syntax hilighting (rhtml & rjs) and other good
configuration for rails development in scite.
Thanks in advance.
/Andreas
2006 May 14
0
RJS Template not getting called
I have a shared account on Site5.com running Rails v1.0. I installed
the RJS template plugin within my project.
My controller function gets called, but my corresponding RJS template
does not get called. The following is output (any thoughts?):
ActionController::MissingTemplate (Missing template
./../config/../app/views//workout/addjournalentry.rhtml):
2009 Jul 28
4
RJS-Template and link_to_remote
Hi, I am quite new to rails and can''t use any rjs-templates.
The problem is, that he can''t use/find the methods in that template
e.g. ''page'' or ''replace_html''. I get an error message on these
methods.
Here''s what I got so far in my example:
Controller:
----
class AjaxTestController < ApplicationController
layout
2006 Mar 15
4
RJS template eating encoding
I was previously doing an update via .rhtml templates creating an AJAX
:evaluate_remote_response. I use UTF-8 in my pages, and my app
requires that I be able to, say, put Japanese characters in.
The problem is that when I switched this over to an RJS template it
started eating the encoding. I now get garbage characters where before
I got the correct ones.
The code for the RHTML:
<%=
2006 Apr 15
0
respond_to issue
I''m having some trouble with respond_to to handle multiple request
types from a single action.
The action:
def login
return if request.get? #just show the login.rhtml page on HTTP GET
self.current_user = User.authenticate(params[:login], params[:password])
respond_to do |type|
type.js { render } # renders login.rjs
type.html do #fallback for standard
2007 Apr 10
0
Change in default xml, rjs respond_to templates that Rails looks for on edge Rails
Not sure if this is the right avenue to discuss this but I couldn''t
find anywhere to ask this question on Rails Trac.
Regarding this latest changeset:
http://dev.rubyonrails.org/changeset/6507 (Change default respond_to
templates for xml and rjs formats.)
Does anyone know the rationale behind it? I can imagine there would be
an announcement in the future about this backward