Hey Folks,
I was wandering if anyone has come across the following issue:
I have a table with a column that has a "link" property that calls a JavaScript method:
<column header="Order Code" colName="UnitCodeMne" id="idColUCMne" width="75px" style="font-size: 11px;"
link="javascript:zenPage.jumpToUnitCode('#(%query.UnitCodeMne)#','#(%query.Accession)#');"/>
The data value of %query.UnitCodeMne is the Literal "%%345SB". I can see this when I hover over the link in IE and all is good.
BUT, when the value is passed to my JavaScript method, the value is %45SB. Some playing around has told me that IE/ZEN/Etc. thinks this is a URL and is encoding it.
Which would be fine if I could 'decode' it properly..but if it was doing "TRUE" Encoding, it should of returned %25%25345SB.
NOTE: If you run $ZCVT("%%345SB","O","URL") it returns %25%25345SB...Which is the correct URL Encoding for the string. But if you run $ZCVT("%%345SB","I","URL") it returns "%45SB, which is wrong (and I'm assuming this is what is happening on the server).
So my dilema is: I can't "Decode" this value properly.
Is there anyway to stop this "Decoding" from happening? If not, Is there anyway to "Decode" it properly? If not, is there a way of "Encoding" it properly so it can be decoded in my JavaScript Method?
ANY HELP would be GREATLY Appreciated!!!
Thanks!!