www.webdeveloper.com

Search:

Type: Posts; User: dzirkelb

Page 1 of 12 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    8
    Views
    1,216

    The issue was I was putting that code into my .js...

    The issue was I was putting that code into my .js included page, not into the page itself Then, I put on the body of the html the onbeforeunload="CheckSave()". Pasting the code into the page itself...
  2. Replies
    8
    Views
    1,216

    I placed the alert in just to see if the...

    I placed the alert in just to see if the checksave function was firing. Remember, I'm in a fixed IE11 compatibility mode environment, aka, IE 7.0. The alert pops up, so I know the CheckSave...
  3. Replies
    8
    Views
    1,216

    This code: function CheckSave() {...

    This code:



    function CheckSave() {
    alert("test");
    if(document.getElementById("hidDataChanged").value == "Yes") return "You have unsaved data, are you sure you wish to leave the page?";
    }...
  4. Replies
    8
    Views
    1,216

    I am following what you are saying, but am...

    I am following what you are saying, but am struggling with the syntax, all of this type of event is new to me. Here is what I have:



    function CheckSave()
    {
    if...
  5. Replies
    8
    Views
    1,216

    onunload event question

    I have a function that checks to see if any data was changed on a page, and alerts the user if they are trying to leave the page without saving the data.



    function CheckSave()
    {
    if...
  6. That won't solve my problem, that is just an...

    That won't solve my problem, that is just an example.

    <input type="test" id="test" name="test22" value="12345">

    var test1 = document.getElementById("test").value;
    var test2 =...
  7. Oh, I also call...

    Oh, I also call document.getElementById("test").name as an example; hence, why I have the ID / name fields identified and are seperate. Basically, I have the ID be the database field name, and the...
  8. document.GetElementById, cross browser support, and id / name tags

    First off, I have a mess.

    I developed an entire infrastructure (fixed on an IE environment, so all good, right?) that people are now complaining it is not working on iPad. Well, it basically...
  9. This worked great, thanks!

    This worked great, thanks!
  10. Odd Date Validation Issue - not accepting 10/31/2013 as valid

    Here is the relevant code:



    value = value.replace(/'\'/, "/");
    var arrayDateParts = value.split("/");
    var intMonth = arrayDateParts[0];
    var intDay = arrayDateParts[1];
    var intYear =...
  11. So far so good, thanks a bunch!

    So far so good, thanks a bunch!
  12. Close, but not quite there, I'll describe a bit...

    Close, but not quite there, I'll describe a bit more.

    They will be entereing in a piece of data, 9/10 they will be pasting it in. So, they may enter in ABC123^4, or ABC1234

    Currently, both are...
  13. Best way to check for multiple characters in a string

    I have pages that print Code 39 bar codes; however, I do not have development in place to dissalow the entry of the invalid characters that Code 39 requires. For this discussion, you dont' really...
  14. Works like a charm, thanks a TON!

    Works like a charm, thanks a TON!
  15. I need help passing a variable using GetXmlHttpObject

    I have a portion of code that uses ajax to call another page and dump that data into the innerHTML of a div of the parent page.

    However, I need to pass a variable to the function that is ran, and...
  16. Reading your post got me thinking about the order...

    Reading your post got me thinking about the order of events that were happening. Instead of trying to guess how long it would take to render the innerhtml, or see if it has been rendered, if not,...
  17. Replies
    4
    Views
    1,009

    Thanks, worked like a charm :)

    Thanks, worked like a charm :)
  18. The problem with this is since I am using ajax to...

    The problem with this is since I am using ajax to produce a table results, the page I am loading isn't actually being loaded, I am just grabbing the html of the page, and dumping it into the...
  19. Replies
    4
    Views
    1,009

    How to pull a value from a control

    I would like to pull the displayed value from a select control, here is an example:

    <select id="test" name="test" size="1">
    <option value="1">Yes</option>
    <option value="0">No</option>...
  20. Any ideas on this? I have tried checking on the...

    Any ideas on this? I have tried checking on the pageload function to see if the element exists yet, and if not, then re-load the pageload function, but that gives a random out of stack error.

    Is...
  21. Pause a function if page isn't fully loaded yet

    I have a page that I click an edit button. Upon clicking the edit button, another page is loaded via ajax, and displayed inside a <div> tag.

    During the new page that is loaded, I am pulling some...
  22. Replies
    4
    Views
    2,132

    Actually, I have this resolved. The CSS code...

    Actually, I have this resolved. The CSS code above coupled with the following javascript code works correctly.



    function ShowPopUp(element)
    {
    var PopUpNote =...
  23. Replies
    4
    Views
    2,132

    Sorry for the extremely late response on this,...

    Sorry for the extremely late response on this, must have fell off my rader / missed the email subscriptions.

    Here is the relevant css code:



    #divPopUpNotes
    {
    position: absolute;
    ...
  24. onclick="Go('CustomerMailingList-duplicate.asp?ID=...

    onclick="Go('CustomerMailingList-duplicate.asp?ID=<&#37;=rs(strPrimaryKeyFieldRecordset)%>&CustNum=' + prompt('Enter Customer Number to Add Contact To', '0')+ '')">

    works for anyone searching this...
  25. I am not going to put another box on the screen...

    I am not going to put another box on the screen as this function will not be called much, and adding anotehr box on the screen will cause horizontal scrolling, which is not desired.

    Without going...
Results 1 to 25 of 278
Page 1 of 12 1 2 3 4
HTML5 Development Center



Recent Articles