www.webdeveloper.com

Search:

Type: Posts; User: kromol

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    313

    document is the internal browser object. All...

    document is the internal browser object. All browsers represent html page as DOM tree. You can read more about DOM here.
    Maybe you have to add preventing default action of your button or form to...
  2. Replies
    4
    Views
    313

    This piece of code check if element with id u...

    This piece of code check if element with id u exists in your page and then set focucs on it.
  3. Replies
    2
    Views
    282

    I think the best way to do it will be recursive...

    I think the best way to do it will be recursive function.
    Something like this:


    function checkCredentials(){
    var user_name = prompt("Username"),
    password = prompt("password"),
    ...
  4. Replies
    6
    Views
    210

    You also put button into select. I think it...

    You also put button into select. I think it should be outside.
    This code works in firefox


    <form id="form">
    <select id="select" name="time2">
    <option value="N/A">N/A</option>
    ...
  5. Replies
    6
    Views
    210

    I don't see element with id select

    I don't see element with id select
  6. Replies
    2
    Views
    170

    number.push(document.getElementById("input").value...

    number.push(document.getElementById("input").value);
  7. function replace(id, arg) { var div =...

    function replace(id, arg) {
    var div = document.getElementById(id);
    if (div) {
    div.innerHTML = arg;
    }
    return false
    }
  8. Replies
    1
    Views
    106

    For getting alert to the final if else first and...

    For getting alert to the final if else first and last names should not be blank. So it will be something like this:


    function validate()
    {
    var vText1=trim(document.frm.sText1.value);
    ...
  9. Replies
    1
    Views
    54

    Add some div that wrapped your form and add an...

    Add some div that wrapped your form and add an id attribute to form, let's say "signup-form". Then you can do it with jQuery:


    $("<div>Thank you!</div>").insertAfter($("#signup-form"));...
  10. Replies
    17
    Views
    239

    I add skype to my profile, you have to be able to...

    I add skype to my profile, you have to be able to see it.
  11. Replies
    17
    Views
    239

    Enable private messages in your profile settings.

    Enable private messages in your profile settings.
  12. Thread: Facebook Login

    by kromol
    Replies
    3
    Views
    163

    It is optional parameter. Look here: FB.init...

    It is optional parameter. Look here: FB.init
  13. Thread: Facebook Login

    by kromol
    Replies
    3
    Views
    163

    You can do it with PHP or with Javascript. With...

    You can do it with PHP or with Javascript. With javascript it will be like this.

    First of all you have to create new app in facebook. Then add this code to your page:


    <div...
  14. Replies
    17
    Views
    239

    And what about other browsers? Did you get error...

    And what about other browsers? Did you get error only in Chrome?

    It works properly in my browsers.
  15. Can you show your HTML? This line will...

    Can you show your HTML?


    This line will return (not remove) HTML from the div. To remove HTML you have to write


    $('#p-letter-container').html('');
  16. Replies
    17
    Views
    239

    What error did you get in Chrome in console?

    What error did you get in Chrome in console?
  17. First of all you have to implement trim function...

    First of all you have to implement trim function for old browsers (all new browsers have trim already implemented), it may be something like this (add it before $(document).ready):


    if...
  18. Replies
    17
    Views
    239

    What error did you get in Chrome? I tried in...

    What error did you get in Chrome? I tried in Chrome and it works properly.
  19. Use setTimeout...

    Use setTimeout and call the function that shows content and hides loader in setTimeout, not in window.onload.
  20. Replies
    14
    Views
    114

    If you want to reset the form after its...

    If you want to reset the form after its submitting you should use setTimeout


    <form id="mail" name="form" action="insert.html" method="get" target="_blank" >
    <input type="text" class="input"...
  21. Replies
    14
    Views
    114

    Yes, there is an event onsubmit...

    Yes, there is an event onsubmit
  22. Replies
    14
    Views
    114

    Try this code, it should work, I've tested it in...

    Try this code, it should work, I've tested it in Chrome and Firefox:)


    <form id="mail" action="insert.php" method="post" target="_blank">
    <input type="text" class="input" id="email"...
  23. Thread: Disappeare

    by kromol
    Replies
    1
    Views
    60

    Use CODE tags for better readability

    Use CODE tags for better readability
  24. Replies
    14
    Views
    114

    I've just noticed that you have a closing slash...

    I've just noticed that you have a closing slash "/" in the form's open tag. Maybe it causes strange behavior in different browsers.
  25. Replies
    14
    Views
    114

    Logic Ali is right. You haven't to call submit...

    Logic Ali is right. You haven't to call submit explicity. You can just remove that line from your function and the code should work properly.
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4
HTML5 Development Center



Recent Articles