No real easy way except that, since it looks like you are already using PHP, you could have them be in a server side include.Originally Posted by LeeGoldsmith in Bug Reports
No real easy way except that, since it looks like you are already using PHP, you could have them be in a server side include.Originally Posted by LeeGoldsmith in Bug Reports
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
Can you tell me how to do that, what the php command is.
Thanks
Lee
Script in question: http://www.dynamicdrive.com/dynamicindex17/agallery.htm
Use PHP include() command on your page, for example:
<?
include "/gallerycontents.txt";
?>
gallerycontents.txt would then contain the HTML (code of Step 2) of the gallery:
Untested yet, but should work.Code:<div class="gallerycontent" subject="What is JavaScript?"> JavaScript is a scripting language originally developed by Netscape to add interactivity and power to web documents. It is purely client side, and runs completely on the client's browser and computer. </div> <div class="gallerycontent" subject="Java & JavaScript Differences"> Java is completely different from JavaScript- it's more powerful, more complex, and unfortunately, a lot harder to master. It belongs in the same league as C, C++, and other more complex languages. </div> <div class="gallerycontent" subject="What is DHTML?"> DHTML is the embodiment of a combination of technologies- JavaScript, CSS, and HTML. Through them a new level of interactivity is possible for the end user experience. </div> <!--HTML for gallery control options below. Remove checkboxes or entire outer DIV if desired --> <div id="controldiv" style="display:none" class="gallerycontroller"> <form name="gallerycontrol"> <select class="gallerycontroller" size="3" name="menu" onChange="manualcontrol(this.options.selectedIndex)"> <option>Blank form</option> </select><br> Auto: <input type="radio" checked name="mode" value="auto" onClick="preparemode('auto')"> Manual: <input type="radio" name="mode" value="manual" onClick="preparemode('manual')"> </form> </div>![]()
Thanks will give it a try soon and let you know if it worked. This will make changes to the AGallery much easier for me.
Lee
It's pretty unlikely that "gallerycontents.txt" is going to be in the root directory of the server.Originally Posted by ddadmin
Lee: this is from the server's point of view, not the browser's. So, if the browser goes to http://www.mysite.com/gallerycontents.txt and gets served /var/www/html/gallerycontents.txt (or C:\webroot\gallerycontents.txt, or whatever your OS may use), to access that file in PHP (with an absolute path) you need to do it from the server's point of view: in our example, that's /var/www/html/gallerycontents.txt, not /gallerycontents.txt. Of course, you can always just use a relative path.
ddadmin: avoid using short tags for code that may run on a server that doesn't have them enabled.
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
I've learned not to argue with Twey on my mistakes. What he said basically. lol
Only server-side.I've learned not to argue with Twey on my mistakes.![]()
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Bookmarks