Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-12-2005, 10:04 PM   PM User | #1
koinu
New Coder

 
Join Date: Mar 2005
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
koinu is an unknown quantity at this point
Document Element Call For IE6 Wrong?

is there any reason at all that this javascript would refuse to set the src to the new object in IE6? It works fine in Firefox and NS.

Code:
function updateImage(theitemid, theitemproc){
	var ms;
	Today = new Date();
	ms = Today.getUTCMilliseconds();
newimg="avatar_functions3.php?action=equip&item_id="+theitemid+"&item_proc="+theitemproc+"&auth="+ms;
	if(document.getElementById){
		document.getElementById("avatar_image").src= newimg;
	}else if(document.all&&!document.getElementById){
		document.all.avatar_image.src= newimg;
	}
}
koinu is offline   Reply With Quote
Old 04-13-2005, 12:16 AM   PM User | #2
koinu
New Coder

 
Join Date: Mar 2005
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
koinu is an unknown quantity at this point
Just doesn't make sense to me. I've tried using all different types of square brackets and single quotes, double quotes and everything, but nothing seems to help in IE
koinu is offline   Reply With Quote
Old 04-13-2005, 12:35 AM   PM User | #3
codegoboom
Regular Coder

 
Join Date: Aug 2004
Location: codegoboom@yahoo.com
Posts: 999
Thanks: 0
Thanked 0 Times in 0 Posts
codegoboom is an unknown quantity at this point
Works for me... what are you getting for ("avatar_image").src?
__________________
*this message will self destruct in n-seconds*
codegoboom is offline   Reply With Quote
Old 04-13-2005, 01:46 AM   PM User | #4
koinu
New Coder

 
Join Date: Mar 2005
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
koinu is an unknown quantity at this point
Well, it did start working for me all of a sudden - i have no idea why. maybe the previous page didn't go out of the cache when i told it to or what lol. However, I discovered the setting the image source in this way causes the image output to have a solid black background, which is unacceptable for my application lol. I need to convert the images back to white background, or preferably, transparent before sending it back to disk. IE not supporting png transparency is ridiculous. i did get some JS that makes a png transparent after the page loads in IE, but this really doesn't look good. I'm dealing with it, but now that I am passing this value through a php like this, it comes back out, and the png transparency script doesn't recognize it since it's not "really" a png according to the html.
koinu is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:41 PM.


Advertisement
Log in to turn off these ads.