Is it possible to get data from items that are loaded on scroll with simplehtml parser?  My code is done and it works perfectly I don't need any help with that , I'm just asking for advice if this is even possible to acomplish, I know when the dom praser loads what ever it sees on the first load of the page but is it possible to load more?  Example:  The page that i am loading has 10 items on it. But when you scroll down it Loads 10 more. Or thats not possible?
121553
I am building a blog type page, and I want to load items into the page as the user scrolls down, much like Google Reader, or Soup.io. How would you go about achieving this effect? I've seen some examples which read the height of the page, and have an onScroll even attached to the window so that as the user scrolls down we can test to see if they've scrolled down far enough to warrant loading more items. Soup.io's implementation seems to remove the old items as you scroll down so that the browser isn't dealing with an ever-increasingly large DOM tree. Which javascript libraries would be best suited to this task?
4765
It's Thanksgiving, so I'm getting my Gaming SE fix through my mobile iPhone browser. I recently received a notable question badge for 'How do I defeat a wispmother in Skyrim?' and wanted to see just how many views it got. I didn't expect to see it initially, but once I sorted by views, I at least expected to see the number of views the question had.  Expected behavior: either views should be populated for questions when sorting by views in the mobile browser or there should be some intuitive way to see views on the mobile browser.
56170
I added infinite scroll support of the Jetpack plugin to my own theme using :  add_theme_support( 'infinite-scroll', array(     'container'  =&gt; 'content',     'footer' =&gt; false,     'render' =&gt; 'vividflow_infscroll_render',     'wrapper' =&gt; 'post_summaries',     'posts_per_page' =&gt; 12,     'type' =&gt; 'scroll' ) );   Now I need something like a counter which increments every time additional posts are loaded.   I know that the new posts are placed in an infinite-view-n class and I have a JavaScript function which I want to call on that new loaded class:  function setupPostSummaries(counter) {     jQuery('.infinite-view-'+counter).doSomething(); }   So I guess I need a PHP variable in the infinite scroll render function or the loop which increments every time additional posts are loaded. Then I can do in the end of The Loop:  &lt;script type="text/javascript"&gt;setupPostSummaries(&lt;?php the_counter(); ?&gt;);&lt;/script&gt;   Is such a variable there already? Or is there an other way to achieve my goal?
93583
I'm trying to use jQuery to get data from an ASP.NET web service (SharePoint Server 2007 lists.asmx), but any call to a web service will really help as a first step in that direction.
3789
I've noticed that a lot of webapps have started using custom scroll bars. A few examples include Facebook, Trello, Google Docs, and Twitter. I'm sure you can think of some more:    How do these types of custom scrollbars affect usability? I often find them harder to click on, and they have a habit of disappearing when I'm not scrolling. Having a smaller area to grab and a disappearing target makes it harder for me to use the web app, but I might be a minority. Is there anything indicating a benefit to the user experience when using these, or is it just done to make things look more fancy and "Web 2.0"?
86483
I have a list which is paginated in a webpage. It also has a function to select the number of entries per page. A bulk update on all is required.   What would be the best approach to this? My concern is that a user would doubt if we refer to the current page or to the whole list. Would a confirmation window with details or an info message to detail it would suffice?  This is how it looks for now:
75863
I've got a question about dealing  with huge PageObject. In the website that I'm currently testing there is a form with circa 50 inputs/dropdowns/selects.   In the current state my class got about 900 lines. It will be hard to debug, and in my opinion it's not so readable.   Is it consistent with the assumption of Page object model to create some subclasses and separate some WebElements and methods that are used by those elements? I'm using PageFactory so for declare all of the elements(I wrote circa 400 lines). It's so many.
5173
Is there an efficient way to tell if a DOM element (in an HTML document) is currently visible (appears in the viewport)?  (The question refers to Firefox.)
98258
Currently some things on a question page update "dynamically" (with AJAX without page reload). That includes the number of votes for a question and some other things.  I propose to update dynamically also the number of views of the question. Personally I often click Reload in the browser to see if the number of views has changed. I think this should be automated and without full page reload.
90023
this is my first time to try this "Defer Parsing" thing, and I don't really have an idea how to do it.    Using PageSpeed tool, I found out that one of the reason why my page is loading too slow (currently 92/100) are the scripts. And the PageSpeed suggested that I need to Defer Parsing all those scripts.  Is there anyone that can help me with this. Thanks.
26657
Below is my code to read items from a document library.  var url = _spPageContextInfo.webAbsoluteUrl + "/_api/web/lists/getbytitle('DocumentList')/items?$select=customerID"; $.ajax({       url: url,       method: "GET",       headers: {           "Accept": "application/json; odata=verbose"       },       success: function(data) {           $.each(data.d.results, function(index, item) {             arrayCustomerID[index] = item.customerID;         });       },       error: function(data) {           console.log("error");       }   });     This work for the normal case but what should I do so that it works if I have more than 5000 items in the document library.
81188
Just wondering if there is anything built-in to Javascript that can take a Form and return the query parameters, eg: "var1=value&amp;var2=value2&amp;arr[]=foo&amp;arr[]=bar..."  I've been wondering this for years.
44255
I am trying to insert a chunk of HTML into a div. I want to see if plain JavaScript way is faster than using jQuery. Unfortunately, I forgot how to do it the 'old' way. :P  var test2 = function(){     var cb = function(html){         var t1 = document.getElementById("test2");         var d = document.createElement("div");         d.id ="oiio";         d.innerHtml = html;         t1.appendChild(d);         console.timeEnd("load data with javascript");     };     console.time("load data with javascript");     $.get("test1.html", cb); }   what am i doing wrong here guys?  edit:  Someone asked which is faster, jquery or plain js so i wrote up a test:   plain js is 10% faster
7837
Is DOM the only way to parse JSON?
16364
How can I reference the script element that loaded the javascript that is currently running?  Here's the situation. I have a "master" script being loaded high in the page, first thing under the HEAD tag.  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&gt; &lt;head&gt; &lt;script type="text/javascript" src="scripts.js"&gt;&lt;/script&gt;   There is a script in "scripts.js" which needs to be able to do on-demand loading of other scripts. The normal method doesn't quite work for me because I need to add new scripts without referencing the HEAD tag, because the HEAD element hasn't finished rendering:  document.getElementsByTagName('head')[0].appendChild(v);   What I want to do is reference the script element that loaded the current script so that I can then append my new dynamically loaded script tags into the DOM after it.  &lt;script type="text/javascript" src="scripts.js"&gt;&lt;/script&gt; loaded by scripts.js--&gt;&lt;script type="text/javascript" src="new_script1.js"&gt;&lt;/script&gt; loaded by scripts.js --&gt;&lt;script type="text/javascript" src="new_script2.js"&gt;&lt;/script&gt;
101554
So I have a textarea with summary and I want to display the summary before the content. So if I just use {{ content.body }} the text is displayed without the summary.  How can I get the summary ?  {{ content.body.summary }} doesn't seem to do the trick
86540
How do you get the caret position in a &lt;textarea&gt; using JavaScript?  For example: This is| a text  This should return 7.  How would you get it to return the strings surrounding the cursor / selection?  E.g.: 'This is', '', ' a text'.  If the word “is” is highlighted, then it would return 'This ', 'is', ' a text'.