similar to: splitting a page into two

Displaying 20 results from an estimated 90000 matches similar to: "splitting a page into two"

2006 Jul 05
13
interactive web app
I have an arbitrary program written in any language, and it is a binary (ie foo.exe), that will print out output to stdout constantly every 3-5 seconds. Is there a way that I can have a web application designed in rails that will print the output of this program to the browser every 3-5 seconds in realtime, preferably even in an ajax manner. thanks -- Posted via http://www.ruby-forum.com/.
2006 May 10
2
Redirect whole page from AJAX action that updates a div
Hi, I am calling an action via AJAX to update a div. The action needs to redirect the page in under certain circumstances. However, if I just use "redirect_to" in the action then of course what happens is that the page I want to redirect to replaces only the div, not the entire page, and I get messy nested layouts. Is there a way around this? Can I redirect the entire document from
2006 Mar 18
0
AJAX and partial template rendering
I was attempting to integrate a data grid component and ran into a problem. I needed to update the <DIV> around my data grid component, however, the original code did not, so it was using Ajax.Request instead of Ajax.Updater to do the Ajax call. I thought that instead of using Ajax.Updater, I could simply leave the Ajax.Request call, and just do a render (:partial =>
2006 Jan 24
3
AJAX Preview & Edit Page Problem
I''m new to RoR and have started building my first application. I''m building an account sign-up controller and I have two questions: 1. What is the best way to pass form params between methods in my sign-up controller? The solution I''m using seems too hacky and there''s got to be a something more elegant. I''m instantiating User.new to capture the
2005 Oct 12
2
AJAX and disapear javascript tags
Hello everyone. I''m writing web aplications using AJAX (library prototype and scriptaculous). I have situation that I want to change content of one div in my site. I make ajax request to server and getting new content of that div. The problem is that this div should have javascript code (e.g. looks like that <div><script>js code</script>
2006 Aug 18
0
AJAX question
Dear all, Help me get a simple AJAX behavior right. I know zero AJAX, thus please advice. Below is a simplification of the real code and I hope I can describe my intention clearly. class StoreController < ApplicationController def show_cart @cart = Cart.new @new_item = CartItem.new end def add_item @new_item = CartItem.new(params[:new_item]) if
2006 Aug 18
0
Simple AJAX question
Dear all, Help me get a simple AJAX behavior right. I know zero AJAX, thus please advice. Below is a simplification of the real code and I hope I can describe my intention clearly. class StoreController < ApplicationController def show_cart @cart = Cart.new @new_item = CartItem.new end def add_item @new_item = CartItem.new(params[:new_item]) if @new_item.valid?
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 Jun 07
2
display two columns using fixed width divs
Hi. I want to display some related information in two columns. Originally I wanted to use frames and googling led me to http://lists.rubyonrails.org/pipermail/rails/2006-May/037972.html which suggest divs instead. I modified my code to this: <body> <div style=''width: 300px; overflow: scroll''> <%= render :partial => "col1" %> </div>
2006 Feb 14
2
AJAX on page load
Ok, I''m missing something obvious but after some reasonable looking in _The_ Rails book (sorry haven''t gotten the cookbook yet) and these archives I don''t see a solution to my question. Question: What is the cleanest way to load a div via AJAX when the page loads - no user action necessary. I don''t really want to hack in a hidden remote form or link that is
2006 Jan 31
4
Ajax and Controller actions
I am new to rails and want to learn the ''best practices'' up front. So I have a few questions and hope someone can help: 1. Using Ajax to update a div. The remote_function must call an action on a controller. This causes me two problems: 1.a The action is only ever used by the ajax call, but can now be accessed through the browser. I want ajax to call a method/action
2006 Jul 12
3
request.xhr? is false after redirecting an AJAX request?
Dear everybody I''m trying to develop a web application that makes use of AJAX, but also works if a user has no (or doesn''t want to use) JS. For normal requests, this is pretty easy. Almost every action ends with render blahblah, :layout => !request.xhr? This way, I can use the same action to render a full page (with layout) as well as rendering an AJAX request (only the
2006 Apr 27
1
Ajax response won''t display
I''m hopeful that this is something simple i''m missing, but I''ve run out of things to try. It should work just like the example in Agile Web Development with Rails (i think) I send an ajax request using remote_form and it''s processing correctly on the server and returning a new form, but it won''t replace the original. It''s supposed to update a
2006 Feb 09
2
Strategies for updating multiple parts of the page with AJAX
Hi all, I have a layout that''s evolving, but it looks like there will be several divs. I''m trying to keep everything AJAX-y and avoid full page reloads. My problem is, if I have the login box in a div, I''m going to want two other divs to effectively "refresh" themselves to get data from the server now that there is a user logged in. I''m trying to
2006 Jul 20
0
page.replace_html = Safar scrollbar bug?
If I replace the content of a div with new content which is too tall for the browser window, I get a scrollbar on the right. -- So far so good. But... If I then replace the content with content which DOES fit inside the browser window, Safari doesn''t remove the scrollbar! If I then resize the window ever so slightly, the scrollbar disappears. -- It ONLY happens in Safari. Has
2006 Jun 20
4
AJAX effects make browser jump to top of page
I''ve been having this really annoying issue with any visual effect that I use in Rails. Say, for instance, that I have an Element.show or Element.hide link to expose a hidden div. Well, the effects work great, but if they are located far enough down on the page to necessitate scrolling, the effect makes the browser jump to the top of the page. This is basically the source output that
2007 Oct 05
4
Ajax request on page load
I''m trying to do something rather simple (I think) but being new to rails, I''m not sure how I should proceed... What I want to do in simple terms is: When the my page load, get some data from a table (let''s call that table items).. so I want to get all my items, and display them in a div... I want to do it via Ajax because I want the user to be able to filter this data
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 Apr 14
1
Script.aculo.us Effects with callbacks not working as it should.
Hello all! I''m having a problem which is driving me insane. It''s probably related to the fact that I''m new to javascript.... :) Here''s the thing, I have a couple of effects which are all being put in the queue. Some of these effects have callbacks; e.g. "afterFinish". But the calback is being made directly instead of after the effect is done. The
2005 Aug 15
0
Scriptaculous - Sliders and resizing images
Hello, I''m new to Ajax and Web 2.0 development and I noticed that one of the things I want to hook up first are on the wish list for scriptaculous. Hopefully, I''ve sent my questions to the right place. Has anyone done any work so far on sliders with the prototype.js library? Also, I would like to resize an image/div on the page. I see we have some functions for resizing