dcsimg
www.webdeveloper.com

Search:

Type: Posts; User: johns221b

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    2,568

    iframe onload issue with firefox

    below code is building an iframe runtime in ui.
    Its setting innerhtml to a div with iframe.
    And there is button to remove iframe and another to add again.

    The issue is with firefox.
    first...
  2. Replies
    0
    Views
    1,469

    content editable div insert span

    another question on content editable div

    how to insert a span in contenteditable div's current cursor position and show cursor inside span
  3. highlight pasted content in content editable div

    focus in a contenteditable div and

    document.execCommand('Paste');

    will paste content from clipboard to div.

    how to highlight/select pasted content / node /element.

    intention is to convert...
  4. Replies
    2
    Views
    1,386

    thanks

    thanks
  5. Replies
    2
    Views
    1,386

    regex replace

    var string="removespace : dont remove spaces";

    need a regex which replaces all spaces before and after colon ':' .

    above variable must be returned as

    "removespacedont remove ...
  6. multiply by 1000

    multiply by 1000
  7. thanks for the reply, got another question. ...

    thanks for the reply,
    got another question.

    how to trim/ignore all blank spaces which may come before ':'.




    var s="abc : someabcthing and pqr:something else and xyz :i dont know";
    var...
  8. thanks for reply, I specifically need to use ':'...

    thanks for reply,
    I specifically need to use ':'
    see below, 'abc' inbetween also get replaced if omit ':'
    so needs to replace only 'abc:' not any other 'abc'


    var s="abc: someabcthing and...
  9. Replies
    4
    Views
    687

    <input type=checkbox onclick="ClickChk(this);"/><span id='abc'></span>

    <script>
    function ClickChk(Chk){
    if(Chk.checked==true)document.getElementById('abc').innerText='some title'
    else...
  10. you can always refer parent (opener) window...

    you can always refer parent (opener) window function by

    window.opener.functionname()
  11. there is a syntax error ...

    there is a syntax error

    window.setTimeout('window.location="location"; ',document.getElementById('rate').value);


    and whats expected from "location"?
  12. Replies
    4
    Views
    687

    what I understood is the text is not part of...

    what I understood is the text is not part of checkbox.

    <input type=checkbox onclick="document.getElementById('abc').innerText='some title'"/><span id='abc'></span>

    can be tried.

    or an...
  13. another regex multi word replace question

    trying to replace multiple words using regex.



    var s="abc: something and pqr:something else and xyz:i dont know";
    var r="/abc:|pqr:|xyz:/g";
    var a=new RegExp(r);
    var b="***:";
    ...
  14. Replies
    1
    Views
    571

    regex multi word replace

    is it possible to do multi word replace using one line regex.
    eg. need to replace 'abc' or 'Abc' or 'bcd' or 'pqr' or 'mno' with '***'
    i know to do relace one by one.is it possible to do in one...
  15. Replies
    3
    Views
    1,101

    quite confused of your requirement. AJAX , in...

    quite confused of your requirement.
    AJAX , in simple terms, is a method of communicating to web server from browser.
    What sort of validation are you planning to do in this method.
  16. Replies
    3
    Views
    1,101

    wht exactly you meant by form validation using...

    wht exactly you meant by form validation using ajax.

    1.do a validation before data is posted via ajax.
    or
    2. do a server side validation for each field by sending values to server via ajax and...
  17. Replies
    6
    Views
    1,659

    passing value to event listener in a loop

    Below body contains nine textfields and onload 'SetListener' is called to attach eventlistener for event 'onpropertychange'. and trying to alert the name of the textfield.

    but below code alert...
  18. Replies
    2
    Views
    1,734

    thanks slaughters, but I know how to set in...

    thanks slaughters,

    but I know how to set in inline.
    how to set it from javascript.
  19. Replies
    2
    Views
    1,734

    firefox 'oninput' set from javascript.

    <script>
    function attach(){
    TxtName.oninput=fff;
    }
    function fff(){
    alert('input');
    }
    </script>
    <body onload="attach()">
    <input name="TxtName" />
  20. Replies
    2
    Views
    852

    gr8...thanks

    gr8...thanks
  21. Replies
    2
    Views
    852

    method inside method

    function A(){
    this.B=_B;
    }

    function _B(){
    this.C=_C;
    }
    function _C(){
    alert("IN");
    }
  22. Replies
    1
    Views
    708

    cross browser event handling

    Below html contains table & a div.
    both absolute positioned.
    Table contains a link and onclick event listener.
    Div also got onclick event listener.
    Both positioned same so that div borders for...
  23. javascript looping vbscript dictionary object

    var Arr=new Array();
    Arr.Value1="Value1";
    Arr.Country="MyCountry";
    Arr.Age="MyAGe";

    above can be looped like
    for (var key in Arr)
    alert(key, Arr[key]);
  24. javascript looping vbscript dictionary object

    var Arr=new Array();
    Arr.Value1="Value1";
    Arr.Country="MyCountry";
    Arr.Age="MyAGe";

    above can be looped like
    for (var key in Arr)
    alert(key, Arr[key]);
  25. Thread: Frame onload

    by johns221b
    Replies
    3
    Views
    923

    one way is to do

    one way is to do
    <body onload="parent.myFunc()" > with in loaded page.

    else using onreadystatechange
Results 1 to 25 of 35
Page 1 of 2 1 2
HTML5 Development Center



Recent Articles