<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>Reference Error — Sahi Pro Community</title>
        <link>https://community.sahipro.com/forums/</link>
        <pubDate>Fri, 13 Nov 2026 02:00:23 +0000</pubDate>
        <language>en</language>
            <description>Reference Error — Sahi Pro Community</description>
    <atom:link href="https://community.sahipro.com/forums/discussions/tagged/feed.rss" rel="self" type="application/rss+xml"/>
    <item>
        <title>Reference Error</title>
        <link>https://community.sahipro.com/forums/discussion/1209/reference-error</link>
        <pubDate>Thu, 08 Oct 2009 06:33:49 +0000</pubDate>
        <category>Sahi - Open Source</category>
        <dc:creator>Dinesh Kanojia</dc:creator>
        <guid isPermaLink="false">1209@/forums/discussions</guid>
        <description><![CDATA[Hi All,<br />
<br />
i have a problem while using JavaScript function within sahi<br />
here is my piece of code as follows<br />
&lt;browser&gt;<br />
<br />
function Generaterandom()<br />
{<br />
var randomnumber = new Date();<br />
randomnumber = parseInt(randomnumber/1000);<br />
return  randomnumber;<br />
}<br />
<br />
&lt;/browser&gt;<br />
_set($RandomNumber, Generaterandom());<br />
_debug(Generaterandom());<br />
<br />
from my end it looks fine but it giving me an error as following below<br />
<br />
_sahi.setServerVar('\$RandomNumber', Generaterandom());<br />
ReferenceError: Generaterandom is not defined<br />
<br />
so anybody can tell where my code goes wrong and why i am getting this error<br />
any solution will be appreciate.<br />
<br />
thanks in advance<br />
warm Regards,<br />
DInesh.k]]>
        </description>
    </item>
   </channel>
</rss>
