venusgirrl
Programmer
Hi,
Maybe the answer for my question is easy, but I am so new to xml, I tried a lot of ways but all of them dont work.
I have a page (made by another person), and it works correctly, but where the page calls the results of the xml is not where I need.
The header:
<HTML>
<HEAD>
<XML id="DIVIDA">
</XML>
<script language="JavaScript">
DIVIDA.load(top.DIVIDA);
...
</script>
</head>
Then I have the body and it uses the table span to show the results:
<table width="84%" border="0" cellspacing="0" cellpadding="0" class="fonte5" datasrc="#DIVIDA">
<tr>
<td colspan="1"><font color="#000000" size="1" face="Verdana, Arial, Helvetica, sans-serif">
Contract nº: <b><span datasrc="#DIVIDA" datafld="CONTRACT"></span></b></font></td>
...
</body>
OK, it works perfectly!!!
The challenge I am facing is, instead of showing the CONTRACT number, I need to show the company it belongs to, to do that I need a select Case.
For example:
Case CONTRACT = "000001001"
sText = "Contract from the Company 1"
Case CONTRACT = "000002001"
sText = "Contract from the Company 2"
But I need to build this Select Case instruction before the <body> using VbScript and then pass the variable sText to the html body.
What instruction do I use to pass the variable CONTRACT to my Select Case using VbScript?
Hope someone could help!!
Thanks in advance,
venus
Maybe the answer for my question is easy, but I am so new to xml, I tried a lot of ways but all of them dont work.
I have a page (made by another person), and it works correctly, but where the page calls the results of the xml is not where I need.
The header:
<HTML>
<HEAD>
<XML id="DIVIDA">
</XML>
<script language="JavaScript">
DIVIDA.load(top.DIVIDA);
...
</script>
</head>
Then I have the body and it uses the table span to show the results:
<table width="84%" border="0" cellspacing="0" cellpadding="0" class="fonte5" datasrc="#DIVIDA">
<tr>
<td colspan="1"><font color="#000000" size="1" face="Verdana, Arial, Helvetica, sans-serif">
Contract nº: <b><span datasrc="#DIVIDA" datafld="CONTRACT"></span></b></font></td>
...
</body>
OK, it works perfectly!!!
The challenge I am facing is, instead of showing the CONTRACT number, I need to show the company it belongs to, to do that I need a select Case.
For example:
Case CONTRACT = "000001001"
sText = "Contract from the Company 1"
Case CONTRACT = "000002001"
sText = "Contract from the Company 2"
But I need to build this Select Case instruction before the <body> using VbScript and then pass the variable sText to the html body.
What instruction do I use to pass the variable CONTRACT to my Select Case using VbScript?
Hope someone could help!!
Thanks in advance,
venus