www.webdeveloper.com

Search:

Type: Posts; User: xelawho

Page 1 of 20 1 2 3 4

Search: Search took 0.03 seconds; generated 34 minute(s) ago.

  1. Replies
    2
    Views
    259

    kind of a broad question (Atwood’s Law states...

    kind of a broad question (Atwood’s Law states that "any application that can be written in JavaScript, will eventually be written in JavaScript"), but I guess some of the most immediately gee-whizz...
  2. Replies
    8
    Views
    454

    a simple example: ...

    a simple example:


    <!DOCTYPE html>
    <html>
    <head>

    </head>

    <body>
  3. Replies
    8
    Views
    1,510

    I'm struggling to see the advantage in putting...

    I'm struggling to see the advantage in putting this code in the head as opposed to before the closing </body> tag - all that does is make the html load slower, no?
  4. Replies
    8
    Views
    1,510

    simple enough to change that line to make it work...

    simple enough to change that line to make it work without jQuery...



    window.onresize = function(){var currCenter = map.getCenter();google.maps.event.trigger(map,...
  5. Replies
    7
    Views
    2,390

    assuming that they are both names, and that they...

    assuming that they are both names, and that they are the first elements on the page with those names, and that in the case of both being checked you only want a1 to remain checked...


    <body>...
  6. Replies
    7
    Views
    2,390

    are 'a1' and 'p1' names or IDs?

    are 'a1' and 'p1' names or IDs?
  7. nvm...

    nvm...
  8. Replies
    2
    Views
    1,407

    jQuery one of many ways to infinitely loop an array... ...

    one of many ways to infinitely loop an array...


    <body>
    <p id="res"></p>
    <script type="text/javascript">
    (function (){
    var arr = ["one","two","three","four"];
    var count=0;
    function slide ()...
  9. well I guess there is something else going on...

    well I guess there is something else going on because if it works on the first it should work on all of them...


    <body>
    <form name="piccomment1">
    <textarea name="message1">ta 1</textarea>...
  10. are you looking for var newtext =...

    are you looking for


    var newtext = document["piccomment"+dispic]["message"+dispic].value;

    ?
  11. Replies
    5
    Views
    631

    well if you know the table IDs in advance and the...

    well if you know the table IDs in advance and the countries they correspond to (and surely you do?) you could make a simple lookup table, pass the country name into the function after it has been...
  12. what does "press the script" mean?

    what does "press the script" mean?
  13. assuming there is only one div with the class...

    assuming there is only one div with the class name offer-Banner...



    <div class="offer-Chart">
    <div class="offer-Chart-body">chart</div>
    <div class="offer-Banner">banner</div>
    </div>
    <script...
  14. Replies
    5
    Views
    631

    no, I think it's more likely that I'm missing the...

    no, I think it's more likely that I'm missing the point, or not really understanding the flow of your code.

    I guess without seeing absolutely everything, the relevant questions would be:

    - How...
  15. Replies
    5
    Views
    631

    would it not be feasible to pass the table ID in...

    would it not be feasible to pass the table ID in as a parameter of the getStores function, thus creating a new table each time the function is called?
  16. I suspect that the first one would work like...

    I suspect that the first one would work like this:


    function ShowSced(arrInfo) { //
    var str = '';
    var arr=window['Sced'+arrInfo];
    if (arrInfo.length != 0) { str = ShowScedCSV(arr); }
    ...
  17. Replies
    3
    Views
    544

    Other no need for the while loop, etc. This will give...

    no need for the while loop, etc. This will give you a "random" number between (and including 1 and 11):

    var die = Math.floor(Math.random() * 11) + 1;
  18. 1. no - because /\n/g is a regular...

    1. no - because /<\/h2>\n<br>/g is a regular expression whereas "</h2>" is a string

    2. yes, you will have to tweak it to suit your specific needs
  19. well, not quite. one scenario would be that...

    well, not quite. one scenario would be that pstein might be loading a userscript, in which case the only way to modify the html would be through javascript.

    you could try something like this:

    ...
  20. Replies
    1
    Views
    352

    it's not often that I link to W3schools, but this...

    it's not often that I link to W3schools, but this is such a standard operation even they haven't muffed it up:
    http://www.w3schools.com/ajax/tryit.asp?filename=tryajax_first
  21. the issue is most likely that script tags: ...

    the issue is most likely that script tags:


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


    are html, but are not valid javascript. If you are including a javascript file you are already telling...
  22. Thread: Select.js help

    by xelawho
    Replies
    5
    Views
    783

    sure. if the solution you're getting offered here...

    sure. if the solution you're getting offered here doesn't work out, let us know
  23. Thread: Select.js help

    by xelawho
    Replies
    5
    Views
    783

    without looking at it too closely, I notice that...

    without looking at it too closely, I notice that the boxes close when you click on them a second time. Possibly an easy solution would be to keep a reference to which box is open and then trigger a...
  24. Replies
    11
    Views
    958

    I don't think it's necessarily wrong, I just...

    I don't think it's necessarily wrong, I just think it's an odd choice. Javascript is everywhere, in and out of the browser, it's cross-platform, cross-browser. IE is slowly coming to the party and...
  25. Replies
    11
    Views
    958

    Interesting. Can I ask why?

    Interesting. Can I ask why?
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4
HTML5 Development Center



Recent Articles