www.webdeveloper.com

Search:

Type: Posts; User: xelawho

Page 1 of 5 1 2 3 4

Search: Search took 0.04 seconds.

  1. a tag doesn't have a value - try...

    a <a> tag doesn't have a value - try onClick="fillField(this.innerHTML)" for best cross-browser results
  2. Thread: Java Script

    by xelawho
    Replies
    6
    Views
    736

    you can make an object with the keys...

    you can make an object with the keys corresponding to the options in the select and the values being arrays holding the pathnames to your ads. Then all you need is a function that tells the code...
  3. Thread: Java Script

    by xelawho
    Replies
    6
    Views
    736

    nowhere near enough information. how are the...

    nowhere near enough information.

    how are the ads rendered? by you or an external source? is there a finite amount? do you have access to their file paths?

    maybe a link to your page would be best
  4. Replies
    2
    Views
    654

    I thought it was a jQuery question - that's the...

    I thought it was a jQuery question - that's the default functionality for the jQuery autocomplete here's a fiddle (not mine) that overrides the default filtering function:...
  5. Replies
    7
    Views
    581

    I click "work" but there is no "back" button,...

    I click "work" but there is no "back" button, because the page hasn't changed. It does result in an error if I click "home":
    Uncaught TypeError: Cannot set property 'innerHTML' of null blogger.js:12...
  6. Replies
    7
    Views
    581

    do you get errors in the error console? It's hard...

    do you get errors in the error console? It's hard to say what's going on without the full context... maybe a link to a live page?
  7. Replies
    7
    Views
    581

    in this line: script.src =...

    in this line:

    script.src = "http://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&sensor=TRUE_OR_FALSE&callback=initialize";

    YOUR_API_KEY needs to be your API key

    and

    TRUE_OR_FALSE...
  8. it's just the line break, as far as I can see -...

    it's just the line break, as far as I can see - all you need to do is close up the space between yes, and resizable:

    <a href="http://www.jwgmg.com/cf1/contactform.php" rel="nofollow"...
  9. I'm glad it works for you. FYI, I get: Chrome:...

    I'm glad it works for you. FYI, I get:
    Chrome: "Cannot determine your location!"
    Firefox: Nothing (no map, no message)
    IE: Error in geo.js file (badly coded event listener)
    Safari: same as...
  10. oops - you are quite right... I forgot to call...

    oops - you are quite right... I forgot to call the directions function after it gets the location :o

    try this one. I have added alerts so you can see when it is working with geolocation and when...
  11. here is something similar that I made a while ago...

    here is something similar that I made a while ago (so please forgive the ugly coding). If geolocation fails, it falls back on IP lookup. And if the geolocator gets it wrong, you can drag your...
  12. so set the start position using geolocation:...

    so set the start position using geolocation:
    https://google-developers.appspot.com/maps/documentation/javascript/examples/map-geolocation

    But I would recommend building in some error handling in...
  13. wouldn't that basically be this:...

    wouldn't that basically be this:
    https://google-developers.appspot.com/maps/documentation/javascript/examples/directions-panel

    with a text input for the start and the end hardcoded?
  14. Replies
    2
    Views
    744

    It's not complicated - just store your products...

    It's not complicated - just store your products attributes in a data structure like this:



    var phones={
    Motorola:{name:"Motorola Atrix",
    price:"500",
    memory:"768MB"},
    Samsung:{name:"Samsung...
  15. Replies
    31
    Views
    3,059

    to read a text file you will have to use...

    to read a text file you will have to use something like ajax (if you have the file on your own server). If it is hosted on someone else's server, you will need to use server-side coding, or possibly...
  16. Replies
    31
    Views
    3,059

    you don't need to return the value... and the...

    you don't need to return the value... and the only place that code is returning the value to is the onclick of the button anyway, which is kind of meaningless. All you need to do is



    var...
  17. Replies
    31
    Views
    3,059

    pretty much. A string lasts from the first single...

    pretty much. A string lasts from the first single or double quote to the next matching one, so your code was rendering


    document.getElementById("Difficulty").innerHTML="<button id = 1 onClick="
    ...
  18. Replies
    31
    Views
    3,059

    does this help? ...

    does this help?


    document.getElementById("Difficulty").innerHTML="<button id = 1 onClick='returnDiff(this.id)'>Easy</button> <button id = 2 onClick='returnDiff(this.id)'>Normal</button> <button...
  19. I guess if you are using prompt and...

    I guess if you are using prompt and document.writeIn you won't have covered the modulus operator yet, so instead, just think about how you would do this on pen and paper... divide the first number by...
  20. Replies
    5
    Views
    652

    bad news: datalist isn't even close to being...

    bad news:
    datalist isn't even close to being cross-browser compatible
    http://www.quirksmode.org/html5/inputs.html
  21. Replies
    5
    Views
    652

    Localitatea de plecare, for example, calls on...

    Localitatea de plecare, for example, calls on data from a file called getplecari.php so to use that code you would have to replicate that file.

    If you are interested in using jQuery the...
  22. Replies
    3
    Views
    640

    jQuery I would guess in that case that you might be...

    I would guess in that case that you might be better off creating the form yourself, that way you will have control over what goes in it. Some helpful documentation, maybe:
    ...
  23. I don't know that blurring the parent window will...

    I don't know that blurring the parent window will actually do anything. Maybe focusing the child would be a better approach?
  24. Replies
    4
    Views
    901

    the problem is that you are mixing jQuery with...

    the problem is that you are mixing jQuery with vanilla js.
    $('audio') returns a jQuery object, but javascript doesn't know anything about that, so will either just ignore it or throw an error.
    ...
  25. Replies
    3
    Views
    640

    jQuery 1. What does a paypal form look like? Do you...

    1. What does a paypal form look like? Do you generate it or is it served up to you by paypal?
    2. What's a quantity box?
    3. From what I can see, you cannot restrict the jQuery datepicker to disable...
Results 1 to 25 of 119
Page 1 of 5 1 2 3 4
HTML5 Development Center



Recent Articles