www.webdeveloper.com

Search:

Type: Posts; User: Tcobb

Page 1 of 18 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    54
    Views
    2,298

    This may be, and probably is, of no value to you...

    This may be, and probably is, of no value to you whatsoever. I have never really been completely clear on the topology of your setup. I take it that:

    1. The information that you want to grab and...
  2. Replies
    54
    Views
    2,298

    If all else fails, you can always do the trick of...

    If all else fails, you can always do the trick of dynamically adding a script tag to the page which in reality sends data to an active program, as in


    var head =...
  3. Replies
    54
    Views
    2,298

    Just a minor suggestion--store the computer name...

    Just a minor suggestion--store the computer name in local storage. If one isn't there, have the page prompt the user to give it. That way you can send it along with the AJAX data as well without...
  4. Replies
    54
    Views
    2,298

    This is all getting rather convoluted. Perhaps...

    This is all getting rather convoluted. Perhaps you're looking at it from the wrong end. Rather than trying to access the individual units from a myriad of possible configurations, why don't you...
  5. Replies
    54
    Views
    2,298

    http://192.168.69.154 I think your problem is...

    http://192.168.69.154

    I think your problem is here. The 192.168 indicates a local private IP address. From Wikipedia: (private networks)
  6. You never called the divLoading function. ...

    You never called the divLoading function. Instead you treated it as a DOM object in your code.


    function divLoadingHide() {
    var x = divLoading(); //changes
    ...
  7. Replies
    54
    Views
    2,298

    If you google "automatic login php" you will find...

    If you google "automatic login php" you will find a number of scripts for accomplishing this. You might also take a look at the PHP DOMDocument class.
  8. Replies
    54
    Views
    2,298

    You actually don't need javascript at all. You...

    You actually don't need javascript at all. You can use PHP directly to get the page as a string, and you can parse the table data from there.

    $page = file_get_contents("http://somewhere.com");
  9. Replies
    54
    Views
    2,298

    You might try something like this. I haven't...

    You might try something like this. I haven't tested it, but if it works properly it will return an object containing all of the table data. You can use JSON.stringify to put it into JSON format,...
  10. You can. I suspect your problem is that you are...

    You can. I suspect your problem is that you are invoking this function BEFORE the DOM is fully loaded, or you have a typo so that the id of the element you are trying to access is not the id you...
  11. Replies
    10
    Views
    452

    You can try this trick, which may not work for...

    You can try this trick, which may not work for particular browsers/versions, like so:


    // assume the element you want to get the font size of has an id of "d1"

    var id, sp;

    id =...
  12. Replies
    22
    Views
    1,507

    And if you use this to create a "pause" and you...

    And if you use this to create a "pause" and you set it for a sufficient period of time your browser will flash the user a "long running script" message. Set it for 20 minutes and see, although it...
  13. Replies
    22
    Views
    1,507

    Although the original question concerned how to...

    Although the original question concerned how to pause the execution of the program, might I suggest a different approach to accomplish your objective. Assuming that your code works, except for...
  14. Replies
    22
    Views
    1,507

    If you look at the code its not a loop at all. ...

    If you look at the code its not a loop at all. It essentially uses itself as a callback function with a control variable so that it quits calling itself when the task is completed. The for loop in...
  15. Replies
    22
    Views
    1,507

    The same principles apply when you want a "loop"...

    The same principles apply when you want a "loop" with a delay--you don't actually do a loop. Paste and run--


    <!DOCTYPE HTML>
    <html>
    <head>
    <script>
    // creating elements with a loop--no...
  16. Replies
    1
    Views
    298

    It would appear that the fault lies in what is...

    It would appear that the fault lies in what is being passed as arguments to the function. What collects the element references and how?
  17. There are a lot of cross-browser issues with key...

    There are a lot of cross-browser issues with key events. See:

    http://www.quirksmode.org/js/keys.html
  18. This might do it for you as a solution: ...

    This might do it for you as a solution:


    function Person(fname){ //constructor

    Object.defineProperty(this, "firstName", {
    set: function (x) {
    console.log("Setting value");...
  19. Once again--my apologies for the last post. I...

    Once again--my apologies for the last post. I was and am tired. What I said above was true, but the more fundamental problem is that Object.defineProperty requires that you send an object as the...
  20. Sorry --post deleted. The stuff I sent before...

    Sorry --post deleted. The stuff I sent before was wrong in part.

    The problem is that your Person constructor object, as written, doesn't retain the value of John. You have to use the setter you...
  21. Because your Person Constructor produces an...

    Because your Person Constructor produces an object with no properties whatsoever.


    function Person(firstName) {
    var _firstName = firstName;
    };

    var p = new Person("John");
    ...
  22. Replies
    1
    Views
    346

    You are confusing arrays and objects. You define...

    You are confusing arrays and objects. You define "hookID" as an array, but you are trying to use it as an object. Substitute:

    var hookID = {};
    for your---

    var hookID = new Array();
  23. I really don't know about the rest of your code,...

    I really don't know about the rest of your code, but the line:


    return operator.key_value; // where key value can be age.

    should read


    return operator[key_value]; // where key value can be...
  24. Replies
    22
    Views
    1,507

    Using a "while" loop for delaying the program is...

    Using a "while" loop for delaying the program is not a good idea. If the cumulative delays are sufficiently long the browser user will get an "unresponsive script" message, which I doubt is wanted...
  25. Actually if you write: var a =...

    Actually if you write:


    var a = makePerson("John","Doe");
    a.setFirst("Marvin");
    a.setLast("Brown");
    a.giveName();

    it does work.
Results 1 to 25 of 430
Page 1 of 18 1 2 3 4
HTML5 Development Center



Recent Articles