I have been playing around with Google maps API v3 because v2 is depricated and no longer works for my site
Instead of displaying every pointer in the xml file on the map, i want to display the current marker that would be relevant to that page. I have an events page so i want to show info about the event and display a map just for tha...
Hi everybody,
I'm trying to highlight a piece of text in a "Textarea".
I have a long string in that TextArea:
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo conseq...
I have a mobile site at m.site.org and the main site at site.org I am using htaccess to redirect other pages but not sure if it's useful in this case.
If people are on a mobile phone and they go to the main site I want them to be redirected to the mobile version. Once on the mobile version we have an option to go back to the full site s...
I am wondering on how do I get to show movies, tv series, anime etc. that came out on DVD's to my site l;ike http://www.blockbuster.com/ does. Can i just feed it off IMDB or any other solutions?
Thank you
...
When you have a remote datasource and min character limit, typing a few letters, deleting them, then typing the same ones gives no results. You can see this on the example: http://jqueryui.com/demos/autocomplete/#remote - try typing 'pi' (get results), delete it and type it again (no results).
Can anyone fix it or work out how to log th...
I am using JQuery to add a row to a table. Within the row is an element who's click event I am capturing:
$(document).ready(function() {
var newRow = "<tr> ... </tr>";
$('tableName > tbody:last').append(newRow);
$(...).click( function() { // click event on newly inserted elem in the row
alert("click");
});
}
This ...
Hi,
is there a data structure or a pattern in Javascript that can be used for both fast lookup (by key, as with associative arrays) and for ordered looping?
Right, now I am using object literals to store my data but I just disovered that Chrome does not maintain the order when looping over the property names.
Is there a common way to ...
Seems like a simple problem, but can't get this to work.
In the example below, unselect is called but the public variable 'this.backSelected' is undefined. If I move the code of the unselect method directly into the public off method it works.
how would I check a public variable in a private method? I don't understand why this is nor w...
I am using the Picasa Web Integrator (PWI) code, wich allows me to present a picture gallery using a picasa account. Using a form the user writes a keyword and then a code creates a div and calls for the PWI. It works perfectly, but I'm trying to add a "back"
button in order to let the user select a different keyword without refreshing....
I have recently started using the wdClendar jquery plugin for one of my intranet sites. It works great but there have been a couple requests made that I cannot seem to work out. I have the calendar defaulted to displaying a month view. When the page is first loaded, the location where the date range should be just says "Loading". I have ...
Possible Duplicate:
Detecting an undefined object property in JavaScript
Would it be like this?
if(variable == undefined) {
or would it be like this?
if(variable == "undefined") {
...
this is my file omploader.org/vNWJieg/1.png:
and this is my code:
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>jsTree v.1.0 - full featu...
I have a regular expression to match usernames (which functions in PHP using preg_match):
/[a-z]+(?(?=\-)[a-z]+|)\.[1-9][0-9]*/
This pattern matches usernames of the form abc.124, abc-abc.123 etc.
However, when I take this to javascript:
var re = new RegExp("/[a-z]+(?(?=\-)[a-z]+|)\.[1-9][0-9]*/");
I receive a syntax error:
S...
need javascript to set an selected index for RAD combobox to 0
...
I want to do this
if (typeof(variable) == "undefined") {}
does this work in selenium?
...
I know, a very simple question, but I don't know!
I have:
.touch img{
-webkit-transform: scale(2);
}
How would I make that activate when someone clicks on the element?
Thanks!
...
I have a form with two buttons, each with onclick = this.form.submit(). I have a hidden field in the form, and I would like the value of the field to be different based on which button is clicked. What would be the best way to do this?
Also, before anyone says it the answers, jQuery is not an option in this case.
...
Take a case, I want to use multiple javascript libraries into one page like jquery, mootools, scriptalous.
Is it a good idea? Should I do ths?
...
Is there any way to add template tags into javascript and css files? I would use it for anything from passing in urls to media url links (image paths, etc) to conditional javascript based on user permissions.
I just had a thought that maybe I can serve it up as if it were a template but have the url as my javascript file. Is that the o...
window.global_array = new Array();
window.example = function()
{
var x = new Object();
x['test_property'] = 3;
global_array.push(x);
}
Javascript gurus, please answer three questions:
will javascript delete x at the end of scope when example() returns, or preserve it inside global_array.
can I safely assu...