Solved

My First Try Using jQuery

Posted on 2014-02-10
5
193 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
  • 3
  • 2
5 Comments
 
LVL 52

Accepted Solution

by:
Scott Fell,  EE MVE earned 500 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 52

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 52

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
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…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

743 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now