0

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)

2
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by raviaaaa
0

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;

Edited by Dani: Formatting fixed

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.