Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Javascript in ActiveVFP
Message
 
À
18/03/2003 07:33:59
Information générale
Forum:
Visual FoxPro
Catégorie:
ActiveVFP
Divers
Thread ID:
00766838
Message ID:
00767328
Vues:
36
Great shortcut! Rolf actually did something similar with VFP scripting...
>Claude - just made a JavaScript directory under the same folder as the image folder is located and it works just fine.
>
>A shortcut I have found that can reduce the amount of times you need to recompile the dll server is to add the following case statement for static pages.
>
>When I call the page I use ?action=st_xxxxx. By naming the static page xxxxx.htm it will call that page with having to make another case statement for that page.
>
>
>*** generic for static web pages beginning with 'ST_'
>	Case Left(Alltrim(oProp.Action),3)='st_'
>		lcStaticHtml = Subs(Allt(oProp.Action),4)+ ".htm"
>		lcHTMLfile = lcStaticHtml
>		lcHTMLout= Filetostr(oProp.HtmlPath+lcHTMLfile)
>		lcHTMLout= oHTML.mergetext(lcHTMLout)
>
>
>
>
>
>
>>So, then if you wanted to make a separate JavaScript directory, you probably could put it somewhere under the Read Only directory just like the images directory. For example, somewhere under AVFPdemo2r virtual directory for the demo app...
>>>Thanks Claude - putting it in the image directory works.
>>>>It should be just like any static file reference such as an image and you'll need read rights on the directory. Assumimg the images are coming up correctly, you could try putting it into the images directory first to see if that works...
>>>>>How should I reference a javascript .js file. I have place the .js file in the html folder with the other web pages. I tried "../../test/html/jsfile.js" and while it recognizes it in my web editor, it doesn't recognize recognize the .js file when using ActiveVFP.
>>>>>
>>>>>Any thoughts would be welcome.
>>>>>
>>>>>Gaylen
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform