button can change contextually to be a Search button in some cases.
Hence the button name searchsavechang es.
The snippet of html is:
<a class="searchsa vechanges btn btn3d tbbtn" href="javascrip t:"
style="position :static">
<div id="TBsearchsav echanges">Searc h</div>
</a>
I want to call a script which will save the 'record' if you understand
me. But all I see is .js files. Can I call these .js methods from
javascript? If so how? Or if not is there any way, in javascript or
some code I can save the 'record' (obviously, I can manually click on
the Save button - but want to achieve this in code).
The full page appears below:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script>
var loaded = 0;function ScriptLoaded() { ++loaded; if(loaded == 2)
ARSystemInit(); }
var ReportSelForm=" ReportSelection ",
RelContextPath= '../../../../',AbsContextPat h=null;</script>
<link rel="stylesheet " href="../../../../resources/stylesheets/
ARSystem.css"></link>
<script src="../../../../resources/javascript/LocalizedMessag es_en.js"
defer=1></script>
<script src="../../../../resources/javascript/locale/en_GB.js"
defer=1></script>
<script>functio n DVFsf(){return "<HTML></HTML>"}; function DVFol(){}</
script>
<script src="../../../../resources/javascript/ClientCore.js" defer=1></
script>
<script src="form.js/b129d513.js" defer=1></script>
<script>documen t.write('<scrip t src="userdata.j s?winname=docto rO2_SHR
%3ACTI'+encodeU RIComponent(nam e)+'" defer=1></'+'script>');</script>
</head>
<body onload="ScriptL oaded()" draghandler="Bo dyDrag"
style="display: none">
<div id="Toolbar"><d iv class="TBTopBar Status">Current mode: <span
class="TBTopBar StatusMode"></span></div>
<a class="btn TBTopBarBox" href="javascrip t:"><img class="tbright"
src="../../../../resources/images/tb_right.gif" /><img class="tbdown"
src="../../../../resources/images/tb_down.gif" /></a><table
cellpadding=0 cellspacing=0 class="Toolbar" ><tbody><tr>< td nowrap=1
class="TBGroup TBGroup0">
<a class="searchsa vechanges btn btn3d tbbtn" href="javascrip t:"
style="position :static">
<div id="TBsearchsav echanges">Searc h</div>
</a>
</td>
<td nowrap=1 class="TBGroup TBGroup2">
<a class="statushi story btn btn3d tbbtn" href="javascrip t:"
style="position :static">
<div id="TBstatushis tory">Status history</div>
</a>
</td>
<td nowrap=1 class="TBGroup TBGroup3">
<a class="home btn btn3d tbbtn" href="javascrip t:"
style="position :static">
<div id="TBhome">Hom e</div>
</a>
</td>
</tr>
</tbody>
</table>
</div>
<div id="ResultsList ">
<div ARID="1020" ARType="Table" ARDBN="CustomRe sultsList"
class="arfid102 0 ardbnCustomResu ltsList" style="top:2; left:2; width:
636; height:60;visib ility:hidden;z-index:0;"
ARCols="5368909 11,536890912,53 6890913,5368909 14,536890915,53 6890916,5368909 17"
ARColWs="112,70 ,112,112,140,70 ,140" ARDrill=1 ARServer="@"
ARSchema="@" ARMaxRows=0 ARDType=1 ARCSize=0 ARFixHdr=1 ARSelRows=0
ARSelInit=0 ARSelRefresh=0 ARAutoFit=0 ARSort=""
ARQual="{qual:& quot;", ids:[],extids:[]}"><img src="../../../../
resources/images/menu_down.gif" class="TableSor tImgUp" ARInDOM=1 /
><img src="../../../../resources/images/menu_up.gif"class="TableSor tImgDown" ARInDOM=1 /><div class='TableHdr '><table
class='TableHdr ' cellpadding=0 cellspacing=0>< tbody><tr><td nowrap
valign=middle class='TableHdr L'></td><td nowrap valign=middle
class='TableHdr R'></td></tr></tbody></table></div><div
class='TableInn er'></div><div class='TableFtr '><table class='TableFtr '
cellpadding=0 cellspacing=0>< tbody><tr><td nowrap valign=middle
class='TableFtr L'></td><td nowrap valign=middle class='TableFtr R'></
td></tr></tbody></table></div></div>
</div>
<div id="Splitter" draggable=1 dragoriginal=1>
</div>
<div id="FormContain er" style="backgrou nd-color:#ffffff">
<div class="FormCont ainerBackground ">
<img class="FormCont ainerImage" galleryimg="no" style="top:0; left:0;
width:1652; height:50;" src="../../../../imagepool/
ffffff944e3868f fffffc965ffffff 89ffffffccfffff fffffffffa542ff ffffcf4ffffffc4 6ffffffae" /
></div>
<div style="top:0;le ft:0;width:735; height:348">&nb sp;</div>
<div ARID="640000009 " ARType="Char" ARDBN="Call ID" class="df dfro
arfid640000009 ardbnCallID" style="z-index:1032;top: 53; left:430;
width:248; height:21;">
<label class="label f9" for="arid640000 009" style="top:4; left:0;
width:88; height:17;">Cal l ID</label><textarea class="text sr "
wrap="off" id="arid6400000 09" cols="" style="top:0; left:89; width:
159; height:21;" readonly rows=1></textarea>
</div>
<div ARID="240000005 " ARType="Char" ARDBN="Requeste r Login Name+"
class="df arfid240000005 ardbnRequesterL oginName+" style="z-index:
1041;top:86; left:136; width:236; height:21;">
<label class="label f6" for="arid240000 005" style="top:4; left:0;
width:90; height:17;">Log in*+</label><textarea class="text sr "
wrap="off" id="arid2400000 05" cols="" style="top:0; left:91; width:
145; height:21;" rows=1></textarea>
</div>
<div ARID="240000001 " ARType="Char" ARDBN="Requeste r Name+" class="df
arfid240000001 ardbnRequesterN ame+" style="z-index:1039;top: 109; left:
136; width:236; height:21;">
<label class="label f6" for="arid240000 001" style="top:4; left:0;
width:90; height:17;">Nam e*+</label><textarea class="text sr "
wrap="off" id="arid2400000 01" cols="" style="top:0; left:91; width:
145; height:21;" rows=1></textarea>
</div>
<a href="javascrip t:" ARID="660000281 " ARType="Control "
ARDBN="O2_btnAu thenticate" class="btn btn3d arfid660000281
ardbnO2_btnAuth enticate" style="top:157; left:177; width:78; height:
21;z-index:1044;"><d iv class="btntextd iv" style="top:0; left:0; width:
78; height:21;"><di v class="f1" style=";width:7 8">Authenticate </div>
</div>
</a>
<a href="javascrip t:" ARID="660000500 " ARType="Control "
ARDBN="O2_btnAu thenticationNot Req" class="btn btn3d arfid660000500
ardbnO2_btnAuth enticationNotRe q" style="top:157; left:288; width:78;
height:21;z-index:1045;"><d iv class="btntextd iv" style="top:0; left:0;
width:78; height:21;"><di v class="f1" style=";width:7 8">Not Required</
div>
</div>
</a>
<a href="javascrip t:" ARID="640000003 " ARType="Control "
ARDBN="btn_Help DeskNew" class="btn btnurl arfid640000003
ardbnbtn_HelpDe skNew" style="top:80; left:4; width:128; height:20;z-
index:1026;back ground-color:transpare nt;"><div class="btntextd iv"
style="top:0; left:0; width:128; height:20;"><di v class="f7"
style="text-align:left;;wid th:128">New Help Desk</div>
</div>
</a>
<a href="javascrip t:" ARID="640000004 " ARType="Control "
ARDBN="btn_Help DeskSearch" class="btn btnurl arfid640000004
ardbnbtn_HelpDe skSearch" style="top:110; left:4; width:128; height:
20;z-index:1027;back ground-color:transpare nt;"><div class="btntextd iv"
style="top:0; left:0; width:128; height:20;"><di v class="f7"
style="text-align:left;;wid th:128">Search Help Desk</div>
</div>
</a>
<a href="javascrip t:" ARID="640000005 " ARType="Control "
ARDBN="btn_Chan geRequestNew" class="btn btnurl arfid640000005
ardbnbtn_Change RequestNew" style="top:140; left:4; width:128; height:
20;z-index:1028;back ground-color:transpare nt;"><div class="btntextd iv"
style="top:0; left:0; width:128; height:20;"><di v class="f7"
style="text-align:left;;wid th:128">New Change Request</div>
</div>
</a>
<a href="javascrip t:" ARID="640000006 " ARType="Control "
ARDBN="btn_Chan geRequestSearch " class="btn btnurl arfid640000006
ardbnbtn_Change RequestSearch" style="top:170; left:4; width:128;
height:20;z-index:1029;back ground-color:transpare nt;"><div
class="btntextd iv" style="top:0; left:0; width:128; height:20;"><di v
class="f7" style="text-align:left;;wid th:128">Search Change Request</
div>
</div>
</a>
<a href="javascrip t:" ARID="640000007 " ARType="Control "
ARDBN="btn_Orde rsNew" class="btn btnurl arfid640000007
ardbnbtn_Orders New" style="top:200; left:4; width:128; height:20;z-
index:1030;back ground-color:transpare nt;"><div class="btntextd iv"
style="top:0; left:0; width:128; height:20;"><di v class="f7"
style="text-align:left;;wid th:128">New Order</div>
</div>
</a>
<a href="javascrip t:" ARID="640000008 " ARType="Control "
ARDBN="btn_Orde rsSearch" class="btn btnurl arfid640000008
ardbnbtn_Orders Search" style="top:230; left:4; width:128; height:20;z-
index:1031;back ground-color:transpare nt;"><div class="btntextd iv"
style="top:0; left:0; width:128; height:20;"><di v class="f7"
style="text-align:left;;wid th:128">Search Order</div>
</div>
</a>
<div ARID="240000002 " ARType="Char" ARDBN="Phone Number" class="df
arfid240000002 ardbnPhoneNumbe r" style="z-index:1040;top: 132; left:
136; width:236; height:21;">
<label class="label f6" for="arid240000 002" style="top:4; left:0;
width:90; height:17;">Pho ne</label><textarea class="text sr "
wrap="off" id="arid2400000 02" cols="" style="top:0; left:91; width:
145; height:21;" rows=1></textarea>
</div>
<div ARID="300000050 " ARType="Trim" ARSubType=3 ARDBN="txt_bann er"
class="arfid300 000050 ardbntxt_banner trimdiv" style="z-index:
1005;background-color:transpare nt;top:15; left:250; width:410; height:
35;">
<table style="top:0; left:0; width:410; height:35;" class="trimTabl e"
cellpadding=0 cellspacing=0>
<tr>
<td valign="middle" style="color:#f fffff;" class="f2
trimJustl">Reme dy IT  ;Service M anagement for the&nb sp;Enterprise</
td>
</tr>
</table>
</div>
<a href="javascrip t:" ARID="750000000 " ARType="Control "
ARDBN="O2_btnOr ganisation" class="btn btn3d arfid750000000
ardbnO2_btnOrga nisation" style="top:87; left:376; width:45; height:
21;visibility:h idden;z-index:1048;"><d iv class="btntextd iv" style="top:
0; left:0; width:45; height:21;"><di v class="f1" style=";width:4 5">3rd
Pty</div>
</div>
</a>
<div ARID="661000230 " ARType="Char" ARDBN="Organisa tionType"
class="df dfro arfid661000230 ardbnOrganisati onType" style="z-index:
1046;top:86; left:430; width:274; height:21;">
<label class="label f6" for="arid661000 230" style="top:4; left:0;
width:88; height:17;">Org anisation Type</label><textarea class="text
sr " wrap="off" id="arid6610002 30" cols="" style="top:0; left:89;
width:159; height:21;" ARMenu="O2_AST: OrganisationTyp e" mstyle=2
readonly rows=1></textarea>
<a href="javascrip t:" class="btn btn3d menu" style="top:0; left:253;
width:21; height:21;">
<img class="btnimg" src="../../../../resources/images/field_menu.gif"
style="top:1; left:0; width:19; height:19;" />
</a>
</div>
<a href="javascrip t:" ARID="240000019 " ARType="Control "
ARDBN="Profile" class="btn btn3d arfid240000019 ardbnProfile"
style="top:110; left:376; width:45; height:21;z-index:1042;"><d iv
class="btntextd iv" style="top:0; left:0; width:45; height:21;"><di v
class="f1" style=";width:4 5">View</div>
</div>
</a>
<div ARID="200000006 " ARType="Char" ARDBN="Departme nt" class="df dfro
arfid200000006 ardbnDepartment " style="z-index:1038;top: 109; left:430;
width:274; height:21;">
<label class="label f6" for="arid200000 006" style="top:4; left:0;
width:88; height:17;">Org anisation</label><textarea class="text sr "
wrap="off" id="arid2000000 06" cols="" style="top:0; left:89; width:
159; height:21;" ARMenu="SHR:Dep artment" mstyle=2 readonly rows=1></
textarea>
<a href="javascrip t:" class="btn btn3d menu" style="top:0; left:253;
width:21; height:21;">
<img class="btnimg" src="../../../../resources/images/field_menu.gif"
style="top:1; left:0; width:19; height:19;" />
</a>
</div>
<div ARID="200000012 " ARType="Char" ARDBN="Region" class="df dfro
arfid200000012 ardbnRegion" style="z-index:1036;top: 132; left:430;
width:274; height:21;">
<label class="label f6" for="arid200000 012" style="top:4; left:0;
width:88; height:17;">Reg ion</label><textarea class="text sr "
wrap="off" id="arid2000000 12" cols="" style="top:0; left:89; width:
159; height:21;" ARMenu="O2_SHR: Region" mstyle=2 readonly rows=1></
textarea>
<a href="javascrip t:" class="btn btn3d menu" style="top:0; left:253;
width:21; height:21;">
<img class="btnimg" src="../../../../resources/images/field_menu.gif"
style="top:1; left:0; width:19; height:19;" />
</a>
</div>
<div ARID="200000007 " ARType="Char" ARDBN="Site" class="df dfro
arfid200000007 ardbnSite" style="z-index:1037;top: 155; left:430; width:
274; height:21;">
<label class="label f6" for="arid200000 007" style="top:4; left:0;
width:88; height:17;">Loc ation</label><textarea class="text sr "
wrap="off" id="arid2000000 07" cols="" style="top:0; left:89; width:
159; height:21;" ARMenu="O2_SHR: LocationByRegio n" mstyle=2 readonly
rows=1></textarea>
<a href="javascrip t:" class="btn btn3d menu" style="top:0; left:253;
width:21; height:21;">
<img class="btnimg" src="../../../../resources/images/field_menu.gif"
style="top:1; left:0; width:19; height:19;" />
</a>
</div>
<div ARID="660000268 " ARType="EnumSel " ARDBN="O2_Authe nticated"
class="df dfro arfid660000268 ardbnO2_Authent icated" style="z-index:
1043;top:184; left:174; width:198; height:21;">
<label class="label f9" for="arid660000 268" style="top:4; left:0;
width:90; height:17;">Aut henticated*</label><div class="selectio n"
style="top:0; left:91; width:107; height:21;"
ARSelMenu="[{v:"No&quo t;},{v:"Ye s"},{v:&qu ot;Not
Required"}]">
<input id="arid6600002 68" type="text" class="text " readonly
style="top:0; left:0; width:86; height:19;" />
<a href="javascrip t:" class="btn btn3d selectionbtn" style="top:0;
left:86; width:19; height:19;">
<img class="btnimg" src="../../../../resources/images/field_menu.gif"
style="top:0; left:-1; width:19; height:19;" />
</a>
</div>
</div>
<div ARID="640000025 " ARType="Char" ARDBN="Incoming CLI" class="df
dfro arfid640000025 ardbnIncomingCL I" style="z-index:1049;top: 211;
left:136; width:236; height:21;">
<label class="label f9" for="arid640000 025" style="top:4; left:0;
width:90; height:17;">Inc oming CLI</label><textarea class="text sr "
wrap="off" id="arid6400000 25" cols="" style="top:0; left:91; width:
145; height:21;" readonly rows=1></textarea>
</div>
<div ARID="2" ARType="Char" ARDBN="Submitte r" class="df dfro arfid2
ardbnSubmitter" style="z-index:993;top:2 11; left:430; width:248;
height:22;">
<label class="label f9" for="arid2" style="top:4; left:0; width:88;
height:18;">Sub mitter</label><textarea class="text sr " wrap="off"
id="arid2" cols="" style="top:0; left:89; width:159; height:21;"
readonly rows=1></textarea>
</div>
<div ARID="640000001 " ARType="Char" ARDBN="Dialled Number" class="df
dfro arfid640000001 ardbnDialledNum ber" style="z-index:1024;top: 234;
left:136; width:236; height:21;">
<label class="label f9" for="arid640000 001" style="top:4; left:0;
width:90; height:17;">Dia lled Number</label><textarea class="text sr "
wrap="off" id="arid6400000 01" cols="" style="top:0; left:91; width:
145; height:21;" readonly rows=1></textarea>
</div>
<div ARID="7" ARType="EnumSel " ARDBN="Status" class="df dfro arfid7
ardbnStatus" style="z-index:998;top:2 34; left:430; width:248; height:
21;">
<label class="label f9" for="arid7" style="top:4; left:0; width:88;
height:17;">Sta tus</label><div class="selectio n" style="top:0; left:
89; width:159; height:21;" ARSelMenu="[{v:"Active "},
{v:"Inacti ve"}]">
<input id="arid7" type="text" class="text " readonly style="top:0;
left:0; width:138; height:19;" />
<a href="javascrip t:" class="btn btn3d selectionbtn" style="top:0;
left:138; width:19; height:19;">
<img class="btnimg" src="../../../../resources/images/field_menu.gif"
style="top:0; left:-1; width:19; height:19;" />
</a>
</div>
</div>
<div ARID="640000002 " ARType="Char" ARDBN="Dialled Department"
class="df dfro arfid640000002 ardbnDialledDep artment" style="z-index:
1025;top:257; left:136; width:236; height:21;">
<label class="label f6" for="arid640000 002" style="top:4; left:0;
width:90; height:17;">Dia lled Department</label><textarea class="text
sr " wrap="off" id="arid6400000 02" cols="" style="top:0; left:91;
width:145; height:21;" readonly rows=1></textarea>
</div>
<div ARID="3" ARType="Time" ARDBN="Create Date" class="df dfro arfid3
ardbnCreateDate " style="z-index:994;top:2 57; left:430; width:274;
height:23;">
<label class="label f10" for="arid3" style="top:4; left:0; width:88;
height:19;">Cre ate Date</label><input id="arid3" class="text "
type="text" style="top:0; left:89; width:159; height:21;" readonly
ds=0 />
<a href="javascrip t:" class="btn btn3d expand" style="top:0; left:253;
width:21; height:21;">
<img class="btnimg" src="../../../../resources/images/
field_calendar. gif" style="top:1; left:0; width:19; height:19;" />
</a>
</div>
<div ARID="300196300 " ARType="Trim" ARSubType=3 ARDBN="Page Title_txt"
class="arfid300 196300 ardbnPageTitle_ txt trimdiv" style="z-index:
1000;background-color:transpare nt;top:50; left:135; width:271; height:
25;">
<table style="top:0; left:0; width:271; height:25;" class="trimTabl e"
cellpadding=0 cellspacing=0>
<tr>
<td valign="middle" style="" class="f2
trimJustl">Reme dy Telepho ny</td>
</tr>
</table>
</div>
<div ARID="301172200 " ARType="Trim" ARSubType=2
ARDBN="Navigati onSideBarTrimBo x" class="arfid301 172200
ardbnNavigation SideBarTrimBox bs4" style="z-index:992;backg round-
color:#ffffff;t op:49; left:0; width:125; height:258;bord er-width:2;">
</div>
</div>
<div id="QueryBar" class="Advanced SearchBar" ARID="1005"
ARType="SearchB ar">
<label class="hidden" style="left:0;t op:0;" for="arid1005"> Advanced
Search Bar</label>
</div>
<input id="ARState" type="text" style="visibili ty:hidden" /></body>
</html>