Displaying 20 results from an estimated 1000 matches similar to: "rjs issue with Internet Explorer"
2006 Jun 12
2
date_select() in collection
Hi,
I am doing the following:
<% obj.contracts.each do |@contract| -%>
...
<%= hidden_field("contract[]", :contractor_id, :index =>
@contract.contractor.id) %>
<%= date_select("contract[]", :starting_on, :index =>
@contract.contractor.id) %>
...
<% end -%>
Here are the request parameters:
{"commit"=>"Save",
2006 Jul 28
2
RJS + Internet Explorer
Hello all:
I am using RJS templates to replace html on my pages. It works great
in FF but I get an RJS error in Internet Explorer. I believe I had it
working previously in IE, but for some reason it''s not working now.
Any help would be greatly appreciated!
Thanks,
--
Randy Schmidt
x@altorg.com
267.334.6833
2006 Nov 02
5
RJS error in internet explorer
hey all,
got a rails app i''m finishing up. i have a little ajax on one of my
pages where the person can choose a doctor from a drop down list and if
the doctor isn''t there they can click a link which blinds down a little
form to add a doctor. after they submit that mini-form the page updates
the div which houses the drop-down so the doctor shows up. works very
nicely IN FIREFOX.
2006 Aug 10
5
RJS in Internet Explorer to update a list box
Hi,
I''m trying some RJS to update a series of list boxes in which the user
selects a state, and the following list gets updated with a list of
counties, and the same for the next list of areas.
My code works perfectly (albeit a bit slow) on Firefox, but on Internet
Explorer it clears the list box (instead of filling it) and Netscape
shows all the counties cramped together on one
2006 Apr 22
0
RJS question - Query DOM/CSS from RJS?
I understand that I wouldn''t be able to directly query into the
DOM/CSS of a page from within an RJS file because it runs on the
server but is there any way to populate a variable from the controller
or something to gain access to DOM information?
What I want to do is this:
I have some RJS to blind_down an error message panel, but if the form
is resubmitted and there are still errors,
2006 Jan 13
1
Rendering an RJS template within another RJS template
Is there a way to render an RJS template within another?
I''ve put my simplified code below. No errors are generated, but the
partial isn''t rendered. I also tried using render :action =>
''update_actions''
destroy.rjs---
page.visual_effect :fade, comment_container(@object.id.to_s)
# update the number of comments(below is another rjs template)
render :partial
2007 Oct 25
0
specs for RJS
What''s the current best practice for spec''ing (and stubbing) RJS?
response.should have_rjs(*args, &block) from rspec_on_rails works well
for things that
assert_select_rjs supports. But for other things, like say
page[:elm].add_class_name :class_name, it''s not clear to me the best
way to test for this.
I''d love to be able to do something like
2007 Feb 13
1
RJS specs
Hi again...
This is wierd spec problem no. 3. I''ve got a simple one line RJS
file that renders a partial specified by the controller
page.replace_html("product_info", :partial => @product_partial)
The partials in question will contain purely static content - the
idea is to have some dynamic links, so you hit
http://localhost:3000/gap/product_info/product_1
2007 Feb 15
1
Specs for RJS HTML output NOT containing an element
Hi
I have an RJS template that renders a partial to update a page. I
just added a parameter to get passed into this partial to eliminate a
row in the table it generates, but I can''t find a way to test that
the unwanted output is in fact missing. should(_not)_have_tag
doesn''t work with RJS, and there''s no should_not_have from assert
select.
What
2007 Jan 25
0
Testing RJS select method
Hi
How can I test this kind of RJS code?
page.select ''#id .class''.each do |element|
element.removeClassName(''whatever'')
end
I know that should_have_rjs admits a block, but i don''t know exactly
which is its purpose.
And I can test that the "select" part is beign called, but I don''t
know hot to test the "removeClassName"
2006 Nov 04
0
RJS .....
hi all,
i have been hearing lot of RJS stuff,
can you people guide me by giving links which give good information
regarding RJS.
thanks in advance
regards
gaurav v bagga
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060907/c7cefb01/attachment.html
2006 Nov 04
0
RJS not setting form input value correctly
Good day.
I have spent almost 2 days on this issue.
I have asked everyone from my Rails expert to my Javasript expert and we can
not for the life of us figure out the issue with this one form element.
I have a form which contains several readonly/disabled (firefox/ie) form
elements.
ALL elements in the form are updated correctly EXCEPT this one form element.
The form element in the view looks as
2006 Aug 02
0
"RJS Error: TypeError: $(element) has no properties"
i have lots of divs, which are added via link_to_remote. now i want to
delete them with a link_to_remote button for each. i am giving them ids
with the same name and a serialized number. when trying to access them
with javascript/rjs, strange things happen: "RJS Error: TypeError:
$(element) has no properties?. is this a rails, rjs or prototype bug? or
am i missing something?
see my code
2006 Aug 03
1
Why doesn''t redirect_to handle rjs?
Is there a good reason why redirect_to doesn''t check responds_to, so
it can handle redirects in rjs calls? I''ve done something like this
in my app controller, seems to work ok...
alias_method :redirect_to_orig, :redirect_to;
def redirect_to(options = {}, *parameters_for_method_reference)
respond_to do |accepts|
accepts.html do
redirect_to_orig
2006 Aug 07
1
Unable to page.replace_html from rjs
I am having problems updating a div defined in a partial using both
Element.update and page.replace_html in an rjs. I can put a
link_to_remote in the partial using an :update, and the div updates
fine. Does anyone have any idea why this might be happening?
In the partial:
<div><div>
.
.
<div id="question_<%=question.id%>_error"></div>
.
(if a
2006 Aug 08
1
RJS in_place_editor Error
http://pastie.caboo.se/7624
It just renders the JavaScript response as text/html rather than it
being quiet.
try {
new Effect.Highlight("h1",{duration:1});
} catch (e) { alert(''RJS error:\n\n'' + e.toString()); alert(''new
Effect.Highlight(\"h1\",{duration:1});''); throw e }
I got this effect when i included an :update in a
2006 Aug 08
3
Updating a tr with RJS
I''m having a strange display issue when trying to update a tablerow
using RJS.
This is the code in the RJS template:
page.replace_html "item_#{@item.id}", :partial => ''item_display''
So the existing <tr> has an id like item_1. When the update actions
completes, it renders this template and effectively replaces the tr with
item_display which as a
2006 Aug 14
0
rendering RJS template from view
I''m sure I''m missing something obvious, but I''m stumped.
I have a tabbed nav bar with an associated content area that is used
to display query results. Clicking a tab, rebuilds the nav bar with
that tab now highlited, performs the query and renders the results to
a separate div. I''m using an RJS template which calls
page.replace_html with the various
2006 Aug 14
0
Checking element presence in RJS
I need to test whether an element exists before I do some RJS thing to
it. I currently have a small RJS snippet that looks like this:
page << "if $(''foo'') {"
page[''foo''].visual_effect :appear
page << "}"
This would make sense:
if page[''foo'']
page[''foo''].visual_effect :appear
2006 Aug 18
1
controller is to app.rb ; view is to layout folder ; rjs template is to ??
any help with this analogy? i have an rjs template that goes along with a method
i have in application.rb and the functionality will be used from many diff
controllers (the method take a tag as param to accomplish some AJAX
acrobatics).. just trying to stay DRY here. is there no other way other than
sticking the same rjs template in each view folder that uses this functionality?
i guess i could do