dwtc
10-12-2003, 05:44 PM
Hi,
I am trying to teach my self javascript and have a problem with my project.
I have a basic open new window function in javascript and I want the content of that window to be dependent on the value of a form variable which is read from an access data base.
How do I do it?
This is what I have
<script type="text/javascript">
function openwindow2()
{
window.open("example1.swf","my_new_window","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=640, height=480")
}
</script>
within the form is
<td><img src="dimages/tbutton.jpg" value="Open New Window" onClick="openwindow2() value="<% Response.Write(LIST("content")) %>"></td>
Grateful for any help you may be able to give - Thanks
I am trying to teach my self javascript and have a problem with my project.
I have a basic open new window function in javascript and I want the content of that window to be dependent on the value of a form variable which is read from an access data base.
How do I do it?
This is what I have
<script type="text/javascript">
function openwindow2()
{
window.open("example1.swf","my_new_window","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=640, height=480")
}
</script>
within the form is
<td><img src="dimages/tbutton.jpg" value="Open New Window" onClick="openwindow2() value="<% Response.Write(LIST("content")) %>"></td>
Grateful for any help you may be able to give - Thanks