Welcome! Log In Create A New Profile

Advanced

Assignment 2

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 2
October 02, 2006 08:02PM
Hi

I am haven JavaScript problems the pop up window is not popping up it opens inside the same browser I changed the format so many times yet no luck...can Someone please help me

Thank you
jessi confused smiley
TvD
Re: Assignment 2
October 03, 2006 07:06AM
try

<HEAD>
<SCRIPT language = "JavaScript">
<!--
function openWindow(address)
{ window.open(address);
}
//-->
</SCRIPT>
</HEAD>

<BODY>
<A href = "javascriptyawning smileypenWindow('somepic.jpg'winking smiley"> PopUpPicture</A>
</BODY>
Re: Assignment 2
October 03, 2006 09:20PM
hi

I tried the format and it is not opening the image at all and it's in the same browser I tried a different on as well but that opens the window automatically when the page loads ............
This feels so silly

It must be something I am not seeing

thank you

Jessi confused smiley
TvD
Re: Assignment 2
October 04, 2006 06:51AM
ok upload your assignment 2 to your folder and let me know what is your surname then I will have a look at the problem
TvD
Re: Assignment 2
October 04, 2006 09:04AM
Hi Tvd

I tried the script u suggested and it works fine. One thing though: I used "target=NEW" inside the function, but the new window that opens is not just the little popup window, it's a whole new browser window with address bar etc. Help plz
TvD
Re: Assignment 2
October 04, 2006 12:32PM
that is because of the target=NEW
use either target=NEw or JavaScript not both
Re: Assignment 2
October 04, 2006 06:45PM
Hi

My Surname is Williams and it's in the first set of folders
TvD
Re: Assignment 2
October 04, 2006 07:27PM
ok try Assignment2a.html - you have to put them in your other folder. You have used Images/pictures so you have to put your pictures in a subfolder called Images

Re: Assignment 2
October 04, 2006 10:47PM
Hi Toby

It is working I left the semi colon out after the last (address); and wrote javascriptyawning smileypenwindow in small when I used this format
silly me
thank you so much

Jessi eye rolling smiley
Sorry, only registered users may post in this forum.

Click here to login