Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 222
  • Last Modified:

My First Try Using jQuery

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
penlandt
Asked:
penlandt
  • 3
  • 2
1 Solution
 
Scott Fell, EE MVEDeveloperCommented:
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
 
penlandtAuthor Commented:
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
 
Scott Fell, EE MVEDeveloperCommented:
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
 
Scott Fell, EE MVEDeveloperCommented:
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
 
penlandtAuthor Commented:
Thank you very much for the suggestions.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now