Solved

Issues with javascript code that was before

Posted on 2014-11-05
3
275 Views
Last Modified: 2014-11-06
On this page, the two videos have an overlay of title text with grey background. When the user clicks on the video the grey box with the type is supposed to slide down. The code is there at the bottom of the ._global.js file and I'm pretty sure this was working, but it now isn't. I have been trying to figure out why it is not working now. Will keep working on but hoping someone can help me if I cannot figure it out

http://walmartcareerswithamission.com/why-walmart/our-mission/

Thanks
0
Comment
Question by:craftyfirst
3 Comments
 
LVL 9

Expert Comment

by:Brian Tao
ID: 40425346
There's an exception - Uncaught TypeError: Cannot read property 'id' of undefined in _global.js:296 (same error on line 300), which is:
var temp = event.target.a.id;

Open in new window

I think you should get rid of the ".a" part of it.
0
 
LVL 82

Accepted Solution

by:
leakim971 earned 500 total points
ID: 40425359
replace :
var temp = event.target.a.id;
by :
var temp = event.target.d.getAttribute("id")
0
 

Author Closing Comment

by:craftyfirst
ID: 40426946
thanks. this worked perfectly.
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.

Question has a verified solution.

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

Suggested Solutions

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
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…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

821 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