Hi all
I am trying to get a mouseover script to work,
when there is no doctype set the script works fine in all browsers I test, but the site looks like a dogs breakfast
However When i set the doctype to transitional (it has to be this doctype)
Firefox and IE8 (&compat mode) work fine
But Opera and the webkit browsers can only displa...
Hi ,
I have an image on which "click to edit" is written now when i click that part i want to show edit box where "Type 1" is written.
I have tried to put edit box but unable to get the click event ...
here is the image
http://www.freeimagehosting.net/image.php?55dd1b316d.png
...
I'm using PHP to json encode a massive multi-dimensional array of events, so i get something like this:
var ents = {"7":{"event_id":"7","nn":"The Whisky Drifters","nn_url":"the-whisky-drifters","venue":"The Grain Barge","date_num":"2010-06-11","date_txt":"Friday 11th June","gig_club":"1","sd":"A New Acoustic String Band...","ven_id":"44...
Hello everybody,
I have created an array with:
var msg = new Array();
then, I have a function that add values to this array, this function is:
function add(time, user, text){
var message = [time, user, text];
if (msg.length >= 50)
msg.shift();
msg.push(message);
}
As you can see, if the array has 50 or...
Hi,
How can I add folder to favorite web sites by js or other scripts?
Thanks
...
I have a basic html form that adds some data to the page using PHP. I want to make this form field a "Price" field. My html is:
<input class="bids" name="comment" id="comment" tabindex="4" />
How can I fix this field so that users can't enter random letters, dollar signs, dashes, or other weird formats. I want the output to be wh...
Hello,
The PHP code below echoes a link if the "loginid" of the logged-in user is on a list determined by getEditorList();. It works fairly well, but I think it might work better if I were to do it with Javascript instead.
How could I accomplish the same thing with Javascript?
Thanks in advance,
John
$editors = getEditorsList();
...
I am wondering if it is OK to use multiple javascript frameworks for example (jQuery, Raphael) in the same script (handling event & ajax with jQuery and drawing with Raphael) ?
...
How would I intercept all pages and images on my website to add the header on my website?
For example, if somebody went to "www.bla.com/submit.png" it would include my header, and the image.
...
Can have a try here.
Whatever you entered into the editor will remain there after refreshing,
Anyone knows the trick?
UPDATE
doctype also has this feature.
...
Hi, I've got two scripts: 1.php and 2.php. Here they are:
1.php
<?php
header('Pragma: no-cache');
header('Cache-Control: max-age=1; no-cache');
header('Expires: Tue, 1 May 1985 01:10:00 GMT');
header('ETag: "'.md5(rand(1, 1000)).'"');
print date('H:i:s');
?>
<a href="2.php">pay</a>
2.php
<a href="javascript:history.back()">back</a...
I need a simple graphics library that supports the following functionality:
Ability to draw polygons (not just rectangles!) with RGBA colors (i.e., partially transparent),
Ability to load bitmap images,
Ability to read current color of pixel in a given coordinate.
Ideally using JavaScript or Python.
Seems like HTML 5 Canvas can hand...
Hi,
I need to validate a date in a web forms application. For this I use a CompareValidator with
Operator="DataTypeCheck" Type="Date"
The problem is that this Validator doesn't work properly on Firefox with 2 digit years. ( javascript error: m[2] is undefined)
With a 4 digits year it's working properly.
This problem is described al...
I'm using jQTouch and Phonegap to write a simple iPhone app which i'm planning to release through the App Store.
Part of the planned functionality will let the user update their twitter or facebook status with the output of the App (some text, possibly a link).
Before I go ahead and start rolling my own solution, are there any JS libra...
Hi,
Not sure if this is possible or even if I should do it, but I think it's quite interesting.
I have a javascript file which I'm referencing in a flat HTML page. I'd like to pass in a parameter or two via the path to the script. Like this;
<script src="/scripts/myJavascriptFile.js?config1=true" type="text/javascript"></script>
N...
Hi everyone. I'm having some problems with parsing the xml response from my ajax script. The XML looks like this:
<IMAGE>
<a href="address">
<img width="300" height="300" src="image.png class="image" alt="" title="LINKING"/>
</a>
</IMAGE>
<LINK>
www.address.com
</LINK>
<TITLE>
This
<i>is title</i>
</TITLE>
<EXCERP...
I've been futzing with this for hours trying to figure out why codemirror.js won't load in any browser other than Firefox. Any ideas?
index.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title><...
Would it be possible to assemble an image on the browser by 'concatenating' other downloaded images together?
The use case is this.
The page will display 36 different tiles (small images). The user should be able to arrange those tiles into a 6 x 6 grid and save the resulting grid to disk as an image.
The best solution would be to do ...
i am tracking the mouse movements of a user using javascript and storing it along with the browser resolution.
Then i can check the user mouse movement in my browser which is 1024 x 768 resolution.
But if the user is using a browser in 800 x 600 then the mouse movements are recorded wrt 800 x 600. And when i see the mouse movements in 1...
I hope this will work
var Human = function() {
this.name = "baby";
this.age = 0;
}
var Man = function() {
this.sex = male;
}
Man.prototype = Human;
But
var Human = {
name:"baby",
age:0
};
var Man = {
sex:"male"
};
How to inherit one object from another while objects are created using object literals in javascri...