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

x
?
Solved

Issues with javascript code that was before

Posted on 2014-11-05
3
Medium Priority
?
288 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 83

Accepted Solution

by:
leakim971 earned 2000 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
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 count occurrences of each item in an array.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

916 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