Hi Ralph, the js function gets included into the JSP
page and it looks something like the following. Do you
see anything wrong?

<% final String currentSessionID = session.getId(); %>
...
function do_submit_popup(newAction, submitType,
targetFrame)
  {
    var newAction2 = newAction + "\;jsessionid=" +
"<%=currentSessionID%>";

    do_submit( newAction2, submitType, 'newWindow' );
  }

function do_submit(newAction, submitType, targetFrame)
  {
      if ( window.document.frames[0] != null)
      {
          formObj =
window.document.frames[0].document.forms[0];
      }
      else
      {
          formObj = window.document.forms[0];
      }
      if (formObj)
      {
          if ( targetFrame != null )
          {
              formObj.target = targetFrame;
          }
          if ( submitType != null )
          {
             if ( formObj.$submitType )
                 {
                 formObj.$submitType.value =
submitType;
                     }
          }
          if (newAction != null)
          {
              formObj.action=newAction;
          }

          e = formObj.elements;
          for (i=0; i<e.length; i++)
          {
              if ( e[i].type == "checkbox" )
              {
              cbox = e[i];
              if ( cbox.checked )
              {
                     cbox.value="<%=
DropDownListHelper.CHECKED %>";
                         }
                         else
                         {
                     var output = "<input
type='hidden' name='" + cbox.name + "' value='<%=
DropDownListHelper.UNCHECKED %>' >";
                        
cbox.insertAdjacentHTML("AfterEnd", output);
                         }
          }
          }
          if ( formObj.fireEvent("onsubmit") )
          {
              formObj.submit();
          }
          //}
      }
      else
      {
          //alert(window.location.pathname );
          window.location.href = newAction;
      }
  }


--- Ralph Einfeldt <[EMAIL PROTECTED]>
wrote:
> How do yo create the url.
> 
> I guess it's inside do_submit_popup.
> 
> Is this function part of the local page or part of
> an
> external js file ?
> 
> Why don't you just use:
> javascript:window.parent.do_submit_popup('<%=
> response.encodeUrl("PrintReport") %>',null,'_new');
> 
> > -----Original Message-----
> > From: Yong Wang [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, December 19, 2002 4:59 PM
> > To: [EMAIL PROTECTED]
> > Subject: jsessionid problem with a new window
> (HTA)
> > 
> > I use a javascript o append the jsessionid to the
> end of the
> > URL as such:
> > 
> >
>
javascript:window.parent.do_submit_popup('PrintReport',null,'_new');
> > 
> > which produces something like:
> > 
> 
> --
> To unsubscribe, e-mail:  
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 


=====

// My alternate email: [EMAIL PROTECTED]


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to