www.webdeveloper.com

Search:

Type: Posts; User: hoangkc

Page 1 of 7 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    8
    Views
    8,064

    Try this function /* * $TagClass * Find...

    Try this function

    /*
    * $TagClass
    * Find and return elements which belong to parent element and have className, tag match search conditions
    * $TagClass("className",parent,"input")
    */...
  2. create a variable outside of the functions is the...

    create a variable outside of the functions is the simplest way. however, if you want to pass variable, you should call a delegate function
    Example:
    Paste Delegate library into your code


    MX =...
  3. For backgroundPostision to work in Firefox and...

    For backgroundPostision to work in Firefox and Opera, the background-attachment property must be set to "fixed" when background to set to backImage[1].

    But in this case, you can set them for body...
  4. use Css: background-repeat: no-repeat (see more...

    use Css: background-repeat: no-repeat (see more detail here: http://www.w3schools.com/css/css_background.asp)
    or use javascript: element.style.backgroundRepeat = "no-repeat";



    function...
  5. Replies
    4
    Views
    1,613

    if you want to compress javascript, you should do...

    if you want to compress javascript, you should do just only step 1: shrink variable and make it single line. It reduces the size user have to load.

    so, how about Base62encode?
    As my opinion, it...
  6. it's attribute of orange sripe image:

    it's attribute of orange sripe image:
    <a href="javascript:changeBGImage(0)"><img src="http://www.projectmio.com/stroke_col.png" style="position:fixed;bottom:5px;right:5px"></a>

    By the way, I have...
  7. call changeBGImage(0) in onload method, ...

    call changeBGImage(0) in onload method,


    onload = function(){changeBGImage(0)}
    or
    <body onload="changeBGImage(0)">
    ...


    and add style for orange stripe image, may be...
  8. Replies
    8
    Views
    3,089

    can't endless loop

    Hi Kor, as I know, the scenario you described never happen, except that you call field.focus() method (inside event onblur of field) via window.setTimeout
  9. Replies
    4
    Views
    1,613

    There are many out there, this is one of them...

    There are many out there, this is one of them http://javascriptcompressor.com/
  10. Replies
    4
    Views
    1,564

    You can create a new blank html file, paste those...

    You can create a new blank html file, paste those code below, and let me know if it works.


    <input type="text" id="txt"> <input type="button" value="check" onclick="check()">
    <script>
    function...
  11. Replies
    12
    Views
    1,415

    may be you should use a boolean variable to...

    may be you should use a boolean variable to indicate whether the list is expanded.


    in initialize method, set JSGantt.findObj('group_'+pID).isExpand to true (or false) depend on your list is...
  12. Replies
    4
    Views
    1,564

    to validate a textbox with 10 digits, may be you...

    to validate a textbox with 10 digits, may be you should want to use regexp


    var r = /^\d{10}$/;
    if(r.test(document.myform.Global_ID.value)) alert("ok");
    else alert("globalID must be 10...
  13. Replies
    4
    Views
    698

    function TestObject(){ ...

    function TestObject(){
    alert(UserList[0].getAlias());
    }
    getAlias is method, not property
  14. Replies
    2
    Views
    965

    it's possible, with a small modification var...

    it's possible, with a small modification

    var a = "function OnChangeRiskBrand() { UpdateLink_RiskBrand() };";
    eval(a);
    // then, you can
    OnChangeRiskBrand();
  15. as I know, when you use a "POST" method of...

    as I know, when you use a "POST" method of XMLHttpRequest, the parameters - xhr.send(parameters) - must be a query-string (like as x=abc&xx=123...) it can't be an object in json format.
  16. Thread: Regexp help !

    by hoangkc
    Replies
    5
    Views
    848

    please tell me if I'm wrong. As I know, \w...

    please tell me if I'm wrong.
    As I know,
    \w Match a word character (alphanumeric characters and "_")
    and
    \W Match a non-word character
  17. View Post

    <a href='photos/Gold_Moon22.jpg' rel='lightbox[gallery]' onclick='openwindow("folder of file to open/index.html")'>[detail]</a>
    but the href attribute of that link will make the current browser load...
  18. Replies
    2
    Views
    736

    can you show us your code?

    can you show us your code?
  19. Thread: Tree Menu help

    by hoangkc
    Replies
    1
    Views
    723

    it is because of bubble event. you should move...

    it is because of bubble event. you should move those li elements outside the ul element which fires the script.
    Example:


    <ul onclick="MenuTree('treeOne');">
    Item 1
    </ul>
    <ul>
    <div...
  20. did you know: document.object.property.value is...

    did you know:
    document.object.property.value is the same as
    document["object"].property.value and also
    document["object"]["property"]["value"]

    therefore, I think your problem was solved ;)
  21. can you post your complete code here?

    can you post your complete code here?
  22. what is type of your str variable? ...

    what is type of your str variable?

    additionally, you put the close basket "}" in the wrong place.
    if str has already been equal "yes", it should be never different from "yes"
  23. Replies
    4
    Views
    1,303

    what is this.url?

    what is this.url?
  24. you can't disable all the capability of closing...

    you can't disable all the capability of closing the browser window in JavaScript.
    but you can do some actions before it 's closed.
    using window.onbeforeunload event to do it
  25. Replies
    4
    Views
    703

    ok nedals, I didn't take notice it before. thank...

    ok nedals, I didn't take notice it before.
    thank for your reminder
Results 1 to 25 of 151
Page 1 of 7 1 2 3 4
HTML5 Development Center



Recent Articles