Solved

Logos not appearing

Posted on 2013-10-24
3
164 Views
Last Modified: 2013-10-24
I made a scoreboard that actually works but one issue is I have two logos of each team next to there name. Our company changed servers and I can't just show u using a public IP so i LOAD FILES ON MY WEBSITE THERE IS A SECOND QUESTION BUT i'LL CREATE A NEW TICKET SO FOR THIS ONE I NEED EAGLES AND PACKERS LOGO TO SHOW UP ALL THE NFL TEAMS ARE LOADED TO a directory called minilogos each logo has a number that corresponds to team ID. 069 Packers 081 Eagles I'm not sure I think my code is code but here is the scoreboard
scoreboard

should look like image of what scoreboard should look like
xml files get changed on this site so I have a zip of html doc and xml file.

here is my code that calls minilogos
d.find('Team').each(function(i,Team){
			  
        if ($(Team).attr('vh') == "H") {
			 var HS1 = $(Team).find('Linescore');
			 var homename =$(Team).attr('name');
         // var hs2 = HS1.attr('Score');
          $('#HS').html(HS1.attr('Score')); 
		   $('#txtHome').html(homename);
         // var vs2 = VS1.attr('Score');
         $('#minihome').attr('src', 'http//powerzsoftware.com/tsn/nfl/minilogos/' + $(Team).attr('ID') + '.png'); 	
		   $(Team).find('LineQuarter').each(function(){
						if($(this).attr('Qtr') == "1") {
							$('#periodH1').text($(this).attr('score'));
						} else if ($(this).attr('Qtr') == "2") {
							$('#periodH2').text($(this).attr('score'));
						} else if ($(this).attr('Qtr') == "3") {
							$('#periodH3').text($(this).attr('score'));
						} else if ($(this).attr('Qtr') == "4"){
							$('#periodH4').text($(this).attr('score'));	
						} else if ($(this).attr('Qtr') == "5"){
							$('#periodH5').text($(this).attr('score'));	
						} else if ($(this).attr('Qtr') == "6"){
							$('#periodH5').text($(this).attr('score'));
						}
					});
			if ($(Team).attr('ID') == $(Play).attr('PossID')) {
         
		  

Open in new window

nflpackage.zip
0
Comment
Question by:powerztom
  • 2
3 Comments
 
LVL 18

Accepted Solution

by:
zc2 earned 500 total points
ID: 39598355
You misspelled the URL syntax. It should start with "http://", not with "http//".
That might be a reason of the failure (if there are no other reasons).
0
 

Author Closing Comment

by:powerztom
ID: 39598472
I needed that 2nd set of eyes to find that error. I am grateful thank You.
0
 
LVL 18

Expert Comment

by:zc2
ID: 39598776
You're welcome.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

There are a couple ways to attach a JavaScript function to dynamically created elements. You can make a new script for each element as it’s created or you can use delegation. Delegation allows a single script that is added at page creation to mat…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question