similar to: Problem with adding entries to a guest book using ajax

Displaying 20 results from an estimated 70000 matches similar to: "Problem with adding entries to a guest book using ajax"

2007 Mar 01
3
Ajax.PeriodicalUpdater using Effect.Highlight to highlight newly loaded div
Hi folks. So far I have managed to get dataloading into a div froma php script. This script just passes the time on the server in a div to the javascript below. I am trying to get the last loaded data to call Effect.Highlight but it seems to highlight the 2nd last data instead. Can anyone see what''s going wrong here? I''ve tried everywhere to solve this. Check the code in action
2006 Jul 04
0
Help with first AJAX action
I''ve used Rails for a while, but haven''t really done any AJAX until now. Now I''ve been fighting for days with my first AJAX action and after reliably crashing Safari and throwing errors in IE, I''m finally coming to the list for help. :) I have a "controls" div in my layout. This div displays a list of page-specific actions. When some of these
2006 Jan 14
14
Javascript/AJAX Debugging
Hello ! I''m trying to implement something similar to the "multiple updates" section of the Web2.0 chapter of the Agile book. I implemented my version, and nothing is happening. No javascript errors, my logs look fine, page is rendered fine... just no Effect.Highlight. Here is the code: views/causes/cause_home/index.rhtml =============== <%= form_remote_tag(:complete =>
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 May 25
2
Newbie AJAX rjs syntax question
I''m brand new to Ruby and to Rails, and I''m running through Pragmatic''s "Agile Development" V.2 book and am having problems with the rjs files in their tutorial. First problem: page[:cart].replace_html :partial => ''cart'', :object => @cart This line stopped the AJAX request. The action completed without trouble, but when it hit
2005 Dec 05
3
Effect.Highlight on Ajax.Updater
Hello to all list members... Exchuse for my bad english, I don''t write english very well. I''m searching for a solution to hilight a div when his value change. The value in these div is take from Ajax.Updater . the code is: new Ajax.Updater(''acc'',''tools/head_info.php'',{asynchronous:true}); and have a settimeout to recall it every 5 seconds.
2006 Jul 28
1
How to ajax highlight a flash
Hi, I want to make a flash[] highlighted for let''s say 5 seconds when some action is invoked. In the controller, I have: flash[:notice] = "error" In the layout, I have: <p style="color: white"><%= flash[:notice] %></p> I don''t know how to use ajax with the flash. I tried something like: element.highlight(flash[:notice]) without any
2006 Mar 22
1
Multiple Updates, Multiple Renders, One Ajax Call
The following code snippet allows you to update multiple DOM elements in a single Ajax call in Rails (1.1): # pass in a hash of domid=>template name def update_many(options) render :update do |page| options.each do |k,v| page.replace_html k, render(:partial=>v) page.visual_effect :highlight, k end end end So, if you wanted to update the
2006 Apr 21
3
rjs in multiple ajax page
Sorry for the long explanation but I''m having trouble integrating rjs into my form page. Here''s my page: <div id="posts"> <ul id="post_list"><%= render :partial => ''list_results'', :collection => @posts %></ul> <p><%= link_to_remote(''+'', :url => {:action =>
2006 Mar 09
1
Rails File Upload w/ Ajax Update?
I''m trying to upload a file, display the upload progress and then update a table with the newly uploaded file. Is there a way to specify a :success handler for form_tag_with_upload_progress such that I have access to the request.response data (in the way I can with link_to_remote)? The :finish JavaScript is being executed but because there is no request object, the table
2006 Feb 23
5
sortable_list added to by AJAX question
I have a working sortable_list that is added to by AJAX. The problem is that when a new item is added, it''s not sortable. I found a post on scriptaculous using behaviour.js to refresh the DOM when an item is added, but I can''t figure out how to do it with Rails. To test the behaviour method, I used this: var myrules={ ''div#steps ul'' :
2005 Sep 29
1
Ajax in the Aguile Web Development... book
I have bought the book, and are working with chapter 18 (about Ajax). I don''t get the List application example to function as expected. When i fill inn a name, and presses "Add Item". The button gets gray, the text "Adding..." is coming up, and the item is being written in the top of the page, but then it freezes here. I uses the newest rails, installed with Gem, and
2007 Jul 16
0
Ajax works in FF but not safari!
The following code works perfectly in FF, but does not work in safari. I''m on Edge Rails with the latest javascripts. Any clue what''s going on? CONTROLLER: def create @program = @school.programs.new(params[:program]) if @program.save render :update do |page| page[:program_list].replace_html(:partial => ''program'', :collection =>
2006 Jun 14
0
Bad behaviour in Internet Explorer
Hello, I''m using scriptaculous and it is great but they are very slow and don''t show the element when I drag it in IE6. Someone know something about drag and drop in IE? I''m using the latest version, 1.6 The code is: <div id="list[1]" > <div id="item_2" onclick="CSSUtils.show(''list[2]'')">Obras <div
2010 Jun 02
1
Ajax with JQuery
I have used Ajax link and live validation in index.rhtml Ajax link requires JavaScript "prototype" and live validation requires "jquery". i got "element.dispatchEvent is not a function" on the firebug console when i used "prototype" and "jquery" in same page index.rhtml after i removed javascript "prototype" library, i got "Ajax is
2005 Aug 08
5
In-Line List Editing with AJAX
I''m trying to write an interface for editing many-to-one relationships with AJAX. Picture the to-do editor in Backpack (and, to a lesser extent, Basecamp) and you''ll have a good idea of what I''m trying to do. I''ve almost got everything working: the ''edit'' link hides the stored data and replaces it with a form, and the data is updated in the
2006 Jan 12
5
Ajax: Multiple Element Update
I''m trying to apply an Effect.Highlight only to elements of a Form that was submitted. So if a user updated 2 fields of a 10 field form, the Effect.Highlight would be applied to the 2 fields... showing the user what was updated. My first attempt was to use the :complete=>"eval(request.responseText)" ... however, the template that get''s rendered won''t know
2006 Feb 01
1
Combine Ajax call with an effect.
Hello list. I am a newbie with prototype, scriptaculous and with JS. Right now, I have a successful ajax call that appears in my div (thedescription) when I mouse over the link, and disappears when I click on the link. What I would like to have happen is to combine this with an effect (ie, onclick="new
2006 May 02
3
Ajax scaffolding respones are received, but not rendered in browser
Hi i installed the latest ajaxscaffolding gem and generated a scaffold. List works fine. Delete deletes, but the update doesn''t show and the busy icon spins indefinitely. Pressing new or edit also causes the busy icon to spin, but again the ui doesn''t update. my development.log indicates the request was handled and (using firebug) I''m seeing this response: new
2006 Jun 14
3
problem trying to update multiple <DIV> elements with AJAX
I''ve been trying for days now to figure this out on my own, but I can''t, so this is my cry for help. Here''s my situation: I need to update multiple <DIV> elements on a page, each with its own HTML, but I just can''t figure out how to get it to work. That is, I want to replace everything within each <DIV> element with something new. When I try what