:: Forum >> Version 2 >>

AW.HTTP.Request keeps asking to authenticate + grid data not updated

I just started testing AW version 2.0 with a cgi script that creates a text file loaded into: table=new AW.CSV.Table then grid.setCellModel(table);
Apache on RH9 is configured as:
<Directory "/usr/local/apache2/cgi-bin">
AuthType Basic
AuthName "Results"
AuthUserFile /usr/local/apache2/passwd/passwords
Require valid-user
Every time http.request() runs it prompts for user authentication. Before the cgi runs and generates the text file, http.request() returns and the code below it makes a table request & the grid is refreshed on the browser with previous data. I used http.onreadystatechange but made no difference. I assume I am missing code to wait for completion.

The code is below. If someone can help it will be greately appreciated. Thanks, Jose

var http=new AW.HTTP.Request;
http.setParameter(last_.getId(), trim(last_.getControlText()));

var _response = table.response;
table.response = function(data)
_response.call(this, data);
....other code
Sunday, May 7, 2006
Please disregard my problem. I found my solution of repeated authentication in Mozilla in the entry:
XMLHTTPRequest Authentication Bug & Solution
Wednesday, August 3, 2005
Changed aw.js from:this._http.open(this._requestMethod,URL,this._async,this._username,this._password);
I used http.setAsync(false) to wait table loading until http request completed.

Sunday, May 7, 2006

This topic is archived.

Back to support forum

Forum search