Results 1 to 2 of 2

Thread: Chained Select to load xx.html into div on same page

  1. #1
    Join Date
    Mar 2008
    Posts
    34
    Thanks
    7
    Thanked 1 Time in 1 Post

    Default Chained Select to load xx.html into div on same page

    1) Script Title: Chained Selects

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...ects/index.htm

    3) Describe problem:

    Ok, I've made up my "chained select" menus and have it working properly however to achieve what I need, I effectively need to combine the "Chained Selects" with another Dynamic Drive script, "Dynamic Ajax Content" (http://www.dynamicdrive.com/dynamici...jaxcontent.htm).

    I am trying to have the user select from my two select menus and once they select from the final select menu, it loads a separate HTML page into my DIV, same as done on "Dynamic Ajax Content".

    I am a very weak coder so any help would be greatly appreciated.

    Richard.
    Last edited by mobius2000; 08-29-2010 at 03:48 AM.

  2. #2
    Join Date
    Mar 2008
    Posts
    34
    Thanks
    7
    Thanked 1 Time in 1 Post

    Default

    I have determined that the following lines of code are those that need to be changed for the AJAX call but was hoping someone could assist further... I am real n00b and really struggling here.

    Code:
    function goListGroup(){
    for (i=arguments.length-1;i>=0; i--){
    if (arguments[i].selectedIndex!=-1){
    var selectedOptionvalue=arguments[i].options[arguments[i].selectedIndex].value
    if (selectedOptionvalue!=""){
    if (onclickaction=="alert")
    alert(selectedOptionvalue)
    else if (newwindow==1)
    window.open(selectedOptionvalue)
    else
    window.location=selectedOptionvalue
    break

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
  •