Forum     

Go Back   Digit Technology Discussion Forum > Community > Tutorials
Register FAQ Calendar Mark Forums Read

Tutorials This section offers tutorials and How to's on just about anything related to computers and IT. Note: All tutorials are courtesy the posters and not verified by Digit


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 12-03-2010, 08:39 PM   #1 (permalink)
Right Off the Assembly Line
 
Join Date: Mar 2010
Posts: 5
Default trying to run java script


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.
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
need a java script enable browser in .jar Amir.php Mobiles and Tablets 4 07-05-2008 08:30 AM
System extremely slow - hijack this log er_gurpreet Software Q&A 1 10-02-2006 01:46 AM
Valuable Sites for Techies sreedevi Tutorials 15 04-10-2005 10:35 PM
Help ASAP !!! harmik QnA (read only) 27 23-04-2005 03:32 PM
intlreco.exe prathap_lab QnA (read only) 11 19-03-2005 10:24 PM

 
Latest Threads
- by Krow
- by clmlbx
- by Who
- by Tech&ME
- by icebags

Advertisement




All times are GMT +5.5. The time now is 08:47 PM.


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

Search Engine Optimization by vBSEO 3.3.2