httpresponseText

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
GeXus
Forum Regular
Posts: 631
Joined: Sat Mar 11, 2006 8:59 am

httpresponseText

Post by GeXus »

Is there a way to get an elementbyid from using http.responsetext?

Thanks!
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: httpresponseText

Post 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);
}
GeXus
Forum Regular
Posts: 631
Joined: Sat Mar 11, 2006 8:59 am

Post by GeXus »

oh nice.. thanks!
Post Reply