Trying to use a website <a href="http://www.pxtworld.co.nz">http://www.pxtworld.co.nz</a> but when I try to use any of the buttons at the top I get a Javascript error. Here is the code from the Javascript Console.
<code>
Error: gotoPage is not defined
Source File: javascript:gotoPage('txt2pxt_about.jsp')
Line: 1
</code>
I have had a look at the source and see a Javascript file is referenced
<script language="JavaScript" src="javascript/submitForm.js"></script>
I opened the Javascript file and found the function gotoPage near the bottom.
<code>function gotoPage(page) {
var result = populateActionSubaction(page);
if (result == true) {
document.submitForm.submit();
}
}
</code>
Is this a firebird issue or an HTML/Javascript issue. Before I forward details through to the website developers I thought I should check.
TIA
Celtic_kiwi
Is it the Site or Firebird
-
- Posts: 0
- Joined: December 31st, 1969, 5:00 pm
This is a JavaScript issue. 'goto' is a reserved word and cannot be used as the name of a JavaScript function.
From here:
From here:
Javascript shares a name-space with Java, the language it is derived from. So certain words are reserved, even though they may have no meaning in Javascript
boolean byte char const abstract class break case catch continue default do double else extends false final finally float for function goto if implements import in instanceof int interface long native new null package private protected public return short static super switch synchronized this throw throws transient true try var void while with
-
- Guest
Yes Celtic Kiwi
Celtic as in Ireland, Scotland.
Kiwi as in New Zealand. The Kiwi is a bird native to New Zealand and is a national symbol, although not quite as majestic as the bald eagle. It is a small flightless bird with a very long pointy beak. Have a look at <a href="http://www.kiwirecovery.org.nz/Kiwi/Home/">http://www.kiwirecovery.org.nz/Kiwi/Home/</a> to see about the Kiwi.
Kiwi as in New Zealand. The Kiwi is a bird native to New Zealand and is a national symbol, although not quite as majestic as the bald eagle. It is a small flightless bird with a very long pointy beak. Have a look at <a href="http://www.kiwirecovery.org.nz/Kiwi/Home/">http://www.kiwirecovery.org.nz/Kiwi/Home/</a> to see about the Kiwi.