User Profile

Collapse

Profile Sidebar

Collapse
Oli2uok
Oli2uok
Last Activity: May 25 '09, 06:42 PM
Joined: May 13 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Oli2uok
    replied to object error
    Return of true!

    You may be able to help me again though lol. Im stuck on this one. I keep getting a return of true after the 1st input!!
    Any ideas!!

    Cheers
    Code:
      
        function isAlreadySelected(newSelection, previousSelections) 
        { 
       
        for(var index = 0; index < previousSelections.length; index = index + 1)  
           {  
                if(newSelection == previousSelections[index])
    ...
    See more | Go to post
    Last edited by acoder; May 19 '09, 11:21 AM. Reason: Removed irrelevant code

    Leave a comment:


  • Oli2uok
    replied to object error
    Thanks

    Hi,
    Thanks for the reply I had realised what I had done about an hour after I had asked for help.

    Cheers
    See more | Go to post

    Leave a comment:


  • Oli2uok
    replied to object error
    wrong output!! ??

    Code:
    function getRandomNumber(aNumber) 
    {   
    var getRandomNumber = Math.floor(Math.random());
    
    	return aNumber;
    }
    
    	function lotteryDraw(highBall, numberToDraw) 
        { 
      
            var numberPool = new Array(highBall); 
      
      
            var sizeOfPool = highBall; 
      
      
            var drawnNumbers = new Array(numberToDraw);
    ...
    See more | Go to post

    Leave a comment:


  • Oli2uok
    replied to object error
    Andy help?

    Code:
    	<!-- COMPLETE THE ONCLICK EVENT HANDLER TO INVOKE lotteryDraw() WITH ARGUMENTS TAKEN FROM THE FORM INPUT TEXT BOXES -->
    	<INPUT TYPE = "button" NAME = "drawBalls"  VALUE ="Draw the Balls!"
    						ONCLICK = "document.lotteryForm.drawnNumbersTextBox.value = lotteryDraw().value">
    If anyone can point me in the right direction...
    See more | Go to post

    Leave a comment:


  • Oli2uok
    replied to object error
    Heeeeelllpppp!! !! is it just me!!!!...
    See more | Go to post

    Leave a comment:


  • Oli2uok
    replied to object error
    I think I have lost the plot!! everything seems goggly to me..lol....
    See more | Go to post

    Leave a comment:


  • Oli2uok
    replied to object error
    more help..lol



    I sort of know what ya mean but dont..i know im having a hard time at the mo.lol
    any other advice would help!!...
    See more | Go to post

    Leave a comment:


  • Oli2uok
    replied to object error
    Task 2

    Hi Im also doing th M150 course and really struggling to get the Task 2 to work..any advice anyone..help..


    Code:
    <HTML>
    <HEAD>
    <TITLE>M150 TMA 5 : Programming : Task 2 - Drawing numbered balls</TITLE>
    
    <SCRIPT language="JavaScript">
    	
     //and display it in an alert window  
    
    	function getRandomNumber(aNumber)
    ...
    See more | Go to post
    Last edited by Dormilich; May 13 '09, 06:16 PM. Reason: Please use [code] tags when posting code

    Leave a comment:

No activity results to display
Show More
Working...