Solved

Issues with javascript code that was before

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

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

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

Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
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?
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

622 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