|
Steve, I want to help you out on this, but after reading your post a couple of times I still don't quite understand what you're trying to do. First let me clarify that you are NOT refering to using the server side _javascript_ feature of Witango, right? I you simply want popup.taf to receive the value of info when it generates the code page that shows up in the popup window, you just need to do the following... <A HREF="" class="moz-txt-link-rfc2396E" href="_javascript_:popupwin('popup.taf','returns',750,500);">"_javascript_:popupwin('popup.taf','returns',750,500);" >Return Policy</A> and the _javascript_ code is: function popupwin(file,info,x,y) { var winName = info + "xxxxx"; // Move this up before you build the URL {var fileInfo = file +"?<@USERREFERENCEARGUMENT>&infoArg="+info;}; // To pass the variable as an argument to the witango server var xMax = screen.width, yMax = screen.height; var xSiz = x, ySiz = y; var xPos = (xMax - xSiz)/2, yPos = (yMax - ySiz)/5; infoFile = window.open(fileInfo,winName,"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=" + xSiz + ",height=" + ySiz + ",screenX=" + xPos + ",screenY=" + yPos + ",left=" + xPos + ",top=" + yPos); } Now, on the server side in popup.taf if you want to access info as a "variable" you just need to do the assignment from an ARG. <@assign scope=request name=r_myvarname value=<@ARG infoArg>> I know this is basically the same response that Gene gave, the only thing that I've added is showing how to access that arg as a variable on the server? If this isn't what you're looking for, try to explain the problem one more time... /John Steve Smith wrote: No, I'm still waiting for an answer. I have created a workaround that involved three separate files but I would like to condense that down to one file that can use the value coming from the _javascript_ parameter. ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf |
- Witango-Talk: Javascript to Witango Steve Smith
- RE: Witango-Talk: Javascript to Witango Ben Johansen
- RE: Witango-Talk: Javascript to Witango Wolf, Gene
- Re: Witango-Talk: Javascript to Witango Steve Smith
- Re: Witango-Talk: Javascript to Witango Charles Brown
- Re: Witango-Talk: Javascript to Witango Steve Smith
- Re: Witango-Talk: Javascript to Witang... John McGowan
- Re: Witango-Talk: Javascript to Wi... Steve Smith
- Re: Witango-Talk: Javascript t... John McGowan
- RE: Witango-Talk: Javascript to Witang... Ben Johansen
- Re: Witango-Talk: Javascript to Wi... Steve Smith
