ReferenceError: "checkForFrm" is not defined.

View: New views
2 Messages — Rating Filter:   Alert me  

Parent Message unknown ReferenceError: "checkForFrm" is not defined.

by Jaydeep Ayachit :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I have html page similar to the following. When run through webtest it gives
error - "ReferenceError: "checkForFrm" is not defined."

checkForFrm function is infact defined earlier. Any help in this regard will
be most welcome.

Thanks
Jaydeep.

<body>
<table>
<tr>
        <td>..</td>
</tr>

<script language="JavaScript">

function checkForFrm(clientid)
{
    var msg = "Please save your changes (if any) before proceeding.";
    if(confirm(msg))
    {
        document.location = "/apps/featurelist.jsp?clientId=" + clientid;
}
}

</script>

<tr>
        <td>
                <a href="javascript:checkForFrm(12345)">Features</a></td>
        </td>
</tr>

</table>
</body>


DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.
_______________________________________________
WebTest mailing list
WebTest@...
http://lists.canoo.com/mailman/listinfo/webtest

Re: ReferenceError: "checkForFrm" is not defined.

by Marc Guillemot :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

it seems that I need to put it in a FAQ:
- check that you don't get this error in your "normal" browser
- check that your html code is well formed
- try with latest WebTest build

If this is a real issue, please provide the simplest html page allowing
to reproduce the problem.

Cheers,
Marc.
--
Blog: http://mguillem.wordpress.com


Jaydeep Ayachit wrote:

> Hi,
>
> I have html page similar to the following. When run through webtest it gives
> error - "ReferenceError: "checkForFrm" is not defined."
>
> checkForFrm function is infact defined earlier. Any help in this regard will
> be most welcome.
>
> Thanks
> Jaydeep.
>
> <body>
> <table>
> <tr>
> <td>..</td>
> </tr>
>
> <script language="JavaScript">
>
> function checkForFrm(clientid)
> {
>     var msg = "Please save your changes (if any) before proceeding.";
>     if(confirm(msg))
>     {
>         document.location = "/apps/featurelist.jsp?clientId=" + clientid;
> }
> }
>
> </script>
>
> <tr>
> <td>
> <a href="javascript:checkForFrm(12345)">Features</a></td>
> </td>
> </tr>
>
> </table>
> </body>
>
>
> DISCLAIMER
> ==========
> This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.
> _______________________________________________
> WebTest mailing list
> WebTest@...
> http://lists.canoo.com/mailman/listinfo/webtest
>

_______________________________________________
WebTest mailing list
WebTest@...
http://lists.canoo.com/mailman/listinfo/webtest
LightInTheBox - Buy quality products at wholesale price