Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Special Interests > Visual Media > Web Design and Development

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old Mar 21, 2010, 09:07 PM   #1
MDMstudios
macrumors member
 
Join Date: Mar 2008
checkboxes in dashcode.

Okay, so I got this project, in which I am trying to just set a checkbox to true or false depending on the button they click. My code is essentially this

Code:
var checkbox;

function load()
{
    dashcode.setupParts();
    checkbox = document.getElementById("checkbox");
}

function deselectGroup1(event)
{ // this function is correctly hooked up to the on click event for a button.
    checkbox.checked = false;
}

function selectGroup1(event)
{ // this function is correctly hooked up to the on click event for another button.
    checkbox.checked = true;
}
However, the checkbox doesn't ever change its appearance. I did some tests, and it says the value of checked is undefined before I call one of these functions. I am attaching checkbox to the correct element, and I have tried setting checked in the load function, however nothing works.

I have also tried starting a new project to see if one project was just acting weird, however in the new project nothing changed either.

Any help?
MDMstudios is offline   0 Reply With Quote

 
MacRumors Forums > Special Interests > Visual Media > Web Design and Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
dashcode help fracksoup Mac Programming 1 Nov 15, 2013 12:10 PM
How to get Dashcode bb13 Mac Programming 3 Aug 4, 2013 10:39 AM
Downloading Dashcode sh0vel Mac Programming 4 Apr 30, 2013 09:14 AM
Checkboxes in iTunes cgm707 Mac Basics and Help 0 Jan 2, 2013 06:50 PM
Dashcode on ML? mathcolo Mac Programming 1 Aug 15, 2012 04:56 PM

Forum Jump

All times are GMT -5. The time now is 07:35 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC