Click here to Skip to main content
15,890,717 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

My aim is to authenticate users in two systems at the same time. One is mine. I developed it. Second one is in different server and i don't know how to authenticate my users on it, cookies etc.

So i decide to post login page of Second one with auto filling necessary fields.

I have my login page which is used to authentication of my system. I put an invisable iframe here and link it to second system login page.

Now i'm trying to fill iframe login fields(userid, pw) from parent page and post parent and iframe at the same time but i cannot make it with javascript.

I cannot even try " document.frames[0].document.form[0].submit()" and etc because i can't write this script( intellisense don't let it. I don't know why. I'am using VS2010 by the way)

I will be appreciated for your help about posting iframes or communicating iframes elements or another solution about authenticating to two system at the same time. (I'm using ASP.NET)


Thanks.
Posted

1 solution

try these
1) element.ownerdocument
2) declare a variable in main page and in iframe page write: parent.variablename = this. now variablename is iframe object.

Or use scriptlet but it works just in IE browsers
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900