Checkbox Won't Turn Off...

Jan 24, 2005

I am trying to dynamically display a select menu when a checkbox is selected. I have successfully go the select menu to come up when the box is checked but the problem is that you can't uncheck the box to get it to go away. Can you tell me how to do this or even better show me a better way? Code:

View 2 Replies


ADVERTISEMENT

Checkbox Toggle To Turn Off Element?

Jul 12, 2011

Im creating a portfolio site for myself that my have gotten a little too ambitious but I'd still like to make this work.

My main site loads a video demo reel using the new <video> tag and to make it look cooler has an "ambilight" television effect around it. For usability and for users that find it annoying or distracting I want a toggle to turn the effect off.

I have my checkbox created as well as all the effects working for it.

Here is a piece of the main code as well as a link to the ambilight.js file

<label name="ambilightToggle">
<input type="checkbox" name="toggle"/>
<div class="toggle-switch">
<div class="handle"></div>

[Code]....

If the click function works I should be able to have it check the checkboxes state and have it persist.

View 1 Replies View Related

For Loop Wont Finish

Nov 4, 2010

I created a forloop and that runs fine, but it wont run any code after the loop finishes.I've tryed playing around with it but nothing I do will make it display the alert. Heres the problem code:

function price()
{
var price=0;[code]....

View 10 Replies View Related

Script Wont Run On Firefox?

Feb 14, 2010

I made a little app/page to help me count the money when Im done my shift at work. It runs fine in IExplorer, but it wont run in Firefox.

<html>
<head>
<title>Money Calculator 1.0</title>

[code]....

View 4 Replies View Related

TINYmce Wont Allow Certain Characters?

Nov 14, 2009

I have a CMS system using Tinymce and after making some alterations noticed the updates weren't showing up.After much messing (sql, set up etc) I started to delete the content bits at a time and came to the conclusion that is was the character

View 1 Replies View Related

Function Wont Return A Value > 200?

Feb 7, 2011

My function the_magnitude() takes in values from 4 different asp:textboxes. The textboxes "easting" and "northing" contain numbers that don't change, but the textboxes "east" and "north" contain numbers inputed by the user, and the function returns "error" as a value to be put into another textbox that we'll call "error box". So what it's suppose to do is when I update the information in either "east" or"north" it will update, on change, the number in the "error box". It kinda works.My problem is that if the number is a value that changes the style to red, #ff0000,in the function it wont update the "error box" and it just leaves a red zero that is a default number in the box. The only way I can get the number to change is if I end up with a number less than 200, which would make the text green.I'm pretty sure it's a problem with my javascript.here is my function

<script type="text/javascript">
function the_magnitude(easting, east, northing, north, error) {
var a = easting.value;

[code]....

View 2 Replies View Related

Wont Work On IFrame?

Sep 16, 2010

i created a javascript for opening a page on a new window and added it on an html file. i then used the said html file as the source of my iframe on a joomla page. but the javascript isnt working. the said iframe is called Scroll News on this page: [URL]..

View 2 Replies View Related

JQuery :: Website Wont Run On All Browsers?

Dec 4, 2011

We have one website [URL] it will open in only IE not in any other browsers. When it will open in other browsers it will shows source code. I have to make changes in it so that it will open in all the browsers.

View 18 Replies View Related

Function Wont Work On 2 Arrays?

Feb 19, 2009

have a function which finds the highest value of an array and im trying to get it to work on 2 arrays.however I dont really know how to do this so the function works fine on the first array but when i try to make it work on the second one it returns the same value as the first array, even though the second array shouldnt contain that value. I have put the code below, the funtion I am working on is findHighestValueIndex and the arrays I need it to work on are highestScoreIndex and highestWeightedScoreIndex.with the thank user button

<HTML>
<HEAD>
<TITLE>

[code]...

View 4 Replies View Related

SetAttribute Href - Why Wont It Work?

Sep 23, 2009

Im writing a piece of javascript that dynamically adds a link to a page, this is the code i'm using

var newP;
newP = document.createElement("a");
newP.innerHTML = "Click here";[code].........

However, it wont work?!?! the link appears in the right place on the page when i remove the line newP.setAttribute("href","http:[url]......);and if i view the source the link is <a>Click here</a> (without any href) so there's got to be something wrong with that line but i don't know what it is.I'm using firefox.

View 2 Replies View Related

Element Wont Change Size 0.0 ?

Mar 2, 2010

Ok my menuBarContainer div wont change width or height... I've tried everything... whats stopping it?

[url]

View 4 Replies View Related

Pics Wont Show In Slideshow?

Dec 2, 2010

1 - the pics wont show in the slideshow. Only the text follows through to the next window. Why?2 - when you click the button "markera alla bilder" (mark all pics) only half of the pics get checked. why?Heres the code:

/.../
<script type="text/javascript" language="javascript">
var checked = new Array();

[code]....

View 5 Replies View Related

Code - Move A Div - Wont Work At All

Mar 21, 2011

What is wrong with my code?

I am trying to move a div and it wont work at all.

Also my little <a> fix is really sloppy.

<html>

View 2 Replies View Related

Menubar And Slideshow Wont Work Together

Apr 5, 2011

I can get both to work separately. If Iput the slideshow below the menu bar in the body it does not play if I put the slideshow first the menu bar does not appear.

View 1 Replies View Related

Wont Load The Full Map JS HTML5?

Nov 25, 2011

i,m trying to make an application with JS and html5 i have tryed to make a google map who loads my position and let me choose a target positioni got it to work but sudenly the map have stoped loading as it shud i need to tilt my phone to get it to load the full map and i can`t figure out what i have done wrong:(

<!DOCTYPE html><html>
<head>
<title>Sigvartsen</title>

[code]....

View 9 Replies View Related

Wont Write Out A CSS Span Class ?

Dec 1, 2011

If the value is negative it should be in red, otherwise it should be in green. It looks like JavaScript completely ignores the css class.

View 1 Replies View Related

Detecting Browser Wont Work

Jun 30, 2007

I'm trying to detect the browser in that little box but It's not working. in between the <div> tags I have this code

<script type="javascript">
var browser=navigator.appName
var browser_version=navigator.appVersion
var version=parseFloat(browser_version)
document.write("Detecting Browser..." + browser)
</script>I don't even think I'm going to user the browser version so don't worry about that but I can't get this to work. I think I have it right, I was looking at the tutorial on w3schools. Can anyone see a problem? Am I leaving something out?

Edit: oh, very sorry. It seems my tiny little mistake is that script type should be "text/javascript". But now that that is figured out It shows that I'm using Netscape when I'm actually using Firefox 0.o

View 8 Replies View Related

CreateElement Wont Show Table/div?

Apr 19, 2005

I've come up with this code and cant figure out why nothing appears when I press the buttonThe table is soposed to show. Probably something really simple cuz I often stuck on stupid things.

[HTML]<html>
<head>
<script type="text/javascript">

[code]....

View 6 Replies View Related

JQuery :: .hide Wont Work When Speed Specified?

Jun 26, 2009

This is realy frustrating me, i cant get the hide on this page

<!--
$(document).ready(function() {
var showText="Click to expand";

[code]....

View 2 Replies View Related

JQuery :: Why Wont Video Show In Videobox

Jan 7, 2011

Player works fine on its own but when i try to show it in fancybox ... nothingi know with jquery boxes dont work somtimes if you put ".html" so i put ".htm" and still no joy youtube works great but not my projekktor player.below is projekktor code:

Collapse
<
!DOCTYPE

[code]....

View 1 Replies View Related

Js Wont Intercept Click Event Correctly?

Jul 7, 2010

I've been working on this site for learning purposes for awhile now and recently added pagination so its easier to look through submitted articles and pictures for the site. I got the pagination working originally with jquery so no page refresh needed to be done.Then I tried to use a nicer pagination look thru css as suggested by this wonderful site... nice looking css paginationI altered my javascript scripts to reflect the changes for which #div > a to intercept the click commands so ajax can be ran but it seems to not be doing so. In other words the ajax is not being ran and the whole page is being updated. Also it seems to traverse both the articles and picture sections when I try to use the pagination links for the articles.If you use firebug you can see all the source however ill submit the javascript to make it easier Functon to Show out Busy Div

function showBusy(){
$('#ajax-content').block({
message: '<h1>Processing</h1>',

[code].....

View 1 Replies View Related

Dynamic Background Color Wont Work FF

Aug 13, 2010

Both work IE but not on Firefox. These are seperate frames.

or:

Its run via a couple text boxes and a button with thats built into the innerHTML using the following code.

Any ideas to get this working in Firefox? If I leave the coding on one page it works fine, its only when I do two frames that it screws up.

View 1 Replies View Related

Changing Element.style Wont Work In IE?

Jun 30, 2010

I'm currently putting javascript function onto a page to swap the content between 2 divs onclick- when one is visible one is hidden and vice versa (they are in the same place to create a tabbed browsing effect).

the script:

<script type="text/javascript">
*
function detailStyle()
{

[Code]....

View 1 Replies View Related

Overlay Simply Wont Center Vertically?

Jan 30, 2011

I'm using jquerytools overlay on a site and i cannot get the overlay (which pulls in content from a url) to center on the page. I simply cannot see why and my brain hurts. I've been trying different things for about a week now to no avail.The url of the site is (and the page in question) http://bruce.ourcollective.eu and the overlays are in the bottom right hand corner of the screen: Credits Contact and Copyright symbol.

View 11 Replies View Related

Hide/Show Div Iframes Wont Work In IE?

Jan 17, 2011

Basically, as you can see,*I've created a gallery page with multiple slideshows using iframes & javascript; each of the galleries show/hide when you click on their corresponding link. The first slideshow "Family" appears when the page loads, but the others are hidden with a div style. *Then, when you click on each gallery's link, that gallery appears, but all the other galleries hide.It works great in most browsers, except Internet Explorer. For some reason, IE 9 beta only shows part of the slideshows; the whole iframe is there, but only a small portion of the photos appear (although the slideshow itself continues to run fine). IE 8 doesn't load the galleries at all, except for the first one ("Family"); the div section appears for them, but the slideshows do not play.

I realized that the problem is the div style (style="display:none; ). The first gallery, "Family", shows fine because it's not hidden to begin with.*When I remove that div style from all the slideshows, then they appear & play fully (instead of partially or not at all) in Internet Explorer. However, the purpose of hiding them is defeated, as they all show up at once when the page loads. I want to keep them all hidden until you click on their respective link to show them.Coding:

Code:
<script type="text/javascript" language="JavaScript">
<!--

[code]....

View 2 Replies View Related

JQuery :: Wont Work With File Type Inputs

Jan 12, 2010

I've been using the form plugin to process some data in a form and was working perfectly until I added a new input (type="file") to upload images, for some reason now the plugin wont go past the beforeSubmit: section, the weird thing is that if I change the field type to text it works perfectly.Is it something I'm doing wrong? Or do I have to do something else with file type fields?

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved