Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New Coder
    Join Date
    Oct 2002
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts

    trying to find help to set up "mock" classified ad system

    Hi all! (fyi, newbie here)
    I have a project to do and need help. I am trying to set up a "fake" classified ad system(sort of)...and am trying to find some help or resource online to help me with the code. Basically I need to set up a home page, where a user can either login or create a new id....then will be able to place ads or browse ads and "purchase" items etc. (not a real site...no real money)The users and items are going to be stored in a database in sql server 2000. I don't even know where to start...but I did a layout of how the fake site will "work" (or "navigate")..so I have at least put a little plan in place. So, being new to Javascript etc...I'm sort of lost on where to start with the coding! Does anyone know of a site that may have some samples, or resource as to what to do? This is for a class I'm taking and my book is useless for this project. I'm totally stressed out over the whole thing and don't have a lot of time to do it (many other classes). Surely with the size of the internet I could find something to work with. I see many places where software is available for classified ad systems, but that's not what I'm after...I'm really after some code that I can at least work with. (not copy...but at least get me in the right direction...)

    Any suggestions? I would really appreciate it.

  • #2
    Regular Coder
    Join Date
    Nov 2002
    Location
    Bristol, UK
    Posts
    932
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Well... there's a lot going on there, and I am not quite sure that you have the hang of how all this fits together. You see, for what you want, JavaScript does not really come into it. You should be looking at a server-side language such as ASP if you are going to be using SQL Server 2000, although my personal recommendation would be PHP with MySQL.

    When you say you are doing this for a class, I guess you mean this is a set project, so I expect you won't have much option about the tools you use (well, such is my experience anyway!). So you are probably stuck with ASP and MS SQL. Which means that this thread should really be over in server-side, not here in the JavaScript forum (hey, I guess you didn't know - it's ok, one of the mods will most likely move it for you).

    It IS possible to do some of this stuff in JS, but tbh you will be better off using JS for client-side validation and not much more. See, this is how it all fits together:


    DHTML webpage = HTML + JavaScript + CSS (client-side)

    ...sends information and browser redirection to:

    PHP or ASP scripts (or Perl, CGI etc.) (server-side)

    these interface with SQL (MySQL or SQL Server etc.) to query the database, and then process the results, and generate a page

    The page is sent back to the browser... yup, DHTML again


    That is very simply how it fits together, so you see where you should be looking

    If you re-evaluate what you need to do, then I or whoever else can come up with some appropriate links

    Good luck!

    ::] krycek [::
    ithium | SOAPI | SDP | PTPScript manual
    "ithium is a non-profit webhost, which is pretty much unique. The mission of ithium is to provide free hosting resources for worthwhile and needy non-profit projects, which otherwise may not be able to obtain such facilities. The money from commercial customers goes to maintain ithium's servers and further development."

  • #3
    New Coder
    Join Date
    Oct 2002
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thank you...yes, sorry....I re-read what I wrote..and it's not clear at all! The class started out as javascript...then now we're getting into ASP, combining with another class in SQL Server...and quite frankly...we haven't learned what we need to, to do this project....and don't have much time to do it!! The teacher has left us literally hanging!!!

    So, yes, I see now that it should have been posted on the other section.....sorry!

    Thanks....

  • #4
    Regular Coder
    Join Date
    Nov 2002
    Location
    Bristol, UK
    Posts
    932
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I can understand that

    Back in January I was asked to do some teaching at a local college, as one of their lecturers was away sick. I did two terms, and that was more than enough - the place was completely disorganised, and half the time I wasn't given any information - let alone the students!

    Let's just say that after commercial training, teaching at a college was a bit of a shock, even though I was a student a very short time ago. Somehow I always thought it would be different, being the teacher...

    I am never, ever going to do college teaching again. Period.

    I hope you succeed in your project... there are lots of good tutorials out there, and plenty of people on these forums who will help you

    ::] krycek [::
    ithium | SOAPI | SDP | PTPScript manual
    "ithium is a non-profit webhost, which is pretty much unique. The mission of ithium is to provide free hosting resources for worthwhile and needy non-profit projects, which otherwise may not be able to obtain such facilities. The money from commercial customers goes to maintain ithium's servers and further development."

  • #5
    Senior Coder
    Join Date
    Jun 2002
    Location
    41 8' 52" N -95 53' 31" W
    Posts
    3,660
    Thanks
    0
    Thanked 0 Times in 0 Posts
    If you have the requirements, I'm sure plenty of people in the ASP forum can help.

    Former ASP Forum Moderator - I'm back!

    If you can teach yourself how to learn, you can learn anything. ;)

  • #6
    New Coder
    Join Date
    Oct 2002
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks! Here's what I need to do....

    In general..."build a web based classified ad system. Users must be able to view items for sale, place an item for sale, browse the listings of what's for sale, register their name with the system, and log into the system if they have previously registered".

    On the home page...Present the user with a welcome message etc...and also have links or buttons that will allow them to browse the listings (they are allowed to BROWSE without registering)...place ads (only registered users can do this), register as a new user, log in if returning.

    On the new user reg. page...Present a form to the user to collect the users personal details, including a password (they must enter it twice for verification), then submit the data to the database. After they complete this page, they are to see a page that welcomes them by name.

    On the Login page...Previously registered users will enter their user name and password. Compare this username/password combination with those stored in the database and if the combo is valid, they will go onto the next page which welcomes them by name.

    The users (once registered) should be able to add items for sale.
    A user can browse items, then there should be a button beside each item that will allow them to select any item for purchase. WHen the item is selected, forward the user to the order form, which will include the items description and unit cost. THe order form must dynamically calculate the default date, the subtotal, tax and todal cost. When the user submits the form, all invoice info must be appended to the database.

    All pages must share a common, consistent navigation system that uses ASP include file to present a set of site navigation options. The nav. system must be visible at all times and visitors must be able to access all other areas of the website using the nav. system. (I don't think I have a problem with this aspect...knock on wood)

    So that's the general idea. Don't you think even THIS sounds a bit much for a beginner?!?!?! But there's nothing I can do about it..it is what it is, right.

    Good grief...where do I start?

    Thanks, if anyone can help. Like I said, I was hoping with the internet being as big as it is, that surely there might be something that can get me going!

  • #7
    Senior Coder
    Join Date
    Jun 2002
    Location
    41 8' 52" N -95 53' 31" W
    Posts
    3,660
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I know exactly what you need to start with - it's basically the same thing, but you'll need to add the login feature:

    http://hotwired.lycos.com/webmonkey/backend/databases/

    To start with, check out the "Rugged ASP" tutorial.

    This is a great relational database tutorial which should get you going on the right track (as long as you can use Access).

    Don't worry about that though as pretty much the only basic difference between using Access vs. SQL Server (aside from performance) is your connection string.



    I can guarantee you if you read through that tutorial (and mess around with it yourself) you'll be at least halfway there... then all you have to do is make your own categories and items, and come up with the login and navigation system...

    Hope this helps though!

    If you run into any specific problems, don't worry about posting them in the ASP Forum, that's what it's there for.
    Last edited by whammy; 11-11-2002 at 12:38 AM.
    Former ASP Forum Moderator - I'm back!

    If you can teach yourself how to learn, you can learn anything. ;)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •