Quote:
Originally Posted by tijuana
when selecting "destacado", "boletin" should disable itself and the other way around.
|
That works for me on I.E., but the only values that should be assigned to . disabled and . checked are true and false.
Quote:
|
also I made a small script that validate's presence of text in "titulo" and "contenido". But all I get when testing on IE is an "object expected" Error.
|
Only Mozilla has a Date::now method; use
Code:
new Date().getTime();
Also, you must lose type='application/javascript'; it isn't globally supported and will not be viable for years to come. It will cause an error in I.E. if not changed to type='text/javascript'.
Quote:
function exists(val) {
if(!val||val==="undefined"||typeof(val)=="undefine d") {
return false;
}
return true;
}
|
What is this function supposed to do?
Quote:
|
<input type="button" id="btnsubmit" onclick="doSubmitImg(eval([document.getElementById('titulo'),document.getElem entById('contenido')]),document.getElementById('imagen'))" value="Agregar" />
|
There is no need to use eval to handle those parameters, and if you call the submit method instead of using a submit button, the form cannot be sent if JS is disabled.
Last edited by logic ali; 08-29-2007 at 07:43 PM..
|