I'm very new to javascript but I'm trying to make a checkbox that will copy the billto information into the shipto boxes. I have the checkbox with an onclick event, set up like so:
<input type="checkbox" name="chkSame" id="chkSame" onClick="fncCheckbox()"/> same as customer info<br/>
I get an error of "Expected ';'" on the Else line ...
Hi.
How am I able to make a batch file with an If not command, such as: 'IF NOT [extension type] Then delete all' in a folder?
Thanx.
...
I need to execute a query that is highly dependent on several conditions what need to be checked by analyzing that data in other tables, the base goal is to return the rows from the tables if all of the conditions in the other tables are true, I am fed up with INNER joins LEFT joins and WHERE statement, i need to look up one table, if th...
I'm setting up a spacing structure for some text on an image. So I have to set a $s value for every letter of the alphabet (lower and uppercase) so that is 52 statements.
If I go this route the elseif statement list is going to be huge...
Is there a better way to do this to help shorten the code that finds the $s value depending on t...
Hi,
I'm working on an app which has a main menu which then switches views based on the menu item clicked using a UINavigationController. Whenever I run my app and click on an item in the menu, it is a good five seconds before the view loads. Is this normal or do I need to do this in another way. Thanks for looking!
My code in RootViewCo...
I have this bit of code which loops through an array and echos out the result to the page thus:
while($row = mysqli_fetch_array($result)) {
echo '<tr><td><a target="_blank" href="' . $row['url'] . '">' . $row['name'] . '</a></td>' . '<td>' . $row['provider'] . '</td>' . '<td>' . $row['media'] . "</td></tr><br />\n";
}
...
Hi guys!
Im trying to detect wich controller Im am using or what controller Im on and then change my menu accordingly to the page Im on.
( Make a selection in the menu so the user can see were he is on the page! )
I really dont know what to write to check what its using...
<? if($this->url(array("controller" => "index", "action" => ...
HTML: saucydares.freehostia.com/saucy.php I should just add that while there are no images, the site contains adult themes so isn't work safe.
PHP:
<?php
mysql_connect("mysql4.freehostia.com", sebsal2_db, "");
function him()
{
$HIMquery = "SELECT dares FROM sebsal2_db.him UNION SELECT dares FROM sebsal2_db.other O...
I am using MS Access 2003 SP3 and I need to write a statement that says something like this:
I have two columns, one is the [MaxOfDate] field and the other is the [Date-Inidicator] field. For several of these rows, the Date-Indicator is blank. I want to tell MS Access that if the [MaxOfDate] field is a date of ""99991231" then enter "A"...
The void checkboard function is not working. This is a tic tac toe game. So that function checks after each move if someone has won the game or if it is a tie. After someone wins or there is a tie the board is to be reset and the game startover. I just cannot get the void checkboard function to work. Please help me solve this problem.
...
I have come across the following code in C#.
if(condition0) statement0;
else if(condition1) statement1;
else if(condition2) statement2;
else if(condition3) statement3;
...
else if(conditionN) statementN;
else lastStatement;
Some of my colleagues tell me that this is an else if statement. However, I am convinced that it is actually a ...
Is there a way to store the x and y entered by the user into a location for the array.
I have this:
if (x == 1 && y == 1)
{
board[0][0] = playerMarker;
}
I want to make it so the x and y are stored into a variable that matches the name of a spot in an array.
But I want to try and make it more like this:
...
So this may be the way my server is set up but I'm banging my head agianst the wall. What I'm trying to do is say that if $action has no value or has a value that is not "add" or "delete" than have an error else keep running the script. However, I get an error no matter what $action is.
$action= $_GET['a'];
if((!isset($action)) || ($a...
Hi all,
I'm trying to have different pictures on every one of my pages built on wordpress.
So I have the following in my index.php file, archive.php file, page.php file, etc:
<img src="<?php bloginfo('template_url'); ?>/images/<?php echo $toppic; ?>" alt="page1" id="mainPageImg" />
Now, in my page.php file, I have the following:
<?...
This should be a simple question. I have a simple if/else statement:
<?php
// TOP PICTURE DEFINITIONS
if ( is_page('english') ) {
$toppic = 'page1.png';
}
if ( is_page('aboutus') ) {
$toppic = 'page1.png';
}
if ( is_page('newspaper') ) {
$toppic = 'page1.png';
}
else {
...
Possible Duplicates:
is else if faster than switch() case ?
What is the relative performance difference of if/else versus switch statement in Java?
I know that case statements can be implemented with jump tables. Does this make them more efficient than if statements?
Is this just mico-optimization that should be avoided?...
I am building a page which allows our members to select their notification preferences based on a number of options. For example sake, I am giving the option for the member to select notifications when a new message arrives and when an update has occured. They can receive the notification via email, sms, both, or neither.
If I simply bu...
What is a true way to write like:
if ($variable == '(value1/value2/value3)' ) { }
It should work similar to:
if ($variable == 'value1' || $variable == 'value2' || $variable == 'value3') { }
Just want to make this code shorter (now I use switch).
Thanks.
...
What would be a good set of programming exercises that would help Python newbies to learn the use of the "if ... else" construct? I could cook up the following, do you know of any more?
Find the largest/smallest of three numbers.
Given a date (year, month, day), find the next date.
Most of the intended audience have not had much of a...
Possible Duplicate:
is else if faster than switch() case ?
I've encountered a lot of situations lately where I have very simple conditionals and need to branch application flow. The "simplest" means of accomplishing what I'm doing is just a plain old if/elseif statement:
if($value == "foo") {
// ...
} elseif($value == "ba...