Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Howto: Add JavaScript in HTML using VFP
Message
 
To
24/02/2005 05:34:59
Aaron K. Y. Chu
Health & Care Co. Ltd.
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00989993
Message ID:
00990130
Views:
31
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform