Displaying 20 results from an estimated 9000 matches similar to: "RJS templates, Safari 1.3"
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
2007 Feb 17
0
Template is missing 'show.rjs.rhtml' error in safari only?
I was able to solve this but want to understand why this fix works.
Solution:
Remove the format.js line from the respond_to block
the error i get when navigating to: /music;accept
Template is missing
Missing template script/../config/../app/views/music;accept.rjs.rhtml
Accept is an aspect of the music controller eg in routes.rb
map.resources :music, :collection => {:accept =>
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
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
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 Jun 23
3
Ajax errors in safari
I am implementing some AJAX features into a web forum, and one feature
works fine in Firefox and in IE, but it is choking in Safari. Safari
will send the request fine and the data will be stored in the DB, but
it is not responding correctly to the RJS that is being sent back.
Anybody notice issues with Safari parsing the javascript sent back to
the browser?
--
Timothy Johnson
2006 May 02
1
Very simple RJS not working in IE
My HTML:
<div id="search_div" style="display: none;">
<table>
<tbody id=''search_results''>
</tbody>
</table>
</div>
My RJS:
page.insert_html :bottom, ''search_results'', "<tr><td>Test</td></tr>"
page.show "search_div"
Now, everytime this gets called, it adds a
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 06
1
Getting value of form using Ajax (and problems with Safari)
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
2006 Mar 31
3
RJS templates outputting bloated code?
I''m an RJS newbie. I just did the tutorial at
http://www.codyfauser.com/articles/2005/11/20/rails-rjs-templates, and
then used wget to look at the output the RJS template generates. This is
what I got:
try {
new Insertion.Bottom("list", "<li>Fox</li>");
new Effect.Highlight("list",{duration:1});
Element.update("header", "RJS
2006 May 04
1
Ajas Scaffolding and RJS Templates the same thing?
Hey all,
I''m just starting in rails and am working on my first app. I need to do
inline editing for 2-15 rows of data on a page. I found Ajax
Scaffolding here:
http://www.ajaxscaffold.com/
And it is EXACTLY what I want in my app. But I''ve also been trying to
read a bit up on RJS Templates. Are they basically the same things
except RJS is built into rails or is the
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
2005 Dec 19
1
Question about rjs templates
Hi everyone
I read some support about rjs templates at
http://www.codyfauser.com/articles/2005/11/20/rails-rjs-templates
but when i download the rails1.0, i could not find the code in
http://dev.rubyonrails.org/changeset/3078 ,and i also could not find the
file actionpack/test/fixtures/test/delete_with_js.rjs
is something wrong with me.thanks for your answers.
--
Posted via
2006 Feb 08
3
Using shared RJS templates
I''ve got an action in my application controller that needs to call a
shared RJS template. Typically it''s actually being called by subclasses
of the application controller.
I''ve tried this..
def action
...code..
render :partial => "shared/template"
end
with ''_template.rjs'' existing in the shared folder.
The problem that crops
2006 Aug 18
3
RJS templates for DOM manipulation
I want to do some DOM manipulation with JavaScript. Specifically I
want to implement zoom in/out in a picture by changing it''s
width/height attributes. Is it possible to do this using RJS or should
I write javascript by hand?
All the examples of RJS I''ve seen write the javascript in the result
of an AJAX remote call. Where are the docs for RJS? All I''ve seen are
blog
2006 Jan 29
2
GetText and rjs templates?
hi,
is it possible that gettext don''t work with rjs templates?
i''ve just tried this simple example
blog_controller.rb :
class BlogController < ApplicationController
def index
end
def dosomething
end
end
index.rhtml :
<html>
<head>
<%= javascript_include_tag :defaults %>
</head>
<body>
<div id="test">Some text to change
2005 Dec 15
0
RJS Templates and the Replace semantics
I have an issue with the way replace_html works in an RJS template.
This is a copy of a post on my blog (http://blog.craz8.com
<http://blog.craz8.com/> ) that describes the problem and my working
solution to the problem.
If I have a collection of things that are output like this:
<div id="things">
<% @things.each do |thing| %>
<%= render :partial =>
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
2006 Feb 18
2
Effect queues with RJS templates and scriptaculous
Hi. I was wondering if it''s possible to combine effects for
individual elements with RJS templates. I notice that scriptaculous
has support for a concept called effect queues
(http://www.railsdevelopment.com/2006/01/15/effectqueue/). Is there
anyway to use these queues from rjs?
2006 Aug 02
9
RJS not cross browser compatible?
I have an RJS template that does the following
page.insert_html :bottom, "some_id", ''<tr id="some_id"><td></td></tr>''
This works just find in safari and firefox. In IE and Opera it doesn''t
work so great. Any ideas? Am I doing something wrong here?
--
Posted via http://www.ruby-forum.com/.