www.webdeveloper.com

Search:

Type: Posts; User: s-p-n

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. If you have target browsers dating back to IE8 or...

    If you have target browsers dating back to IE8 or before, one can be magnitudes more productive using jQuery as opposed to ninja-hacking the DOM to work. Most people using jQuery are not capable of...
  2. Replies
    4
    Views
    1,600

    Edit:: accidental double post..

    Edit:: accidental double post..
  3. Replies
    4
    Views
    1,600

    I think your teacher is testing to see if you...

    I think your teacher is testing to see if you remember how to compare things without caring about different case characters. In other words, if the user guesses "football", your current script has...
  4. There is no JavaScript there? ... here, this...

    There is no JavaScript there?

    ... here, this is me being nice: http://jsfiddle.net/x5mfX/2/
  5. Thread: File upload

    by s-p-n
    Replies
    4
    Views
    1,549

    Are you using AJAX to upload the file, or a...

    Are you using AJAX to upload the file, or a regular form that submits to an ASP page?
    If AJAX:
    There is a ninja technique in order to do this, it is not intuitive. I won't get into it unless...
  6. Replies
    5
    Views
    8,252

    Very possible, and simple, too. Except for trying...

    Very possible, and simple, too. Except for trying to make cash-values in JS, which is a little weird.. I did so by converting the end result to a string and assuring it as 2 numbers in the cent spot,...
  7. Thread: File upload

    by s-p-n
    Replies
    4
    Views
    1,549

    That sounds like an asp.net question, not...

    That sounds like an asp.net question, not JavaScript.
  8. Um, JavaScript goes in tags, for...

    Um, JavaScript goes in <script> tags, for starters. Not in <head> and not in "onchange" attribute. You can put some js in onchange, according to web browsers.. but don't.

    What you want to do, is...
  9. Here, I think, is what you want:...

    Here, I think, is what you want:
    http://jsfiddle.net/9PkZR/
    It separates words by spaces or commas, and removes any chars besides letters/numbers/spaces/commas before searching.
    It can use some...
  10. Here, I think, is what you want:...

    Here, I think, is what you want:
    http://jsfiddle.net/8Fd2x/

    It can use some simplifying and optimization..
  11. Replies
    1
    Views
    1,298

    You are looking for AJAX:...

    You are looking for AJAX: https://developer.mozilla.org/en-US/docs/AJAX/Getting_Started



    var httpRequest;
    if (window.XMLHttpRequest) { // Mozilla, Safari, ...
    httpRequest = new...
  12. Move the id "actualDays" to a span/label/ or what...

    Move the id "actualDays" to a span/label/ or what you want, and use innerHTML instead of 'value' to change the text/html of that element.
    http://jsfiddle.net/3A6fJ/
  13. Replies
    9
    Views
    1,659

    Here's a pattern you may be interested in: ...

    Here's a pattern you may be interested in:


    /**
    * Monster (constructor)
    * use:
    * new Monster('nameStr', {custom: data});
    * args:
    * [required] name (string)
    * [optional]...
  14. Replies
    6
    Views
    1,925

    AJAX Comet with PHP isn't really.. practical. I...

    Comet with PHP isn't really.. practical. I suggest using Node.JS with Socket-IO or something.
    http://socket.io/#browser-support

    You can run node.js and socket-io on a different port than...
  15. Replies
    9
    Views
    1,659

    Sounds like you're too lazy to go through the...

    Sounds like you're too lazy to go through the code, make changes and simplify the source yourself. What makes you think anyone here would want to do it for free? If you would like to pay somebody you...
  16. Replies
    2
    Views
    2,214

    strEscaped is not changed in your code. So for...

    strEscaped is not changed in your code. So for example the first time u make newstrchanged it might have the value of strEscaped with no quotes. The second time u make newstrchanged, it will still...
  17. Replies
    7
    Views
    4,453

    Did you see the link I gave you?? Here's another:...

    Did you see the link I gave you?? Here's another: http://jsfiddle.net/K6dzD/embedded/result/

    I'll post it again, since it appears you missed the first time. This is the solution to your problem:...
  18. Replies
    2
    Views
    877

    That's a very tricky error. JavaScript doesn't...

    That's a very tricky error. JavaScript doesn't support multiline strings. You can use \ to escape the newLine character, but that makes code very unstable imo. I mean, yeah, that's not good to use...
  19. Replies
    15
    Views
    9,678

    u dont want to copy and paste, but you have a lot...

    u dont want to copy and paste, but you have a lot to learn yet so what you have is fine for now..
  20. Replies
    7
    Views
    4,453

    'divs[1,2,3)];' that is not javascript, and I...

    'divs[1,2,3)];' that is not javascript, and I can't tell what you meant to put instead. Did you look at the code in the jsfiddle?
  21. Replies
    2
    Views
    1,649

    jQuery You use 'on' as $(document) instead of...

    You use 'on' as $(document) instead of $('input:text') and then you use 'input:text' as the second argument to on() when you use the object syntax like that. It's cool, actually. Nice job jQuery:...
  22. Replies
    7
    Views
    4,453

    try not getting a random div and getting the next...

    try not getting a random div and getting the next div until there are none, then get the first again.
    http://jsfiddle.net/K6dzD/
  23. Replies
    6
    Views
    2,878

    Here is the embed version,...

    Here is the embed version, http://jsfiddle.net/bbg7B/1/embedded/result/
    I don't know what you mean, I don't see a link 'display' but if you are seeing what I see when I click the link, there is 4...
  24. Replies
    15
    Views
    9,678

    don't use inline style in html.. use javascript...

    don't use inline style in html.. use javascript and css for repetitive things like this, for example, give them all a class of 'thumb', and use jQuery to go through each one and implant a url style...
  25. You use the DOM. Give the select menu an id.....

    You use the DOM.

    Give the select menu an id.. like, <select id="foo">
    Give the hidden element an id.. like, <input type="hidden" id="bar">

    Then use the DOM to bind events to them- like this:
    ...
Results 1 to 25 of 46
Page 1 of 2 1 2
HTML5 Development Center



Recent Articles