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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

not very much luck with IE... obj doesnt support this prop

Status
Not open for further replies.

snowboardr

Programmer
Joined
Feb 22, 2002
Messages
1,401
Location
PH
I am getting an error when running this code in IE... however it works as it should with firefox...(go figure) basicly i am marking a record with a star...

"Object doesn't support this property or method"
Code 0



Code:
//star
	function star(pmid)
	{ 
	var url = "/ajax/mail/save_star.asp?id="; 
	var GetStar = document.getElementById('star' + pmid);
	 if (GetStar.src.indexOf('/images/buttons/star0.gif') != -1) {
			GetStar.src = '/images/buttons/star1.gif';
			url = url + pmid + "&value=1";
	 } else {
			GetStar.src = '/images/buttons/star0.gif';
			url = url + pmid + "&value=0";
	 }
	xmlHttp=createRequestObject()
	xmlHttp.open("GET", url , true)
	xmlHttp.send('')
	} 
/////


thanks in advance
 
nvm a stupid hidden field value was named star


[noevil]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top