Solved

Javascript Issue

Posted on 2013-01-28
1
128 Views
Last Modified: 2013-01-28
Please see attached.

Note down near the end where it says HTML the object video1.

Note the soutce src = <function>

This doesn't work.

Why?
sample.htm
0
Comment
Question by:Richard Korts
1 Comment
 
LVL 53

Accepted Solution

by:
COBOLdinosaur earned 500 total points
Comment Utility
The vale for src must be an absolute or relative url.  You can't put a function there because there is no event to fire the function.  If the source is variable then set it in the javascript with document.getElementById('video1').src='urlofvideo';

Cd&
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

In this article, we'll look how to sort an Array in JavaScript, including the more advanced techniques of sorting a collection of records either ascending or descending on two or more fields. Basic Sorting of Arrays First, let's look at the …
The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)
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…

772 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

10 Experts available now in Live!

Get 1:1 Help Now