external button

T

Thad

I have this table cell that is 150 pixels wide. In it I desire to call an
external javascript file to print on the screen, in this cell, a menu and to
jump to a page when the corresponding button is pressed. I am trying to have
all my button layout and linking happen in the javascript. I am wanting to
do this in javascript so I can easily add or delete page links by just
updating the javascript page instead of having to re-compile a java program
or change a bunch of html pages. Is this possible or am I just dreaming?

Thanks,
Thad
 
V

VK

I have this table cell that is 150 pixels wide. In it I desire to call an
external javascript file to print on the screen, in this cell, a menu and to
jump to a page when the corresponding button is pressed. I am trying to have
all my button layout and linking happen in the javascript. I am wanting to
do this in javascript so I can easily add or delete page links by just
updating the javascript page instead of having to re-compile a java program
or change a bunch of html pages. Is this possible or am I just dreaming?

With SSI as an obvious alternative,

<table ...>
...
<td>
<script src="menu.js"></script>
<noscript><p>Oopsy-poopsy... Script disabled...</p></noscript>
</td>
....

where menu.js prepares menu content and then document.write(it);
 
T

Thad

VK said:
With SSI as an obvious alternative,

<table ...>
...
<td>
<script src="menu.js"></script>
<noscript><p>Oopsy-poopsy... Script disabled...</p></noscript>
</td>
...

where menu.js prepares menu content and then document.write(it);

Nice....very nice. I had it working then arachnofilia started bugging out
on me and I lost my data. Starting over again, but I understand where you
are coming from.

Thanks a bunch.
Thad
 
T

Thad

I don't see anything wrong with this code. Just by looking, can you see
anything wrong?

document.write("<Button Type=Button style=\"width:180;height:25\"
style="background-color:#4ae3ec\" onClick=navigate(\"makeu5503.html\")>" +
Make One + "</Button>") ;

If code looks ok then I have to investigate further. External js page is
called like this...

<script type="text/javascript" src = "menujs.js">
</script>

The file is saved under menujs.js so I see nothing wrong but no button
shows...any suggestions?

Thanks,
Thad
 
T

Thad

Hah....answered my own question by playing with if for quite a while....

document.write("<Button Type=Button style=\"width:180;height:25\"
style=\"background-color:#4ae3ec\" onClick=navigate(\"makeu5503.html\")>
Make One </Button>") ;

Two double quotes had to be taken out...waaahhhhoooo.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top