I am trying to use this variable in JavaScript but I am getting syntax error.
<script type="text/javascript">
{literal}
$.get("mypage.php", { phone:{/literal} "{$smarty.request.phone}"{literal},
time:{/literal}"{$smarty.request.time}"{literal} } );
{/literal}
</script>