function loaded() {
document.addEventListener('touchmove', function(e){ e.preventDefault(); });
myScroll = new iScroll('scroller');
}
document.addEventListener('DOMContentLoaded', loaded);
If its possible...
Thanks :)
...
Hi all,
I have an app which has a form that used to use AutoPostBack rigged controls (dropdowns, radiobuttons etc.) in an updatepanel, and I used to set session values on each postback. I posted the form using PostBackUrl to an external page, using a bit of javascript OnClientClick to copy my data into meaningfully named hidden fields.
...
Dear all,
I have some trouble as simple as debugging a for loop or a while loop.
Do you have any clue? a function that returns data without any iteration works fine but not the loop.
<script language = "javascript">
function h(arr)
{
<![CDATA[
var ref = arr[0];
i = 0
while(i<arr.length){
...
How can I filter more than one list item with one checkbox? Thanks.
<html>
<head>
<script type="text/javascript">
<!--
window.onload=function()
{
document.getElementById('onclick').onclick=function()
{
var check=document.getElementsByTagName('input'),
lis=document.getElementsByTagName('li'),i=0;
for(var i;i<check.lengt...
I want to set a page's base href attribute in Javascript based off of the current hostname. I have generated HTML pages that can be viewed on different hostnames, which means generating a base href tag will work in one hostname but will be incorrect in the other.
...
I'm struggling to find any up to date relevant information on how to achieve this effect in google maps. I was hoping someone knows more than me on the subject and could point me in the correct direction..
The problem:
I need to plot X amount of pins on a map via a postcode.
The second step is to enter my own postcode and product a...
Hey
I'm trying to round down a number to the nearest say 15, 20, 30. ie
726 to the nearest 30 is 700
714 to the nearest 15 is 700
etc
VBScript code would be very helpful but pseudocode would also be a huge help!
EDIT: Sorry, I forgot to say, that 726 is really a time expressed as an int, ie 07:26. So this should be 07:00, not 690
E...
I am currently trying to implement this into my current code:
http://cubiq.org/iscroll
I have been using jquery this whole time in my code, but iscroll was created in all javascript.
Is there any way to get this to work without having to change all of the javascript into jquery format?
I am developing for an ipad and I need the ability ...
I am getting a syntax error on line 13...
line 13:
"c001": {type:"tool", id: "webconference", name:"Web Conference Tool"}, // web conference
Can you help me fix this? :) Thanks.
//assuming jquery exists
/* notes:
a lot of the functions need to either return jQuery or jQuery.ib, and if jQuery.ib then I need a .stop() function th...
i have the following map of the world:
<!--
copyright (c) 2009 Google inc.
You are free to copy and use this sample.
License can be found here: http://code.google.com/apis/ajaxsearch/faq/#license
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http...
Is there any difference in the two definitions and assignments of functions?
this.foo = new (function () {..})();
vs.
this.foo = function (){...};
...
Is there an easy way to create vertical dividers between HTML table columns? I want to add thick bars, but the only good way I've seen to do this is to distort table data add TD's.
Is there a way to add vertical dividers between columns of a table using only jQuery+CSS?
My table structure is pretty simple.
<table>
<thead><tr><th>...</...
I need to be able to detect if an image is broken and replace with a default image if the image link is broken. I know i could do this with an image proxy, but was hoping to do it on the fly with javascript.
...
I am scraping sites, and I am doing this one at a time, and then trying to get the results to display AS I get them. I am trying to render one TR at a time, but instead, it does every single one, and then renders ALL the TRs.
Here is the call to javascript:
<body onload="getOffers(companies , {$scraped}, {$isbn13});">
Here is the JS/...
I'm working with an embedded (Active X?) instance of IE within a VB6 application.
The browser displays demographic information based off the selected person (displayed as a list).
Everything works great until I try to quickly select different people from the list (clicking randomly over different people as fast as I can). After a few c...
I have this code, and I'm trying to add a fadeIn once the content.replace is fired.
I've tried quite a few ways, and can't seem to find the magic bullet.
function add_fields(link, association, content) {
var new_id = new Date().getTime();
var regexp = new RegExp("new_" + association, "g")
$(link).parent().before(
content.repl...
I have some code in which I need the ability to add child nodes to a jstree which themselves contain children. The below code adds a 'child2' node correctly to 'child1' but ignores the child3 data. Any help much appreciated. Code follows:
<html>
<head>
<script type="text/javascript" src="http://static.jstree.com/v.1.0rc2/jquery.js">&...
Hi guys, I need to modify dinamically a Javascript inside my UIWebView. I load a file html locally, inside the Documents folder of my app.
I need to create a var attributes like this:
var attributes = {
"feedURL": "http://www.obliviux.com/?feed=rss2", //insert NSString *RSS here
"maxAgeToShow": "-1", //insert NSString *maxAge ...
I need to pass a set of values in a form such as name, lastname, age, etc. to a PHP file in a different subdomain.
For example, form.html is located at http://subdomain1.website.com/form.html, when I press the submit button it passes the data in the form to http://subdomain2.website.com/doform.php and inserts it into the database.
How ...
I have this website which has a slider in the middle of the page. I put a video in the slider but the problem is when I play the video I need the slider to stop its effect so the video can play. Any ideas how to make this happen.
Here is the website it is on.
http://flamingoroadchurch.com.previewdns.com/
...