Difference between revisions of "Webeshoppin"
From Wiki2
Line 11: | Line 11: | ||
Why doesn't the clich | Why doesn't the clich | ||
http://10.0.1.18/webeshoppin/stuff2get/zmisc/buttonnotfiring.html | http://10.0.1.18/webeshoppin/stuff2get/zmisc/buttonnotfiring.html | ||
===javascript=== | |||
<pre>var myCars=new Array(); // regular array (add an optional integer | |||
myCars[0]="Saab"; // argument to control array's size) | |||
myCars[1]="Volvo"; | |||
myCars[2]="BMW"; | |||
2: | |||
var myCars=new Array("Saab","Volvo","BMW"); // condensed array | |||
3: | |||
var myCars=["Saab","Volvo","BMW"]; // literal array</pre> |
Revision as of 13:16, 30 January 2012
to force a move with refresh method1
location.href= 'food2buy.html?repo=' + rep + '&list=' + lis;
method2
$('#allyourlists').append('<li><a href="food2buy.html?repo=' + rep + '&list=' + lis + '" data-ajax="false" >Repo: ' + rep + '& List: ' + lis + '</a></li>');
Why doesn't the clich http://10.0.1.18/webeshoppin/stuff2get/zmisc/buttonnotfiring.html
javascript
var myCars=new Array(); // regular array (add an optional integer myCars[0]="Saab"; // argument to control array's size) myCars[1]="Volvo"; myCars[2]="BMW"; 2: var myCars=new Array("Saab","Volvo","BMW"); // condensed array 3: var myCars=["Saab","Volvo","BMW"]; // literal array