Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Issues with Form Posting within frames

Status
Not open for further replies.

TheCandyman

Technical User
Sep 9, 2002
761
US
Anyone know if any issues(besides showing in the incorrect frame) with frames and posting a form? If the page is by itself then it works fine, but if it's inside a page with frames, it won't post??

Code:
<form action="https......../default.asp" method="post" name="Login">
User ID:<input size=8 id="USERID" name="USERID"><br><br>
Password:<input size=8 type="password" id="USERPASSWORD" name="USERPASSWORD"><br><br><br>
<input type="submit" value="Secure Log In" id=submit1 name=submit1>
</form>
 
There are no issues with frames about data not being posted and everything should work the same. What is it that doesn't work in frames? Is it just that the values are not carried over? How are you testing that? Is submit button not working? We need more information to help you appropriately.
 
The problem is that my website uses frames, and it posts a basic login to another website login page(with permission). If the login page is by itself it works www.myweb.com/login.asp but if it's in the frame like it supposed to be then once the form is submited it shows the other website login page, which i am normally posting to. Here is the code for my frames

Code:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="keywords" content="">
<meta name="description" content="">
<meta name="robots" content="index,follow">
<title>ACT</title>
<link rel="stylesheet" type="text/css" href="includes/Style.css">
<base target="fram">
</head>

</head>

<frameset framespacing="0" border="0" frameborder="0" rows="90,*,20">
  <frame name="top" scrolling="no" noresize target="contents" src="Part_Top.asp">
  <frameset cols="175,*">
    <frame name="contents" scrolling="no" noresize target="_parent" src="Part_Left.asp">
    <frame name="fram" scrolling="auto" noresize src="start.asp">
  </frameset>
  <frame name="bottom" scrolling="no" noresize target="contents" src="Part_Bottom.asp">

  	<noframes>
  	<body>
  	<script language=JavaScript>
<!--
var message="";
//
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")
// --> 
</script>
  		<p>This page uses frames, but your browser doesn't support them.</p>
  	</body>
  	</noframes>
</frameset>

</html>
 
Then maybe it's because your domains are different (triggering the cross-site scripting restrictions).

You could look at logging in remotely server-side and then passing the scraped data through to the browser. You might use curl in PHP to do this... I'm sure something similar exisits for other server-side environments.

Cheers,
Jeff

[tt]Jeff's Page [/tt][tt]@[/tt][tt] Code Couch
[/tt]

What is Javascript? faq216-6094
 
I noticed i am using Frames, and that site is using iframes?? I thought iframes weren't supported by all browsers and had issues with those that did. Could that be a problem?
 
I had it as Target="_self" but that didn't work. Is that what you mean CliveC?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top