Jump to content

Object not supported?


jkkenzie

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/194500-object-not-supported/
Share on other sites

  • 3 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.