I have been looking into how you could use Javascript to direct focus to a Flash movie. I've seen it discussed on Stack Overflow and other sites and it seems you cannot do this reliably except in Internet Explorer. I am just calling the .focus() method on a Flash object via Javascript.
It does in fact work in Internet Explorer, but I ...
I noticed this effect within both Apple's me.com service (the login page, if your user/pass is wrong it does the effect I'm trying to replicate) as well as within WordPress' login.
Its basically a JavaScript implementation of the effect when you type in the wrong username and password on a Mac.
Does anyone know if something like that h...
How to call javascript function when using validation controls on GridView.
I am trying to call confirmDelete function on delete button of GridViews delete button.
I dont have a code as of now. But when I was trying it was throwing an exception at javascript
...
My wordpress template uses facebox to display portfolio images via ajax requests.
The problem is the images load in different positions depending on the viewers screen size.
My template uses
$('#facebox').css({
top: getPageScroll()[1] + (getPageHeight() / 10),
left: 385.5
}).show()
The facebox site uses
$('#facebox')...
Possible Duplicate:
Jquery: how to sleep or delay?
var main = $('#main_content');
main.append("<img id=\"throbber\" src='/pre_config/css/images/throbber.gif' alt='Loading. Please wait.' />");
sleep(3000);
$("#main_content").load("/pre_config/function.php?type="+type+"piz&count=1", successCallback );
I want to sleep for 3 sec...
Here's what I tried...
I put this in a file called <mySbtBasedProjdir>/src/main/webapp/static/simpleForLoop.html
<lift:surround with="default" at="content">
Why is this a problem in liftweb?
<script type="text/javascript">
var i=0;
for (i=0;i<=5;i++) {
document.write("The number is " + i);
document.write("<br />");
}
<...
I have a frame page....
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
<title>Main title</title>
<script type="text/javascript" src="JS.js"></script>
</head>
<frameset rows="10%...
For example i've a php script with this content:
<?php
$msg = addslashes("I'm a message. The what happened >:(");
echo "<script>alert($msg); return false;</script>";
?>
But the alert get broken by the last "(". How can i solve this?
...
Did you notice the scrolling trend bar on twitter home page.
What is the right way to do it with jquery? I hear jquery is better than javascript.
...
I'm working on a layout where the main content div will have a with of 970px. Behind this div, I want a div with dimensions 1200x600px (it will contain a flash object) positioned like so:
width:1200px;
height:600px;
position:absolute;
left:50%;
margin-left:-600px;
The problem is when the browser is sized to a width smaller than 1200px...
Is there a way to wipe out all CSS rules once style sheets have already been loaded?
I have to use a proprietary JavaScript library (ESRI's ArcGIS Server API) which is built on top of Dojo. I make extensive use of Dojo's widgets and would like to use Dojo's claro theme but unfortunately the ESRI library mungs up the CSS by loading in of...
Possible Duplicates:
How to Copy to Clipboard in JavaScript?
How to copy text to clipboard in Firefox 3.5?
Hi,
A link has a anchor text, when i click on it, that anchor text should be copied to clipboard, and the link should open in new window. How can this be done in cross-browser way (especially firefox)? Thanks
...
I need to rewrite a querysting using javascript.
First I check to see if the variable is present, if it is I want to replace it with a new search term. If it is not present then I just add the new variable
I'm able to get it to work with simple terms like hat, ufc hat
whitespaces are %20, so ufc hat is really ufc%20hat
I run into probl...
I have a div that can be horizontally scrolled back and forth by clicking and dragging. What I need now is to get the cumulative change in the mouse's x-axis position while dragging around, even before onmouseup.
The heart of my problem right now is that because onmousemove fires every time the mouse moves 1px, the delta intervals are ...
I'm trying to find a way to suppress all javascript errors that occur, including those that are invoked from the firebug/chrome console.
It's not that my code is buggy or anything, it's more of an experiment :)
Window.error is only working to a limited degree, are there any other ways I can block the errors?
Thanks!
...
Hi,
I have a "login" button with a "click" function that redirects the user to another page.
But the thing is that after the user clicks on the "login" button a "fade" animation should take place, before the user is redirected to other page, and that is not happening, i.e. the user cant see the animation since he/she is redirected imm...
I have to find current url and if it is equal to "http://localhost/mysite" then I need to put below code.
Example (pseudocode):
If(FindCurrentURL.ContainsString("http://localhost/mysite")){
.ms-quickLaunch { display: none; }
}
How to find URL and that contains above URL?
...
In the following code all of the tabs initially display their proper text (Home,Reports,Setup,Documentation,Support). When any of the ajax tabs are clicked (Home, Documentation, Support) the text on the tab changes to "Loading...". However, the 2 non ajax tabs (Reports and Setup) keep their text. How do I keep it from going to "Load...
I've tried reading the existing posts on this subject, but haven't found a solution that works for me. I'm sure this is a common problem and someone probably has implemented a solution...if so, and you could help me out I would really appreciate it.
I have a webapp that needs to execute a logout script when the user either closes the b...
For CSS dropdown menus, I usually stick with the Son of Suckerfish dropdowns. The technique works extremely well, but there's one small thing that's always bothered me: the width of the dropdown links is always fixed.
Are there any ways to automatically resize the width of the items in a Suckerfish dropdown menu? If not, are there an...