Solved

My First Try Using jQuery

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

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

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

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
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…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

739 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