473,748 Members | 2,502 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to work out which script to call to Save

I have a web page with a toolbar containing a Save button. The Save
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;&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&nbsp;IT&nbsp ;Service&nbsp;M anagement&nbsp; for&nbsp;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:&quot;No&quo t;},{v:&quot;Ye s&quot;},{v:&qu ot;Not
Required&quot;}]">
<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:&quot;Active &quot;},
{v:&quot;Inacti ve&quot;}]">
<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&nbsp;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>

Mar 23 '07 #1
3 3680
I don't get you, if you want to call a method in .js,
you just call it. Check out the reference.
Angus wrote:
I have a web page with a toolbar containing a Save button. The Save
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;&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&nbsp;IT&nbsp ;Service&nbsp;M anagement&nbsp; for&nbsp;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:&quot;No&quo t;},{v:&quot;Ye s&quot;},{v:&qu ot;Not
Required&quot;}]">
<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:&quot;Active &quot;},
{v:&quot;Inacti ve&quot;}]">
<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&nbsp;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>
Mar 23 '07 #2
On 23 Mar, 14:57, "femto" <femto...@gmail .comwrote:
I don't get you, if you want to call a method in .js,
you just call it. Check out the reference.

Angus wrote:
I have a web page with a toolbar containing a Save button. The Save
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;&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&nbsp;IT&nbsp ;Service&nbsp;M anagement&nbsp; for&nbsp;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:- Hide quoted text -

- Show quoted text -...

read more »
But what function do I call? If the function is not defined on the
web page, can I still call it - eg it is a script on the server? If
so how?

Mar 23 '07 #3
Angus wrote:
On 23 Mar, 14:57, "femto" <femto...@gmail .comwrote:
>I don't get you, if you want to call a method in .js,
you just call it. Check out the reference.

Angus wrote:
I have a web page with a toolbar containing a Save button. The Save
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;&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&nbsp;IT&nbsp ;Service&nbsp;M anagement&nbsp; for&nbsp;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:-
Hide quoted text -

- Show quoted text -...

read more »

But what function do I call? If the function is not defined on the
web page, can I still call it - eg it is a script on the server? If
so how?
Hi,

Without looking through your huge script, a few pointers:
If you need some JS functions in your script, include them.
Two ways:
1) serverside:
when you spit out the HTML make sure you output the JS functions too.
2) Clientside
Let the browser get the needed JS.
Simply add this:
<script src="path/to/your/file/yourjs.js"></script>

Now all the JS defined in that file is included in your script.

PS: using <a href="javascrip t:"is not advised.

Regards,
Erwin Moller
Mar 23 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
1661
by: Wen | last post by:
Hi everyone, ..After my first lesson, I have to create a asp page with: ..asp tag for time ..client script that runs at the server for date ..client script that runs at client and shows a messagebox These are my code, but it doenst work. Can someone help me? <html> <head> <title>18 Nov 2004 My first ASP page</title>
2
2421
by: kelvin | last post by:
Hi, I've this piece of code which does not work at all. Can anyone point out my mistake? I've 2 buttons. History button will call verifyFields() function and lead to different page for processing. verifyFields() is working fine and so does the history() function.
30
2913
by: bblais | last post by:
Hello, Let me start by saying that I am coming from a background using Matlab (or Octave), and C++. I am going to outline the basic nuts-and-bolts of how I work in these languages, and ask for some help to find out how the same thing is done in Python. I am not sure what the standard is. In C++, I open up an editor in one window, a Unix shell in another. I write the code in the editor, then switch to the shell window for compile...
6
4896
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of the html page controls the form fields that are required. It doesn't function like it's supposed to and I can leave all the fields blank and it still submits the form. Also I can't get it to transfer the file in the upload section. The file name...
4
5234
by: E | last post by:
I am having trouble with setTimeout working on a second call to the setTimeout function from a second page which is an html page. Here is the scenario. I have a web page and onload it calls a javascript function which calls setTimeout and will process a second javascript function "Warn" just before the session expires. The Warn function displays an html page with a button. A second timer is started to cause the html page to close...
15
3625
by: mc | last post by:
I'm writing an app for managing Task Lists, I'm trying to add some controls to a form that I can use to link tasks, my original intention was to: - Add two list boxes, one listing "all Tasks" and the other listing "Linked Tasks", I have two buttons which in javascript move items from the first list into the second. Then when a user clicks a thrid button I would like to save this data.
1
3305
by: satish2112 | last post by:
Hi, I have a text-area which contains values from mysql database and 2 buttons, Edit and Update. When I click on the Edit button, I can edit the text-area (initially non-editable). After this, if I click on the Update button, the values in the text-area must be updated in the mysql database. I am storing the values of the text-area in a variable. I am using javascript to pass the variable.
10
4368
by: Ohmster | last post by:
I am trying to use this cool script that some MIT guy wrote and it just does not work, I get a stream of errors when I try to run it. It is supposed to visit a URL and snag all of the pictures on the site. Here is the script: http://web.mit.edu/pgbovine/www/image-harvester/image-harvester.py Here is my output when I try to run it on my Fedora 6 machine: $ image-harvester.py http://public.fotki.com/DaGennelman/
3
6100
by: fizilla | last post by:
Hello all! I have the following weird problem and since I am new to Python I somehow cannot figure out an elegant solution. The problem reduces to the following question: How to pickle a collections.defaultdict object that has set the default_factory property? For Example (from the IDLE console): >>> words = collections.defaultdict(lambda: 1) >>> f = file("temp","w")
0
8994
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8831
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9376
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9329
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9250
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6076
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3315
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2787
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2215
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.