www.webdeveloper.com

Search:

Type: Posts; User: bcamp1973

Page 1 of 10 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    4
    Views
    3,134

    great stuff, thanks to you both!

    great stuff, thanks to you both!
  2. Replies
    4
    Views
    3,134

    RegEx to count lines in a file

    I'm using jQuery to pull a file asynchronously. I want to then sum the total of lines in that file that begin with "/". The file is a cache manifest and looks something like this...
    ...
  3. jQuery Composition (Association, Aggregation) in Javascript - looking for resources

    I'm looking at a pretty big project and I'd like to use it as a learning experience. Most of my time in Javascript has been with some sort of inheritance and usually via a library like PrototypeJS or...
  4. thank you!

    thank you!
  5. i also realize i could do this, but it seems odd...

    i also realize i could do this, but it seems odd to repeat it...


    if ( myColor != 'red' && myColor != 'green' && myColor != 'blue') ) {
    alert('myColor is not a primary color!');
    }
  6. Checking equivalency between one value and a range

    I want to check whether a variable is equivalent to one of several. Basically i want to do this...


    if ( myColor != ('red' || 'green' || 'blue') ) {
    alert('myColor is not a primary color!');...
  7. Replies
    4
    Views
    15,546

    jQuery Thanks for the feedback...here's what i finally...

    Thanks for the feedback...here's what i finally did to get it to work...


    var startDate = $('#start_date').val().replace('-','/');
    var endDate = $('#end_date').val().replace('-','/');
    ...
  8. Replies
    4
    Views
    15,546

    jQuery simple comparison of dates

    I have two form fields with dates in the mm-dd-yyyy format. I need to validate that date2 > date1. How might I make this comparison?
  9. pattern for conditional question skip logic

    does anyone have any experience with complex skip logic? i'm building a medical survey application a couple of the forms are pretty tricky. It's all radio buttons/checkboxes that can influence...
  10. unobtrusive interrupt of onunload() for warning message

    I have a form on a site and I need to put up a warning message anytime someone tries to navigate away from the page ("all data will be lost..." etc). It would of course need to apply to all links on...
  11. P.S. I've tried "clearTimeout(PeriodicalTimer);"...

    P.S. I've tried "clearTimeout(PeriodicalTimer);" at http://www.360innovate.co.uk/blog/periodical/ but it doesn't work for me at all...i'm scouring the 'net for the solution, but everything i try...
  12. I'm trying to tackle the same problem. It's...

    I'm trying to tackle the same problem. It's supposed to stop when a value of -1 is returned. How so i accomplish this?


    risk.startPolling = function(button){
    var report_id =...
  13. Replies
    11
    Views
    5,295

    Thanks for all your help Eric (and mrhoo)! You...

    Thanks for all your help Eric (and mrhoo)! You saved me hours of beating my head on my desk ;)
  14. Replies
    11
    Views
    5,295

    I made the following changes and it's working for...

    I made the following changes and it's working for me. However, I'm not really sure why?


    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"...
  15. Replies
    11
    Views
    5,295

    Thanks for the updated code. It's working as you...

    Thanks for the updated code. It's working as you described it would in FireFox. For some reason it's not working in Safari. Is there a trick to make it more cross-browser?
  16. Replies
    11
    Views
    5,295

    Thanks Eric...i feel like a real idiot for not...

    Thanks Eric...i feel like a real idiot for not seeing that one. :P Now it's loading correctly, however the sortMulti() function doesn't seem to be having any affect on my array...
  17. Replies
    11
    Views
    5,295

    Thanks for responding guys. I'm trying to do a...

    Thanks for responding guys. I'm trying to do a basic proof of concept and it's not working for me. I know i'm overlooking something simple, but i can't put my finger on it. Getting the generic...
  18. Replies
    11
    Views
    5,295

    sorting multidimensional arrays

    say i have a simple array...


    var myArray = [ ['Bob',32], ['Mary',28], ['Alice',33], ... ];

    I want to be able to resort this array (ascending/descending) by both name (myArray[i][0]) and age...
  19. Here's what i tried...getting the "func.apply is...

    Here's what i tried...getting the "func.apply is not a function" error in FireBug...



    <script type="text/javascript">
    /* <![CDATA[ */
    function sayIt(word){
    alert(word);
    }...
  20. pass function and paramaters as string, then execute?

    basically, i want to do this...


    function call(func,params){
    func(params);
    }

    Hope that make some sense? How do I pull it off?
  21. unobtrusive custom form elements using prototypeJS

    I'm trying to write a script that will alter form elements on DOM load (by wrapping them in <div>'s etc) so i have more flexibilty in styling them. I'm attempting to do this in a way that's...
  22. After even more Googling, it seems unshift() is...

    After even more Googling, it seems unshift() is what I'm looking for?

    http://www.webreference.com/programming/java_core/4.html
  23. how do i add to begging of array (as push() does to end?)

    is there a function that allows me to add something to the beginning of an array as push() allows me to add to the end?
  24. Replies
    1
    Views
    702

    callback on match when parsing string?

    i need the ability to do a match on a substring and call a method on each match.

    in PHP i can do this with preg_replace_callback() but there doesn't seem to be an equivalent in JS? Any suggestions
  25. Replies
    0
    Views
    489

    parsing string and reformatting

    i'm using a javascript framework that doesn't format (for obvious reasons) the html it generates. However, for troubleshooting i commonly need to review the document's structure. I would like to...
Results 1 to 25 of 243
Page 1 of 10 1 2 3 4
HTML5 Development Center



Recent Articles