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:
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
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.