Le Kevin dot com

photographic-poetic-musical horizon

Browsing Posts tagged ie

<input type=”image” value=”edit”> The VALUE attribute is passed by all browsers; except IE and Opera.

The workaround solution is using a hidden field to pass the form action:

function formAction(svalue)
{
var objAction = document.getElementById(“action”);
objAction.value = svalue;
}

//Hidden Action:
<input type=”hidden” name=”action” id=”action” value=”">

//Submit Actions:

<input type=”image” name=”submit” value=”edit” onClick=”formAction(this.value);”>
<input type=”image” name=”submit” value=”delete” onClick=”formAction(this.value);”>
<input type=”image” name=”submit” value=”update” onClick=”formAction(this.value);”>

MS Internet Explorer 8 improves a lot in most aspects, but View Source option is always pain to work with for many web developers; it takes forever to load the code.
Here is a workaround, instead of using view code in the IE default debugger, we load them to a different application such as native notepad, UltraEdit, Notepad++ etc…
Step 1:

Step 2:

Step 3: Then select any application you want to load the html source

if (!Array.indexOf) {
Array.prototype.indexOf = function (obj, start) {
for (var i = (start || 0); i < this.length; i++) {
if (this[i] == obj) {
return i;
}
}
}
}

Blog WebMastered by All in One Webmaster.