Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 11-03-2010, 09:58 PM   #1 (permalink)
Right Off the Assembly Line
 
Join Date: Mar 2010
Posts: 5
Default trying to write java script given in april 2009 FastTrack


Hello frinds,
i am a kind of new to this web scripting and java, i was just trying to write the script given in April 2009 Fast Track, but i am getting error and the script is not running can anybody tell me as to what is going wrong.
my script is as given below.

<html>
<head>
<title>My Favorite Movies</title>
<link rel="stylesheet" type="text/css" href="style.css" />
<script type="text/javascript" language="javaScript">
function addmovie(nameid,listid){
moviename=document.getElementById('nameid').value;
document.getElementById('nameid').value='';
document.getElementById('listid').innerHTML +='<li><a href="#">'+moviename+'</a></li>';
}
</script>
<noscript>
<p> scripting is not supported </p>
</noscript>
</head>
<body>
<h1>A List of my Favorite Movies</h1>
<h2>Movie Series:</h2>
<ul id="sermovies">
<li><a href="#">The Matrix Series</a></li>
<li><a href="#">The Lord of the Rings Series</a></li>
<li><a href="#">Star Wars Series</a></li>
</ul>
<input id="newseries" type="text" />
<input type="button" onclick="addmovie('newseries','sermovies')" value="Add Series"/>
<h2>Individual Movies:</h2>
<ul id="indmovies">
<li><a href="#">Memento</a></li>
<li><a href="#">Batman Begins</a></li>
<li><a href="#">The Dark Knight</a></li>
<li><a href="#">Gattaca</a></li>
<li><a href="#">Shawshank Redemption</a></li>
</ul>
<input id="newmovie" type="text" />
<input type="button" onclick="addmovie('newmovie','indmovies')" value="Add Movie"/>
<p></p>
<div class="footer">
<a href="http://www.google.com/">To get your other favorite movies search here </a>
</div>
</body>
</html>

Also in Aptana i have tried but no luck their also.....

if anyone pl. guide me where am i going wrong.

Last edited by nileshkumar; 11-03-2010 at 10:33 PM. Reason: modified the query
nileshkumar is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Due Kernel I/O error, system refuses to boot randomly gary4gar Open Source 33 04-05-2008 10:22 AM
sugest me a java compiler in linux voggu Programming 3 23-03-2008 06:26 PM
Problem in writing DVD gau_pppu Software Q&A 8 09-04-2007 10:34 AM
!!! DHTML Tricks To Enhance Your Web-Pages & Emails!!! go4saket Tutorials 3 28-02-2007 08:45 PM
Valuable Sites for Techies sreedevi Tutorials 15 04-10-2005 10:35 PM

 
Latest Threads
- by Charan
- by Charan
- by clmlbx

Advertisement




All times are GMT +5.5. The time now is 03:14 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2