View Single Post
Old 06-12-2008, 12:26 PM   #21 (permalink)
Wildhoney
La Vida es Sueño
Advanced Programmer Top Contributor 
 
Wildhoney's Avatar
 
Join Date: Sep 2007
Location: Oldham
Posts: 1,578
Thanks: 72
Wildhoney is on a distinguished road
Default

Another one I noticed was when I was programming an upload system with no page reload. I was trying to create dynamic forms, in Internet Explorer you set the encoding type differently than you do in Firefox and other browsers.

javascript Code:
pForm = document.createElement('form');
pForm.setAttribute('method', 'post');
pForm.setAttribute('action', 'index.php');
pForm.setAttribute('enctype', 'multipart/form-data'); // Firefox, etc.
pForm.setAttribute('encoding', 'multipart/form-data'); // Internet Explorer
 
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney
Wildhoney is offline  
Reply With Quote