Welcome! Log In Create A New Profile

Advanced

assignment 1

Posted by 47641789 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
assignment 1
August 06, 2013 05:46PM
hi. how do we submit the assignment?
avatar
Mac
Re: assignment 1
August 07, 2013 08:28AM
As per the submission document on myUnisa in the resources folder.
Re: assignment 1 - Javascript
August 12, 2013 09:57AM
Hi All

I seem to have run into some problems with the Javascript.
Please can someone assist in pointing out where I have gone wrong here. ( I am only going to pull out the javascript part of the assignment)
The code.txt file opens in the same window. Although the positioning is fine on IE.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">;
<html>
<head>
<!-- The below function calls the function open_window() which opens a window to Code.txt with attributes of width and height-->
<script>
function open_window()
{
window.open("//Code.txt","width=300,height=500"winking smiley
}
</script>
</head>
<body>
<!-- Centers the div-->
<center>
<!-- This puts the footer text at the bottom of the page and calls the function open_window-->
<div style="position: absolute; bottom: 0px;"><a href="/Code.txt" <input type="text" value="Code.txt" onclick="open_window()">Code.txt</div>
</center>
</body>
</html>

Richard
avatar Re: assignment 1
August 12, 2013 10:24AM
You are missing a closing bracket on your DOCTYPE header.

I think there a is a parameter missing between the url and size spec of window.open() - enter a blank name parameter.
It is optional, but if you use the specs parameter, I think you need to insert the name parameter as well.
avatar
Mac
Re: assignment 1
August 12, 2013 11:09AM
Use formatted code to post here as per the tut letter please!
Re: assignment 1
August 12, 2013 09:46PM
Thanks Guys I fixed it. Quite a number of things needed to be corrected.
Sorry, only registered users may post in this forum.

Click here to login