Link to a variable page into an ION code [message #41654] |
Fri, 12 November 2004 05:42 |
sandrokan
Messages: 20 Registered: September 2004
|
Junior Member |
|
|
Hello everybody,
I've got this problem. I would like to insert a link inside one ION page.
This link points to a page, whose name depends on
some inputs. After the declaration...
<VARIABLE_DECL NAME="date" VALUE="$diy+$dim+$did+$tih+$tim+$tis"
TYPE="STR" PERSIST="TRUE" />
<VARIABLE_DECL NAME="date_removed" VALUE="" TYPE="STR"
PERSIST="TRUE" />
.. I've added the following code:
<ION_DATA_OUT>
<IDL>
UTC1 = [$diy, $dim, $did, $tih, $tim, $tis]
UTC2 = [$dey, $dem, $ded, $teh, $tem, $tes]
im = data_seq(UTC1,UTC2)
si=size(im)
date_removed = strcompress('$date',/remove_all)
<ION_EVALUATE EXPR="$date = 'date'" />
print, date_removed
<a href="/recent/npi_nm/$data"/>DOWNLOAD_DATA</a>
</IDL>
</ION_DATA_OUT>
This does not work. In fact, $date variable is full of whitespaces, so the
link is not correct. If I try to use $date_removed, then I get
an error because date_removed is defined, $date_removed is not.
Is it possible to pass the value of date_removed to $date_removed? Maybe
using ION_EVALUATE tag?
Any other way to solve this problem?
Thank you very much.
|
|
|