www.webdeveloper.com

Search:

Type: Posts; User: myrtle1908

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    12
    Views
    2,262

    You could simply create a new instance of MyClass...

    You could simply create a new instance of MyClass and override the methods eg.


    var myClass2 = new MyClass();
    myClass2.myMethod = function() {
    alert('stuff');
    };
  2. Replies
    8
    Views
    7,348

    http://ejohn.org/blog/ecmascript-5-strict-mode-jso...

    http://ejohn.org/blog/ecmascript-5-strict-mode-json-and-more/
  3. Replies
    1
    Views
    570

    Because the string "These results are from an ASP...

    Because the string "These results are from an ASP Page" is not valid JavaScript. What are you trying to do? Dynamically generate script via ASP and include in the HTML?
  4. Lots of mistakes. Eg. it's onclick not oneclick...

    Lots of mistakes. Eg. it's onclick not oneclick :)

    You should consider using Firebug to help debug your code. Also, there's plenty of "bad" practice in your code, but as you are learning this...
  5. Replies
    2
    Views
    1,075

    No need to deal with it character by character or...

    No need to deal with it character by character or use substring etc. Basic regex will suffice. I'll leave it up to you to figure out how to read from keyboard etc.


    public class Test {
    public...
  6. Replies
    8
    Views
    884

    The class IDs are fine, it was the JavaScript...

    The class IDs are fine, it was the JavaScript variable names I was referring to.

    Change this


    var gift-wrap-message = document.getElementById('gift-wrap-message');
    var gift-wrap-checkbox =...
  7. Replies
    4
    Views
    699

    You should be careful with offsetWidth as it...

    You should be careful with offsetWidth as it includes padding etc.

    https://developer.mozilla.org/en/Determining_the_dimensions_of_elements

    However, mine (while a tad more generic thus the...
  8. For your purpose, yes. I could have written it...

    For your purpose, yes. I could have written it any number of ways. I'm lazy and have bad habits (which in hindsight I shouldn't flaunt here). There are differences ...
    ...
  9. You should be able to adapt this to your...

    You should be able to adapt this to your calculator ...


    <script>
    var addTextbox = function() {
    var tb = document.createElement('input');
    tb.setAttribute('type', 'text');
    ...
  10. Replies
    8
    Views
    884

    You have illegal characters in your variable...

    You have illegal characters in your variable names ie. '-' is illegal in 'gift-wrap-message'. Change it to: 'gift_wrap_message' or 'giftWrapMessage' (which is more in keeping with JavaScript naming...
  11. Replies
    8
    Views
    884

    Simple example, i'll leave it up to you as to how...

    Simple example, i'll leave it up to you as to how to apply to your form etc ...


    Gift message <textarea id="giftMessage"></textarea><br>
    Gift wrap? <input type="checkbox" id="giftWrap"><br>...
  12. Replies
    4
    Views
    699

    getTotalWidth = function(id) { var...

    <script>
    getTotalWidth = function(id) {
    var totalWidth = 0;
    var ctr = document.getElementById(id);
    var imgs = ctr.getElementsByTagName('img');
    if (imgs) {
    var l = imgs.length;
    ...
  13. Pass the button to your calc function eg. ...

    Pass the button to your calc function eg.


    <script>
    function calc(btn) {
    alert(btn.name);
    }
    </script>

    <input type="button" name="btnA" value="A" onclick="calc(this);">
  14. Replies
    1
    Views
    650

    window.location ......

    window.location ... https://developer.mozilla.org/en/DOM/window.location

    or

    document.URL ... https://developer.mozilla.org/en/DOM/document.URL
  15. Replies
    13
    Views
    1,298

    IE7, IE8? Luck you. Most of the corporates I...

    IE7, IE8? Luck you. Most of the corporates I produce systems for still use IE6. It really is fun how they expect widget heavy desktop like AJAX apps to run well in IE6. We show them how it runs...
  16. Replies
    3
    Views
    2,091

    ExtJS http://www.extjs.com/

    ExtJS http://www.extjs.com/
  17. Replies
    3
    Views
    1,786

    If your input files aren't too large you could...

    If your input files aren't too large you could read your file into a string then use a regex eg.


    import java.io.BufferedReader;
    import java.io.FileReader;
    import java.util.regex.Pattern;...
  18. Replies
    9
    Views
    1,112

    ExtJS. Been using it since 07 after 11 years of...

    ExtJS. Been using it since 07 after 11 years of traditional web based development with perl/cgi, some ASP (horrible) and plain ol' HTML/CSS and would *never* look back. There really is no equal for...
  19. Thread: 2 things

    by myrtle1908
    Replies
    4
    Views
    2,121

    Use cookies or store on a server.

    Use cookies or store on a server.
  20. Replies
    6
    Views
    2,145

    You can do that with or without a toolkit. There...

    You can do that with or without a toolkit. There is nothing special going on there. It's basic drag-drop. Works fine for me in Firefox. Perhaps you would be better served asking the authors of...
  21. Replies
    6
    Views
    2,145

    Not sure what you mean by "multi sort" but you...

    Not sure what you mean by "multi sort" but you could extend the widget to suit your needs or try the ListBox widget which is available in Ext 3.0 i believe. There is probably a similar...
  22. Replies
    6
    Views
    2,145

    I wrote the original versions of the...

    I wrote the original versions of the Multiselect/ItemSelector included in the excellent ExtJS toolkit. These should do what you need. ...
  23. Replies
    3
    Views
    2,345

    Maybe this will help http://jscc.jmksf.com/

    Maybe this will help http://jscc.jmksf.com/
  24. Replies
    3
    Views
    765

    Use Firefox and Firebug to step through the code...

    Use Firefox and Firebug to step through the code and identify the bug. You can place breakpoints, set watches etc. It is really quite simple.

    http://www.getfirebug.com/
  25. Replies
    2
    Views
    4,478

    mod_perl ... http://perl.apache.org/

    mod_perl ... http://perl.apache.org/
Results 1 to 25 of 54
Page 1 of 3 1 2 3
HTML5 Development Center



Recent Articles