Exceedinglife's Profile User Rating: -----

Reputation: 0 Apprentice
Group:
Active Members
Active Posts:
74 (0.08 per day)
Joined:
01-July 12
Profile Views:
1,031
Last Active:
User is offline Dec 30 2014 12:13 AM
Currently:
Offline

Previous Fields

Country:
US
OS Preference:
Windows
Favorite Browser:
FireFox
Favorite Processor:
Intel
Favorite Gaming Platform:
PC
Your Car:
Subaru
Dream Kudos:
0
Icon   Exceedinglife has not set their status

Posts I've Made

  1. In Topic: visual studio 2013 database .mdf add query

    Posted 25 Dec 2014

    i fixed it
    i was missing a ")"
  2. In Topic: making method in an unordered list for organizing

    Posted 10 Dec 2014

    the choices are coming from a sharepoint list so the manager of the restaurant can just add a item to the list and it will automatically put them in the control whenever she decides to add new items

    i just have to add some padding / margin to the controls to add more space

    I talked about having cheese separated but she is doing the cost the same as meat / cheese so you only allowed so many before and extra charge is added

    i want each row to contain 3 - 4 items then for it to make a new row
  3. In Topic: making method in an unordered list for organizing

    Posted 10 Dec 2014

    right now i have it in a fieldset

    my list of checkboxes are in 1 row

    i want 3 or 4 rows instead of 1 so it looks alot more neat

    Posted Image

    	<!-- Select fillings -->
            <div id="selectFillings">
                <div id="fillingValid" class="validation alert"></div>
                <fieldset id="fillings">
                    <legend><h4>4). Choose up to two fillings (Extra + $1.20)</h4></legend>
                    <table id="fillingsTable"></table>
                </fieldset>
            </div>
    
        function initializeCheckBox(elementName, dataService, render, name) {
            if (render === null) render = function(item) { return(item.text); };
            var $element = $(elementName);        
            $.when(dataService()).then(function (data) {
                var $unorderedList = $('ul class="stylebox"');
                $element.append($unorderedList);
                console.log($unorderedList);
    
                for (var itemIndex in data) {
                    var $input = $('<input type="checkbox" name ="'+name+'" value="' + data[itemIndex].value + '">' + render(data[itemIndex]) + '</input>');
                    var $row = $('<li>'); 
                    $input.data(data[itemIndex]);
    				$input.appendTo($element);
                }
            });
        }
    
        function initializeRadioBtn(elementName, dataService) {
            var $element = $(elementName);
            $.when(dataService()).then(function (data) {
                for (var itemIndex in data) {
                    var $input = $('<input type="radio" name ="Side" value="' + data[itemIndex].value + '">' + data[itemIndex].text + '</input>');
    				$input.data(data[itemIndex]);
    				$input.appendTo($element);
                }
            });
        }
    
         */
        function getFillings() {
            var deferred = new $.Deferred();
            deferred.resolve([
                { value: 'Turkey Breast', text: 'Turkey Breast', price: 0.0 },
                { value: 'Baked Ham', text: 'Baked Ham', price: 0.0 },
                { value: 'Salami', text: 'Salami', price: 0.0 },
                { value: 'Cheddar Cheese', text: 'Cheddar Cheese', price: 0.0 },
                { value: 'Swiss Cheese', text: 'Swiss Cheese', price: 0.0 },
                { value: 'Provologne Cheese', text: 'Provologne Cheese', price: 0.0 },
                { value: 'Veggie Mix', text: 'Veggie Mix', price: 0.0 }
            ]);
            return (deferred);
        }
    
    
  4. In Topic: making method in an unordered list for organizing

    Posted 10 Dec 2014

    I am working on making a online ordering site for a restaurant. for example like how you can order dominoes pizza online or subway.
    I am working with a restaurant on making it so you can order food online.
    I have everything set up and working pretty good right now.

    The reason i want these checkboxes in a unordered list is so i can style it.
    my checkboxes currently are displayed in one long list
    I would like to have them in rows of 3 or 4 boxes per row.

    my code (this method) grabs data from a collection and displays it as checkboxes in its certain section on the page.
    This is just one method of my many for this site.

    I have been trying many different orders and differnt things to try to get this to work but i did not yet.
    this is my most current sample

    if you know a better solution then an unordered list to style my checkboxes i am grateful to hear it.

        function initializeCheckBox(elementName, dataService, render, name) {
            if (render === null) render = function(item) { return(item.text); };
    		var $element = $(elementName);
    		$.when(dataService()).then(function (data) {
    		    //HERE IS BEGINNING OF TRIAL AND ERROR WITH THIS METHOD
    		    var $unorderedList = $('ul class="stylebox"');
    		    $element.append($unorderedList);
    		    console.log($unorderedList);
                for (var itemIndex in data) {
                    var $input = $('<input type="checkbox" name ="'+name+'" value="' + data[itemIndex].value + '">' + render(data[itemIndex]) + '</input>');
    
                    var $row = $('<li>');
                    $row.appendTo($unorderedList + '</li>');
    
                    $input.data(data[itemIndex]);
    				$input.appendTo($element + '</ul>');
                }
    
            });
        }
    
    
  5. In Topic: JavaScript - simple display div incominmessage on 2 lines instead of 1

    Posted 26 Nov 2014

    View PostMartyr2, on 26 November 2014 - 11:21 PM, said:

    You could just insert a <br> tag in there for each message. Simplest way...

    $('#order-message').html(breadMessage + '<br>');
    
    


    That or you can wrap each message in something like a span or div tag and apply a styling class to it.

    Up to you really. :)/>


    Sounds good!! Thank you very much!!! <br> Seems simple enouph!! lol
    Now hopefully you could help with my next question. Setting up bootstrap to use a messagebox :S lol

My Information

Member Title:
D.I.C Head
Age:
24 years old
Birthday:
January 24, 1991
Gender:
Location:
Wisconsin
Full Name:
Andrew
Years Programming:
1
Programming Languages:
Java
HTML
CSS
JavaScript
Little bit of PHP
C# currently learning

Contact Information

E-mail:
Click here to e-mail me

Friends

Exceedinglife hasn't added any friends yet.

Comments

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