Hello everyone
Is there a cleaner way of doing the following?
Earlier in the script the variables g.query, g.rowid where populated and I now wish to reference them in a link so the link appears like this in the html...
/profile.mvc?id=3 (3 being whatever the current record number is in the loop)
However the following doesn't work as it causes compiler errors...
<a href="/profile.mvc?id=<MvEVAL EXPR="{ g.query[g.rowid]:profile_id }">"><MvEVAL EXPR="{ g.query[g.rowid]:profile_name }"></a>
The only way I can get it to work is this way...
<MvEVAL EXPR="{ '\<a href\=\"/game\.mvc\?id\=' $ g.query[g.rowid]:profile_id $ '\"\>' $ g.query[g.rowid]:profile_name $ '\</a\>' }">
I am sure there must be a cleaner way but I just can't see it. Any help would be much appreciated.
Is there a cleaner way of doing the following?
Earlier in the script the variables g.query, g.rowid where populated and I now wish to reference them in a link so the link appears like this in the html...
/profile.mvc?id=3 (3 being whatever the current record number is in the loop)
However the following doesn't work as it causes compiler errors...
<a href="/profile.mvc?id=<MvEVAL EXPR="{ g.query[g.rowid]:profile_id }">"><MvEVAL EXPR="{ g.query[g.rowid]:profile_name }"></a>
The only way I can get it to work is this way...
<MvEVAL EXPR="{ '\<a href\=\"/game\.mvc\?id\=' $ g.query[g.rowid]:profile_id $ '\"\>' $ g.query[g.rowid]:profile_name $ '\</a\>' }">
I am sure there must be a cleaner way but I just can't see it. Any help would be much appreciated.
Comment