You are here: Forum Home / RapidWeaver User Forum / HTML, CSS, and Design Help / Thread
I have a couple things I am trying to figure out regarding the specific code I am trying to use.
I am using Snippets offered by Henk,
http://www.henkvrieselaar.nl/carousel-styles/page18/index.html
and I am learning how to use scripts from DynamicDrive,
http://www.dynamicdrive.com/
A Dynamic Drive scriptâ??s directions say to add two files to Assets. I have done this and it works on my computer (unpublished). What I have in Assets is two file names and locations (both on my desktop). I imagine this means RW is finding the files on my desktop and accessing the actual code from there? If this is the case, do I need to load those two files to my web provider’s site, substituting the new name and location of the Assets, in order to get it to work “on the web”?
I have noted two main ways Snippets or scripts locate files or data the code is handling. One school adds data or files in the actual code, which is then placed on the RW page. The other school uses links to files, the actual files are typically loaded to ones web home site using a loader like Cyberduck.
I am wondering whether or not I can, as a general rule, substitute one method for the other? A specific script I am thinking of instructs me to copy and paste the script, with the data included, onto my RW page. The text displayed with their example is quite short. The text I want to display may run into multiple pages. Should I be able to replace the data in the script with a file name and location pointing to a file containing my data located on MacDoc?
Any pointers or corrections concerning my efforts to use Snippets and scripts are greatly appreciated.
iMac, 2.66 GHz Intel Core i5, 8GB DDR3 memory
“If you understand it, anything is easy!” ...Mr. E, my 6th grade teacher and a wise old Welsh gentleman.
I have a couple things I am trying to figure out regarding the specific code I am trying to use.
I am using Snippets offered by Henk,
http://www.henkvrieselaar.nl/carousel-styles/page18/index.html
Which snippet in particular?
and I am learning how to use scripts from DynamicDrive,
http://www.dynamicdrive.com/A Dynamic Drive scriptâ??s directions say to add two files to Assets. I have done this and it works on my computer (unpublished). What I have in Assets is two file names and locations (both on my desktop). I imagine this means RW is finding the files on my desktop and accessing the actual code from there? If this is the case, do I need to load those two files to my web provider’s site, substituting the new name and location of the Assets, in order to get it to work “on the web”?
When one adds a file to a page’s assets, the file should be uploaded with the page. If the relevant portion of the snippet is correctly pointing to the asset’s location, and if the asset has been named correctly, it should work just like it did on your “dry run” (preview).
II have noted two main ways Snippets or scripts locate files or data the code is handling. One school adds data or files in the actual code, which is then placed on the RW page. The other school uses links to files, the actual files are typically loaded to ones web home site using a loader like Cyberduck.
I am wondering whether or not I can, as a general rule, substitute one method for the other? A specific script I am thinking of instructs me to copy and paste the script, with the data included, onto my RW page. The text displayed with their example is quite short. The text I want to display may run into multiple pages. Should I be able to replace the data in the script with a file name and location pointing to a file containing my data located on MacDoc?
Usually one can replace a script’s “asset” file path with an absolute path without problems.
In fact, I always do this, as this way one uploads the file once - no chance of RW deciding to upload the file each time one publishes the page. Also, the file can be used on multiple pages without uploading multiple copies.
Hi again Michael,
First on a personal note, great to find a Kiwi on these pages. The wife’s mother and thus most of her relatives, are Kiwis. Wish I could spend more time there myself.
I have used several of Henk’s Snippets on my web pages.
http://www.henkvrieselaar.nl/carousel-styles/page22/index.html
Slide Show with Menu is currently on my Home Page and will probably get an even larger piece of my new Home Page.
Mini Menu by Henk currently holds a couple places on my pages. It may get replaced with scripts from DynamicDrive:http://www.dynamicdrive.com/dynamicindex1/omnislide/index.htm
Omni Slide Menu
I have used other Henk snippets. I have 4-5 of them in my RW Snippets file. Thus far I have not had any trouble using the Henk Snippets.
The challenge I am facing at the moment is incorporating what they refer to on the DynamicDrive site as scripts into my site. I got some help from Ed (RW moderator) and have the Omni Slide Menu demo running on my test pages. Now I am working on altering the scripts to get the specific menus I want with my menu items…I have a download page that shows where to change all sorts of things within the scripts, so I want have to do too much hunting in the code.
Henk’s Slide Show with Menu Snippet stores the “slides” on the server as you apparently prefer as well. I also prefer that method for the same reasons. It seems to me there must be a quantity of data that is just too small to bother loading to the server though.
iMac, 2.66 GHz Intel Core i5, 8GB DDR3 memory
“If you understand it, anything is easy!” ...Mr. E, my 6th grade teacher and a wise old Welsh gentleman.