Click here to Skip to main content
15,881,803 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
For my School we use a homework website called HomeLogic. I want to take the assignments block of that website and put it into a custom Homepage that I have made.

Here is the code of the "Assignments" frame.

<frame name="Assignments" id="Assignments" src="Home_Assignments.asp?"
scrolling="auto" noresize="" marginwidth="0" marginheight="0" frameborder="0">


But there is one problem. To enter into this Website you would need to enter a username and a password. How can I embed this frame into my homepage and make it automatically login so I can see the assignments? Thanks in advance, Jake.
Posted

You would most likely have to see if Homelogic has an API that allows you to grab the content.
 
Share this answer
 
I think you should show the login page in the frame. When user enter username, password and clicks the sign in button, it will automatically redirect to the next page.

But even if you are showing a different page which requires login, if that app has that code to redirect back to login when user is not logged in, your issue is solved. It should also redirect back to the initially requested page after login. If this is not available, then go with the first method.
 
Share this answer
 
Addition to Paul's answer (Solution #1), you can use Window.postMessage()[^], which is concept of Cross-Document Messaging[^]

-KR
 
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