Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
HTML onload function pointer says object required
Message
From
09/02/2005 10:31:15
 
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00985026
Message ID:
00985177
Views:
32
Window, in that scope is the target frame (_Launch), not the frame with the form and button. This there is no Window.document.forms("buttonform"). You would need to revise this code to refer back to the source frame, but that seems pretty awkward. Instead, maybe revise TargetOnLoadHTML() to hide the button *before* setting the launch location.

-- Randy

>A button onlclick fires this function:
>function TargetOnLoadHTML()
>{
>window.parent.frames("_Launch").location="TargetOnload.htm"
>}
>Which in turn fires this form:
><html>
><!--- TargetOnload.htm ---- >
><head>
><script language=javascript>
&gt;
&gt;function setShowvars()
&gt;{
&gt;window.document.forms("buttonform").showvars.style.visibility = "hidden";
&gt;}
&gt;
&gt;</script>
></head>
><body onload = 'setShowvars()';>
></body>
></html>
>That highlites the 'setShowvars()'; in the body tag and the error reports an object is required.
>
>Thanks
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform