scenario:

While clicking EDIT hyper link in java script it will open one new window, in this window i have values in the left table i need to select the value from left TABLE to right TABLE
after selecting i clicked <OK> button, child window will be closed
Now if i click the same EDIT hyper link right TABLE does n't showing new added values, it's showing old values only
Please help me on this what shall i do to show added values in the right TABLE (I used window.location.reload(); but same thing is happened)

Where is it retrieving and storing these values? To a SQL database?

Oracle DB

newly added values are storing in DB but the same values are not showing in VIEW part

function okClick()
    {
        var selDiv = "";
        var ownDiv = "<%= strOwnDiv %>";

        for(var i = 0; i < document.all.lstSelect.options.length; i++)
        {
            selDiv += document.all.lstSelect.options[i].value + "~~~";

        }

        if(selDiv != "")
        {

            //if own div is not included, add own div
            if(selDiv.indexOf(ownDiv) == -1)
            {

                selDiv += ownDiv;
            }
            else
            {

                //trim out last delimiter set
                selDiv = selDiv.substring(0,selDiv.length - 3);
            }
        }
        else
        //if selected div are empty, default to own div
        if(selDiv == "")
        {

            selDiv += ownDiv;
        }

        window.returnValue = "UpdateDiv***" + document.all.lstSelect.options.length + "***" + selDiv;
        this.close();
        return;
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.