Fuego
08-24-2004, 02:11 PM
Okay imagine this is the main javasript its a short one but
I just want to get te logic and if it is posibble
if (choice == 1) {
var alert = " The first "
table = "<tr><td>" + alert + "Table</td></tr>"
}
Is there any way to include
"<tr><td>" + alert + "Table</td></tr>"
by a external file?Including the variable alert I did use?
Just putting this in an include an declaring it there like
string = "<tr><td>" + alert + "Table</td></tr>"
and calling it in the main js with
<script language="JavaScript" src="td.tpl"></script>
doesnt work..
Please help me out
I just want to get te logic and if it is posibble
if (choice == 1) {
var alert = " The first "
table = "<tr><td>" + alert + "Table</td></tr>"
}
Is there any way to include
"<tr><td>" + alert + "Table</td></tr>"
by a external file?Including the variable alert I did use?
Just putting this in an include an declaring it there like
string = "<tr><td>" + alert + "Table</td></tr>"
and calling it in the main js with
<script language="JavaScript" src="td.tpl"></script>
doesnt work..
Please help me out