T
timothy ma and constance lee
Sir
I encounter the problem:
<td width="80%" class="body_nls">
<select
name="{following-sibling::docTp[1]}"
OnChange="javascript:generateURL('{$COUNTRYCODE}','{$ACCTTP}','{$INSTCODE}','{ACCTNBR}','{following-sibling::refrID[1]}',this.options[this.selectedIndex].value),'{CUSTID}','{SERVTP}'">
<!-- calling a template to
generate <option> tags
-->
<xsl:call-template
name="generateDropdown">
<xsl:with-param
name="length"
select="preceding-sibling::totPage[1]"
/>
</xsl:call-template>
</select>
</td>
</tr>
where the generatDropdown template will give out the drop list box
function
generateURL(acctCtry,acctType,acctInst,acctNumu,imageCursor,index,custid,servid)
{
var servername =
'http://gp1007X9.gib-ivs.hsbc.com.gibivs/ViewImage?';
while(index.length()<4){
index="0"+index;
}
window.open(window.location.href=servername+'acctCtry=' + acctType +
'acctType=' + acctType + 'acctInst=' + acctInst + 'acctNumu=' + acctNumu +
'imageCursor=' + imageCursor + '#' + index +'custid=' + custid + 'service='
+ servid);
}
however, i cannot get the value at '{following-sibling::refrID[1]}'. Is
there any syntax especially handling for following-sibling?
Timothy Ma
I encounter the problem:
<td width="80%" class="body_nls">
<select
name="{following-sibling::docTp[1]}"
OnChange="javascript:generateURL('{$COUNTRYCODE}','{$ACCTTP}','{$INSTCODE}','{ACCTNBR}','{following-sibling::refrID[1]}',this.options[this.selectedIndex].value),'{CUSTID}','{SERVTP}'">
<!-- calling a template to
generate <option> tags
-->
<xsl:call-template
name="generateDropdown">
<xsl:with-param
name="length"
select="preceding-sibling::totPage[1]"
/>
</xsl:call-template>
</select>
</td>
</tr>
where the generatDropdown template will give out the drop list box
function
generateURL(acctCtry,acctType,acctInst,acctNumu,imageCursor,index,custid,servid)
{
var servername =
'http://gp1007X9.gib-ivs.hsbc.com.gibivs/ViewImage?';
while(index.length()<4){
index="0"+index;
}
window.open(window.location.href=servername+'acctCtry=' + acctType +
'acctType=' + acctType + 'acctInst=' + acctInst + 'acctNumu=' + acctNumu +
'imageCursor=' + imageCursor + '#' + index +'custid=' + custid + 'service='
+ servid);
}
however, i cannot get the value at '{following-sibling::refrID[1]}'. Is
there any syntax especially handling for following-sibling?
Timothy Ma