Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End need a help about javascript / ajax / php

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #33206
    ipana
    Member

    i created a search block for my estate script but i got a problem for that

    what2s wrong couldnt find , couldnt understand

    what i want ? when i choose the cityname i wanna list the township in the child select box

    the codes


    GetSelectListGlobal("City",
    "SelectSearch",
    "".$_SESSION."",
    $rsEdit,
    "select * from t_properties where PageType='City' and Visible='1' order by Seq asc",
    "ID",
    "Name",
    "onChange="GetAjax('include/ajax.php?GetTowbShip=1&SelectClass=SelectSearch&LangID=".GetName("select * from t_lang where Name='".$_SESSION."'", "ID")."&CityID=', 'ShowTownship')""))?>

    child select box codes

    its not working

    what is the problem ?
    thanks

    ( sorry about my bad english )

    #81985
    ddliu
    Member

    I think it’s a bad idea to put all things together.

    Your “GetSelectListGlobal” function is toooo long.

    Try to get the result step by step, maybe you’ll find the issue.

    #81988
    TT_Mark
    Member

    Looks a bit messy to me. As @ddliu said, you have far too much going into that one function

    #82156
    ipana
    Member

    thanks guys (: i got it.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Back End’ is closed to new topics and replies.