Solved

Issues with javascript code that was before

Posted on 2014-11-05
3
262 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
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.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

744 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

14 Experts available now in Live!

Get 1:1 Help Now