i m creating a web application, after login user navigates to home page where i have a navbar(Links to pages/url).Navbar is like this
Home-Nvigates to home page
Profile-Navigates to profile page
Chat-navigates to chat page when user clicks on chat link .
I want that when user closes the browser window ,accidentally or manually he should...
I have some divs with just a width, height, and border. I am using:
$(".the_divs").bind("mousemove",function(ms){
do_stuff(this);
});
My divs do not have any background css set (so you can see what is behind them). However, ie6 only fires the mousemove event when the mouse is over the border of the div. So, if you quickly move th...
Hi! How can I indent each line of the selected text in a textarea control using JavaScript. Something similar to the Code Sample button of the Stack Overflow's editor.
UPDATE: Viewing the code of And, I wrote a solution, but only works with Firefox (also).
The functions is:
function indentSelection() {
var selection, newValue;
...
I'm working on a site and using JQuery for essentially the first time. I've mostly used MooTools for previous projects, and I have a few widget classes I've written using the MooTools Class structure. I'd like to port them over to JQuery, but it looks to me like there is nothing similar to the MooTools functionality when it comes to ob...
I have iframe with with form elements such as input, select textarea etc. I need to get whole iframe content with entered values to those elements. In IE 7,8 it work fine, but in FF I'm getting empty or default values instead.
Here is code snippets:
Iframe content
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;...
I'd like to host some images on my website and let people post URL's to them. However, I don't want people to have to be redirected to my website to view them. Is there some way to setup my site so that no matter where the URL is posted, it will open up without changing pages? Similar looking to lightscribe?
...
Hi all,
Is it possible to use a @Script component to render a script tag pointing to a js file hosted on a different server?
Basically, I need to inject a script tag such as:
<script src="http://otherserver.com/script.js"></script>
but I need to have it render in the head, or at least before other tapestry scripts are rende...
I have a webpage. There is a button called add. When this add button is clicked then 1 text box must be added. This should happen at client side only.
I want to allow the user to add at most 10 text boxes.
How can I achieve it using javascript?
example:
only 1 text box is displayed
user click add >
2 text boxes displayed
user clicks ...
I wrote some bookmarklets to automate some tasks on a webpage. I'd like to be able to store a value somehow, so that when I run a bookmarklet the second time, it will see that it exists, and try to use it.
I'd like to be able to do that using pure javascript. Kind of like greasemonkey's storage.
...
i have the below prog
Object.prototype.inherit = function(baseConstructor) {
this.prototype = (baseConstructor.prototype);
this.prototype.constructor = this;
};
Object.prototype.method = function(name, func) {
this.prototype[name] = func;
};
function StrangeArray(){}
StrangeArray.inherit(Array);
StrangeArray.method("push", func...
This is pretty interesting, this site runs a speed test and compares all of these;
PureDom
jQuery 1.2.6
jQuery 1.3.2
Prototype 1.6.0.3
MooTools 1.2.2
qooxdoo 0.8.2
Dojo 1.2.3
Dojo 1.3.1
YUI 2.7.0
Javascript frameworks Speed Comparison
Bases on this it seems like the newest jquery version is almost 2x faster then the older version, h...
After a positive experience with Venkman for XUL development some time ago, I am trying it on a page in Firefox now. I am a bit rusty and can't get over the first hurdle of setting the cono page to the console's evaluation context.
My procedure:
Installed Venkman add-on from mozilla.org
Loaded my page and selected Tools -> JavaScript...
I'm having problems with a transparent PNG image showing black dithered pixel artifacts around the edge of the non transparent part of the image. It only does this in Internet Explorer and it only does it from a Javascript file it is used in.
Here's what I'm talking about...
http://70.86.157.71/test/test3.htm (link now dead)
...notice ...
Hello
I want to implement a javascript graph plot application (ie http://people.iola.dk/olau/flot/examples/turning-series.html) to the existing admin view, where the instances of a model at the listing view also showing charts of these items and can be filtered through by using the already implemented list_filter option which I added at...
AIR seems to keep its own DNS cache when an application is running, and ignores any changes to the OS DNS cache (i.e. ipconfig /flushdns).
More specifically, I'm creating multiple URLStream & URLRequest objects over a long period of time in a AIR application. Once the first one connects the host's IP address is cached for the lifetime...
Hey guys,
I am trying to insert PowerPoint slides into HTML preserving links in the PowerPoint slide. I was just wondering if any of you knew a good method to maybe exporting a PowerPoint slide to an HTML and then displaying it in a div on your page, with a link to say do a JavaScript function on that same page.
...
Hi
I'm not massively experienced with JavaScript and I'm having trouble with variable scope and jquery. I have the following structure:
function pass_variables()
{
username = "efcjoe"
response = post_variables(username)
alert(response)
}
function post_variables(username)
{
$.post(
'/path/to/url/',
{
...
prelude: I'm sure this code is ugly so feel free to suggest a better way.
the goal: making a little web store that lets people preview their different configurations of a given product (a belt) as they make their selections. (e.g. red belt with a gold buckle vs red belt with a silver buckle, etc.)
you can see a working version here: ...
I would like to open multiple download dialog boxes after the user clicks on a link.
Essentially what I am trying to do is allow the user to download multiple files. I don't want to zip up the files and deliver one zipped file because that would require a lot of server resources given that some of the files are some what large.
My gues...
I want to have a line of code similar to below:
var name = $('#input-name').attr("value");
However, the id 'input-name' is not guaranteed to exist. How do I check for its existence so that the assignment does not throw an error?
...