Results 1 to 4 of 4

Thread: Chained Selects - HELP!

  1. #1
    Join Date
    Oct 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Chained Selects - HELP!

    I there a maximum number of entries allowed in the config.js file? I am getting a "stack overflow" message while testing with a large list I created. It is similar to the one you are using as an example (make, model, year).

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Depends on the browser and how much memory you allocate to it.
    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!

  3. #3
    Join Date
    Oct 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I have shortened the size of my config.js for testing purposes (by using variables as sub-list names). I am now getting another error "Line:5 Char:1 Error:Object Expected" , and do not know where to go with that. My file looks very similar to the sample, and I fail to see what the problem is. Any help would be appreciated! Here is my config.js:

    var hide_empty_list=true

    addListGroup("vehicles", "car-make");
    addlist("car-make", "SELECT A MAKE ", "", "dummy-make");

    addlist("car-make", "ACURA ", "ACURA ", "M-01 ");
    addlist("car-make", "AM GENERAL ", "AM GENERAL ", "M-02 ");
    addlist("dummy-make", "Not available", "","dummy-model");

    addOption("dummy-model", "Not available ", "");

    addlist("M-01 ", "Select Model", "", "MM01 ");
    addlist("M-01 ", "CL ", "CL ", "MM0101");
    addlist("M-01 ", "INTEGRA ", "INTEGRA ", "MM0102");
    addlist("M-01 ", "LEGEND ", "LEGEND ", "MM0103");
    addlist("M-01 ", "MDX ", "MDX ", "MM0104");
    addlist("M-01 ", "NSX ", "NSX ", "MM0105");
    addlist("M-01 ", "RL ", "RL ", "MM0106");
    addlist("M-01 ", "RSX ", "RSX ", "MM0107");
    addlist("M-01 ", "SLX ", "SLX ", "MM0108");
    addlist("M-01 ", "TL ", "TL ", "MM0109");
    addlist("M-01 ", "TSX ", "TSX ", "MM0110");
    addlist("M-01 ", "VIGOR ", "VIGOR ", "MM0111");
    addlist("M-01 ", "2.5TL ", "2.5TL ", "MM0112");
    addlist("M-01 ", "3.2TL ", "3.2TL ", "MM0113");
    addlist("M-01 ", "3.5RL ", "3.5RL ", "MM0114");
    addOption("MM01 ", "Not Available", "");
    addOption("MM0101", "Select Year", "");
    addOption("MM0101", "1997", "1997");
    addOption("MM0101", "1998", "1998");
    addOption("MM0101", "1999", "1999");
    addOption("MM0101", "2000", "2000");
    addOption("MM0101", "2001", "2001");
    addOption("MM0101", "2002", "2002");
    addOption("MM0101", "2003", "2003");

    addOption("MM0102", "Select Year", "");
    addOption("MM0102", "1986", "1986");
    addOption("MM0102", "1987", "1987");
    addOption("MM0102", "1988", "1988");
    addOption("MM0102", "1989", "1989");
    addOption("MM0102", "1990", "1990");
    addOption("MM0102", "1991", "1991");
    addOption("MM0102", "1992", "1992");
    addOption("MM0102", "1993", "1993");
    addOption("MM0102", "1994", "1994");
    addOption("MM0102", "1995", "1995");
    addOption("MM0102", "1996", "1996");
    addOption("MM0102", "1997", "1997");
    addOption("MM0102", "1998", "1998");
    addOption("MM0102", "1999", "1999");
    addOption("MM0102", "2000", "2000");
    addOption("MM0102", "2001", "2001");

    addOption("MM0103", "Select Year", "");
    addOption("MM0103", "1986", "1986");
    addOption("MM0103", "1987", "1987");
    addOption("MM0103", "1988", "1988");
    addOption("MM0103", "1989", "1989");
    addOption("MM0103", "1990", "1990");
    addOption("MM0103", "1991", "1991");
    addOption("MM0103", "1992", "1992");
    addOption("MM0103", "1993", "1993");
    addOption("MM0103", "1994", "1994");
    addOption("MM0103", "1995", "1995");

    addOption("MM0104", "Select Year", "");
    addOption("MM0104", "2001", "2001");
    addOption("MM0104", "2002", "2002");
    addOption("MM0104", "2003", "2003");
    addOption("MM0104", "2004", "2004");
    addOption("MM0104", "2005", "2005");

    addOption("MM0105", "Select Year", "");
    addOption("MM0105", "1991", "1991");
    addOption("MM0105", "1992", "1992");
    addOption("MM0105", "1993", "1993");
    addOption("MM0105", "1994", "1994");
    addOption("MM0105", "1995", "1995");
    addOption("MM0105", "1996", "1996");
    addOption("MM0105", "1997", "1997");
    addOption("MM0105", "1998", "1998");
    addOption("MM0105", "1999", "1999");
    addOption("MM0105", "2000", "2000");
    addOption("MM0105", "2001", "2001");
    addOption("MM0105", "2002", "2002");
    addOption("MM0105", "2003", "2003");
    addOption("MM0105", "2004", "2004");
    addOption("MM0105", "2005", "2005");

    addOption("MM0106", "Select Year", "");
    addOption("MM0106", "0000", "0000");

    addOption("MM0107", "Select Year", "");
    addOption("MM0107", "2002", "2002");
    addOption("MM0107", "2003", "2003");
    addOption("MM0107", "2004", "2004");
    addOption("MM0107", "2005", "2005");

    addOption("MM0108", "Select Year", "");
    addOption("MM0108", "1996", "1996");
    addOption("MM0108", "1997", "1997");
    addOption("MM0108", "1998", "1998");
    addOption("MM0108", "1999", "1999");

    addOption("MM0109", "Select Year", "");
    addOption("MM0109", "0000", "0000");

    addOption("MM0110", "Select Year", "");
    addOption("MM0110", "2004", "2004");
    addOption("MM0110", "2005", "2005");

    addOption("MM0111", "Select Year", "");
    addOption("MM0111", "1992", "1992");
    addOption("MM0111", "1993", "1993");
    addOption("MM0111", "1994", "1994");

    addOption("MM0112", "Select Year", "");
    addOption("MM0112", "0000", "0000");


    Sorry if this is an elementary issue! Please forgive!

  4. #4
    Join Date
    Oct 2005
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    the only thing i noticed was there are no sublevel entries for...

    addlist("car-make", "AM GENERAL ", "AM GENERAL ", "M-02 ");

    also, i modified this script so the config file was generated from a DB using abit of ASP and the only time i saw stack overflows were when i accidentally forgot to fill in a required cell in the table i had it linked to...

    Apart from that, i have had no problems with the size of file used as now it is linked to my SQL db, the config file is pretty large...

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
  •