SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Evangelist BJ Duncan's Avatar
    Join Date
    Jun 2007
    Location
    North Richmond
    Posts
    495
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Haven't used javascript before, please help.

    G'day to all,

    I normally do my programming in php. I have recently come across a form that I would like to do that may require javascript.

    Objective: What I would like is when a user is signing up to the form, one of the questions is to find out if they are related to a business that is already listed within my database.
    I would like to have a drop-down menu with all the business names listed, then if a user selects on of the names listed on the drop-down menu, I would like all the business details pulled from the database and displayed on the screen without the user submitting any form (avoiding a 2 stage process).

    Can anyone please help?

    Many thanks in advance
    Regards,
    BJ Duncan

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,729
    Mentioned
    104 Post(s)
    Tagged
    4 Thread(s)
    First get it working without javascript.
    Once you have a working model that works without javascript, only then use javascript to improve the user-experience, and fetch the data without the extra pageload.
    Last edited by paul_wilkins; Apr 12, 2008 at 15:08.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  3. #3
    SitePoint Zealot
    Join Date
    Apr 2008
    Posts
    125
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    some users have turned off js too, dont u think having an alternative might help
    Last edited by web67; Apr 15, 2008 at 20:14.
    Keep Up to date about everthing Website Flipping
    Find out how to same thousands on your Mortgage Broker fees.


Bookmarks

Posting Permissions

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