Forum Moderators: open

Message Too Old, No Replies

Passing data in a frameset

         

MozMan

7:46 pm on May 13, 2004 (gmt 0)

10+ Year Member



I have a web-based (ASP) application that runs on it's own server. My corp office runs a portal, which dynamically generates a frameset via Lotus/Domino.

The user logs into their portal, then is presented (among other things) a link to my application, with all of the data needed in the querystring, for them to automagically login to my app (so they don't have to enter login credentials twice).

When you click on the link, my app should appear in their frameset, and you should be logged in and ready to rock n roll.

Here's the problem: my login page appears, but the user is not logged in. If I copy and paste the url into a new browser, the auto-login happens great, but refuses to work in the frame.

It seems like the data is not being passed for some reason, but I can't tell what is happening. Anyone have any ideas what the problem might be? Is it on my end, or does it have to do with the frame?

Thanx!

-Moz

sned

9:11 pm on May 13, 2004 (gmt 0)

10+ Year Member



My guess is that it would be something with the frames.

Does the frame source just link to the page? Or does it have something like <frame src="page.asp?login=foo .. etc.

MozMan

9:23 pm on May 13, 2004 (gmt 0)

10+ Year Member


The frame source is fairly simple:

****************************************
<HTML>
<HEAD>
<TITLE>page title</TITLE>
<script language="JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape"[smilestopper])&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW ¦¦ innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->
</script>
</HEAD>
<FRAMESET rows="147,*" FRAMESPACING=0 BORDER=0 MARGINHEIGHT=0 frameborder="0">
<FRAME SRC="dominodatabase.nsf/allPagesLookup/top_nav2?OpenDocument" NAME="top" SCROLLING=NO MARGINHEIGHT=0 MARGINWIDTH=0 FRAMEBORDER=0>
<FRAME SRC="dominodatabase.nsf/allPagesLookup/buy_main2?OpenDocument" NAME="main" SCROLLING=YES MARGINHEIGHT=0 MARGINWIDTH=0 BORDER=0 FRAMEBORDER=0>
<noframes>
</noframes>
</FRAMESET>
<frameset>
</frameset>
</HTML>
*****************************************************

And the page in the frame has the following for a link to my site:

*****************************************************
<TD WIDTH="150" HEIGHT="32" VALIGN="CENTER" STYLE="background-color: #CCCCCC"><FONT FACE="ARIAL" STYLE="font-size= 7pt;" COLOR="#666666"><P><A HREF="HTTP://WWW.MyURLIsHere.COM/DEFAULT.ASP?USERID=JMARTINEZ&CUSTNO=018&CUSTLOC=018-44570&REFER=FE&START=CREATE" CLASS="SERVICESTABLE">WORK ORDER REQUEST</A></P></FONT></TD>
*****************************************************

MozMan

4:19 pm on May 17, 2004 (gmt 0)

10+ Year Member


Well, I found the problem, and thought I'd post the solution in case anyone is interested:

In my application, I perform a redirect based on the parameters passed in. I was using response.redirect, and that apparently doesn't work in a frameset, so I changed it to a server.transfer, and now it works fine.