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
Javascript
March 15, 2011 11:54AM
I am not getting this at all , is there maybe somewhere else that explains it in simpler terms or in another way. Doesn`t help one is going through the motions and not even getting the given exercises right. What should I do?
avatar
Mac
Re: Javascript
March 15, 2011 12:17PM
You can always google for Javascript tutorials. It may just take another viewpoint to understand it. W3 schools http://www.w3schools.com/js/default.asp is always a great place to start.
Re: Javascript
March 17, 2011 10:44AM
Thanks mac ill look into that!! ...Im slowly getting the hang of Javascript... spinning smiley sticking its tongue out

72925264
Re: Javascript
March 29, 2011 09:06AM
Have taken a break from this course for a week thinking that the brain needs a rest. Well , started again yesterday and Javascript is still Greek to the Nth degree , will go through the book and see what happens when I do the assignment. thumbs down
Re: Javascript
March 29, 2011 09:17AM
No!!! Don't say that Lindy! I had to have a completely unplanned operation and I'v been off my feet for 2 weeks! I'm so behind and haven't even started to look at Java scripting! sad smiley

Good luck- I'm sure with a lot of patience and perseverance we'll get through it! thumbs up
Re: Javascript
March 29, 2011 11:13AM
Sorry to be so negative Krystle but every sentence I read doesn`t make any sense , I have cried 3 times , given up on this course about 6 times. I actually have no idea what I am going to do when it`s time for the assignment. confused smiley
Re: Javascript
March 29, 2011 11:19AM
For example: Topic 3B , Control structures and Code Formatting - have read it through 4 times and still don`t understand WTF they are trying to teach me. So I am just moving on and hope for the best. smile
Re: Javascript
March 29, 2011 06:50PM
Yes, I do agree. JavaScript is extremely challenging for me! I wish that I had more time to work through JavaScript again.
But the portfolio needs my attention now, because tghe closing date is 13 May!!!!!!!!!!!!!!!!!!!!!!!!!!!

Good luck everybody!
Re: Javascript
March 30, 2011 06:03AM
Sorry Lindy sad smiley

I really wish I could help you (or at least try, but like I said I'm no where near there yet.) I'm sure you'll get it right eventually- just hang in there.
Re: Javascript
March 30, 2011 08:55AM
There`s a light going on , YIPPEEEEE!!!!!!!!!! Have found this website http://homepage.ntlworld.com/kayseycarvey/index.html , and something seems to be sticking.
Re: Javascript
March 30, 2011 02:50PM
I have been trying to link other web pages to a separate javascript page, but it does'nt work. it only works when javascript is embedded in each page. Can someone help?
avatar
Mac
Re: Javascript
April 01, 2011 08:37AM
Language: Javascript
< script type="text/javascript" src="myscript.js"></ script >
Re: Javascript
April 01, 2011 09:15AM
Thanks Mac, it now works.
Re: Javascript
April 05, 2011 11:51AM
My question is this:
I have now joined Lynda.com and am going through those javascript tutorials. I am still struggling to understand where one gets all the lines from and how they fit in together and what goes where. Is this normal for first timers with Javascript? Is it okay to not really know what is going on and do this assignment , so that when I do the assignment I can copy javascript from other sites or wherever I can get hold of it from , I am feeling a bit desperate at the moment and time is running out?
Re: Javascript
April 05, 2011 07:15PM
Hi lindy

If it makes you feel any better, javascript, in the beginning, is not for the faint hearted. I can try and help you ....

For your rollover menu use the Javascript lesson 4B.

If you have done task 4B and got it to work successfully, why not copy and paste the javascript, as it is, into a new basic html file. If there is nothing on the page except the required tags eg.
Language: HTML
<html><head></head><body></body></html>
, you can play around with it easier.
All you would need to change would be the image names and perhaps the folder, depending on where you have put the images.

In the head section of the page between
Language: HTML
<script></script>
tags you need to define the function (tell the browser what to do) when someone mouseover the menu image in the
Language: HTML
<body>
of your page. That is over simplified but about the best I can explain it.
In each of your links
Language: HTML
<a>
you then add onMouseover and onMouseout events, which call the functions defined in the script in the head of the page.

Once you have got the javascript working on a page with nothing else on it to distract you, then add it to your portfolio page.

I hope Mac corrects me if I have got this wrong!
avatar
Mac
Re: Javascript
April 06, 2011 07:56AM
It is perfectly acceptable to copy javascript from other sites and use it. You may need to adapt it a bit though.
Re: Javascript
April 06, 2011 08:16AM
Thanks for the advice Rowena thumbs up , will go over the text book again and then it`s assignment time.
Re: Javascript
April 09, 2011 12:46PM
Just hang tough. I'm busy doing my last assighnment mow, and i've found that I understand javascript much beter if i google some of the topics. good luck.
Re: Javascript
April 15, 2011 09:33AM
Is anybody else having problems using all of the javascript capabilities in browsers like chrome and firefox? Only certain of the effects work in these browsers, but I am not having the same problems in internet explorer.
Re: Javascript
April 22, 2011 01:36PM
Done
Re: Javascript
April 23, 2011 07:14AM
Regarding the post by Phoenix, I have also found certain problems in the Zoo tutorials (inculding the "solution demos"winking smiley when using Firefox & Chrome, whereas Explorer always works correctly. Firefox is my 1st choice browser. I was surprised to have such basic issues.
Re: Javascript
April 24, 2011 04:04PM
I am a bit confused by the inclusion of a "menu system that makes use of roll-over images" for the assignment. What exactly do we have to do here? Can I have a list that turns into an image with text. So that when I rollover the item in text on the list , a photo and some text appears?? OR have the image and when rolled over text appears and then obviously have no list??
Re: Javascript
April 26, 2011 04:26AM
I have read in the tutorial letter that we don't need to report our progress back on the forum for JavaScript. Is there anything we do need to submit to show that we have worked our way through the chapters?

Thanks for the help!
avatar
Mac
Re: Javascript
April 26, 2011 07:26AM
lindy-72961430 Wrote:
-------------------------------------------------------
> I am a bit confused by the inclusion of a "menu
> system that makes use of roll-over images" for the
> assignment. What exactly do we have to do here?
> Can I have a list that turns into an image with
> text. So that when I rollover the item in text on
> the list , a photo and some text appears?? OR
> have the image and when rolled over text appears
> and then obviously have no list??

An image is replaced by another image, e.g. a green button with some text on it is replaced by a red button with the same text on it, or the button stays the same but the text on it changes.
avatar
Mac
Re: Javascript
April 26, 2011 07:27AM
Krystle-73025941 Wrote:
-------------------------------------------------------
>Is there anything we do need to submit
> to show that we have worked our way through the
> chapters?

No.
Re: Javascript
April 29, 2011 10:58AM
Try http://www.tizag.com/javascriptT/ for Java support also if you have aby problems trying to do something in particular just ask google and there are plenty of javascript foroums too
Re: Javascript
April 29, 2011 11:13PM
Hi Everybody

I'm not sure if anyone has come across this error but I'm not sure how to fix it and getting very frustrated at this stage!

I have completed activity 4B successfully and then adapted the code to my portfolio website however when I mouse over the first link, the image belonging to the second link changes. Same happens for link two, when I mouse over it, the image belonging to link 3 changes into the image that is supposed to be assigned to link two and then finally when I get to my third link and mouse over and then off it I get an error on page message telling me to check the following (namely the two lines with document.images...):

Language: Javascript
function activeLink(imgnum) { document.images[imgnum].src = rollimgs[imgnum].src }   function inactiveLink(imgnum) { document.images[imgnum].src = rollimgs[0].src }

Am I completely blind and missing something?!
Please help!
Re: Javascript
April 30, 2011 02:40PM
I have googled , sat for hours and still I don`t seem to be getting this javascript. What should I do now? All my assignment needs is those 2 javascripts.

I have managed to do the rollovers using :
<td><a href = "thingsToDo.html" onmouseover="document.golf.src='golf1.jpg'" onmouseout="document.golf.src='buttonGolf2.png'">
<img src="buttonGolf2.png" width="100" height="100" name="golf" alt="Club Me!" border="0"></a></td>

I know this is not really the right way of doing it but I am so stuck? I don`t really understand the way of putting it in the head section , I have tried. Where can I go to find out what to do?
Re: Javascript
April 30, 2011 02:42PM
using: a href = "thingsToDo.html" onmouseover="document.golf.src='golf1.jpg'" onmouseout="document.golf.src='buttonGolf2.png'"
img src="buttonGolf2.png" width="100" height="100" name="golf" alt="Club Me!" border="0

have left the tags off here.
Re: Javascript
May 01, 2011 07:08PM
Lindy, I know how you feel...and although I don't really understand this 100%, I followed the steps of Task 4B-1&2 and managed to get it to work, although on the wrong images. So perhaps I am not the right person to give out advise at this stage but if you follow the steps, changing image names and adapting the array to the number of images you have...it should work.

I wish that someone else will suggest otherwise so we can get this to work.
Rowena also provided a nice breakdown above.

Hang in there!
Sorry, only registered users may post in this forum.

Click here to login