Solved

POST request with saved credentials after page redirect.

Posted on 2014-09-14
1
140 Views
Last Modified: 2014-09-21
I have created a page on wix. Inside of this page I have created "embedded HTML code" (if I correctly translated from russian).
Inside of this HTML code, I want to write JS code which
1. Gets the login from input tag.
2. Gets password from input tag.
3. Goes the the another site.
4. Make POST submit request with the  login and password which has been retrieved above.

It seems to me, at the step 3 it goes to another location and so the 4-th step is never run.
Should I assume such analogue that, redirection to another page is like returning from function?
0
Comment
Question by:Nusrat Nuriyev
1 Comment
 
LVL 53

Accepted Solution

by:
COBOLdinosaur earned 500 total points
ID: 40323875
You cannot post data on a re-direct. You need to have a  form an do a submit, however you may runinto security issues if you go cross-domain.  I am pretty sure that you are going to fail to solve this.  Most certainly you will fail from a limited environment like WIX that really does not have any kind of real professional level support for advance web development.

If you had a real website, it might be possible to accomplish something that looks like what you are trying to do, but it is not something that is going to come about easily.

Cd&
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A publishing tool, a Version Control System, or a Collaboration Platform! These can be some of the defining words for the two very famous web-hosting Git repositories: Bitbucket and Github. Git is widely used amongst the programmers and developers f…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question