RandomlyKnighted's Profile User Rating: -----

Reputation: 118 Stalwart
Group:
Authors
Active Posts:
1,369 (0.77 per day)
Joined:
14-January 10
Profile Views:
54,686
Last Active:
User is offline Oct 06 2014 02:41 PM
Currently:
Offline

Previous Fields

Country:
US
OS Preference:
Windows
Favorite Browser:
FireFox
Favorite Processor:
Intel
Favorite Gaming Platform:
XBox
Your Car:
Ford
Dream Kudos:
300

Latest Visitors

Icon   RandomlyKnighted chilling at home working on a jQuery plugin :D

Posts I've Made

  1. In Topic: Getting data from tables when one table has no data on user?

    Posted 1 Oct 2014

    Thanks! You were right, apparently the second user did not have any session details. Looks like I have a bug with storing that value.
  2. In Topic: Getting data from tables when one table has no data on user?

    Posted 1 Oct 2014

    Like so Dormilich?

    SELECT ui.username, ui.email, ui.password, s.endtime, COUNT(f.owner)
    FROM usersInfo ui JOIN session s
    ON ui.username = s.username LEFT OUTER JOIN files f
    ON ui.username = f.owner
    GROUP BY ui.username
    
    


    Also is there anything else I might be missing? Sadly, I'm still not getting data for the user who has not uploaded a file to the application.
  3. In Topic: mysqli commands out of sync when performing query

    Posted 29 Sep 2014

    View PostJackOfAllTrades, on 29 September 2014 - 03:48 PM, said:

    Queries in loops are always a bad sign.

    What you need are some joins.


    I'll look into creating a join that will give me the data that is supposed to be returned from both of the last two if statements. Any advice on how I might be able to do this without the while loop?
  4. In Topic: Value of data attribute always empty

    Posted 23 Aug 2014

    I see what you mean about that. Unfortunately I can't use $(this) as it selects the element that I'm hovering over instead of the actual tooltip, because I'm adding the tooltips dynamically. Of course what I had might have worked if I was adding the tooltips to the page only when their elements are hovered over.
  5. In Topic: Value of data attribute always empty

    Posted 23 Aug 2014

    Ok, so in order to account for when the user specifies the position of the tooltip via the data-attribute I added an if statement that check to see if the user has declared the position and if they have then it changes the follow to false. Here's what I did:

    $.fn.tooltip = function(userOptions)
    	{
    		var defaultOptions =	{
    									position: '',
    									follow: true
    								};
    
    		options = $.extend(defaultOptions, userOptions);
    
    		var position = $(this).data('position');
    		if (position != undefined)
    		{
    			options.position = position;
    			options.follow = false;
    		}
    
    		element = $(this);
    		title = element.attr('title');
    		element.on("mouseenter", element, _mouseEnter);
    	}
    
    


    I believe that puts me a step in the right direction. Something I hadn't noticed until just now is that no matter which tooltip I hover over the text in the tooltip is always the text of the very first anchor that I'm getting the title from.

My Information

Member Title:
D.I.C Lover
Age:
23 years old
Birthday:
June 11, 1991
Gender:
Location:
Albertville, AL
Years Programming:
4
Programming Languages:
ASP.NET, C#, Java, SQL

Contact Information

E-mail:
Click here to e-mail me
Website URL:
Website URL  http://randomlyknighted.com
LinkedIn:
http://www.linkedin.com/in/thughes01
Twitter:
tyler_b_hughes

Comments

Page 1 of 1
  1. Photo

    ishkabible Icon

    26 Jun 2011 - 18:13
    happy belated birthday!!
  2. Photo

    chinalwb Icon

    07 Jun 2011 - 21:33
    Your birthday is coming, Happy Birthday to You~!
  3. Photo

    no2pencil Icon

    11 Apr 2011 - 19:57
    GO BLUEJAYS!
  4. Photo

    Dogstopper Icon

    05 Nov 2010 - 03:58
    GO BRAVES!
Page 1 of 1