I would like to implement a map simmilar to this: http://gmaps-utility-library.googlecode.com/svn/trunk/markerclusterer/1.0/examples/advanced_example.html
One of the desired features is ability to save a screenshot of the visible fragment of the map, along with the markers. Do you have some ideas how can I implement such a feature?
I k...
I have a user interface that makes use of scriptaculous draggables and droppables, and it works quite well, except that in IE6 performance of draggables is horrible when you have too many.
I am thinking a potential way to resolve this is to have some javascript that ononmouseover or onmousedown will make the element draggable, but onmou...
Hi folks,
I am hoping that this will have a pretty quick and simple answer. I am using regular-expressions.info to help me get the right regular expression to turn URL-encoded, ISO-8859-1 pound sign ("%A3"), into a URL-encoded UTF-8 pound sign ("%C2%A3").
In other words I just want to swap %A3 with %C2%A3, when the %A3 is not already p...
Hi
I'm using the combination of json_encode (PHP) and JSON.parser (Javascript from json.org) for passing a JSON object from PHP to Javascript, the JSON object may have quotes and double quotes so I'm using addslashes() function in PHP. This combination work well in Firefox but not in other browsers like Safari, Chrome or Internet Explor...
I've bumped up against this before and I need the help of someone smarter than me!
How can I attach an event of an element to a method of a class? More specifically, the same class? Is there a better way?
Using a Qt widget style approach, I've been trying to create self-contained "widget" objects in javascript. I'm using the Prototype...
I have returned object from signature device and when i make quick watch on it, it told me that its an array of long and when i pass it to web method in my code behind (vb.net) it gives me nothing.
i need some help..
note: i'm using an activeX to capture the signature from the device.
this is javascript code :
function OnSave() {
...
By default I have 5 textboxes. When a user clicks on a button, one textbox should be added.
How could I do this?
...
I'm using the strict xhtml on my website, so I don't have the "Iframe" element. Instead, I'm trying to use the object tag.
I want to dynamically open content, so I've got a javascript function like this:
<object id="oPageName">
<script>
function openPage(pageName) {
var ifContent = document.getElementById("oPageName"); ...
I use the following code to display a popup:
var win = window.openDialog("chrome://broceliand/content/view/popup/nameMapPopup.xul",
"",
"all=no," +
"titlebar=no," +
"chrome=yes," +
"toolbar=no," +
"dialog=no," +
"resizable=no," +
"modal=yes," +
...
What is the best way to put javascript/html/css code in the maven repository, so that is easily usable by java projects.
Is there a way to do it such that the included project can be easily made "web-visible" by the including project?
For example assume I write a very useful tricks.js file an put it in the mvn repository.
Is it possib...
i'm using this to generate a textbox dynamically:`
<html>
<head>
<title>Dynamic Form</title>
<script type="text/javascript" >
function CreateTextbox()
{
var i = 6;
createTextbox.innerHTML = createTextbox.innerHTML +"<input type=text name='flow'+ i/>"
i++;
}
</script>
</head>
<body>
<form name="form" action="post" method="">
<input type...
This is a simplified partial version of my code to demonstrate the issue:
function testFunc(){
var randomNum = Math.floor( Math.random() * 100 );
if( !flag ){
addEvents();
flag = true;
};
function checkNumber(){
alert(randomNum)
}
function addEvents(){
$("#someElement").click(function(e){ chec...
I'm looking for a simple to integrate date picker object, which would be triggered when someone focused on a particular textbox. When a user clicked or focused on a textbox, the date picker interface should pop up, with the current date on it, and the user could easily select the date. When done, the textbox should have the date in the f...
I have a textbox with an 'Add to clipboard' button next to it. Whenever the copy to clipboard button is pressed, I want the contents of the clipboard to get copied to the clipboard, and work in a cross browser way across Internet Explorer, Firefox, Chrome, Opera, etc. I can use jQuery or plain JavaScript.
How can this be done?
...
I am having one problem with the PHP json_encode function. It encodes numbers as strings (e.g. array('id' => 3 becomes "{ ["id": "3", ...) When js encounters these values, it interprets them as strings and numeric operations fail on them. Does anyone know some way to prevent json_encode from encoding numbers as strings? Thank you!
...
Lets say I have the following array in JavaScript:
var skins = new Array('Light', 'Medium', 'Dark');
How would I go about checking to see what ID in that array (0, 1, or 2) has a matching value to a string I give it. So for example, if I look at a string of 'Medium', I should be returned the ID 1.
...
If I have this select:
<select id="days">
<option value="0">Today</option>
<option value="1">Yesterday</option>
<option value="7">Last week</option>
</select>
and someone selects the 3rd option 'last week', I can get the value of last week (which is 7), using $("#days").val(), but how can I get the va...
I have a fancy web page with lots on JQuery included.
Currently i am struggling to find a solution to make it keypad driven.
I want the buttons on the page to be clicked when the user press some key combination
(e.q. save should happen if the user click on Ctl+S button on the keypad.
Does anyone have experience doing something similar?
...
I have been playing around with jQuery for a bit now, and am really curious how far someone would be able to take this.
Has anyone seen (or written) some jQuery code that did some memorable animation? Something that stood out. I am quite interested in seeing some ideas.
Please post your experiences. Thanks.
...
I want to run a function when a user edits a contenteditable div. What's the equivalent of an onchange event?
Thanks.
I'm using jquery so any solutions that uses jquery is preferred. Thanks!
...