similar to: Layout case

Displaying 20 results from an estimated 20000 matches similar to: "Layout case"

2006 Aug 14
2
ajax - layout problem.
Hi guys Here is my problem... Using Ajax to update a div with link_to_remote. Problem is I have a layout defined in my class, so, the div gets the layout when I call the method, how di I tell a method to ingore the layout? Cheers. Pieter. -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Jul 24
3
Question about layout
Hey, I couldn''t find answer for this question for quite long, I hope some one will explain to me why layout specified in application.rb is not displayed properly on all views? I mean some divs are displayed wrong or without layout at all... let''s say login.rhtml has layout on its own and now it works ( exactly this same as project.rhtml which is layout for the whole
2006 Feb 17
4
link_to_remote doubles border size
I have a div with a border around it. I use link_to_remote to change the content, and the border size doubles. Example: <div id="test" style="border:solid; border-width:5px"> <%= link_to_remote("Test", :update => "test", :url => { :controller => "tester", :action => "test" }) %> </div> Even stranger, if I
2009 Jul 28
3
CIsco 7960 + asterisk: hepl needed
Dear All, I'm trying to configure my new phone Cisco 7960 to work with asterisk. I followed http://www.asteriskguru.com/tutorials/cisco_7960_ip_phone_configuration.html and I got into the point where I can see on the the display line indication showing "55 <phone icon with x>" so it looks like the phone is not registered. The phone and the asterisk are in the same local
2006 Jan 26
2
link_to_remote > in :action , interrupt ajax to render a new page outside the :update div ?
Hello, I have a simple link_to_remote that refresh a div. I just want to know if it''s possible to interrupt the div''s refresh inside :action to perform a complete reload of the page, outside of the div Actually, I havea a new page, but loaded inside the ":update" div. Someone have an idea please ? the rhtml: **** link_to_remote "yeah" , :update =>
2006 Feb 20
0
Ajax and tables
Guys, I want to be able to update the contents of a table without dedrawing the entire thing. Basically, if the user clicks on the 2nd column then i want to turn that cell red, the 3rd green and the 4th blue. I have the table drawing correctly now but not updating correctly. I can''t get the update to work on the div unless its inside the table cell. I was hoping to have the div
2007 Aug 12
0
Newbie: AJAX not working - Undefined Method error
Hello I have included prototype in my Applications rhtml file <head> <%= javascript_include_tag "prototype" %> <title>FLYPRO </title> <%= stylesheet_link_tag ''flypro'' %> </head> I call link_to_remote in a page as follows <div id="flypro-list"> </div> <%= link_to_remote("Do
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
2005 Dec 24
2
Ajax Help: Multiple Updates - ?
Hi! Wondering if anyone can tell me what''s wrong with my code? I''m trying to use the onChange event of a select list to update multiple divs... Agile Web Development with Rails (p. 403) suggests using ":complete => eval(request.responseText) instead of :update" I''ve attempted the following test code: # in the view <select name="plist",
2006 Jun 30
1
getting form values using link_to_remote
I have this as part of an .rhtml page: <%= javascript_include_tag "prototype" %> <%= form_tag :controller => ''reallist'', :action => ''addnewuser''%> email:<br /> <%= text_field_tag :email, nil, :size => ''14'' %><br /> <div id=''nameStatus''> </div> <%=
2006 Apr 12
1
link_to_remote with form values?
Hi, I need a way to read a form field and pass its contents as a parameter to a link_to_remote call. So let''s say I have a textarea input: <%= text_area ''course'', ''topics'', :rows => 6, :cols => 60 %> and later a link_to_remote: <%= link_to_remote("Hide", { :update => ''my div'',
2006 Jan 11
0
AJAX: link_to_remote problem
I use: <%= link_to_remote("Update", :update => ''mydiv'', :url => { :action => :create, :host => ''rails'' }) %> which generates the following: <a href="#" onclick="new Ajax.Updater(''mydiv'', ''/account/create'', {asynchronous:true, evalScripts:true}); return
2008 Jul 16
2
params for link_to_remote
Hello :-), i want to use ''link_to_remote'' to create a simple form on the website. The form is a simple editor to post a comment to an article. I need to know the article_id in the new view/controller. With ''render'' everything works fine, but ''link_to_remote'' doesnt work with :params :- ( here is my code of the article view: <div
2006 Jul 20
5
Need HELP changing link_to_remote to a button
I would really appreciate some help with changing a link_to_remote call to a button of some sort. Here''s a little background. On the page there are two <div>s. One is a form that lets the visitor enter items. The second <div> is where the entered items get displayed, each in it''s own item <div>. Each item <div> has two <span>s. The first one
2006 Jun 01
1
link_to_remote show then hide
Hi, I have a link_to_remote and it update a div. After the first click the div is opened with the information. Now I want to be able to close hide the div . How should I do it. Someone at the IRC told me to use toggle. But what I want is a bit odd. I want that it will not do again link_to_remote but toggle. Tnx Kfir
2006 Apr 22
3
quick ''link_to_remote'' question
Hi all i''m using link_to_remote to render different sets of text-input fields. i''m setting up links in a sidebar to do this so, in my _sidebar.rhtml i have <%= SidebarItem(''catalogue'') %> this works...(in works.helper.rb) def SidebarItem(name) link_to_remote "#{name}", :update => ''EditFields'',
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 Jul 10
1
link_to_remote questions
Hello, I tried link_to_remote to see the build in AJAX capabilities with rails for the first time for me, I tried the following code and it worked: <%= link_to_remote( "some link", :update => "some_div", :url =>{ :action => :someaction }) %> OK, it has worked, but I have two questions here: 1- When moving
2006 Apr 26
8
Newbie: Hide div I''ve just show using link_to_remote?
I''m using link_to_remote to show details for an item that''s clicked. I''d like to hide the div with the next click, or alternatively have a "Hide" link within my div. What is the best way to accomplish this? Here''s my existing code: <% for task in @mytasks %> <div class="rowFormat"> <%= link_to_remote(
2006 Apr 08
1
How To ??? change class of DIV
I''m trying to replicate the "green-bar" effect used in the Depot app using Ajax. And I''m almost there ;-) I''m about to set off on the last stage and would appreciate any advice that would set me off in the right direction. On the page, each record is represented by a <div>. Each <div> has id = "item#{record.id}" with class = either