Click here to Skip to main content
15,901,284 members
Home / Discussions / Web Development
   

Web Development

 
QuestionHelp......how to convert doc format to tiff format Pin
yang12310-Jul-08 23:57
yang12310-Jul-08 23:57 
AnswerRe: Help......how to convert doc format to tiff format Pin
Shog911-Jul-08 7:32
sitebuilderShog911-Jul-08 7:32 
QuestionHTML Select control - Setting dropdown width in IE Pin
rotsey10-Jul-08 16:56
rotsey10-Jul-08 16:56 
AnswerRe: HTML Select control - Setting dropdown width in IE Pin
Shog911-Jul-08 7:25
sitebuilderShog911-Jul-08 7:25 
QuestionResponse.ContentType = "application/vnd.ms-powerpoint" Pin
kj001410-Jul-08 10:33
kj001410-Jul-08 10:33 
AnswerRe: Response.ContentType = "application/vnd.ms-powerpoint" Pin
Shog911-Jul-08 7:35
sitebuilderShog911-Jul-08 7:35 
Questionmime type file conversion in asp.net Pin
umeshdaiya9-Jul-08 23:11
umeshdaiya9-Jul-08 23:11 
QuestionJavascript problem Pin
Broken Bokken9-Jul-08 16:34
Broken Bokken9-Jul-08 16:34 
I'm making a simple html page with an external .js file that will write the navigation to a page. My problem is that for some reason the page will not call the function in the external file from the page.

Here is my .js file:

function WriteMenu(selectedNav)
{
document.writeln('<table id="NavigationTable">');
document.writeln('<tr>');

document.writeln(GetNavItem('Home', 'index.html', selectedNav == 'home'));
document.writeln(GetNavItem('History', 'history.html', selectedNav == 'history'));
document.writeln(GetNavItem('Castes', 'castes.html', selectedNav == 'castes'));
document.writeln(GetNavItem('Map', 'Library/Images/map.gif', selectedNav == 'map'));
document.writeln(GetNavItem('Rules', 'rules.html', selectedNav == 'rules'));
document.writeln(GetNavItem('Resources', 'resources.html', selectedNav == 'resources'));

document.writeln('<tr>');
document.writeln('</table>');
}

function GetNavItem(text, url, isSelected)
{
var navItem;

if (isSelected)
{
navItem = '<td class="selected"><a href="' + url + '">' + url + '<a></td>';
}
else
{
navItem = '<td><a href="' + url + '">' + url + '<a></td>';
}

return navItem;
}

Here are the answers to obvious questions.

Here is my header:
<script language="Javascript" type="text/javascript" src="Library/JS/Menu.js" />

Here is where I am trying to call the function. This is inside the body tags for the page.

<script type="text/javascript">
WriteMenu('home');
</script>

I even tried adding an alert to the function and I get nothing. Why won't it call the functions?

Broken Bokken

You can't carry out a ninja-style assasination dressed as an astronaut. It's the luminous fabric; too visible. - Tripod

The story of your fighting is a poem of two words: YOU SUCK.

AnswerRe: Javascript problem Pin
NeverHeardOfMe10-Jul-08 5:55
NeverHeardOfMe10-Jul-08 5:55 
QuestionNeed to create a Library webpage Pin
Adi252339-Jul-08 13:40
Adi252339-Jul-08 13:40 
AnswerRe: Need to create a Library webpage Pin
Christian Graus9-Jul-08 15:27
protectorChristian Graus9-Jul-08 15:27 
GeneralRe: Need to create a Library webpage Pin
Adi252339-Jul-08 15:35
Adi252339-Jul-08 15:35 
GeneralRe: Need to create a Library webpage Pin
Christian Graus9-Jul-08 15:47
protectorChristian Graus9-Jul-08 15:47 
GeneralRe: Need to create a Library webpage Pin
Christian Graus9-Jul-08 15:51
protectorChristian Graus9-Jul-08 15:51 
QuestionWebcrawler - Please help Pin
dsaroop9-Jul-08 7:58
dsaroop9-Jul-08 7:58 
AnswerRe: Webcrawler - Please help Pin
Christian Graus9-Jul-08 8:21
protectorChristian Graus9-Jul-08 8:21 
GeneralRe: Webcrawler - Please help Pin
dsaroop9-Jul-08 10:55
dsaroop9-Jul-08 10:55 
GeneralRe: Webcrawler - Please help Pin
Shog99-Jul-08 11:31
sitebuilderShog99-Jul-08 11:31 
GeneralRe: Webcrawler - Please help Pin
Christian Graus9-Jul-08 11:39
protectorChristian Graus9-Jul-08 11:39 
GeneralRe: Webcrawler - Please help Pin
Shog99-Jul-08 11:43
sitebuilderShog99-Jul-08 11:43 
GeneralRe: Webcrawler - Please help Pin
Christian Graus9-Jul-08 15:28
protectorChristian Graus9-Jul-08 15:28 
GeneralRe: Webcrawler - Please help Pin
Shog99-Jul-08 16:27
sitebuilderShog99-Jul-08 16:27 
GeneralRe: Webcrawler - Please help Pin
dsaroop9-Jul-08 12:01
dsaroop9-Jul-08 12:01 
GeneralRe: Webcrawler - Please help Pin
Shog99-Jul-08 12:30
sitebuilderShog99-Jul-08 12:30 
GeneralRe: Webcrawler - Please help Pin
dsaroop10-Jul-08 6:50
dsaroop10-Jul-08 6:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.