www.webdeveloper.com

Search:

Type: Posts; User: Tcobb

Page 1 of 5 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    9
    Views
    420

    For that you might try this approach: 1....

    For that you might try this approach:

    1. get the entire set of results from querying table1 and store it in a variable. Call
    it resultSet. Set a variable (counter) to zero. Set a var...
  2. Replies
    9
    Views
    420

    Sorry -but I am having a hard time understanding...

    Sorry -but I am having a hard time understanding what you are trying to accomplish and why. But you might try this. I moved your final alert into the callback function and placed it after the...
  3. Replies
    9
    Views
    420

    I'm not sure you can. You need to look at the DB...

    I'm not sure you can. You need to look at the DB documentation to see if you can do this. If you cannot the usual thing to do is to divide the function that uses an asynch call into two functions...
  4. Replies
    9
    Views
    420

    Okay-- It would appear that the function which...

    Okay--

    It would appear that the function which queries the database is asynchronous. Its launched and the rest of the code continues executing the 'outer' alert before the DB query has been...
  5. Replies
    9
    Views
    420

    As far as I can see and guess its a scope...

    As far as I can see and guess its a scope problem.

    var itemName = "defaultName"; and

    itemName = newFeature.getName;

    aren't the same variable, even though they have been given the same name....
  6. Replies
    11
    Views
    30,316

    Maybe I'm not understanding the exact why of it...

    Maybe I'm not understanding the exact why of it but it seems to me that you ought to be parsing the information files on the server and then spitting it out as a JSON structure. The javascript on...
  7. Replies
    1
    Views
    435

    You might try something like this: /...

    You might try something like this:

    /
    /given persistent outside variables which are in the same scope
    //as this function, and a function where xtimer is just a holder, and
    // val is the value...
  8. Normally you shouldn't give more than one element...

    Normally you shouldn't give more than one element on a page the same id. The "getElementById" method will only return the first element with that id. You can do it, but its considered bad form.
    ...
  9. I don't know if it will help or not but you might...

    I don't know if it will help or not but you might try a CSS solution setting min-Height and/or min-Width.
  10. Replies
    5
    Views
    1,083

    What is the beginning value of "time"? You are...

    What is the beginning value of "time"? You are starting the first timeout to wait for zero ms, so it starts immediately.
  11. You can determine the height of an element by...

    You can determine the height of an element by using the "offsetHeight" property of the element, as in :


    function getHeight(elementId){
    var x = document.getElementById(elementId);
    return...
  12. Replies
    9
    Views
    783

    If you have new data AND pre-existing data you...

    If you have new data AND pre-existing data you must:
    (1) retrieve the old data from local storage
    (2) add the new data to the old data.
    (3) store it ALL again in localStorage
    (4) Do it in the...
  13. Replies
    9
    Views
    783

    Maybe I'm misunderstanding what's going on but if...

    Maybe I'm misunderstanding what's going on but if you want a list you can't use the same name variables for separate entries, otherwise you are just overwriting the previous data. You need to keep...
  14. Replies
    1
    Views
    617

    Look at the built-in Javascript 'Math" object. A...

    Look at the built-in Javascript 'Math" object. A quick google search will turn up many sources on this subject.
  15. Replies
    2
    Views
    746

    jQuery If I understand you correctly you don't need...

    If I understand you correctly you don't need jQuery at all, all you need is:

    "location.search"

    For example, If you got to a page at: "http://zap.com/submit.html?z=5&c=HI"

    var z =...
  16. Replies
    5
    Views
    1,211

    Actually I would do this on the server side. ...

    Actually I would do this on the server side. Since real users can't see the "hidden" input, just have the server script reject it if it does indeed have a value other than an empty string.

    But...
  17. Replies
    3
    Views
    835

    I think your problem is the positioning. If you...

    I think your problem is the positioning. If you are positioning an element in quirksmode (without a DOCTYPE) a bare number will suffice and the browser will assume you meant pixels. With a DOCTYPE...
  18. Replies
    3
    Views
    657

    Basically the process would consist of: (1)...

    Basically the process would consist of:
    (1) grabbing the values set by the user in the form and assembling them in a manner suitable for a POST request (or GET request if you are using that)
    (2)...
  19. Replies
    3
    Views
    657

    There may be an easier cross-browser solution but...

    There may be an easier cross-browser solution but one way that should work everywhere is to have your form not really "submit" at all. Send the data by AJAX and then close the window when the...
  20. Replies
    5
    Views
    1,211

    Just to make it easier, give your form and hidden...

    Just to make it easier, give your form and hidden input id's, such as 'myForm' and 'isHid'
    After the page is loaded, and not before then, run this:


    function setVal(){
    var frm =...
  21. AJAX So far as I know, the "open" method/function of...

    So far as I know, the "open" method/function of an httpXMLrequest object has no return value. The question is whether it gets the value from the server for you.
  22. Replies
    6
    Views
    826

    I'm still unclear as to what you are attempting...

    I'm still unclear as to what you are attempting to do here, but I do have some observations:


    function loadjscssfile(filename, filetype)
    {
    var fileref=document.createElement('script');
    ...
  23. Sorry--I have no idea what the problem may be. A...

    Sorry--I have no idea what the problem may be. A status code of zero usually means that the network cannot be reached. Since the initial page loads I am somewhat mystified. Try this to see if it...
  24. How do you activate the page that contains the...

    How do you activate the page that contains the javascript that makes the AJAX request? Is it also served up from the server? For example, does it start out because you've pointed your browser at...
  25. Replies
    6
    Views
    826

    Be more specific about what you want. Your...

    Be more specific about what you want. Your request, as is, doesn't make any sense.
Results 1 to 25 of 120
Page 1 of 5 1 2 3 4
HTML5 Development Center



Recent Articles