R
rolf.matreskova
Hi, is there a way to achieve the following ? I'm not good enough in JS
to make it work:
The original workflow is the following:
- user navigates to http://www.mysite.com/page1
- this sets a cookie in the browser
- user can then navigate to http://www.mysite.com/page2, the cookie
being set makes this work
I'd like to write a page http://www.myothersite.com/gohere.html
that automates the workflow above on behalf of the user, i.e. the page
goes to mysite.com/page1 and then when the cookie is set goes to
mysite.com/page2 automatically
I've tried with frames, a hidden frame in
http://www.myothersite.com/gohere.html
whose src is http://www.mysite.com/page1, and then when it is loaded
setting the window.location to http://www.mysite.com/page2, but it does
not seem the cookie is set well. Should it work ?
I am probably making my life more complicated than it should be here,
there is maybe a much simpler solution with JS. Any ideas ?
to make it work:
The original workflow is the following:
- user navigates to http://www.mysite.com/page1
- this sets a cookie in the browser
- user can then navigate to http://www.mysite.com/page2, the cookie
being set makes this work
I'd like to write a page http://www.myothersite.com/gohere.html
that automates the workflow above on behalf of the user, i.e. the page
goes to mysite.com/page1 and then when the cookie is set goes to
mysite.com/page2 automatically
I've tried with frames, a hidden frame in
http://www.myothersite.com/gohere.html
whose src is http://www.mysite.com/page1, and then when it is loaded
setting the window.location to http://www.mysite.com/page2, but it does
not seem the cookie is set well. Should it work ?
I am probably making my life more complicated than it should be here,
there is maybe a much simpler solution with JS. Any ideas ?