britta,
:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
: From: Britta Wingenroth (Design Department) <[EMAIL PROTECTED]>
:
: This is a multi-part message in MIME format.
: Content-Type: text/html;
:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
that above is a major problem on this list and causes alot of code to be
majorly unreadable. when posting to this list, please do it in plain text
only.
:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
: I'm having trouble passing a parameter on with a Java
: code new window function. I know this is a really basic
: question but I'm just learning Java... any help would be
: really appreciated.
:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
to sort out the confusion among less experienced developers, i would like to
point out something about your statement above. first of all, java and
javascript are *not* the same thing. javascript is what we're talking about
here, so, to avoid confusion let's refer to it as javascript and not java.
in regards to your question about the popup window, here are the changes
you'll need to make.
first, alter the productwindow() function so that it accepts an argument,
which you can then use to pass the code to the document in the popup window.
<script language="JavaScript" type="text/javascript">
<!--
function productWindow(code)
{
wPath = 'products/1detailtemplate.cfm?code=' + code;
wName = 'Product_Detail';
wFeatures = 'location,menubar,height=500,width=500';
product = window.open(wPath,wName,wFeatures);
if(product.focus) product.focus();
}
// -->
</script>
you'll notice that i made a few changes to how the script was written. it
has the same functionality as before with the addition of passing the code
to the popup window, but it should be easier to change if needed later. i
did add one more thing and that is one line of code that will bring the
popup window to the front of it's behind and another product is viewed in
it. that should reduce confusion for people caused by having the window
open, clicking back on the main window, losing the popup window, clicking on
another product link and seeing nothing happen cause it loaded in the popup
that's stuck behind the main window where they can't see it.
now, to call this productWindow() function, you would pass the code as an
argument of that function.
<a href="JavaScript:productWindow('#code#')">#Product#</a>
hope this helps,
.jeff
name://jeff.howden
game://web.development
http://www.evolt.org/
mailto:[EMAIL PROTECTED]
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.