:: Forum >>

using dynamic xml files from .aspx

I populate the grid using xml retreived from a database through an ASP.Net backend, thus:

var table = new Active.XML.Table;
table.setURL("http://ip/WebForm.aspx?func=getDynamicXML");

However I found that it would not work. The request object was appending a '?' to the URL which confused the aspx code. I don't know if this constitutes a bug as such, however I have managed to find a workaround and post it here for anybody attempting to achieve the same...

file: request.js
function obj.request()
line: 12

change :
if (this._requestMethod != "POST") {
to :
if ((this._requestMethod != "POST")&&(data!='')) {

and you are in business.




eddyoc
Thursday, February 19, 2004
That was a bug. Many thanks for posting this fix. I just added it to 0.2.7 release :-)

http://prdownloads.sourceforge.net/activeui/activeui_0.2.7.zip?download

Alex (ActiveWidgets)
Thursday, February 19, 2004
How about this?

table.setURL("http://ip/WebForm.aspx");
table.setParameter("func", "getDynamicXML");

Jeremie
Thursday, February 19, 2004
:-)

(exactly. thank you, Jeremie)
Alex (ActiveWidgets)
Thursday, February 19, 2004
Cheers Jeremie. much more elegant.
eddyoc
Monday, February 23, 2004

This topic is archived.


Back to support forum

Forum search