How to Press Ok button on webpage

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

mfauzim
Pro Scripter
Posts: 89
Joined: Wed Sep 13, 2006 10:57 am

How to Press Ok button on webpage

Post by mfauzim » Wed Sep 13, 2006 11:15 am

In one of web application, we need to enter userid and password.Then press login button. after that the page will prompt for [Register with ok and cancel button (I think it is javascript/vbscript). Somehow when using webrecorder, this click OK button is not recorded. Can anybody help me on how to program/automate this button ok click.

regards

mfauzim
Pro Scripter
Posts: 89
Joined: Wed Sep 13, 2006 10:57 am

code attach

Post by mfauzim » Wed Sep 13, 2006 11:39 am

// Generated by MacroScript WebRecorder 1.71
// Recorded on Wednesday, September 13, 2006, at 06:29 PM
LibLoad>IEAuto.dll,hIE
If>hIE=0
MessageModal>Could not load IEAuto.dll, make sure it is in the path or edit the LibLoad line.
Goto>end_script
EndIf

//Move the mouse cursor out of harm's way to avoid causing mouseover events to interrupt
MouseMove>0,0
Let>delay=1

LibFunc>hIE,CreateIE,IE[0],0

LibFunc>hIE,Navigate,r,%IE[0]%,http://201.11.112.4:3000/its
LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

Let>FrameName={"ASASOptions"}
Let>FormName={"MyForm"}
Let>FieldName={"txtUserId"}
Let>FieldValue={"RTNASAS"}
LibFunc>hIE,FormFill,r,%IE[0]%,str:FrameName,str:FormName,str:FieldName,str:FieldValue,0

Let>FrameName={"ASASOptions"}
Let>FormName={"MyForm"}
Let>FieldName={"txtUserPass"}
Let>FieldValue={"rtnasas9"}
LibFunc>hIE,FormFill,r,%IE[0]%,str:FrameName,str:FormName,str:FieldName,str:FieldValue,0

Let>FrameName={"ASASOptions"}
Let>FormName={"MyForm"}
Let>TagValue={""}
LibFunc>hIE,ClickTag,r,%IE[0]%,str:FrameName,str:FormName,INPUT,NAME,str:TagValue

LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

Let>FrameName={"ASASMenuOptions"}
Let>FormName={"MyForm"}
Let>TagValue={"Manual Activation"}
LibFunc>hIE,ClickTag,r,%IE[0]%,str:FrameName,str:FormName,A,TEXT,str:TagValue

LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

Let>FrameName={""}
Let>FormName={"manactv"}
Let>FieldName={"txtTelNo"}
Let>FieldValue={"00356370496"}
LibFunc>hIE,FormFill,r,%IE[0]%,str:FrameName,str:FormName,str:FieldName,str:FieldValue,0

Let>FrameName={""}
Let>FormName={"manactv"}
Let>TagValue={"pbRefresh"}
LibFunc>hIE,ClickTag,r,%IE[0]%,str:FrameName,str:FormName,INPUT,NAME,str:TagValue

LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

Let>FrameName={""}
Let>FormName={"manactv"}
Let>FieldName={"cmbCommandId"}
Let>FieldValue={"Display Tel. Status"}
LibFunc>hIE,FormFill,r,%IE[0]%,str:FrameName,str:FormName,str:FieldName,str:FieldValue,0

Let>FrameName={""}
Let>FormName={"manactv"}
Let>TagValue={"pbActv"}
LibFunc>hIE,ClickTag,r,%IE[0]%,str:FrameName,str:FormName,INPUT,NAME,str:TagValue
//pushbutton>Microsoft Internet Explorer,OK

WaitWindowOpen>Microsoft Internet Explorer
SetFocus>Microsoft Internet Explorer
Press Enter
LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

Let>FrameName={""}
Let>FormName={""}
Let>TagValue={"pbOk"}
LibFunc>hIE,ClickTag,r,%IE[0]%,str:FrameName,str:FormName,INPUT,NAME,str:TagValue

LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

Let>FrameName={""}
Let>FormName={"manactv"}
Let>TagValue={"pbBack"}
LibFunc>hIE,ClickTag,r,%IE[0]%,str:FrameName,str:FormName,INPUT,NAME,str:TagValue

LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

Let>FrameName={"ASASMenuOptions"}
Let>FormName={"manactv"}
Let>TagValue={"ITS Login"}
LibFunc>hIE,ClickTag,r,%IE[0]%,str:FrameName,str:FormName,A,TEXT,str:TagValue

LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

LibFree>hIE
Label>end_script

User avatar
Marcus Tettmar
Site Admin
Posts: 7380
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Wed Sep 13, 2006 12:51 pm

Without seeing the web page for myself I cannot say what the problem is but it could be any number of things. Is this the bit that clicks the button:

Let>FrameName={"ASASMenuOptions"}
Let>FormName={"manactv"}
Let>TagValue={"ITS Login"}
LibFunc>hIE,ClickTag,r,%IE[0]%,str:FrameName,str:FormName,A,TEXT,str:TagValue

If so, it isn't actually a button - here WebRecorder is clicking a link (A element) and identifying it from it's text which is "ITS Login".

If that doesn't work you could try referencing the link with it's ID, HREF, or INDEX instead. See the help for ClickTag which shows you the different attributes that can be used.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

mfauzim
Pro Scripter
Posts: 89
Joined: Wed Sep 13, 2006 10:57 am

Post by mfauzim » Wed Sep 13, 2006 2:54 pm

the actual place where the dialog box apprear is here:

Let>FrameName={""}
Let>FormName={"manactv"}
Let>TagValue={"pbActv"}
LibFunc>hIE,ClickTag,r,%IE[0]%,str:FrameName,str:FormName,INPUT,NAME,str:TagValue
//pushbutton>Microsoft Internet Explorer,OK
// dialog box appear here. when press ok, window submit form

User avatar
Marcus Tettmar
Site Admin
Posts: 7380
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Wed Sep 13, 2006 3:55 pm

So is this a button on the page, or is it an OK button on a dialog that appears? If it's a dialog you want something like this:

Let>FrameName={""}
Let>FormName={"manactv"}
Let>TagValue={"pbActv"}
LibFunc>hIE,ClickTag,r,%IE[0]%,str:FrameName,str:FormName,INPUT,NAME,str:TagValue

//Wait for dialog ..
WaitWindowOpen>Microsoft Internet Explorer
Wait>1
//Press Enter (assumes OK is default button)
Press Enter

//Wait while IE busy ...
LibFunc>hIE,WaitIE,r,%IE[0]%
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

mfauzim
Pro Scripter
Posts: 89
Joined: Wed Sep 13, 2006 10:57 am

it a dialog box

Post by mfauzim » Wed Sep 13, 2006 5:11 pm

Yes, it is a dialog box. it appear immediately when i click the button to activate the record. I will try it tomorrow morning. Sorry it is 1 am in Malaysia and I cannot access the app from home. I will update the status tomorrw.

mfauzim
Pro Scripter
Posts: 89
Joined: Wed Sep 13, 2006 10:57 am

Still Not working

Post by mfauzim » Thu Sep 14, 2006 1:23 am

I did as your sugesstion, but still it does not work. The issue is at the follwing line:
Let>FrameName={""}
Let>FormName={"manactv"}
Let>TagValue={"pbActv"}
LibFunc>hIE,ClickTag,r,%IE[0]%,str:FrameName,str:FormName,INPUT,NAME,str:TagValue
//Problem is here. When click pbactv button, the window show dialog box with OK and cancel button. Dialog box title is "Microsoft Internet Explorer". It stuck there until manually press enter, then the debugger will jump to next line to execute. Is there anyway we can set focus the dialog box.
//



WaitWindowOpen>Microsoft Internet Explorer
//WaitWindowOpen>Manual Switch Activation - Microsoft Internet Explorer
//SetFocus>Microsoft Internet Explorer
//Press Enter
wait>1
Press Enter
LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

User avatar
Marcus Tettmar
Site Admin
Posts: 7380
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Thu Sep 14, 2006 7:12 am

What you are doing should be sufficient:

LibFunc>hIE,ClickTag,r,%IE[0]%,str:FrameName,str:FormName,INPUT,NAME,str:TagValue
WaitWindowOpen>Microsoft Internet Explorer
SetFocus>Microsoft Internet Explorer
Wait>1
//Press ALT-O for OK ... change if necessary:
Press ALT
Send>o
Release ALT

The click causes the dialog to open, so immediately after the ClickTag lkine we wait for the dialog to open, then focus it, then wait a second and then issue the keystroke for the OK button ....
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

mfauzim
Pro Scripter
Posts: 89
Joined: Wed Sep 13, 2006 10:57 am

Stil does not work

Post by mfauzim » Thu Sep 14, 2006 7:45 am

That what I though, but still it does not work; attach is the source code for your review:

Code: Select all

<HTML>

<HEAD>
 <TITLE> Manual Switch Activation </TITLE>
</HEAD>

<SCRIPT>
/* Added on 21/1/98 to suite Internet Explorer*/
var defaultEmptyOK = false

function isDigit (c)
{   return ((c >= "0") && (c <= "9"))
}

function isEmpty(s)
{   return ((s == null) || (s.length == 0))
}

function isInteger (s)
{   var i;

    if (isEmpty(s))
       if (isInteger.arguments.length == 1) return defaultEmptyOK;
       else return (isInteger.arguments[1] == true);

    // Search through string's characters one by one
    // until we find a non-numeric character.
    // When we do, return false; if we don't, return true.

    for (i = 0; i < s.length; i++)
    {
        // Check that current character is number.
        var c = s.charAt(i);

        if (!isDigit(c)) return false;
    }

    // All characters are numbers.
    return true;
}

/* End --- Addition */
   function fnRefreshCommand()
    {
      document.manactv.hSubmitFlag.value = '1';
      document.manactv.submit();
    }

   function fnSetSubmitFlag(nFlag)
    {
       document.manactv.hSubmitFlag.value = nFlag;
    }
   function fnSetChangeFlag()
    {
      document.manactv.hChangeFlag.value = '1';
    }
   function fnDoValidation()
    {
      var bSuccess = "true";
      if (document.manactv.hSubmitFlag.value == "1")
		return bSuccess = true;
      if (document.manactv.hSubmitFlag.value == "3")
		return bSuccess = true;
      if (document.manactv.hSubmitFlag.value == "2" && document.manactv.hChangeFlag.value == "1")
		{
		window.alert("Telephone Number has been Changed... Please Refresh...!");
		return bSuccess = false;
		}
      if (document.manactv.txtTelNo.value == "")
		{
		window.alert("Activate Failed...!No Telephone Number Entered");
		return bSuccess = false;
		}
      if (document.manactv.txtTelNo.value.length < 11)
                {
		window.alert("Activate Failed...!Invalid Telephone Number");
		return bSuccess = false;
		}
      if (isInteger(document.manactv.txtTelNo.value) == false)
                {
		window.alert("Activate Failed...!No Characters allowed for Telephone Number");
		return bSuccess = false;
		}
      if (document.manactv.hSubmitFlag.value != 4)
     {

	var selectedCommandId = document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value;

	/** Added by smho - 13/06/02 - Control for Add Feature/Delete Feature ******/
	 if(document.manactv.hexchtype.value != "" && (document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value == "AF" || document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value == "DF"))
	 {
		var didSelect = false;
		var selectedFeature = document.manactv.lbFeats.options[document.manactv.lbFeats.selectedIndex].text;

		for(var i = 0; i < (document.manactv.lbFeats.length);i++)
		{
			if(document.manactv.lbFeats.options[i].selected == true)
				didSelect = true;
		}

		if(didSelect)
		{
			if(selectedFeature == "HLZZ")
			{
				if(selectedCommandId == "AF")
				{
					if(document.manactv.txtHotlineTelNo.value == "")
					{
						window.alert("Activate Failed...! Enter Hotline/Call Telephone number");
						document.manactv.txtHotlineTelNo.focus();
						return bSuccess = false;
					}
      					if (isInteger(document.manactv.txtHotlineTelNo.value) == false)
                			{
						window.alert("Activate Failed...!No Characters allowed for Hotline/Call Telephone Number");
						document.manactv.txtHotlineTelNo.focus();
						return bSuccess = false;
					}
					else
					{
		  				if(confirm ("Confirm Activate?. Exchange "))
							return bSuccess = true;
						else
							return bSuccess = false;
					}
				}
				else
				{
		  			if(confirm ("Confirm Activate?. Exchange "))
						return bSuccess = true;
					else
						return bSuccess = false;
				}
			}
			else
			{
		  		if(confirm ("Confirm Activate?. Exchange "))
					return bSuccess = true;
				else
					return bSuccess = false;
			}
		}
		else
		{
			window.alert("Activate failed...! Select a Feature Code");
			document.manactv.lbFeats.focus();
			return bSuccess = false;
		}

	}
	/** End Added by smho - 13/06/02 - Control for Add Feature/Delete Feature ******/
	/*
	if ( ( document.manactv.hexchtype.value == "AXE10" || document.manactv.hexchtype.value == "AXE38" ||
	       document.manactv.hexchtype.value == "FETEX" || document.manactv.hexchtype.value == "ALCATEL")
		&& (document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RT") )
	*/
	if ( ( document.manactv.hexchtype.value == "AXE10" || document.manactv.hexchtype.value == "AXE38") && (document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RT" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "DTR" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RTTR" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "DLS") )
		{
		  if(confirm ("Confirm Activate?. Exchange "))
			 return bSuccess = true;
	      	  else
	  		 return bSuccess = false;

		}
		if ((document.manactv.hexchtype.value == "FETEX" || document.manactv.hexchtype.value == "FETEX52" || document.manactv.hexchtype.value == "FTX52-DR") && (document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RT" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "AISD" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "ASTD" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "TTPCCBSTD"  && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "TTPCCBISD" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "TTRCCBSTD" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "TTRCCBISD" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "DLS")) {
		    if(confirm ("Confirm Activate?. Exchange "))
		     	 return bSuccess = true;
		    else
			 return bSuccess = false;
		}

	  if ( ( document.manactv.hexchtype.value == "NEAX-E" || document.manactv.hexchtype.value == "NEAX-K")
		&& ((document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RT"
		&& document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "DLS" &&  document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "DC" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RTISDPCCB"  && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RTSTDPCCB" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RSTDRCCB" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RISDRCCB" && selectedCommandId != "RTRCCB") || document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value == "DL"))
		{
		  if(confirm ("Confirm Activate?. Exchange "))
			 return bSuccess = true;
	          else
	  		 return bSuccess = false;
		}
	  if ((document.manactv.hexchtype.value == "NOKIA" || document.manactv.hexchtype.value == "NOKI-DRS")
		&& ((document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RT"
		&& document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "DLS" &&  document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "DC" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RISDPCCB"  && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RSTDPCCB" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RSTDRCCB" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RISDRCCB" && selectedCommandId != "RTRCCB") || document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value == "DL"))
		{
		  if(confirm ("Confirm Activate?. Exchange "))
			 return bSuccess = true;
	          else
	  		 return bSuccess = false;
		}

	/* Added by ICG on 04/04/1998 */
	  if((document.manactv.hexchtype.value == "ALCATEL") && (document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RT" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "DLS" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RTPCCB" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RTPCCBCT" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RTPCCBTR"))
		{
		  if(confirm ("Confirm Activate?. Exchange "))
			 return bSuccess = true;
	          else
	  		 return bSuccess = false;
		}
	/* Added by Azita on 28/10/2005 */
	if((document.manactv.hexchtype.value == "ACTLV52") && (document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RT" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "DLS" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RTPCCB" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RTPCCBCT" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RTPCCBTR"))
		{
			if(confirm ("Confirm Activate?. Exchange "))
				return bSuccess = true;
		         else
		  		return bSuccess = false;
		}
 	  if (document.manactv.txtLENNum.value == "")
		{
		window.alert("Activate Failed...!No LEN Number Entered");
		return bSuccess = false;
		}

 	if (document.manactv.hexchtype.value  == "NOKI-DRS")
	{
			if (isInteger(document.manactv.COValue.value) == false)
				{
				window.alert("Activate Failed...!No Characters allowed for Charge Orgin");
				return bSuccess = false;
				}
	        if (document.manactv.COValue.value == "")
				{
				window.alert("Activate Failed...!No Charge Orgin Entered");
				return bSuccess = false;
				}
	}

	 if(confirm ("Confirm Activate?. Exchange "))
		 return bSuccess = true;
	 else
		 return bSuccess = false;
	}


    }

     function fnGetExtTelNo()
     {
	var selectedFeature = document.manactv.lbFeats.options[document.manactv.lbFeats.selectedIndex].text;
	if(selectedFeature == "HLZZ")
	{
		//window.alert("Please key in Hotline number/Call Telephone number");
		document.manactv.hSubmitFlag.value = 5;
		document.manactv.thisFeat.value = selectedFeature;
		document.manactv.submit();
	}
	else
	{
		if(document.manactv.thisExtra.value == 5)
		{
			document.manactv.hSubmitFlag.value = 4;
			document.manactv.thisFeat.value = selectedFeature;
			document.manactv.submit();
		}
	}
     }


</SCRIPT>

       <SCRIPT>
           function fnFormCheck()
           {
	      if (document.referrer == null || document.referrer == "")
              {
                 alert("Illegal Entry...!");
                 window.close();
                 window.top.location.href='tempasasmain.html';
              }
          }
          </SCRIPT>
<BODY>
 <table>
<tr><td> <font><center>
Switch Activation --- Manual
</center></font></td></tr></table>
 <FORM>



   <TABLE>

     <TR><TD>Telephone Number </TD>

     <TD><INPUT>

	 <INPUT></TD></TR>
     <TR><TD>LEN Number </TD>
	 <TD><INPUT></TD></TR>
     <TR><TD>Activation Type </TD>
         <TD>
	   <SELECT></SELECT></TD></TR>
     <TR><TD>Feature Code </TD>
	 <TD>

     <SELECT><OPTION>182<OPTION>1823<OPTION>1826<OPTION>1829<OPTION>183<OPTION>1836<OPTION>1839<OPTION>186<OPTION>1869<OPTION>189<OPTION>236<OPTION>2369<OPTION>239<OPTION>269<OPTION>369<OPTION>600B<OPTION>ABDZ<OPTION>ABSZ<OPTION>BSTD<OPTION>CFZZ<OPTION>CLID<OPTION>CLIP<OPTION>COBZ<OPTION>CTNR<OPTION>CTOB<OPTION>CWZZ<OPTION>DSNA<OPTION>EZNB<OPTION>FFAB<OPTION>FFCB<OPTION>FFCF<OPTION>FFCR<OPTION>FFCW<OPTION>FFHL<OPTION>FFHZ<OPTION>FFWP<OPTION>HLSZ<OPTION>HLZZ<OPTION>ICBZ<OPTION>ISDZ<OPTION>MSNA<OPTION>MSNZ<OPTION>OGBZ<OPTION>PLRZ<OPTION>PRZZ<OPTION>RPZZ<OPTION>STDB<OPTION>TME0<OPTION>TME1<OPTION>TMS1<OPTION>TPTY<OPTION>VMS<OPTION>WUPZ<OPTION>YTWZ</SELECT></TD></TR><INPUT><INPUT><TR><TD><FONT> Hold <B>CTRL/SHIFT</B> Key to Select Multiple Features</FONT></TD></TR></TABLE>
	 <CENTER><TABLE>
     <TR><TD><INPUT>
			<INPUT>
			<INPUT>
	 </TD></TR></TABLE></CENTER>

	


  <INPUT>
  <INPUT>

 </FORM>

</BODY>


</HTML>
[code]

[/code]

User avatar
Marcus Tettmar
Site Admin
Posts: 7380
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Thu Sep 14, 2006 7:51 am

Not sure how this helps. There are no links on this page and no object called pbactv.

Quickest way to get this resolved is to either provide us with the website address, or, if that is not possible, do a remote support session. That way we can immediately SEE what you're looking at and edit your script for you to get it to work.

Or we could scrabble in the dark for a few days more.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

mfauzim
Pro Scripter
Posts: 89
Joined: Wed Sep 13, 2006 10:57 am

OK we can do remote support

Post by mfauzim » Thu Sep 14, 2006 8:17 am

Pls advice on how to do this.
regards

mfauzim
Pro Scripter
Posts: 89
Joined: Wed Sep 13, 2006 10:57 am

New code

Post by mfauzim » Thu Sep 14, 2006 8:23 am

Soory may be I did complete copy in previoous code: Here is the complete code.

Code: Select all

<HTML>

<HEAD>
 <TITLE> Manual Switch Activation </TITLE>
</HEAD>

<SCRIPT>
/* Added on 21/1/98 to suite Internet Explorer*/
var defaultEmptyOK = false

function isDigit (c)
{   return ((c >= "0") && (c <= "9"))
}

function isEmpty(s)
{   return ((s == null) || (s.length == 0))
}

function isInteger (s)
{   var i;

    if (isEmpty(s))
       if (isInteger.arguments.length == 1) return defaultEmptyOK;
       else return (isInteger.arguments[1] == true);

    // Search through string's characters one by one
    // until we find a non-numeric character.
    // When we do, return false; if we don't, return true.

    for (i = 0; i < s.length; i++)
    {
        // Check that current character is number.
        var c = s.charAt(i);

        if (!isDigit(c)) return false;
    }

    // All characters are numbers.
    return true;
}

/* End --- Addition */
   function fnRefreshCommand()
    {
      document.manactv.hSubmitFlag.value = '1';
      document.manactv.submit();
    }

   function fnSetSubmitFlag(nFlag)
    {
       document.manactv.hSubmitFlag.value = nFlag;
    }
   function fnSetChangeFlag()
    {
      document.manactv.hChangeFlag.value = '1';
    }
   function fnDoValidation()
    {
      var bSuccess = "true";
      if (document.manactv.hSubmitFlag.value == "1")
		return bSuccess = true;
      if (document.manactv.hSubmitFlag.value == "3")
		return bSuccess = true;
      if (document.manactv.hSubmitFlag.value == "2" && document.manactv.hChangeFlag.value == "1")
		{
		window.alert("Telephone Number has been Changed... Please Refresh...!");
		return bSuccess = false;
		}
      if (document.manactv.txtTelNo.value == "")
		{
		window.alert("Activate Failed...!No Telephone Number Entered");
		return bSuccess = false;
		}
      if (document.manactv.txtTelNo.value.length < 11)
                {
		window.alert("Activate Failed...!Invalid Telephone Number");
		return bSuccess = false;
		}
      if (isInteger(document.manactv.txtTelNo.value) == false)
                {
		window.alert("Activate Failed...!No Characters allowed for Telephone Number");
		return bSuccess = false;
		}
      if (document.manactv.hSubmitFlag.value != 4)
     {

	var selectedCommandId = document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value;

	/** Added by smho - 13/06/02 - Control for Add Feature/Delete Feature ******/
	 if(document.manactv.hexchtype.value != "" && (document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value == "AF" || document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value == "DF"))
	 {
		var didSelect = false;
		var selectedFeature = document.manactv.lbFeats.options[document.manactv.lbFeats.selectedIndex].text;

		for(var i = 0; i < (document.manactv.lbFeats.length);i++)
		{
			if(document.manactv.lbFeats.options[i].selected == true)
				didSelect = true;
		}

		if(didSelect)
		{
			if(selectedFeature == "HLZZ")
			{
				if(selectedCommandId == "AF")
				{
					if(document.manactv.txtHotlineTelNo.value == "")
					{
						window.alert("Activate Failed...! Enter Hotline/Call Telephone number");
						document.manactv.txtHotlineTelNo.focus();
						return bSuccess = false;
					}
      					if (isInteger(document.manactv.txtHotlineTelNo.value) == false)
                			{
						window.alert("Activate Failed...!No Characters allowed for Hotline/Call Telephone Number");
						document.manactv.txtHotlineTelNo.focus();
						return bSuccess = false;
					}
					else
					{
		  				if(confirm ("Confirm Activate?. Exchange "))
							return bSuccess = true;
						else
							return bSuccess = false;
					}
				}
				else
				{
		  			if(confirm ("Confirm Activate?. Exchange "))
						return bSuccess = true;
					else
						return bSuccess = false;
				}
			}
			else
			{
		  		if(confirm ("Confirm Activate?. Exchange "))
					return bSuccess = true;
				else
					return bSuccess = false;
			}
		}
		else
		{
			window.alert("Activate failed...! Select a Feature Code");
			document.manactv.lbFeats.focus();
			return bSuccess = false;
		}

	}
	/** End Added by smho - 13/06/02 - Control for Add Feature/Delete Feature ******/
	/*
	if ( ( document.manactv.hexchtype.value == "AXE10" || document.manactv.hexchtype.value == "AXE38" ||
	       document.manactv.hexchtype.value == "FETEX" || document.manactv.hexchtype.value == "ALCATEL")
		&& (document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RT") )
	*/
	if ( ( document.manactv.hexchtype.value == "AXE10" || document.manactv.hexchtype.value == "AXE38") && (document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RT" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "DTR" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RTTR" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "DLS") )
		{
		  if(confirm ("Confirm Activate?. Exchange "))
			 return bSuccess = true;
	      	  else
	  		 return bSuccess = false;

		}
		if ((document.manactv.hexchtype.value == "FETEX" || document.manactv.hexchtype.value == "FETEX52" || document.manactv.hexchtype.value == "FTX52-DR") && (document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RT" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "AISD" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "ASTD" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "TTPCCBSTD"  && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "TTPCCBISD" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "TTRCCBSTD" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "TTRCCBISD" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "DLS")) {
		    if(confirm ("Confirm Activate?. Exchange "))
		     	 return bSuccess = true;
		    else
			 return bSuccess = false;
		}

	  if ( ( document.manactv.hexchtype.value == "NEAX-E" || document.manactv.hexchtype.value == "NEAX-K")
		&& ((document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RT"
		&& document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "DLS" &&  document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "DC" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RTISDPCCB"  && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RTSTDPCCB" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RSTDRCCB" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RISDRCCB" && selectedCommandId != "RTRCCB") || document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value == "DL"))
		{
		  if(confirm ("Confirm Activate?. Exchange "))
			 return bSuccess = true;
	          else
	  		 return bSuccess = false;
		}
	  if ((document.manactv.hexchtype.value == "NOKIA" || document.manactv.hexchtype.value == "NOKI-DRS")
		&& ((document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RT"
		&& document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "DLS" &&  document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "DC" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RISDPCCB"  && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RSTDPCCB" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RSTDRCCB" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RISDRCCB" && selectedCommandId != "RTRCCB") || document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value == "DL"))
		{
		  if(confirm ("Confirm Activate?. Exchange "))
			 return bSuccess = true;
	          else
	  		 return bSuccess = false;
		}

	/* Added by ICG on 04/04/1998 */
	  if((document.manactv.hexchtype.value == "ALCATEL") && (document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RT" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "DLS" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RTPCCB" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RTPCCBCT" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RTPCCBTR"))
		{
		  if(confirm ("Confirm Activate?. Exchange "))
			 return bSuccess = true;
	          else
	  		 return bSuccess = false;
		}
	/* Added by Azita on 28/10/2005 */
	if((document.manactv.hexchtype.value == "ACTLV52") && (document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RT" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "DLS" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RTPCCB" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RTPCCBCT" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RTPCCBTR"))
		{
			if(confirm ("Confirm Activate?. Exchange "))
				return bSuccess = true;
		         else
		  		return bSuccess = false;
		}
 	  if (document.manactv.txtLENNum.value == "")
		{
		window.alert("Activate Failed...!No LEN Number Entered");
		return bSuccess = false;
		}

 	if (document.manactv.hexchtype.value  == "NOKI-DRS")
	{
			if (isInteger(document.manactv.COValue.value) == false)
				{
				window.alert("Activate Failed...!No Characters allowed for Charge Orgin");
				return bSuccess = false;
				}
	        if (document.manactv.COValue.value == "")
				{
				window.alert("Activate Failed...!No Charge Orgin Entered");
				return bSuccess = false;
				}
	}

	 if(confirm ("Confirm Activate?. Exchange "))
		 return bSuccess = true;
	 else
		 return bSuccess = false;
	}


    }

     function fnGetExtTelNo()
     {
	var selectedFeature = document.manactv.lbFeats.options[document.manactv.lbFeats.selectedIndex].text;
	if(selectedFeature == "HLZZ")
	{
		//window.alert("Please key in Hotline number/Call Telephone number");
		document.manactv.hSubmitFlag.value = 5;
		document.manactv.thisFeat.value = selectedFeature;
		document.manactv.submit();
	}
	else
	{
		if(document.manactv.thisExtra.value == 5)
		{
			document.manactv.hSubmitFlag.value = 4;
			document.manactv.thisFeat.value = selectedFeature;
			document.manactv.submit();
		}
	}
     }


</SCRIPT>

       <SCRIPT>
           function fnFormCheck()
           {
	      if (document.referrer == null || document.referrer == "")
              {
                 alert("Illegal Entry...!");
                 window.close();
                 window.top.location.href='tempasasmain.html';
              }
          }
          </SCRIPT>
<BODY>
 <table>
<tr><td> <font><center>
Switch Activation --- Manual
</center></font></td></tr></table>
 <FORM>

<INPUT><INPUT><INPUT>

   <TABLE>

     <TR><TD>Telephone Number </TD>

     <TD><INPUT>

	 <INPUT></TD></TR>
     <TR><TD>LEN Number </TD>
	 <TD><INPUT></TD></TR>
     <TR><TD>Activation Type </TD>
         <TD>
	   <SELECT><OPTION>Release Soft Tone<OPTION>Meter Reading<OPTION>Release STD<OPTION>Bar STD<OPTION>Release ISD<OPTION>Add Features<OPTION>Delete Features<OPTION>Temporary Disconnect<OPTION>Temporary Disconnect - All<OPTION>Reconnect<OPTION>Disconnect<OPTION>Reconnect All<OPTION>Bar ISD<OPTION>Re-Connect ISD<OPTION>Display Tel. Status<OPTION>Display LEN Status<OPTION>B600- TMB<OPTION>BAR 600-NORMAL SUBS<OPTION>Display Pilot Status<OPTION>PCCB-STD<OPTION>PCCB-ISD<OPTION>Release 600B-EZNB<OPTION>Release EZNB-MASB<OPTION>Release MASB-600B-EZNB</SELECT></TD></TR>
     <TR><TD>Feature Code </TD>
	 <TD>

     <SELECT><OPTION>182<OPTION>1823<OPTION>1826<OPTION>1829<OPTION>183<OPTION>1836<OPTION>1839<OPTION>186<OPTION>1869<OPTION>189<OPTION>236<OPTION>2369<OPTION>239<OPTION>269<OPTION>369<OPTION>600B<OPTION>ABDZ<OPTION>ABSZ<OPTION>BSTD<OPTION>CFZZ<OPTION>CLID<OPTION>CLIP<OPTION>COBZ<OPTION>CTNR<OPTION>CTOB<OPTION>CWZZ<OPTION>DSNA<OPTION>EZNB<OPTION>FFAB<OPTION>FFCB<OPTION>FFCF<OPTION>FFCR<OPTION>FFCW<OPTION>FFHL<OPTION>FFHZ<OPTION>FFWP<OPTION>HLSZ<OPTION>HLZZ<OPTION>ICBZ<OPTION>ISDZ<OPTION>MSNA<OPTION>MSNZ<OPTION>OGBZ<OPTION>PLRZ<OPTION>PRZZ<OPTION>RPZZ<OPTION>STDB<OPTION>TME0<OPTION>TME1<OPTION>TMS1<OPTION>TPTY<OPTION>VMS<OPTION>WUPZ<OPTION>YTWZ</SELECT></TD></TR><INPUT><INPUT><TR><TD><FONT> Hold <B>CTRL/SHIFT</B> Key to Select Multiple Features</FONT></TD></TR></TABLE>
	 <CENTER><TABLE>
     <TR><TD><INPUT>
			<INPUT>
			<INPUT>
	 </TD></TR></TABLE></CENTER>

	<HR><TABLE><TR><FONT><B> STEPS TO ACTIVATE EXCHANGE TYPE AXE38/AXE10 </B></FONT></TR><TR><TD><FONT>1. Release Soft Tone (Enter Tel. No. then Click Refresh then Select Activation Type)</FONT></TD></TR><TR><TD><FONT>2. Release STD or ISD(See Orders)</FONT></TD></TR><TR><TD><FONT>3. Add Feature (To activate feature example CWZZ)</FONT></TD></TR></TABLE><TABLE><TR><TD><FONT>If via Order go to Slotting Screen and enter Order No or Tel No or by Building Id. Then assign Order first prior to activation</FONT></TD></TR><TR><TD><FONT>Note: If error occurs during activation, check 'Activation History' to confirm</FONT></TD></TR><TR><TD><FONT>Note for Hotline Activation : Key in hotline number as follows. For example: If Hotline Number is 0312345678(8-digit), key in Hotline Telephone Number as 0312345678, or if Hotline Number is 031234567(7-digit), key in Hotline Telephone Number as 031234567. If same area code as Main Telephone Number,  do not include area code i.e. key in Hotline number as 12345678</FONT></TD></TR></TABLE>


  <INPUT>
  <INPUT>

 </FORM>

</BODY>


</HTML>

User avatar
Marcus Tettmar
Site Admin
Posts: 7380
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Thu Sep 14, 2006 8:39 am

This is still incomplete. There is no pbactv link or button on this page!
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

mfauzim
Pro Scripter
Posts: 89
Joined: Wed Sep 13, 2006 10:57 am

Try it one more time

Post by mfauzim » Thu Sep 14, 2006 8:46 am

Code: Select all

<HTML>

<HEAD>
 <TITLE> Manual Switch Activation </TITLE>
</HEAD>

<SCRIPT>
/* Added on 21/1/98 to suite Internet Explorer*/
var defaultEmptyOK = false

function isDigit (c)
{   return ((c >= "0") && (c <= "9"))
}

function isEmpty(s)
{   return ((s == null) || (s.length == 0))
}

function isInteger (s)
{   var i;

    if (isEmpty(s))
       if (isInteger.arguments.length == 1) return defaultEmptyOK;
       else return (isInteger.arguments[1] == true);

    // Search through string's characters one by one
    // until we find a non-numeric character.
    // When we do, return false; if we don't, return true.

    for (i = 0; i < s.length; i++)
    {
        // Check that current character is number.
        var c = s.charAt(i);

        if (!isDigit(c)) return false;
    }

    // All characters are numbers.
    return true;
}

/* End --- Addition */
   function fnRefreshCommand()
    {
      document.manactv.hSubmitFlag.value = '1';
      document.manactv.submit();
    }

   function fnSetSubmitFlag(nFlag)
    {
       document.manactv.hSubmitFlag.value = nFlag;
    }
   function fnSetChangeFlag()
    {
      document.manactv.hChangeFlag.value = '1';
    }
   function fnDoValidation()
    {
      var bSuccess = "true";
      if (document.manactv.hSubmitFlag.value == "1")
		return bSuccess = true;
      if (document.manactv.hSubmitFlag.value == "3")
		return bSuccess = true;
      if (document.manactv.hSubmitFlag.value == "2" && document.manactv.hChangeFlag.value == "1")
		{
		window.alert("Telephone Number has been Changed... Please Refresh...!");
		return bSuccess = false;
		}
      if (document.manactv.txtTelNo.value == "")
		{
		window.alert("Activate Failed...!No Telephone Number Entered");
		return bSuccess = false;
		}
      if (document.manactv.txtTelNo.value.length < 11)
                {
		window.alert("Activate Failed...!Invalid Telephone Number");
		return bSuccess = false;
		}
      if (isInteger(document.manactv.txtTelNo.value) == false)
                {
		window.alert("Activate Failed...!No Characters allowed for Telephone Number");
		return bSuccess = false;
		}
      if (document.manactv.hSubmitFlag.value != 4)
     {

	var selectedCommandId = document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value;

	/** Added by smho - 13/06/02 - Control for Add Feature/Delete Feature ******/
	 if(document.manactv.hexchtype.value != "" && (document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value == "AF" || document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value == "DF"))
	 {
		var didSelect = false;
		var selectedFeature = document.manactv.lbFeats.options[document.manactv.lbFeats.selectedIndex].text;

		for(var i = 0; i < (document.manactv.lbFeats.length);i++)
		{
			if(document.manactv.lbFeats.options[i].selected == true)
				didSelect = true;
		}

		if(didSelect)
		{
			if(selectedFeature == "HLZZ")
			{
				if(selectedCommandId == "AF")
				{
					if(document.manactv.txtHotlineTelNo.value == "")
					{
						window.alert("Activate Failed...! Enter Hotline/Call Telephone number");
						document.manactv.txtHotlineTelNo.focus();
						return bSuccess = false;
					}
      					if (isInteger(document.manactv.txtHotlineTelNo.value) == false)
                			{
						window.alert("Activate Failed...!No Characters allowed for Hotline/Call Telephone Number");
						document.manactv.txtHotlineTelNo.focus();
						return bSuccess = false;
					}
					else
					{
		  				if(confirm ("Confirm Activate?. Exchange "))
							return bSuccess = true;
						else
							return bSuccess = false;
					}
				}
				else
				{
		  			if(confirm ("Confirm Activate?. Exchange "))
						return bSuccess = true;
					else
						return bSuccess = false;
				}
			}
			else
			{
		  		if(confirm ("Confirm Activate?. Exchange "))
					return bSuccess = true;
				else
					return bSuccess = false;
			}
		}
		else
		{
			window.alert("Activate failed...! Select a Feature Code");
			document.manactv.lbFeats.focus();
			return bSuccess = false;
		}

	}
	/** End Added by smho - 13/06/02 - Control for Add Feature/Delete Feature ******/
	/*
	if ( ( document.manactv.hexchtype.value == "AXE10" || document.manactv.hexchtype.value == "AXE38" ||
	       document.manactv.hexchtype.value == "FETEX" || document.manactv.hexchtype.value == "ALCATEL")
		&& (document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RT") )
	*/
	if ( ( document.manactv.hexchtype.value == "AXE10" || document.manactv.hexchtype.value == "AXE38") && (document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RT" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "DTR" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RTTR" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "DLS") )
		{
		  if(confirm ("Confirm Activate?. Exchange "))
			 return bSuccess = true;
	      	  else
	  		 return bSuccess = false;

		}
		if ((document.manactv.hexchtype.value == "FETEX" || document.manactv.hexchtype.value == "FETEX52" || document.manactv.hexchtype.value == "FTX52-DR") && (document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RT" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "AISD" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "ASTD" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "TTPCCBSTD"  && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "TTPCCBISD" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "TTRCCBSTD" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "TTRCCBISD" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "DLS")) {
		    if(confirm ("Confirm Activate?. Exchange "))
		     	 return bSuccess = true;
		    else
			 return bSuccess = false;
		}

	  if ( ( document.manactv.hexchtype.value == "NEAX-E" || document.manactv.hexchtype.value == "NEAX-K")
		&& ((document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RT"
		&& document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "DLS" &&  document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "DC" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RTISDPCCB"  && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RTSTDPCCB" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RSTDRCCB" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RISDRCCB" && selectedCommandId != "RTRCCB") || document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value == "DL"))
		{
		  if(confirm ("Confirm Activate?. Exchange "))
			 return bSuccess = true;
	          else
	  		 return bSuccess = false;
		}
	  if ((document.manactv.hexchtype.value == "NOKIA" || document.manactv.hexchtype.value == "NOKI-DRS")
		&& ((document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RT"
		&& document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "DLS" &&  document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "DC" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RISDPCCB"  && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RSTDPCCB" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RSTDRCCB" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RISDRCCB" && selectedCommandId != "RTRCCB") || document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value == "DL"))
		{
		  if(confirm ("Confirm Activate?. Exchange "))
			 return bSuccess = true;
	          else
	  		 return bSuccess = false;
		}

	/* Added by ICG on 04/04/1998 */
	  if((document.manactv.hexchtype.value == "ALCATEL") && (document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RT" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "DLS" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RTPCCB" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RTPCCBCT" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RTPCCBTR"))
		{
		  if(confirm ("Confirm Activate?. Exchange "))
			 return bSuccess = true;
	          else
	  		 return bSuccess = false;
		}
	/* Added by Azita on 28/10/2005 */
	if((document.manactv.hexchtype.value == "ACTLV52") && (document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RT" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "DLS" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RTPCCB" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RTPCCBCT" && document.manactv.cmbCommandId.options[document.manactv.cmbCommandId.selectedIndex].value != "RTPCCBTR"))
		{
			if(confirm ("Confirm Activate?. Exchange "))
				return bSuccess = true;
		         else
		  		return bSuccess = false;
		}
 	  if (document.manactv.txtLENNum.value == "")
		{
		window.alert("Activate Failed...!No LEN Number Entered");
		return bSuccess = false;
		}

 	if (document.manactv.hexchtype.value  == "NOKI-DRS")
	{
			if (isInteger(document.manactv.COValue.value) == false)
				{
				window.alert("Activate Failed...!No Characters allowed for Charge Orgin");
				return bSuccess = false;
				}
	        if (document.manactv.COValue.value == "")
				{
				window.alert("Activate Failed...!No Charge Orgin Entered");
				return bSuccess = false;
				}
	}

	 if(confirm ("Confirm Activate?. Exchange "))
		 return bSuccess = true;
	 else
		 return bSuccess = false;
	}


    }

     function fnGetExtTelNo()
     {
	var selectedFeature = document.manactv.lbFeats.options[document.manactv.lbFeats.selectedIndex].text;
	if(selectedFeature == "HLZZ")
	{
		//window.alert("Please key in Hotline number/Call Telephone number");
		document.manactv.hSubmitFlag.value = 5;
		document.manactv.thisFeat.value = selectedFeature;
		document.manactv.submit();
	}
	else
	{
		if(document.manactv.thisExtra.value == 5)
		{
			document.manactv.hSubmitFlag.value = 4;
			document.manactv.thisFeat.value = selectedFeature;
			document.manactv.submit();
		}
	}
     }


</SCRIPT>

       <SCRIPT>
           function fnFormCheck()
           {
	      if (document.referrer == null || document.referrer == "")
              {
                 alert("Illegal Entry...!");
                 window.close();
                 window.top.location.href='tempasasmain.html';
              }
          }
          </SCRIPT>
<BODY>
 <table>
<tr><td> <font><center>
Switch Activation --- Manual
</center></font></td></tr></table>
 <FORM>

<INPUT><INPUT><INPUT>

   <TABLE>

     <TR><TD>Telephone Number </TD>

     <TD><INPUT>

	 <INPUT></TD></TR>
     <TR><TD>LEN Number </TD>
	 <TD><INPUT></TD></TR>
     <TR><TD>Activation Type </TD>
         <TD>
	   <SELECT><OPTION>Release Soft Tone<OPTION>Meter Reading<OPTION>Release STD<OPTION>Bar STD<OPTION>Release ISD<OPTION>Add Features<OPTION>Delete Features<OPTION>Temporary Disconnect<OPTION>Temporary Disconnect - All<OPTION>Reconnect<OPTION>Disconnect<OPTION>Reconnect All<OPTION>Bar ISD<OPTION>Re-Connect ISD<OPTION>Display Tel. Status<OPTION>Display LEN Status<OPTION>B600- TMB<OPTION>BAR 600-NORMAL SUBS<OPTION>Display Pilot Status<OPTION>PCCB-STD<OPTION>PCCB-ISD<OPTION>Release 600B-EZNB<OPTION>Release EZNB-MASB<OPTION>Release MASB-600B-EZNB</SELECT></TD></TR>
     <TR><TD>Feature Code </TD>
	 <TD>

     <SELECT><OPTION>182<OPTION>1823<OPTION>1826<OPTION>1829<OPTION>183<OPTION>1836<OPTION>1839<OPTION>186<OPTION>1869<OPTION>189<OPTION>236<OPTION>2369<OPTION>239<OPTION>269<OPTION>369<OPTION>600B<OPTION>ABDZ<OPTION>ABSZ<OPTION>BSTD<OPTION>CFZZ<OPTION>CLID<OPTION>CLIP<OPTION>COBZ<OPTION>CTNR<OPTION>CTOB<OPTION>CWZZ<OPTION>DSNA<OPTION>EZNB<OPTION>FFAB<OPTION>FFCB<OPTION>FFCF<OPTION>FFCR<OPTION>FFCW<OPTION>FFHL<OPTION>FFHZ<OPTION>FFWP<OPTION>HLSZ<OPTION>HLZZ<OPTION>ICBZ<OPTION>ISDZ<OPTION>MSNA<OPTION>MSNZ<OPTION>OGBZ<OPTION>PLRZ<OPTION>PRZZ<OPTION>RPZZ<OPTION>STDB<OPTION>TME0<OPTION>TME1<OPTION>TMS1<OPTION>TPTY<OPTION>VMS<OPTION>WUPZ<OPTION>YTWZ</SELECT></TD></TR><INPUT><INPUT><TR><TD><FONT> Hold <B>CTRL/SHIFT</B> Key to Select Multiple Features</FONT></TD></TR></TABLE>
	 <CENTER><TABLE>
     <TR><TD><INPUT>
			<INPUT>
			<INPUT>
	 </TD></TR></TABLE></CENTER>

	<HR><TABLE><TR><FONT><B> STEPS TO ACTIVATE EXCHANGE TYPE AXE38/AXE10 </B></FONT></TR><TR><TD><FONT>1. Release Soft Tone (Enter Tel. No. then Click Refresh then Select Activation Type)</FONT></TD></TR><TR><TD><FONT>2. Release STD or ISD(See Orders)</FONT></TD></TR><TR><TD><FONT>3. Add Feature (To activate feature example CWZZ)</FONT></TD></TR></TABLE><TABLE><TR><TD><FONT>If via Order go to Slotting Screen and enter Order No or Tel No or by Building Id. Then assign Order first prior to activation</FONT></TD></TR><TR><TD><FONT>Note: If error occurs during activation, check 'Activation History' to confirm</FONT></TD></TR><TR><TD><FONT>Note for Hotline Activation : Key in hotline number as follows. For example: If Hotline Number is 0312345678(8-digit), key in Hotline Telephone Number as 0312345678, or if Hotline Number is 031234567(7-digit), key in Hotline Telephone Number as 031234567. If same area code as Main Telephone Number,  do not include area code i.e. key in Hotline number as 12345678</FONT></TD></TR></TABLE>


  <INPUT>
  <INPUT>

 </FORM>

</BODY>


</HTML>

mfauzim
Pro Scripter
Posts: 89
Joined: Wed Sep 13, 2006 10:57 am

pbactv exist when copy but disappleay after submit

Post by mfauzim » Thu Sep 14, 2006 8:51 am

I will try again:






Manual Switch Activation



/* Added on 21/1/98 to suite Internet Explorer*/
var defaultEmptyOK = false

function isDigit (c)
{ return ((c >= "0") && (c


function fnFormCheck()
{
if (document.referrer == null || document.referrer == "")
{
alert("Illegal Entry...!");
window.close();
window.top.location.href='tempasasmain.html';
}
}




Switch Activation --- Manual







Telephone Number




LEN Number

Activation Type

Release Soft ToneMeter ReadingRelease STDBar STDRelease ISDAdd FeaturesDelete FeaturesTemporary DisconnectTemporary Disconnect - AllReconnectDisconnectReconnect AllBar ISDRe-Connect ISDDisplay Tel. StatusDisplay LEN StatusB600- TMBBAR 600-NORMAL SUBSDisplay Pilot StatusPCCB-STDPCCB-ISDRelease 600B-EZNBRelease EZNB-MASBRelease MASB-600B-EZNB
Feature Code


1821823182618291831836183918618691892362369239269369600BABDZABSZBSTDCFZZCLIDCLIPCOBZCTNRCTOBCWZZDSNAEZNBFFABFFCBFFCFFFCRFFCWFFHLFFHZFFWPHLSZHLZZICBZISDZMSNAMSNZOGBZPLRZPRZZRPZZSTDBTME0TME1TMS1TPTYVMSWUPZYTWZ Hold CTRL/SHIFT Key to Select Multiple Features






STEPS TO ACTIVATE EXCHANGE TYPE AXE38/AXE10 1. Release Soft Tone (Enter Tel. No. then Click Refresh then Select Activation Type)2. Release STD or ISD(See Orders)3. Add Feature (To activate feature example CWZZ)If via Order go to Slotting Screen and enter Order No or Tel No or by Building Id. Then assign Order first prior to activationNote: If error occurs during activation, check 'Activation History' to confirmNote for Hotline Activation : Key in hotline number as follows. For example: If Hotline Number is 0312345678(8-digit), key in Hotline Telephone Number as 0312345678, or if Hotline Number is 031234567(7-digit), key in Hotline Telephone Number as 031234567. If same area code as Main Telephone Number, do not include area code i.e. key in Hotline number as 12345678











Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts