Hi All,
Quick question regarding Google Maps, AJAX and some back end data.
How would I go about creating google map that updates in "real time" with information I have stored in the database?
The way I see it working in my head is.
Database collects geo tagged entries from users.
A script (probably php) retrieves the latest record.
...
I am using the "Cookie Plugin" by Klaus Hartl to add or update cookies at $(document).ready. I have another event that is supposed to iterate all the cookies and do something with the value of each cookie. How can I iterate over the collection of cookies and get the id and value of each?
I'm thinking something like this:
$.cookie.each(...
I'm working on a bit of code where I'm attempting to hide some private variables inside closures. The thing is the environment is fairly constrained in terms of memory, so I'm also concerned with keeping the overall footprint of the classes low.
What is the impact of using closures to hide private instance variables and methods when com...
I am trying to put Facebook connect button on the site and once connected display connected username. But for some reason following code goes into some infinite loop during first connection, and then works fine unless I delete this app from my facebook profile which causes freezing again.
Here is a code on FB connect button click:
FB....
Is separation of Content, presentation and behavior possible every time ?
Many time through javascript we add classes to html and we use in CSS visibility:hidden inline.
Should we always invest time ti keep all separate?
...
It seems like cookies and querystrings are firmly established in the web world. Nevertheless, javascript makes you do all kinds of splits and parsing to get at the keys and values. Anyone have any insight on why there isn't more intuitive native support for things like cookies and querystrings?
Admittedly, there are plugins and framewor...
I have created a DIV with attribute contenteditable=true and appended children like "span" and "a" with attributes contenteditable=false. Wanted to test if the entire node be deleted with a single backspace and to my surprise Firefox couldnt delete the elements. Also this works as expected in all major desktop browsers except Firefox. An...
Hello,
I am curious how can a javascript (or also benefiting from jquery) based progress indicator such can be developed:
My first idea is something such as:
function drawBar(total,sofar){
.........................
}
where it consumes the max number(20 in our case) and sofar (15 for the picture).
But how can it be implemented?
I...
Hello,
I could never view a script correctly in Firebug,every one of them is displayed in one line.Like shown on the image below:
How do I view it correctly so I could debug it?
Thank you in advance!
...
If I have
<div id="curve" style="position:relative; height:100px; width:100px; />
How would I make it move on a curve? I've googled and everything but can't seem to find another example that would call two functions at once. This is the kind of code I would like, but doesn't work:
$('#curve').click(function () {
$(this).animate(
...
First off I apologize... I have posted this question before but I did a bad job of explaining it. I'm having trouble plugging hoverIntent into the following JavaScript... I need it to replace the "mouseenter" and "mouseleave" functions below. Just to be clear, I'm asking for help because I'm not very good with javaScript syntax. The s...
Hi Guys, I have a quite perflexing problem that I have researched and come up blank;
Scenario:
I have a form, with the jQuery bassistance.de's validate() plugin (http://docs.jquery.com/Plugins/Validation).
Does the job on submit perfectly, however; I two types of submit button.
One submits the form as usual, triggering my back-end v...
Here is my problem. I'm working within a CMS and users are able to create hyperlinks (both internal and external) I'm wondering if there is a good way to check when a user clicks a link if they are navigating to an external site. I don't want to do anything if they use the back/forward buttons, type something into the address bar, etc...
As a Flash and Flex developer it is a little disheartening to see the strides in HTML5. Don't get me wrong I have nothing against progress, for me it is just that currently it is easier to write an app in Flash vs AJAX. I love writing in Flash and Flex and think ActionScript is a really great language. But, it appears the strides made in...
Does inline css and javascript really affects to site SEO?
...
Hi
I have some java script code, which needs to run against my gridview when it loads up to the page. The gridview itself is dynamically added to the page through a user control.
To apply the script, I have written the following code, which is applied using page pre render method: gridview1.attributes.add["onload"] = "configureGridview...
I have the following bit of code. I'm trying to dynamically add drop-down options to a second drop-down based on the selection in a first drop-down. Both are generated through an Ajax call to a script that pulls the data from a database. Here is the relevant code.
function setSub(doc) {
// Setup some variables
var sNode = docume...
I'm looking for a reference that summarizes all of the available Javascript APIs that are introduced with HTML 5, for each browser that has implemented any of the new features. Does something like this exist? If nothing else, then at least the VIDEO tag
...
I've been looking for a replacement for Python's __getattr__ in JavaScript, and a couple answers here mentioned Firefox's __defineGetter__. Not only is that not cross-browser compatible but it doesn't really allow for you to do anything really useful like this pseudo-code does:
var api = function()
{
var __getattr__ = function(attr,...
Here's a switch. I used to have problems getting display:none to work in Firefox. Now it's IE6 that's driving me insane.
I am modifying a website for a friend's company, who unfortunately is still running the lion's share of machines on IE6. I have a web form (ASP generated, but that's not where my issue lies) that stores contact inform...