Click to See Complete Forum and Search --> : pop ups for a faq page


toorudez
03-27-2003, 11:45 AM
i'm trying to create a faq page that will use a pop-up window that contains the answers, but am having some trouble with it. So far, i'm using this function :

<SCRIPT LANGUAGE="JavaScript">
<!--
function OpenMe(newin) {
flyout=window.open(newin,"flyout","resizable=no,scrollbars=yes,width=300,height=300,top=300,left=300")
}// -->
</SCRIPT>

and am trying to link it to

<a href="order.html" onclick="OpenMe(order.html)"> click here </a>

but, all this does is open the page.html file in the current window.

any suggestions?


Thnx

nkaisare
03-27-2003, 12:48 PM
function OpenMe(newin) {
flyout=window.open(newin,"flyout"," resizable=no,scrollbars=yes,width=300,height=300,top=300,left=300");
return false;
}// -->
Does that help?

toorudez
03-27-2003, 04:42 PM
nope.. i get an error on my page that says that 'order' is undefined.

this is the link that i'm using to try and get it to work:

<input type=image src="images/order.gif" onclick="OpenMe(order.html)">

but, if instead of using
flyout=window.open(newin,"fly....
and i use
flyout=window.open("order.html","fly...
it works fine. But, i want this function to be used for several windows, and i'd rather not make a function for each one.

khaki
03-27-2003, 05:01 PM
Hi toorudez...

Try the file name in single quotes:

<a href="order.html" onclick="OpenMe('order.html')"> click here </a>

I think (?) that's it.
k

toorudez
03-28-2003, 02:12 PM
worked like a charm... thnx