Click to See Complete Forum and Search --> : Maybe You Can help Me....
nowonline
05-16-2003, 09:39 AM
Greetings. I have a feature I want to add to my website but I'm unsure of exactly how to accomplish it. What I want to do is have a page where users can post and add lines to a poem, I will enter the first line and each new line will be added by a different visitor to the site, as each new line is added by a visitor to the page the poem as a whole must be displayed and when I decide each poem is finished I need to be able to move it to an archive page and begin a new one. also I want the page to keep track of who has written each line and be able to search/display all poems contributed to by any visitor. and possibly even assemble all lines written by a particular user on one page. Can you tell me how to accomplish this? I know a little bit about writing HTML but I am certainly not an expert and I haven't learned much at all about perl/java etc. yet. I have assembled a website completely on my own so far it may be held together with duct tape and paper clips but it all works so far. its at http://www.its-my-website.com any help you can provide will be greatly appreciated.
many thanks,
-Richard
khalidali63
05-16-2003, 10:07 AM
What you are trying to accomplish is can not be done using html.HTML+JavaScript does not have the ability to retain changes made at run time,fo this purpose, you will need to use some type of server side coding,examples of which are
JSP,Servlets
ASP..etc
nowonline
05-16-2003, 11:29 AM
thanks for the info but where can I obtain this coding or the knowledge to produce it myself? Any help is greatly appreciated.
-Richard
khalidali63
05-16-2003, 01:04 PM
you can try here,some one might write some code for you...I would if I a=had time..sowwy...
http://forum.java.sun.com/forum.jsp?forum=45
khaki
05-18-2003, 12:35 PM
hi Richard...
if you have a server that supports ASP...
then i have some pages that are already coded that you can modify
(although your ambitions may exceed your ability to advance the code beyond it's existing structure).
let me know if you can run ASP.
if so... i'll create a mock-up based on your desire to allow people to add new lines to a poem.
then you can decide if you want to learn what is necessary to advance it beyond that (and i'm afraid that you will need to know/learn ASP, databases, and SQL to do so).
let me know....
;) k
khaki
05-18-2003, 03:24 PM
okay Richard...
i did a quick mock-up using one of your existing poems:
http://www.1dot0.com/khaki/poem.html
it's a very raw and undeveloped example...
but i think that it may be what you are looking to do (?).
let me know...
;) k
nowonline
05-19-2003, 09:51 AM
I Tried it out and it looks great, many thanks for your help in this. I know I need to learn to do asp programming myself, just haven't had the time yet, but I will learn it eventually. Just a few question though, I viewed the source HTML for the page in your link, where do I get the file newpoem.asp? and which directory on the site should it be in and when a poem is finished how do I save it and start a new one?
thanks,
-Richard
khaki
05-19-2003, 01:45 PM
hi Richard...
give me some time and i'll put the asp pages into a txt file and then you can view everything before the server gets a hold of it.
as far as new poems....
you would just need to change the name of the file in the "action" part of the form.
that will take care of that.
as far as the location for the files themselves...
whichever directory you want (as long as you code all of your links to point to the directory that they are in).
give me until tonight and i'll paste the asp pages into text files for you.
till then...
;) k
EDIT:
just so you know...
i'm killing the link to the page now.
there always has to be some jerk who needs to play games :rolleyes: and the db is getting hammered with a bunch of crap right now.
(unreal :rolleyes: )
nowonline
05-19-2003, 02:43 PM
many thanks for your help, I guess the idea of adding to a poem must be popular if your site's getting so many hits. Hopefully it will prove to be popular...
-Richard
khaki
05-19-2003, 03:00 PM
I guess the idea of adding to a poem must be popular if your site's getting so many hits well...
actually the only "popular" thing about the "updated" poem on the server is the intended shock-value of the verses.
(i suppose they are meant to make me blush or something... i don't know).
let's just say that it was more crude than creative :rolleyes:
(i attract all the weirdos)...
;) k
nowonline
05-20-2003, 10:03 AM
there is something of shock value in what I call a "serial poem" (one where each successive line is written by another person" but sometimes you come up with brilliant things that would never be thought of otherwise. I have done them for years on spiral notebooks, you write a line, next person writes a line etc. I found they help to inspire new ideas. I hope the one online will do the same.
-Richard
nkaisare
05-20-2003, 10:41 AM
Originally posted by khaki
(i attract all the weirdos)... ;) k
lol :D
I didn't get to see the wierdos' poem. Do you still have it?
khaki
05-20-2003, 02:36 PM
i'm pretty sure that the "poem" is still in the database...
unfortunately my bro cut-off my permissions to his dopey server...
(gee... i wonder why :rolleyes: )
so i'll have to ask him to transfer it for me later tonight.
but... like i said...
it was more crude than creative.
i'll post a link to my Brinkster site after i get it transferred.
;) k
EDIT:
oh... and Richard....
same reason as to why i haven't put the asp code onto text files yet.
nowonline
05-21-2003, 10:37 AM
Hope I didn't cause you problems with your brother or anything.
-Richard
khaki
05-21-2003, 11:39 AM
Hope I didn't cause you problems with your brother or anything he is my older brother...
therefore it is my duty to torment him
(he handles it well enough :rolleyes: ).
so don't sweat it :)
still no file transfer yet :eek:
(he also torments me back ;) LOL)
;) k
nowonline
05-29-2003, 04:12 PM
http://talesfromthevault.com/poetry/newpoem.html
khaki
05-30-2003, 02:42 PM
hi Richard...
I still haven't gotten any of my pages downloaded from my bro's site (he says that he will do it this weekend .... if it's raining .... and it's supposed to :rolleyes: ).
anyway.... I WILL let you know when they are available.
btw... I tested you page (you know that it doesn't submit because the action url does not exist... right?)
looks good though....
you should be able to just grab the code and just paste it into your page without any problem.
catch you later.
;) k
nowonline
05-30-2003, 03:43 PM
yes I saw that they were using a URL to a file that's not there and that's why it didn't work. Will it work with the file you are uploading?
thanks,
-Richard:confused:
nowonline
06-11-2003, 04:08 PM
Have you had a chance to get that file yet?
-Richard
khaki
06-11-2003, 04:23 PM
sorry Richard...
you really caught me napping :eek:
the files from my bro's site don't appear to be coming my way any time soon (he's in Puerto Rico now... and won't return for another 1 1/2 weeks)...
so I will just copy and strip-out code from one of my own pages again.
I'll do it for you in the morning (i won't be on the computer too much for the rest of the nite).
sorry for dropping the ball on you...
I hate when I do that :(
the morning...
I promise...
;) k
nowonline
06-12-2003, 09:04 AM
sounds good to me... I'm very greatful for your help!
-Richard:p
Jonathan
06-12-2003, 03:27 PM
You would have to do a <form method="get"> type thing
nowonline
06-24-2003, 04:37 PM
Get a chance to upload that file yet? I was just wondering because I hadn't heard anything for a while.....:confused:
-Richard
khaki
06-29-2003, 05:34 PM
sorry again Richard...
but listen....
you already have a specific page that you are going to use to update (and/or create) the poems...
so my code is not going to help you at all at this point.
you should probably just trip over to www.asp101.com and apply the samples from:
Database
Database Add
Database Delete
Database Update
...to your pages.
unfortunately... you are creating a web-based database app....
and every one is specific to itself.
you really will need to just use the basic components of database connection (and interaction) to your specific pages.
my own pages are far more specific to my own needs than the samples that you will find over at asp101.
give it a try...
then... if you still have questions...
i'll try to help with those.
sorry if i was stringing you along waiting for finished pages.
but ultimately...
asp101 has all of the basic components to get you going.
keep us updated on your progress :)
;) k