Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Howto: Add JavaScript in HTML using VFP
Message
 
À
24/02/2005 05:34:59
Aaron K. Y. Chu
Health & Care Co. Ltd.
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00989993
Message ID:
00990130
Vues:
32
You are thinking outside the box! Very clever approach - thanks for sharing!


>Thanks for your tips... herewith my little return
>
>
>cList = FILETOSTR(ALLTRIM(Thisform.fileNAME.Value))  && change to Str
>
>IF AT(UPPER('function hp_dn(a)'),UPPER(cList)) = 0   && check whether add before
>	cAdd=FILETOSTR("c:\eHealthcare\data\javascript.txt")
>	sPos =AT('</head>',UPPER(cList))+8
>	Thisform.edit1.Value = STUFFC(cList, sPos,0,cAdd)
>	Thisform.saveBN.Enabled = .T.
>ELSE
>	=MESSAGEBOX("This HTML page is already protected",64,"Confirmation")
>	Thisform.edit1.Value = cList
>	Thisform.saveBN.Enabled = .F.
>ENDIF
>
Imagination is more important than knowledge
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform