I am having a little trouble with the <@callmethod> tag when my argument (in 
red) contains an apostrophe. The callmethod work fine when there are no 
apostrophes in the argument, but returns a blank or null when there is an 
apostrophe.

    <@assign request$ReturnSeoUrl[<@currow>,Cat_Name] "<@callmethod 
request$Common 'PurgeSeoUrl("<@var 
request$ReturnSeoUrl[<@currow>,Cat_Name]>")'>" encoding=none>

I tried encoding with various options for the parameter, but it didn't seem to 
help. Any ideas ?

Here is the code for the method>

<@assign method$TempName "<@getparam TempName>">
<@assign method$TempName "<@trim str='<@var method$TempName>'>">
<@assign method$TempName "<@replace str='<@var method$TempName>' 
findstr='<@char 39>' replacestr=''>">
<@assign method$TempName "<@replace str='<@var method$TempName>' findstr=' & ' 
replacestr='-'>">
<@assign method$TempName "<@replace str='<@var method$TempName>' findstr=' / ' 
replacestr='-'>">
<@assign method$TempName "<@replace str='<@var method$TempName>' findstr=' - ' 
replacestr='-'>">
<@assign method$TempName "<@replace str='<@var method$TempName>' findstr='!' 
replacestr=''>">
<@assign method$TempName "<@replace str='<@var method$TempName>' findstr='/' 
replacestr='-'>">
<@assign method$TempName "<@replace str='<@var method$TempName>' findstr=' ' 
replacestr='-'>">
<@assign method$TempName "<@lower str='<@var method$TempName>'>">
<@assign method$returnValue "<@var method$TempName>">

Thanks

Steve Fogelson
Internet Commerce Solutions




----------------------------------------

To unsubscribe from this list, please send an email to [email protected] 
with "unsubscribe terascript-talk" in the body.

Reply via email to