I have a webapp that I'm building, and have just started with SQLite. I have been able to create my form, open the database I created, create the table, and fields i need, and enter data into the fields.
Now I'm trying to read the data back out with a SELECT statement, to show it on screen and as a list of the columns. I just don't ...
OK jQuery experts : So .. I'm coming from a Prototype background.
I do the following code all the time (or some similar variation):
MyObject.prototype.someFunction = function()
{
var myArray = ["a","b","c"];
myArray.each(function(arrayEntry)
{
this.printPart(arrayEntry);
}, this);
}
MyObject.prototype.printPart = fun...
I have an html page where I cannot put a DOCTYPE (I am not allowed to). Plus, I need to make it work on IE 8!
Then there is a checkbox + label thing.
For example, this:
<input id="daffodils" type="checkbox" title="daffodil factsheet" name="daffodils" value="checkbox" tabindex=2>
<label for="daffodils">Daffodils</label>
<inpu...
Does any one know of any good javascript 3d graphing utility? I know that every site ever recommends Canvas 3d Graph but it is actually quite limiting. For one it only allows graphing with datasets that are within the 1000. Though it does have some capability (with a bit of code modifying) to graph data that are a bit out of its range, n...
Hello all,
I'm completely new to Javascript and Greasemonkey, so feel free to correct me if I'm doing this inefficiently or incorrectly.
In this forum that I post in, clicking the "reply" button brings up a new window with just text form to post in. I want to create a greasemonkey script that adds the script for the reply form onto th...
Here is the code:
//Mouseover start countdown
$("#icon_no_1").mouseover(function()
{
$(this).fadeTo("slow", 0.23);
//Countdown
var counter = 0;
var interval = setInterval(function() {
counter++;
// Display 'counter' wherever you want to display it.
if (counter == 1) {
//Display 1
$('#login_icon_1').fadeIn();
...
Possible Duplicate:
JavaScript: Setting methods through prototype object or in constructor, difference?
I guess this is a question about the browsers implementation of closures really. I know about the numerous ways to emulate Class-like functionality within JavaScript including using various libraries. This is more a questi...
I'm trying to create a simple WebSocket example using the HTML5/JS API. Based on what I trace out on the server, it seems like the socket is connecting, but none of the events fire (onopen, onmessage, onclose, etc). I'm a Flash developer so I'm not very good at debugging the JavaScript and I'm hoping someone can help me out. Here's the c...
Ok, Im wondering if it is possible to transfer the reference of the object to the functions. If you dont understand what im trying to say, this might help:
//so i declare the variable `Editor`
var Editor = new (function(e, d){
this.edit = e;
this.dyna = d;
this.old = ""; //and set these variables inside the object
this....
This has been an age old question and I am aware of the usual reasons for not using for..in or perhaps even objects when any sort of ordering is needed, but I recently came across this article from MDC on the delete operator.
Cross-browser issues
Although ECMAScript makes iteration order of objects implementation-dependent, it may app...
So, my app has a javascript alert... how do I, using cucumber and / or capybara, test that the alert hay a particular string?
...
Hi, I'm trying to figure out how to use Google's code to translate text ONLY if it is NOT English. The code below works if you enter Spanish or another foreign language, but it just repeats English if English is entered (obviously we don't need English translated). Any ideas? Thx.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transition...
I found the count down script in http://www.dynamicdrive.com/dynamicindex6/dhtmlcount.htm
It works fine if i just define the date but when I try to pass the date from this php/mysql query into the js file, it works only for the first record and not after that.
<script type="text/javascript" src ="time.js"></script>//this is the script ...
I'm not sure why this isn't working.
I have a record list of text fields in a form:
<input type="text" id="x1_Order">
<input type="text" id="x2_Order">
<input type="text" id="x3_Order">
<input type="text" id="x4_Order">
<input type="text" id="x5_Order">
...
<input type="text" id="x253_Order">
<input type="text" id="x254_Order">
<input ...
When drawing on a canvas in firefox, if you attempt to draw at or move to a point beyond the bounds of the canvas, an error will be thrown (this is copied/pasted directly from Firebug):
An invalid or illegal string was specified" code: "12
Other browsers won't throw the error. This is for both the drawing methods (lineTo, arc, etc), ...
I am using the following javascript for form validation:
<script type="text/javascript">
function validate_form ( )
{
valid = true;
if ( document.contact_form.contact_name.value == "" )
{
alert ( "Please fill in the 'Your Name' box." );
valid = false;
}
if ( ( documen...
I am getting this error 'Cufon' is undefined on my blog http://microreviews.org The error comes on Line 20, char1.
I also get the error 'dtsv' is undefined on Line 57 and character 3.
The errors comes only on IE7 and IE6 and no other browser. I donot really care for IE6 but the error on IE 7 is a major source of concern. What can be d...
This following script almost does what I need. What I'm trying to do is go through the opened documents, 139 of them, and save them as jpeg. However what it's lacking is moving from one opened document to the other, so it saved the same image over 139 times. I assumed doc.close() would close the opened document and give a new one focus, ...
Hi,
I just read this blog post and it stated that:
Google is now working on reversing the
process -- allowing us to drag files
out of Gmail messages and drop them
onto our local folders.onto our local folders.
My question is: how is this possible?
...
my linkbutton is in datalist, this datalist is in panel, this panel is in ajax updatepanel
if linkbutton is not selected then need to alert a message...
how can i achieve this...
...