Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Page Keeps Refreshing for No Reason

Status
Not open for further replies.

CJAI

MIS
Oct 21, 2003
224
US
I have the following js
Code:
function reject(id, status){
if (status == "reject"){
document.getElementById(id + "Rej").innerHTML = "<BR><input type='text' size='25' name='Reason:<%= rs("EID") %>:<%= ApprovalRole %>'>";

}else{

document.getElementById(id + "Rej").innerHTML = "";
}
return true;
}

which is called from the onClick event on a radio button.
onClick="return reject('<%= rs("EID") %>', 'reject');"

Basically what I am doing is trying to capture a rejection reason from the user if they choose to reject the item.

However, everytime I click the reject radio button to execute the function, it works, then 5 seconds later the page refreshes and the innerHTML is lost.

Any thought?? This is driving me crazy!!

Thanks,

J
 
do you have some other script set up to refresh the page?

-jeff
try { succeed(); } catch(E) { tryAgain(); } finally { rtfm(); }
i like your sleeves...they're real big
 
NO! That's the wierd thing?!?!?!
 
no, not at all, there are no other javascripts in the page, any other ideas??
 
how about a link or posting the RENDERED source of the page

-jeff
try { succeed(); } catch(E) { tryAgain(); } finally { rtfm(); }
i like your sleeves...they're real big
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top