Page 1 of 1

httpresponseText

Posted: Sun Aug 27, 2006 9:23 am
by GeXus
Is there a way to get an elementbyid from using http.responsetext?

Thanks!

Re: httpresponseText

Posted: Sun Aug 27, 2006 9:40 am
by Chris Corbyn
GeXus wrote:Is there a way to get an elementbyid from using http.responsetext?

Thanks!
Why not?

Code: Select all

var obj;

try {
    obj = document.getElementById(http.responseText);
} catch (e) {
    obj = false;
    throw new Exception(e);
}

Posted: Sun Aug 27, 2006 10:19 am
by GeXus
oh nice.. thanks!