Hi Adrian
Ok the following did the trick:
wap_escape
sub {
my $string = shift;
$string =~ s/;/&/g;
return $string;
}
and then the following template tag:
<%wap_escape($url_hidden)%>
gives the following for example:
sid=1142efe10f671b9f55dd163a7e0e8c52&t=wap
So the ; in the <%url_hidden%> (which normally is sid=xxxxxx;t=wap) is taken care of.
However, ; further down in the query string (for example ;page=address.htm) needs to be replaced with & for it to work with cell phones though the same does not cause any problem with the emulators (showing how non representative emulators could be).
So do u suggest the above to be changed in each template or is it that some better soln is there.
Currently, the wap template set has been working after having taken care of ; and splitting the <%url_hidden%> with sid=<%sid%>&t=<%t%> and replacing each occurrence of ; with & I am not sure about <%url_hidden%> but what else exactly is it cosisting of besides sid=xxx;t=wap.
Thnx
Anup
Ok the following did the trick:
wap_escape
sub {
my $string = shift;
$string =~ s/;/&/g;
return $string;
}
and then the following template tag:
<%wap_escape($url_hidden)%>
gives the following for example:
sid=1142efe10f671b9f55dd163a7e0e8c52&t=wap
So the ; in the <%url_hidden%> (which normally is sid=xxxxxx;t=wap) is taken care of.
However, ; further down in the query string (for example ;page=address.htm) needs to be replaced with & for it to work with cell phones though the same does not cause any problem with the emulators (showing how non representative emulators could be).
So do u suggest the above to be changed in each template or is it that some better soln is there.
Currently, the wap template set has been working after having taken care of ; and splitting the <%url_hidden%> with sid=<%sid%>&t=<%t%> and replacing each occurrence of ; with & I am not sure about <%url_hidden%> but what else exactly is it cosisting of besides sid=xxx;t=wap.
Thnx
Anup