Click here to Skip to main content
16,020,343 members
Home / Discussions / JavaScript
   

JavaScript

 
AnswerRe: Thoughts on a Javascript playground? Pin
DaveAuld4-Feb-11 8:03
professionalDaveAuld4-Feb-11 8:03 
GeneralRe: Thoughts on a Javascript playground? Pin
Manfred Rudolf Bihy6-Feb-11 7:40
professionalManfred Rudolf Bihy6-Feb-11 7:40 
AnswerRe: Thoughts on a Javascript playground? Pin
cjoki4-Feb-11 9:59
cjoki4-Feb-11 9:59 
AnswerRe: Thoughts on a Javascript playground? Pin
Monjurul Habib1-Mar-11 8:23
professionalMonjurul Habib1-Mar-11 8:23 
QuestionNavigation from a PHP form Pin
MacRaider44-Feb-11 3:33
MacRaider44-Feb-11 3:33 
AnswerRe: Navigation from a PHP form Pin
cjoki4-Feb-11 10:04
cjoki4-Feb-11 10:04 
GeneralRe: Navigation from a PHP form Pin
MacRaider44-Feb-11 11:43
MacRaider44-Feb-11 11:43 
GeneralRe: Navigation from a PHP form Pin
cjoki4-Feb-11 18:26
cjoki4-Feb-11 18:26 
It can be done in php. Try making a test project in php that has the basic function of what you are trying to do. For example have a counter with a plus and minus button, and a input field to hold a value.

I will give you a sample form to play with.

<?php
if(isset($_POST))
{
   if($_POST['action']=='+')
   {
      $counter++;
   }
   else if($_POST['action']=='-')
   {
      $counter--;
   }
   else
   {
      // ...
   }
}
else
{
   $counter = 0;
}

echo "<form action='' method='post'>";
echo "<input type='submit' name='action' value='+'>";
echo "<input type='text' value='".$counter."' name='counter'>";
echo "<input type='submit' name='action' value='-'>";
echo "</form>"

?>


This should increase or decrease the counter with each click of the buttons + or -. This behaviour is like the next or prior month buttons your wrote about. You will of course need to add bound checking for the months.

If you get this going you should be able to expand on it to handle the calander.
Chris J
www.redash.org

GeneralRe: Navigation from a PHP form Pin
MacRaider48-Feb-11 6:58
MacRaider48-Feb-11 6:58 
GeneralRe: Navigation from a PHP form Pin
MacRaider48-Feb-11 7:25
MacRaider48-Feb-11 7:25 
GeneralRe: Navigation from a PHP form Pin
cjoki8-Feb-11 13:26
cjoki8-Feb-11 13:26 
QuestionSlow Animation Pin
Ali Al Omairi(Abu AlHassan)2-Feb-11 20:10
professionalAli Al Omairi(Abu AlHassan)2-Feb-11 20:10 
AnswerRe: Slow Animation Pin
cjoki4-Feb-11 10:06
cjoki4-Feb-11 10:06 
GeneralRe: Slow Animation Pin
Ali Al Omairi(Abu AlHassan)5-Feb-11 8:16
professionalAli Al Omairi(Abu AlHassan)5-Feb-11 8:16 
GeneralRe: Slow Animation Pin
cjoki5-Feb-11 10:31
cjoki5-Feb-11 10:31 
Questionhow to send the parameta values by submit button Pin
jasonp082-Feb-11 7:28
jasonp082-Feb-11 7:28 
AnswerRe: how to send the parameta values by submit button Pin
Shahriar Iqbal Chowdhury/Galib2-Feb-11 9:28
professionalShahriar Iqbal Chowdhury/Galib2-Feb-11 9:28 
QuestionXMLHttpRequest Pin
MWRivera28-Jan-11 10:21
MWRivera28-Jan-11 10:21 
AnswerRe: XMLHttpRequest Pin
MWRivera31-Jan-11 4:02
MWRivera31-Jan-11 4:02 
GeneralRe: XMLHttpRequest Pin
cjoki31-Jan-11 5:03
cjoki31-Jan-11 5:03 
GeneralRe: XMLHttpRequest Pin
MWRivera31-Jan-11 5:18
MWRivera31-Jan-11 5:18 
GeneralRe: XMLHttpRequest Pin
MWRivera31-Jan-11 6:04
MWRivera31-Jan-11 6:04 
GeneralRe: XMLHttpRequest Pin
cjoki31-Jan-11 7:58
cjoki31-Jan-11 7:58 
QuestionInteger by reference Pin
vhassan25-Jan-11 23:53
vhassan25-Jan-11 23:53 
AnswerRe: Integer by reference Pin
Not Active26-Jan-11 2:25
mentorNot Active26-Jan-11 2:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.