Sign up to connect with Airshow and gain access to their complete profile
  • Member Avatar
    Airshow

    Replied To a Post in Get next three months from current month in javascript

    Pretty simple, start with array [1, 2, 3] (representing offsets from current month) and map it to the array you want. function getNext3Months() { const currentMonth = (new Date()).getMonth() + …
  • Member Avatar
    Airshow

    Began Watching Get next three months from current month in javascript

    Am looking for something where I could get a array of next three months in number from the current month , i have tried to get the month in string …
  • Member Avatar
    Airshow

    Replied To a Post in Printing values of jquery custom autocomplete

    @Luke_4, no worries. As you probably already discovered, that pattern is totally flexible. Once you have grasped the basic idea, you can "play tunes" with it to control the content/layout …
  • Member Avatar
    Airshow

    Replied To a Post in Printing parts of web page - None before or after

    I posted a link to a fiddle back in the [original post](https://www.daniweb.com/programming/web-development/threads/506905/printing-values-of-jquery-custom-autocomplete#post2213571)
  • Member Avatar
    Airshow

    Began Watching Printing parts of web page - None before or after

    Trying to get just the search results (inside and outside the search box). Everything else on the page, which is NOT involved with the search box and its results, should …
  • Member Avatar
    Airshow

    Replied To a Post in Printing values of jquery custom autocomplete

    Try this - https://jsfiddle.net/59rphg1h/9/
  • Member Avatar
    Airshow

    Replied To a Post in Printing values of jquery custom autocomplete

    *An* approach (not the only one) would be to have two main child divs within your `<body></body>` tags * `<div id="screen"></div>` styled to be displayed under `@media screen` and hidden …
  • Member Avatar
    Airshow

    Replied To a Post in Printing values of jquery custom autocomplete

    @Luke_4, It's very odd that printing is not WYSIWYG. Theory 1: (Physical) `.autocomplete()` creates the widget by replacing the original input element and/or creating one or more hidden elements. You …
  • Member Avatar
    Airshow

    Replied To a Post in Printing values of jquery custom autocomplete

    The days of generating a special page for print purposes are long gone. Instead of composing HTML on the fly, try mastering CSS @media rules : * https://www.w3.org/TR/WD-css2/media.html If there's …
  • Member Avatar
    Airshow

    Began Watching Printing values of jquery custom autocomplete

    My code is here https://jsfiddle.net/yqjuy3m1/1/ .. I know my print html is out dated (could be my issue) so any updated approach is welcome. What I am trying to do …
  • Member Avatar
    Airshow

    Replied To a Post in Convert countif from excel to jquery

    Neither the pictures nor the words are speaking to me. Until such time that the question is properly expressed, I have to admit defeat.
  • Member Avatar
    Airshow

    Replied To a Post in Convert countif from excel to jquery

    As it stands, the question is not 100% self-explanatory, in particular the relationships and juxtapositions of the various input elements. Maybe it would be clearer if you posted an (annotated) …
  • Member Avatar
    Airshow

    Began Watching Convert countif from excel to jquery

    Hey guys, I have a code on excel, that will count the critera if there is more than one box filled out. =COUNTIF(C5:D14,"<>0") But now i am converting this code …
  • Member Avatar
    Airshow

    Replied To a Post in Javascript Multidimensional Array is Empty

    You are expecting javascript arrays to behave like PHP arrays. They don't! Elements of a JS array are indexed exclusively by integer. Confusingly, JS arrays can also be given properties, …
  • Member Avatar
    Airshow

    Began Watching Javascript Multidimensional Array is Empty

    I think Im misunderstanding something here - I normally work in PHP and think I'm missing something small. My final array tmp is empty and displays as ",,,,,,,,,,,,,,,," . It …
  • Member Avatar
    Airshow

    Replied To a Post in Convert Formula from Excel to jquery

    The formula will simplify enormously. ((lcost1*24-(dp1/2))/24)+((epay1-(dp1/2))/24) can be written : lcost1 + (epay1 - dp1) / 24 And you probably want to display : (lcost1 + (epay1 - dp1) / …
  • Member Avatar
    Airshow

    Began Watching Convert Formula from Excel to jquery

    I am working on a project that involves multiple formulas and cannot figure out how to make the formula flow using jQuery. The first formula that i am working with …
  • Member Avatar
    Airshow

    Replied To a Post in Cannot read property 'childNodes' of null in a slider

    Why is this tagged "jQuery" when everything is written in POJS?
  • Member Avatar
    Airshow

    Began Watching Cannot read property 'childNodes' of null in a slider

    I have created a simple Javascript slider with Slice and Box effects. It runs and no problem. But when i look up console, I see that after two cycles it …
  • Member Avatar
    Airshow

    Replied To a Post in Traverse Simple XML

    Dawbin, results of your benchmark are inconclusive here. Most runs I get 0ms for both sets of code, but with a random sprinkling of higher values up to 45ms. I …
  • Member Avatar
    Airshow

    Replied To a Post in Traverse Simple XML

    OK, here's a jQuery solution in 11 lines. function parse(xml) { var o = {}; $(xml).find('*').andSelf().contents().filter(function() { return this.nodeType == 3 && $.trim(this.nodeValue); }).each(function() { var p = this.parentNode.nodeName; if …
  • Member Avatar
    Airshow

    Replied To a Post in Traverse Simple XML

    Would you accept a jQuery solution?
  • Member Avatar
    Airshow

    Began Watching Traverse Simple XML

    I'm trying to write a javascript routine to crawl an XML document (of unknown elements) and parse out name/value pairs where "<nodename>nodevalue</nodename>" would come out as "nodename=nodevalue". What I have …
  • Member Avatar
    Airshow

    Replied To a Post in Traverse Simple XML

    The double test for `hasChildNodes()`, at parent and child levels, looks a bit odd. I would have thought you want the parse out the nodes that *don't* have children, in …
  • Member Avatar
    Airshow

    Replied To a Post in function results into array

    Double_cola, +1 for your positive attitude. Good luck.
  • Member Avatar
    Airshow

    Began Watching function results into array

    Hey guys. I have a function that is returning options that the user has selected. I need to get these options in an array for matching. Here is my rough …
  • Member Avatar
    Airshow

    Replied To a Post in function results into array

    Double_cola, Broj1 is really trying to help you. Do what he says and ANSWER HIS QUESTIONS. Restating the problem and reposting large sections of code is not going to get …
  • Member Avatar
    Airshow

    Replied To a Post in jQuery or AJAX issues

    Gentlemedia, coooooool! Now Taywin and I can start breathing again ;-)
  • Member Avatar
    Airshow

    Replied To a Post in jQuery or AJAX issues

    Gentlemedia, it's not obvious what is causing this issue. You need to devise an investigation strategy to discover what's causing it. Simplify everything one aspect at a time and see …
  • Member Avatar
    Airshow

    Began Watching jQuery or AJAX issues

    Apologies for such a vage title, but I seriously don't know where the two issues I have are related to. My JavaScript/jQuery skill is on a noob level, so bare …

The End.