Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
HTML onload function pointer says object required
Message
De
09/02/2005 10:31:15
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00985026
Message ID:
00985177
Vues:
31
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform