
09-04-2007
|
| Senior Member
Join Date: Jun 2007
Posts: 1,413
BRL$: 4,217.66 Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 172 | | code working in firefox but not IE This is the webpage: Code: --------- Agregar Noticia var frm="frmins" function doSubmitImg(ds,img) {doSubmit(ds);} Título:
Contenido:
Imagen:
Archivo:
destacada deportiva Boletín
_uacct = "UA-139461-1"; urchinTracker(); --------- and here's the script: Code: --------- // JScript File function exists(val) { if(!val||val==="undefined"||typeof(val)=="undefine d") { return false; } return true; } function modChkboxState(active,other) { if(active.checked) { other.disabled="disabled"; other.checked=null; } else { other.disabled=null; } } function doSubmit(validate) { var x for(x in validate) { if(!exists(validate[x].value)) { alert("debe especificar un "+validate[x].id); return; } } if(exists(document.getElementById("codigo"))) { document.getElementById("codigo").value=Date.now() ; } document.getElementById(frm).submit(); } --------- when selecting "destacado", "boletin" should disable itself and the other way around. 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. plz help me :cry1 To view links or images in this forum your post count must be 1 or greater. You currently have 0 posts. | |
__________________ To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. | | | |