dcsimg
www.webdeveloper.com

Search:

Type: Posts; User: kromol

Page 1 of 6 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    724

    You can add array/object keys dynamically, for...

    You can add array/object keys dynamically, for example something like this:


    var markers = [];
    function setMarkers(map, places){
    for (var i = 0; i < places.length; i++) {
    var sucursal =...
  2. Replies
    12
    Views
    2,163

    Other What do you mean by integrating LocalStorage with...

    What do you mean by integrating LocalStorage with HTML forms?
    Local Storage allows you save any string data in key/value format. You can save only data you need, for example some form values.


    ...
  3. 1. You have such code in the end of your...

    1. You have such code in the end of your function:


    //In a select element, you know what has been selected by getting the selectedIndex
    //In this select, if the user has not picked an...
  4. Replies
    12
    Views
    2,163

    Other I don't think cookies are good choice, because...

    I don't think cookies are good choice, because they are sent with every HTTP request. Maybe it would be better to use Local Storage.
    Anyway all data stored on client side will be cleared after...
  5. Possible workflow can be next: you can set some...

    Possible workflow can be next: you can set some flag for example in localStorage before redirection and in home page after loading you have to check if appropriate key exists in localStorage, and if...
  6. Replies
    3
    Views
    510

    So match works correct in your case. Your string...

    So match works correct in your case. Your string ("file") does not contain substr "text", so match returns null, that is casted to false, but as you have ! before match it becomes true.
  7. Replies
    3
    Views
    510

    What is the value of that.type?

    What is the value of that.type?
  8. May be your issue is here: var txt = "

    May be your issue is here:


    var txt = "<h3 align="center">Menu</h3>
    <p align="left">
    <strong>&nbsp; Series Stories</strong><br />
    <li2>&nbsp; <a href="contact.html">Contact...
  9. Replies
    1
    Views
    1,805

    Example B does not work properly because...

    Example B does not work properly because geocoder.geocode() is async and all other code is sync.
    Try this:


    function tableCreation( info )
    {
    var table =...
  10. Replies
    13
    Views
    18,983

    jQuery You are welcome :)

    You are welcome :)
  11. Replies
    1
    Views
    1,669

    Maybe something like this: ...

    Maybe something like this:


    $('.hide').click(function () {
    var ids = ['#one', '#two', '#three', '#four', '#five', '#six', '#seven', '#eight'],
    ids_count = ids.length,
    i = 1,...
  12. Replies
    13
    Views
    18,983

    jQuery I think I see your issue. indexOf returns -1 if...

    I think I see your issue. indexOf returns -1 if it cannot find substring, in other case the position of the first occurence.
    In JavaScript strings starts from index 0.
    This code:


    if...
  13. Replies
    13
    Views
    18,983

    jQuery You have space between last comma and...

    You have space between last comma and "javascript". Is it a typo?
    Or have you tried this:


    var disallowinks = "google,microsoft,yahoo,javascript:";
  14. Replies
    13
    Views
    18,983

    jQuery Add "javascript:" to disallowinks variable.

    Add "javascript:" to disallowinks variable.
  15. Replies
    1
    Views
    2,356

    getImageData third argument is image width, not...

    getImageData third argument is image width, not image height
    Put getImageData and putImageData code in image onload event
  16. This should work for different versions of IE: ...

    This should work for different versions of IE:


    <!DOCTYPE html>
    <html>
    <head>
    <title>Test</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <script>
    function...
  17. Which version of IE do you use? IE has another...

    Which version of IE do you use? IE has another event model than normal browsers.
  18. Below is full code: ...

    Below is full code:


    <!DOCTYPE html>
    <html>
    <head>
    <title>Test</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <script>
    window.onload = function () {
  19. Strange, it works for me. What browser do you...

    Strange, it works for me. What browser do you use? I tried this in Chrome
  20. Try something like this ...

    Try something like this


    <script>
    window.onload = function () {
    var form = document.getElementsByTagName('form')[0],
    selects = form.getElementsByTagName('select'),
    i = 0,...
  21. https://github.com/dfsq/compressJS.sh but it is...

    https://github.com/dfsq/compressJS.sh but it is only for Linux
  22. Try to put your JS files (if it is possible) in...

    Try to put your JS files (if it is possible) in the end of a page, not in header. Then your HTML will be loaded before javascript.
  23. Replies
    13
    Views
    18,983

    jQuery You have to load jQuery before loading your script

    You have to load jQuery before loading your script
  24. Replies
    13
    Views
    18,983

    jQuery It seems like after click on the first link...

    It seems like after click on the first link variable count becomes equal 1 and this condition


    if (count == 0) {
    $(this).attr('href', "http://localhost/wordpress/redirect.php?link=" + ...
  25. Replies
    7
    Views
    1,544

    If I understood correct, you posted old code with...

    If I understood correct, you posted old code with select instead of ul.
    Does this code work or it gives some errors?
Results 1 to 25 of 132
Page 1 of 6 1 2 3 4
HTML5 Development Center



Recent Articles