jkkenzie Posted March 8, 2010 Share Posted March 8, 2010 This script below gives me the error Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; FunWebProducts; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.5.30729; FDM; .NET CLR 3.0.30729; OfficeLiveConnector.1.4; OfficeLivePatch.1.3) Timestamp: Mon, 8 Mar 2010 13:25:03 UTC Message: Object doesn't support this property or method Line: 18 Char: 4 Code: 0 URI: http://localhost/www/softlink/pen/modules/AdminBlock/permForm.php?specific=pages:1:843&fol=no The code starts with '; function DoSave() { permSubmit(window.permPage.document.forms['spform']); Whe the above line is commented(permSubmit(window.permPage.document.forms['spform']) the error does not show and nothing is saved. <script language="JavaScript" type="text/JavaScript"> <!-- window.resizeTo(800, 250); function permSubmit(tform) { if(tform!=null) { var selObj=tform.selected, mStr='', mainForm=document.forms['spform']; tKey=tform.brief.value; if(selObj!=null && selObj.length>0) { for(n=0; n<selObj.length; n++) { var s=(n==0)?'':'&'; var wObj=selObj.options[n]; mStr += s+tKey+'[]='+escape('n='+wObj.value+'&p='+wObj.className); mainForm.eval('permSaveVals'+tKey).value=mStr; } } else if(confirm("Your Are Saving A Blank List.\nAre You Sure You want to do This?")) { mainForm.eval('permSaveVals'+tKey).value=''; }} } function DoSave() { permSubmit(window.permPage.document.forms['spform']); var mainForm=document.forms['spform']; if(mainForm.permSaveValsG.value=='' || mainForm.permSaveValsG.value==null) { if(confirm('There are no groups assigned any priviledges to this area. Are you sure you want to save the configuration?')) mainForm.emptyG.value='true'; else return false; } if(mainForm.permSaveValsU.value=='' || mainForm.permSaveValsU.value==null) { if(confirm('There are no users assigned any priviledges to this area. Are you sure you want to save the configuration?')) mainForm.emptyU.value='true'; else return false; } mainForm.target='_self'; mainForm.action='./permForm.php'; mainForm.submit(); } //--> </script> Any help? Quote Link to comment Share on other sites More sharing options...
KevinM1 Posted March 8, 2010 Share Posted March 8, 2010 1. If you're using Firefox, download and use the Firebug extension. It'll help you debug JavaScript. 2. Can you show more code? How is DoSave() being invoked? Where does the code lie in relation to your markup? Quote Link to comment Share on other sites More sharing options...
jkkenzie Posted March 26, 2010 Author Share Posted March 26, 2010 Let me say this is tinymice issue, when inserting an image especially when using IE. When you click the Ok button to insert image it fails to work Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.