|
-
Mar 16th, 2001, 04:55 AM
#1
Thread Starter
Fanatic Member
i want to have the links in my code archive to load on a universal html doc but load a different text file depending on the sniplet name so that if i load the showsniplet.html from a link i can add some sort of command line perameter that will tell it which txt file to load in the body
It would be helpful if you could post an example
If you need to see the site it will be implemented on it is here
-
Mar 16th, 2001, 09:40 PM
#2
Hi,
I think we need more to go on. it sounds like you want a different file to load every time the page is brought up but depends on what file is clicked on. I don't think I understand.
scoutt
-
Mar 16th, 2001, 09:46 PM
#3
Thread Starter
Fanatic Member
i want the same html document to load but i want to make it so that the text box on the page is for wich ever code sniplet you click on. so if i have a table of code and you click on the show hide taskbar code sniplet it will bring up the showcode.html and it will have the code for the show hide taskbar in the text box. note all of the code sniplets will be in seperate txt files
-
Mar 16th, 2001, 10:47 PM
#4
Got it. that makes since. you would have to do that in cgi I believe. I have the code at home so I can't post it right now. but you would have the code links setup so that when someone click on it it would open the page and insert the text file in to your text area.
I would put all your code in a database and use it as variables. you know, I hate when you know what to say and you just can't say it or write it down. 
ok I think I got it. you would want the code to be a certain variable e.g. <a href="page.cgi&item=taskbar.txt>link to code</a>
<textarea rows="10" name="S1" cols="80">$item</textarea>
something to that nature. hopes this steers you in the right direction. sorry I don't have the whole code. 
scoutt
-
Mar 17th, 2001, 12:35 AM
#5
Thread Starter
Fanatic Member
-
Mar 17th, 2001, 02:54 PM
#6
ok I think I found a program that will do what you want. the only thing is you have to manipulate it to your needs. I, like yourself, am learning to code in cgi, asp, php. I can manipulate the code real good, but just can't program it myself. here is the url to the file you have to download.
http://www.daviddurose.com/scripts/dbdisplay.html
like I said you have to manipulate it to your needs but I think you can do that and display all your files.
hope this helps.
scoutt
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|