Solved

My First Try Using jQuery

Posted on 2014-02-10
5
197 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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 style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

785 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