I am using the scripts from here http://www.quirksmode.org/js/cookies.html and have successfully created a cookie.. it is set based on the users response to the age drop down. However I am having trouble doing anything with it. I would like to have a style defined if a cookie is present. Here is the bulk of my scripts..
function crea...
I've got a bunch of 'project' divs that I want to expand when they're clicked on. If there's already a project open, I want to hide it before I slide out the new one. I also want to stop clicks on an already open project from closing and then opening it again.
Here's an example of what I mean (warning - wrote the code in the browser):
...
var foo1,foo2;
switch (fn)
{
case "fade" : foo1 = "fadeOut"; foo2 = "fadeIn"; break;
case "slide" : foo1 = "slideUp"; foo2 = "slideDown"; break;
}
eval("$('.cls1')." + foo1 + "();");
currentSlideIndex = currentSlideIndex + n;
eval("$('.cls1')." + foo2 + "();");
Any better way to achieve this without using eva...
Hi all,
Firefox remembers what you have so far entered in a given text input and as soon as you start typing it suggests previous values matching what you have typed so far.
Is it possible to access this list via javascript?
Thanks.
...
i want to make a two drop down lists. the first list has static data( folder structure), so i can use an array for it,and depending on the folder or option selected in the first list, the second list shows the sub-folders in it. but the sub-folders keeps on changing, so i have to use asp fso for it. i am using the following fso code:
<...
I've been experimenting with the canvas tag and Javascript. I've made a page that takes Tweets from the Twitter public timeline and animates them into view. It works by using a canvas element in the background for the animation. When the animation is complete, it creates a div element with the same text over the top. I do this so that th...
Is it possible to add JSF Components using javascript? In my case , on change of a select option , i need to display a different combination of input controls (like text box(s)). I thought i could use a element and innerHTML property to display the dynamic controls.But it seems to not work!!!
<h:selectOneMenu id="browseType" class="Tex...
Hi!
Is it possible to extend the DOM of a new window that I opened, using something like this:
var newWindow = window.open('about:blank', 'testWindow', '');
Element.extend(newWindow);
I thought Element.extend would work.. But I done see any refference to prototype in the DOM.
Any ideas?
Thank you!
Morten
...
I downloaded javascript-uize effects example and all effects are appearing only onclick but i want it to be executed on document.ready() and continue...
<script type="text/javascript">
Uize.module({
required: [
'UizeDotCom.Page.Example.library',
'UizeDotCom.Page.Example',
'Uize.Widget.ImageWipe.xPresets',
'UizeDotCo...
I am using execCommand command to 'Hilite' selected text on the page which is rendered with gecko engine/gtkmozembed.
if ( !document.execCommand("HiliteColor", false, colour) ) {
document.execCommand("BackColor", false, colour);
}
This is working fine with HTML pages. But i have some XML pages( books in xml format). ex...
How to get informed if your PopUp window was blocked BY pop up blocker? (CODE EXAMPLE NEEDED)
...
I have an aspx page with "step" session that load usercontrols accourding to the "step" session.
when step = 1 its loading usercontrol1
when step = 2 its loading usercontrol2
....
....
when step = XX its loading usercontrolXX
I'm using jquery in usercontrol1 and the page is working fine but when I'm moving to step 2 and calling to java...
In JSP page I have written:
var sel = document.getElementById("Wimax");
var ip = sel.options[sel.selectedIndex].value;
var param;
var url = 'ConfigurationServlet?ActionID=Configuration_Physical_Get';
httpRequest = new ActiveXObject("Microsoft.XMLHTTP");
httpRequest.open("POST", url, true);
httpRequest.onreadystatechange = handler(){
if ...
I have a function that is suppose to trigger when user closes their browser and I have put the code in the "window.onbeforeunload" function.
The thing is every time if I reloads the page in Internet Explorer, the onbeforeunload event will also trigger which is a problem because I only wants it to trigger only when the user closes or na...
Dear All,
I m building a wap application.In this no java script/ajax /jquery has been used ,since client side technologies are not supported by handsets.I want that when user clicks on a download image ,by the time it is downloading it should show a static or dynamic page about details of that image/page.Please suggest how i...
Hi Guys,
I'm developing a site which has a flash background playing a small video loop scaled to fill the whole background. Over the top I have a number of HTML elements which are animated using javascript. The problem I am having is that (predominantly in FF, but also in others to a lesser degree) the flash seems to be causing my javas...
Hi Guys,
I am using C# and jQuery to valid a username with Regex. Just learning :) So far I have
UserName = "[a-zA-Z0-9]";
But this doesn't stop symbols ? How to ensure that no symbols or " . " or " _ " ?
Thanks
...
Can we use a Global variable that persists over multiple instances of the browser (FF)?
I am building a ff extension which has to take the host& port name from the user once and then execute the menu options accordingly using that very host and port. This Host and port must remain same untill the user resets it (for which an option will ...
I need a lightbox plugin that is styled similar to FancyBox but will allow me to add text to the same white background as the image. Lightweight because I don't want many features as it's going to be added to an already heavy JS page. Preferably without Ajax features as I'll be handling this myself.
Therefore I'm ruling out the use of T...
if i have 3 html pages as follows:
home.html:
<form method="get">
<input class="someForm" type="radio" value="1" name="someForm" /> Name
<input class="someForm" type="radio" value="2" name="someForm" /> Email
<div id="container"></div>
<input type="submit" />
</form>
<script type="text/javascript" src="jquery.js"></scr...