It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

help in getElementById

help in getElementById

Postby priyapratheep on Thu May 15, 2008 3:23 am

Hello friends

In my form I am using two AJAX functions..

Both are working fine...

Problem is both are displying in one place..I want to display it in different locations...

I used <div id="txtHintGrade"></div>
<div id="txtHint"></div>


txtHindGrade for first
document.getElementById("txtHindGrade").innerHTML=xmlHttp.responseText;
<span id=\"txtHindGrade\"></span>

and

txtHint for the second
document.getElementById("txtHint").innerHTML=xmlHttp.responseText;
<span id=\"txtHint\"></span>


Both are displaying in one place where txtHint is given

please help

thanks
priyapratheep
 
Posts: 3
Joined: Thu May 15, 2008 3:21 am

Postby leonard on Fri May 16, 2008 7:21 am

Hello priyapratheep

ID's should be unique in a page.

What do you mean with this?:
Problem is both are displying in one place..I want to display it in different locations


What are the return values of your xmlhttp requests?

cheers!
- leonard
:%s/^M//
There are 10 kinds of people:
Those who understand binary and those who don't.
User avatar
leonard
100+ Club
 
Posts: 147
Joined: Tue Dec 18, 2007 7:11 am
Location: Switzerland


Who is online

Users browsing this forum: No registered users and 6 guests