similar to: Master-Details with Ajax

Displaying 20 results from an estimated 5000 matches similar to: "Master-Details with Ajax"

2006 Apr 13
1
Adding a title to an AJAX link.
Hello all. I am trying to add a title to a link_to_remote created AJAX link. What I want to create is: <a href="#" title="VALUE-HERE" onclick="new Ajax.Updater(''content'', ''/area/show/28/40'', {asynchronous:true, evalScripts:true}); return false;">Area Name</a> However I cannot seem to get it to work, the API says
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 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
2006 Feb 28
4
No action from AJAX link_to_remote...
AJAX & Ruby & Rails newbie here. I''ve got a link to remote that I believe should be working, but doesn''t seem in fact to do *anything*. I''m looking at the webrick log, since the Book says I should be seeing some hot POST action in there, but there''s literally no change when I click on the JS link. From looking at the source that''s
2006 Jan 14
3
link_to_remote where the url contain a javascript variable
Ok, so I am basically trying to use ''link_to_remote'' and pass the value of a javascript variable as an argument. Something like that: link_to_remote "my_link", :update => ''my_div'', :url => { :action => "my_action", :var => ''my_var'' } Basically,
2006 Jun 28
2
Assign CSS class to Link to Remote
I''m trying to get link_to_remote to assign a CSS class to the link it generates. My code is as follows: <%= link_to_remote "Show Full Info", :update => "fullcontact" + reparray.last.to_s, :url => "/cm/full_contact/" + reparray.last.to_s, :classname => "contactlink" %> Which produces this HTML: <a href="#"
2006 Mar 20
0
Re: Problem with AJAX not working on IE
I am running the simplest web2 demo from AWDWR (./example/index) on a slackware box running WEBrick on RadRails; with firefox and Konqueror (!) 3.4.2 anyway) everything fine; on laptop talking to my linux box, firefox does it instantaneously; but... IE DOES DO it, but takes a full 31 seconds!!! (The RadRails WEBrick console shows the POST immediately, but IE trundles for a full 31 seconds to
2006 Mar 18
2
Additional link tag attributes with link_to_function...
Hi, I''m having a bit of a struggle with link_to_remote. Everything works exactly as I want it, but the problem is that I want to add another attribute to the <a>-tag, namely class="". Long story short, I want specific links to look differently from others, but all of them being link_to_function. Normally, I''d do this with adding a class="foo" to
2006 Dec 04
0
lint_to_remote for image
I have some simple code so that when you click on a thumbnail, it''s supposed to display the image enlarged in the enlargement area. The page looks right, but when you click on a thumb nothing happens, it just moves up the page. Why is the href=# happening ? The generated html comes after the sample rhtml <%= image_tag @enlargement, :width => "279", :height =>
2006 Mar 29
0
I can''t get to work css class with link_to_remote function
What am I doing wrong? This is the code <%= link_to_remote "Mi Cuenta", :update => "MainSpace", :url => {:controller => "account", :action => "login"}, :class => "menu_link_superior" %> This is the result <a href="#" onclick="new Ajax.Updater(''MainSpace'',
2006 Jun 24
6
Ajax fade effect
I have a list of categories, when I delete one of them, I want that item to fade and then get removed. So I do the following: 1. home_controller: def delete @category = Category.find_by_name(params[:name]) @element_id = @category.name Category.delete_all(["name = ?", @category.name]) end 2. delete.rjs: if @element_id page.visual_effect :fade, @element_id
2006 Aug 03
0
link_to_remote() question from a newbie.
Hello, I am trying to utilize link_to_remote() in the following manner: <%= link_to_remote(exchange.name, :update => ''mydiv'', :url => { :controller => ''attributes'', :action => :list_user_attributes, :class_id => class.id, :user_id => user.id } ) %> And
2006 Jun 19
10
Trying to delete from a unordered list using ajax
I have a controller method as such: def delete @category = Category.find_by_name(params[:name]) @element_id = @category.name Category.delete_all(["name = ?", @category.name]) end (For the purpose of this exercise, category names are unique) I have the corresponding delete.rjs file: if @element_id page.remove :id => @element_id page.visual_effect :highlight,
2006 Jan 16
2
Problem with AJAX not working on IE
I''m having a problem making this code to work on IE: var Permit = { // Expand permit information onMore: function(id) { new Ajax.Updater(''pm-''+id+''-lg'', ''/employees/sign_permit_lg/''+id, {asynchronous:true, evalScripts:true, onLoading:function(request){
2008 Jan 23
2
CSRF / cached authenticity tokens / ajax requests
I''m going to go out on a limb here and say the new CSRF protection in Rails is flawed. Why? Forget about caching if you care to use it. Consider the following: <% cache do %> <%= link_to_remote "Add To Favorites", :url => {:controller => "favorites", :action => "create", "movie_id" => 2} %> <% end %> # Output <a
2012 Aug 07
4
how to do render partial on jquery ajax success method with rails 3
I''m using rails 3.2.1 with jquery for an ajax call. My juqery code is : jQuery.ajax({ url: "/org_pages", data: ''org_id=''+ org_id, type: "POST", success: function(result){ jQuery("#image_center").html("<%= escape_javascript(render(:partial =>
2007 Jul 06
0
Removing One Element From a Serialized Form
Hi all, I''m trying to serialize a form with the exception of one specific element. Serializing the form in a hash (without pulling out specific elements) works: <li> <%= link_to_remote ''(Save)'', {:url => post_path(@post), :with => "$ (''post_form'').serialize(true)" }, :method => :put %> </li> The generated code
2007 Jun 27
1
Prototype 151; Ajax.Updater vs Ajax.Request and evalScripts=true
Why does Ajax.Updater() and Ajax.Request() differ in how evalScripts is handled? Or doesn''t it, and I just got it wrong? I have a module that generates an Ajax request to insert dynamic content into a div. The dynamic content is plain vanilla HTML with some inline javascript *functions* I cannot get the browser to honor/execute/see those javascript functions when I use .Request() If I
2005 Sep 21
9
Ajax.Updater
Hi all, I was wondering if one could pull a completely separate web site into a div, e.g. <a href="#" onclick="new Ajax.Updater(''artifact'', ''http://www.vivisimo.com/'', {asynchronous:true, evalScripts:true, onLoading:function(request){Toggle.display(''message2body'')}}); return false;">&raquo;</a> it fails
2006 Mar 22
2
problem with Ajax.Updater evalscript and firefox
Hello there people, im having a problem with the Ajax.Updater evalscripts, i fill and div with a form that i get with the Ajax.Updater, that form had a javascript validation, i put evalScripts true but when i get the form i had an unexpected close in the firefox, i had a long time looking the answer but nothing yet, somebody with the same problem? or the answer? greets -- // // Ing. Francisco