Displaying 20 results from an estimated 5000 matches similar to: "Issuing an ajax request to a different web server?"
2006 Mar 16
23
AJAX on Mobile Internet Explorer
Hi!
I try to get AJAX running on a mobile Windows Mobile 5.0 based device
and failed. There should be a JavaScript support but nothing happens.
Have any of you experience with the rails javascripts on a this platform
or are there any hints, documentation on the net?
tia,
--
Daniel V?lkerts
Protected by Anti Pesto.
2006 Feb 23
6
prototype ajax + xml response
Hi,
I am looking for a solution to use ajax.request object.
Return response text will be in xml format and I like to know how to
parse that xml information, so that I can put those info into the "span"
or "div" tags of my html page. Is there any easy way to parse that xml
info using prototype library?
Thanks,
kevin.
--
Posted via http://www.ruby-forum.com/.
2006 Feb 21
3
AJAX sub-list
In the new / edit screen for an "item" I''d like to be able to add/remove
"sub-items"
on pressing an add button below the "sub-items" a bit of a form shows up
with the html looking something like:
<div id="uniqueid">
<!-- label etc here -->
<input type="text" id="sub_items[]" name="sub_items[]"
2006 Apr 12
1
Dynamically updating list
hi every body. i am try to do example of agil books.dynamically updating list of chapter 18.
1)this is my code for controller----
class ListnoajaxController < ApplicationController
def index
@items = Item.find_recent
end
def add_item
item = Item.new(params[:item_body])
render(:partial => "item", :object => item)
end
def item
end
end
2)the code for item class in app/model
class
2006 Jun 28
2
Ajax - Upload File Upload
hello, i have a problem. I want to upload a file with ajax and the
following tag:
submit_to_remote ''button_save'',''Speichern'',{
:url => {:action => ''ajax_update'', :id => @product},
:update => ''formular''
}
it doesn''t work, my form_tag looks like:
form_remote_tag(:url => {:action =>
2006 May 10
3
AJAX reload
Ok I stole some script and I need some help on fixing it on one thing:
Reloading on post.
here''s the script:
<div id="panel">
<form action="/loging_in/login" class="header-panel"
href="/loging_in/login" id="login-panel" method="post" onsubmit="new
Ajax.Request(''/loging_in/login'',
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;">»</a>
it fails
2009 Feb 09
0
submit_to_remote change from 2.1 to 2.2 now gives wrong number of arguments
Hi,
this snippet
<%= submit_to_remote(''create_button'', ''Add Phone'',
:submit =>
"phone_form",
:url =>
send( "#{@phonable_type.to_s.downcase.singularize}_phones_path",
@phonable_id),
2006 Jul 13
3
not quite getting ajax to work..
this might not be an ajax problem.. but i am stumped..
to cut out all the mess, here''s what i have
a controller with this code:
def test
render(:layout => false)
@data = params[:newOpp]
end
a partial which contains a form that has a button like this:
<%= submit_to_remote("confirm","Confirm Entry", :url => {:action =>
2008 Jan 14
0
Ajax Problem
Hi,
I''m using Jquery on jrails. I used ajax to submit for one textbox. I
want to put an image when ajax is calling. But i''m getting problem here.
Please solve my problem.Here is the part of code
<label>Prouct Category</label><br/>
<%#= collection_select("product", "type_1" , product_types,
2006 Aug 15
2
Are form_remote_tag and submit_to_remote mutually exclusive?
Do I need to use submit_to_remote in conjunction with or instead of
form_remote_tag? The description in the API docs. is confusing.
Is the combination of form_tag/submit_to_remote valid?
Is the combination of from_remote_tag/submit_tag valid?
Thanks,
Wes
--
Posted via http://www.ruby-forum.com/.
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 Jul 21
2
using image with submit_to_remote
Hi
How can I give an image to submit_to_remote .I could successfully do
it with link_to_remote as below..But the same not working with
submit_to_remote
<%= link_to_remote( image_tag("/images/cancel.png", {:alt =>
''Cancel'', :class=>"noborder",:title=>"Cancel"}),
{:update => "search_contact_div",
:url
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
2009 May 19
0
submit_to_remote fails on rails 2.2.2
submit_to_remote fails on rails 2.2.2 and rails 2.3.2 but fully
working with 2.0.2
please give me an answer as soon as possible. its very urgent
the code is
HTML
====
<% form_for :todo, @todo, :url => { :action => "update_todo" } do |f|
%>
<div>
<p>
<label>Todo</label>
<%=f.text_field :name%>
</p>
<p>
2006 Feb 21
0
Odp: RE: Ajax reqest and http status
Hi Marco.
I now that the way prevent IE caching AJAX call is to link to parameters one parameter which will be complete random.
Bur here is much important question. I using ajax call to connect url which is accesible only if user is logged (i mean there is a user session). Somethimes session expired and url is not accesible and there is redirect to other url i see that server return code 302 but
2006 Mar 08
6
Difficulty with params hash and submit_to_remote
Hi,
Is there any trick to initializing the params hash via submit_to_remote()? I
have a form with two submit methods - the regular, non-AJAX method, and the
AJAX method. The regular method works like a champ. The submit_to_remote
invokes the correct controller, but the params hash is empty except for the
values for :action and :controller.
I''d show my code, but it''s on
2006 Mar 06
7
Set base url?
I have an application running on a Lighttpd instance which is proxied by an
Apache server. It seems to work fine but my urls are incorrect: all urls
reference / which is not where my application runs at the Apache server.
How do I set the base url of a Rails application?
My Apache has the following proxy rules:
ProxyPass /hieraki http://localhost:3001
ProxyPassReverse /hieraki
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
2005 Dec 30
2
help on submit_to_remote
hi,
read the API doc and made search with google but can''t get a precise
explanation on how submit_to_remote work.
can someone help on that?
thanks