Ghandi_Of_Codez's Profile User Rating: -----

Reputation: 0 Apprentice
Group:
Members
Active Posts:
29 (0.06 per day)
Joined:
26-March 13
Profile Views:
858
Last Active:
User is offline Feb 16 2014 08:53 PM
Currently:
Offline

Previous Fields

Dream Kudos:
0
Icon   Ghandi_Of_Codez has not set their status

Posts I've Made

  1. In Topic: Bubblesort will not print out

    Posted 22 Sep 2013

    View Postlaytonsdad, on 22 September 2013 - 08:02 PM, said:

    in order for bubblesort.innerHTML = s; to work you would have to set the variable bubblesort to the element using getElementById("bubblesort"). With out doing this there is no reference to the element with the id of bubblesort.


    bubbleSort is the name of the method. bubblesort is the name of the div. I still have to use getElementbyid on it or i am just misunderstanding you?
  2. In Topic: Bubblesort will not print out

    Posted 22 Sep 2013

    I did the global variable with array1. I dont understand what you mean about the bubblesort though?
  3. In Topic: Bubblesort will not print out

    Posted 22 Sep 2013

    View Postlaytonsdad, on 22 September 2013 - 07:31 PM, said:

    Taking a closer look it is the scope of your bubbleSort(array1);. array1 is not excessable outside the onloadHandler() function.

    And where does bubblesort come from in this line? bubblesort.innerHTML


    Ahhh, so how would I go about accessing the values from array1 if it is not within that scope? And the bubblesort.innerHTML sets the div labeled bubblesort = the value s. S is the value of the output of the sorted array in the bubblesort function.
  4. In Topic: Bubblesort will not print out

    Posted 22 Sep 2013

    View Postlaytonsdad, on 22 September 2013 - 07:26 PM, said:

    Its working for me. I added 10 numbers [1,2,3,4,5,6,7,8,9,1] to the prompt and got this in return. were you expecting something different.

    Attachment test.PNG


    The table works great when printing the users input(which is the variable array1). The problem I am having is printing the bubblesort out under the table( in the div = bubblesort) to display the sorted numbers.
  5. In Topic: check datatable column contain values

    Posted 30 Apr 2013

    cn.Open();
                String cmdString = "Select ColumnName FROM tableName WHERE ColumnName IS NULL;
                SqlCommand cmd2 = new SqlCommand(cmdString, cn);
    

My Information

Member Title:
New D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:

Contact Information

E-mail:
Click here to e-mail me

Friends

Ghandi_Of_Codez hasn't added any friends yet.

Comments

Ghandi_Of_Codez has no profile comments yet. Why not say hello?