Displaying 20 results from an estimated 100000 matches similar to: "Prevent logging of request"
2008 Jan 30
3
Ajax.Request - nothing in responseText, I need it!!
I am at a complete loss here and I need a solution asap! Any help is
GREATLY appreciated!!! I have my request going out to a php script
that sends a query to my db and then echos the return data into html
format. this script works fine when I go to the url in a browser and
send the correct params.
However, in my ajax request, nothing gets returned?! Here is my
code...
2007 Sep 28
3
Why PeriodicalUpdater doesn't work on Internet Explorer?
I have the following code:
<script type="text/javascript">
Event.observe(window, ''load'', function() {
var updater = new Ajax.PeriodicalUpdater(''chatbox'', ''chat.php'',
{method: ''get'', asynchronous: true, frequency: 0.55, decay: 2,
onSuccess: function(){$(''chatbox'').scrollTop=$
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
2007 Nov 07
2
Ajax.Request -post
Hello SpinDoctors,
I am fairly new to prototype js framework. I love it.
Have various Ajax -get calls... which work wonderful...
Suddenly, realised that in one case I have to use ''post'' to overcome
the limitation on URL length...
Have changed the parameters to suit to ''post'' request, but nothing
happens... need your help...
function getOptionalGroups(key){
2008 Feb 05
0
prototype-1.6.0.2 Newbie Why is AJAX.request fired 3 times?
Hello list!
I am taking my first steps with AJAX and decided to give prototype a
try.
- I add a reference to the script to my page
- Then somewhere near the bottom of the page I fire up:
new Ajax.Request(''ws_adrestype.php'', {
method:''get'',
requestHeaders: {Accept: ''application/json''},
onSuccess:
2007 Feb 21
2
Ajax.request -> Controller Variable?
The amount of frustration that this has caused me has prompted me to
seek outside help. I know answer is right in front of me, but after
pouring over API documents and dozens of forum posts the answer still
eludes me:
I have a javascript func that detects the dimensions of the client
browser, I know I need to use an ajax.request to get the information
back to the controller - but for the life of
2007 Feb 19
0
Ajax.Update nested within Ajax.Request
Hi everyone,
I have a script below that submits a form using Ajax.Request which is
working fine. onComplete or onSuccess though, I''d like it to refresh
the div form (formCapture), but so far I can''t get it to work. The
script runs to into the onComplete stage, but the div isn''t refreshed.
Can anyone help with this?
Regards,
Robert Hofmeyr
function subForm() {
new
2007 Dec 04
6
Problem preventing double click with ajax submit button
For a regular form I use the :onlick option to disable the submit button
after the first click in order to prevent double clicks (leading to
double entries):
<% form_tag :action => ''create'' do %>
<%= submit_tag "Create", :onclick =>
"this.disabled=true,this.form.submit();"%>
I''m having trouble using this same method to prevent
2007 Jun 04
2
Re: Ajax.Request question with JSON return
Do I need something like this:
eval(''('' + this.header(''X-JSON'') + '')'')
(taken from Cody Swann,
http://ajaxian.com/archives/prototype-extension-dynamic-script-pattern-support
).
I''m guessing my problem is simpler, and I''m leaving something small out
related to the header though.
Thanks for any help
-Mark
1. evalJSON:
2008 Feb 10
3
Ajax.Request evalJSON document.write hangs
I''m not the best when it comes to javascript so this is probably a
simple mistake. I''m using the following code to read an external json
file and print out its values. The problem is when I try to write the
value to the browser it causes the browser to load like it hasn''t
finished the javascript code. Its writing the value to the screen so I
think its hanging after that
2007 Jul 16
0
Integrating Ajax IM in rails
Hi all,
Now days everyone looking for integration of well developed php based
forums, calendars...and many in to their rails applications. Even I
want to integrate php based Ajax IM chat client into my rails project.
If anybody has done that integration please give me how to go about this
integration otherwise general instruction how to integrate php based
applications to RoR projects.
Thanks
2007 Nov 28
2
How to pass POST variables to Ajax.Request
New to the group, and not sure I have the searching figured out yet so
let me know if this is already posted somewhere.
I am writing a Joomla Component that is loading phpbb (a forum) inside
a div of Joomla to avoid using IFRAMES. So in short I am using the
Ajax.Request call to read in the HTML then I parse thru and using gsub
change the default forum links so they pass thru this component
I
2008 May 07
2
Inserting authenticity token into AJAX request params
Hi all. I am trying to find a way to insert an authenticity_token
into the params of an Ajax request before it gets sent.
I''ve got this much:
Ajax.Responders.register({
onLoading: function(req){
if ((req.options.method == ''post'') && !
Object.keys(req.options.parameters).include(''authenticity_token'')){
---->
2007 Sep 06
1
semi-nube help request
just to show i''m not a complete dork: i receive emails from the list through
gmail and i''ve already searched for the answer to this problem and since
i''ve been a member i''ve not received an email about it. Google search
results are mixed at best.
so this is my problem:
i have a form:
<div id="container"
2008 Apr 21
1
Ajax.request - SOAPAction
If I build my own XMLHttpRequest, I can do the following:
this.xmlHttp.setRequestHeader("SOAPAction", ''updateClient'');
How can I do the same with AjaxRequest()?
var myAjax = new Ajax.Request(
this.service,
{
method:''post'',
postBody:soapXML,
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
2007 Feb 15
2
ajax.request not working in ie7
it sends the request fine in firefox but it never gets sent in ie7 (im using
iewatch). here''s my code:
var headers = [''Man'', ''POST http://'' + location.host + ''/something
HTTP/1.1'',''MessageType'',''CALL'' ];
var myAjax = new Ajax.Request( url, { requestHeaders: headers
,contentType:
2007 Sep 11
2
acts_as_authenticated redirect on ajax requests
Hi there,
I''d like to know if there is a solution to the scenario when using
acts_as_authenticated and ajax:
I have an action in my controller which is protected by login via
acts_as_authenticated. Now, this action can be called both by human
interaction, as well as ajax requests. (It is an add to cart link). It
works great as long as I am in an authenticated session.
Now, I want to
2008 Sep 08
0
Best way to send JSON request/get a response from controller?
Hello Friends,
What is the best way to send json from your controller, and await for a
response? Ajax? Ruby''s net/http?
The JSON server that I am sending the request to only accept POST methods,
and sends a POST back. If I use Ajax, is it possible to get the POST
response? Is there a scriptaculous or YUI function that handles this well?
Thank you for your help -
Jin
2007 Jul 10
6
Having trouble using data returned by Ajax.request
Hello everyone, I''m new here.
I''ve been working with prototype and plotr for about a month now, off
and on, and I have pretty much hit the wall on using the data returned
by Ajax.Request.
I''m using some php code to return a string:
{''foo'': [[0,0.0865334429075127], [1,0.0828179861705063],
[2,0.0828173042602942], [3,0.0841707718624196]]}
But I keep