?
Solved

My First Try Using jQuery

Posted on 2014-02-10
5
Medium Priority
?
209 Views
Last Modified: 2014-02-10
Hello again.  I'm trying to create my first page using jQuery with XML.  It's not working right now and I'm not sure how to figure out what's wrong.  I'd appreciate any help you can offer with this.
home.html
homecontent.xml
home.js
home.css
0
Comment
Question by:penlandt
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 53

Accepted Solution

by:
Scott Fell,  EE MVE earned 2000 total points
ID: 39849293
Everything works fine.  I recreated here http://jsbin.com/pecol/1/edit?html,css,js,output

If something is not working, you should simply give us a link to your test page.  If it is not public, then just upload to a public site. There must be something else in your code that is blocking.

Are you pulling the xml from the same domain?
0
 
LVL 1

Author Comment

by:penlandt
ID: 39849308
I'm really learning this from the ground up at this point.  The lessons I'm following had me create a folder on my desktop that contains all of my files.  In all the other examples I created (following the lessons) I was able to open the html file from the desktop and everything worked correctly.  These did not.  After receiving your reply however, I imported the files into Visual Studio and ran the project.  When I did, everything worked.  I still don't know why it didn't work from the desktop though.  Any thoughts on that?
0
 
LVL 53

Expert Comment

by:Scott Fell, EE MVE
ID: 39849333
It could be the ajax?  Look for js errors first, then you can look at the network area and look at the file being called, is that getting an ok 200 with data or an error?

Do you know how to use the browsers console to debug?

https://developers.google.com/chrome-developer-tools/docs/console

https://getfirebug.com/

http://msdn.microsoft.com/en-us/library/ie/hh673541(v=vs.85).aspx
0
 
LVL 53

Expert Comment

by:Scott Fell, EE MVE
ID: 39849335
Take a look at codecademy http://www.codecademy.com/learn.  It is good to get a base of javascript under your belt. You don't have to do it all, but if you get the basics, it will make learning jquery a lot easier.
0
 
LVL 1

Author Closing Comment

by:penlandt
ID: 39849417
Thank you very much for the suggestions.
0

Featured Post

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

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

Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
Suggested Courses

800 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