0

My situation is that i need to redirect user to specific page. page which has two inputs. normally they are blank and just wait to be filled. but when this redirection mentioned before is performed:

window.location.replace('new')

then i need those inputs to be filled. Question is how can i detec if i'm somewhere because of redirection. i was thinking about sending some special params and read them everytime i'm in this place with inputs. anybody knows how to send and read parameters with jquery/coffeescript?

6
  • Is the "referer" set on redirect? I don't remember. Commented Aug 6, 2014 at 14:24
  • Is it single-page application? Why do you use redirect? Commented Aug 6, 2014 at 14:27
  • 3
    How about something like window.location.replace('new?arg1='+arg1+'&arg2='+arg2) Commented Aug 6, 2014 at 14:29
  • its not single page app. i just need to get from one place to another with javascript Commented Aug 6, 2014 at 14:30
  • "anybody knows how to send and read parameters with jquery/coffeescript" what about the solution by @JonathanLerner ? Is it acceptable or not? Commented Aug 6, 2014 at 14:35

1 Answer 1

2

How about something like window.location.replace('new?arg1='+arg1+'&arg2='+arg2)

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.