Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
P

phome

@phome
About
Posts
5
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • container inside container
    P phome

    I can not understand clearly. Is it "description" in "search" and "search" in "body"? Or just "search" and "description" both in "body"?

    Good day,Good job,Good life

    Web Development docker architecture

  • Identify jQuery data
    P phome

    From the page source code , you can find this: http://www.nasdaqomxnordic.com/System/webcore_js/[^]

    Good day,Good job,Good life

    JavaScript javascript database regex xml help

  • enable check box not working
    P phome

    I think u should check the Checklist.clientID. The following code works both in IE and Chrome.

    <script type="text/javascript" language="javascript">

        function chkboxlistchecking(chkMed, chkBeh, chkReports) {
            // Go through all items of a check list control
            var cbkSelect = document.getElementById(chkMed);
            var cbkAdd = document.getElementById(chkBeh);
            var cbkEdit = document.getElementById(chkReports);
            if (cbkSelect.checked == true || cbkAdd.checked == true) {
                cbkEdit.checked = true;
                cbkEdit.disabled = true;
            } else {
                cbkEdit.checked = false;
                cbkEdit.disabled = true;
            }
        }
    </script>
    

    <input id="ch_s" type="checkbox">Select</input>
    <input id="ch_a" type="checkbox">Add</input>
    <input id="ch_e" type="checkbox">Edit</input>

    <br /><button onclick="javascript:chkboxlistchecking('ch_s','ch_a','ch_e');">check</button>

    anyway , u can move cbkEdit.disabled=true out of the if statement.

    function chkboxlistchecking(chkMed, chkBeh, chkReports) {
    // Go through all items of a check list control
    var cbkSelect = document.getElementById(chkMed);
    var cbkAdd = document.getElementById(chkBeh);
    var cbkEdit = document.getElementById(chkReports);
    cbkEdit.checked = (cbkSelect.checked == true || cbkAdd.checked == true)
    cbkEdit.disabled = true;
    }

    Good day,Good job,Good life

    JavaScript question

  • SQL TABLE JOIN
    P phome

    It seems u are using PL/SQL not T-SQL.

    Good day,Good job,Good life

    Database question database help

  • Confirm dialog with OK ,CANCEL buttons on window close
    P phome

    I wish the following may solve u issue.

    function close() {

    var flgDataUnsaved = false;
    // do your unsave data check here
    
    
    // if there are unsaved data set flgDataUnsaved = true;
    if ( flgDataUnsaved ){
    	event.returnValue = "Do you really want to close this window";
    }else{
    	event.returnValue = true;
    }
    

    }
    window.onbeforeunload = close;

    and u can put a "save" button on your popup page. The user can save the data themselves.

    Good day,Good job,Good life

    JavaScript help question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups