Solved

Routing users back to search results page from confirmation page.

Posted on 2004-08-16
8
196 Views
Last Modified: 2013-12-18
I have a job search page in my website. when the user searches for jobs, he gets a list of jobs that matches his search string. The user can click the job and apply for it.Once the user applies for the job, he sees a job confirmation page that says "Your job application has been sent."

My problem is Below that message("Your job application has been sent." ), i want to provide a link that takes users back to the search results page..
 

For the confirmation page, I have used a $$ return field that says Thank you .

It goes like this:
"<h2>Thank you, " + who + "</h2>"

 Is there any way i can provide a link on the confirmation page that takes users back to the search result page.


Thanks,
Jay
0
Comment
Question by:jaggernat
8 Comments
 
LVL 19

Expert Comment

by:madheeswar
Comment Utility
what u have to do is,
pass the parameter which the user searched to the URl and get the URL to Query_String.

And u will get the handle to the parameter and after Thank you, u can redirect the user to Search form with parameter where it will search again and display the result.


OR,

once the user clicks on search document, and applies, instead of having your msg in $$Return field, create a thanksform and in the $$Returnfield divert it to that form and in that form, we can place a timer and redirect to the search page like history.go(-3)
1->opendocument
2->editdocument
3->Thankyouform

thats why I used -3
0
 

Expert Comment

by:Kamalakannan_c
Comment Utility
If you are comfortable with opening the document in a new window, try opening in a popup window and on submit of 'job application', it can divert to Thankyou form which can have a close button. This would prevent you from loosing your search results at the same time, the 'job application' can be submitted.
0
 
LVL 19

Expert Comment

by:madheeswar
Comment Utility
This is also another good idea.
0
 
LVL 15

Expert Comment

by:Bozzie4
Comment Utility
If you know the url of the search results, use that in $$Return

"[/db.nsf/searchresults]"

Or create a more elaborate response in the $$Return field

"<html>"+@newline+
"<head>"+@newline+
"<title>thank you</title>"+@newline+
"<META HTTP-EQUIV=Refresh CONTENT=\"1; URL=http://YOURSEARCHRESULTS\">"+@newline

"</head>"+@newline+
"<body>"+@newline+
"<h2>Thank you</h2>"+
"you will be redirected ... "+
"if this doesn't happen automatically, click here  (and add the link)"+
"</body>"+@newline+
"</html>"

"<h2>Thank you, " + who + "</h2>"
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
LVL 24

Expert Comment

by:HemanthaKumar
Comment Utility
Always append the search string to the url.. finally when submitted, extract the search query from the url (using query_string) and build a url with this query as parameter..

~Hemanth
0
 
LVL 10

Author Comment

by:jaggernat
Comment Utility
Hello hemanth

how do i extract the search query from the url (using query string) ?  sorry, i am a little new to this.
I would appreciate a little more detailed explanation.

thanks,
Jay
0
 
LVL 31

Accepted Solution

by:
qwaletee earned 300 total points
Comment Utility
If the search string is part of the URl, then set a field on the job form called QUERY_STRING, computed FOR DISPLAY, value formula QUERY_STRING.  Notes will automatically put the query string value in the query string field IF you do exactly what I just described.

What is the query string?  In the URL
    http://www-10.lotus.com/ldd/46dom.nsf/DateAllwithExcerptWeb?OpenView&Start=100
The query string is:
    OpenView&Start=100

So, if your search terms are "qwaletee AND the best" and your result URL is:

http://www-10.lotus.com/ldd/46dom.nsf/xyz_view/DocKey

Then instead of having http://www-10.lotus.com/ldd/46dom.nsf/xyz_view/DocKey as the link, you should use:
    http://www-10.lotus.com/ldd/46dom.nsf/xyz_view/DocKey?OpenDOcument&SearchTerms=qwaletee+AND+the+best

There are two probelms with this.  #1) Your "return" page after submission is two steps removed form the search results page.  The QUERY_STRING will be from the document save, not the document open, so you would have to change the FORM ACTION= to get in the open document's QUERY_STRING into the save document's QUERY_STRING.

Second problem is, if you are using Domino's built-in search facilities, you have no control over the links returned by Domino.  One way around that is to include the search terms in the search result URL, and then use the "referring URL."  For example, a standard Domino search URL would be:

    http://www-10.lotus.com/ldd/46dom.nsf/Search?SearchView&Query=qwaletee&SearchOrder=0&Start=1&Count=100

And the document found by the search is:

    http://www-10.lotus.com/ldd/46dom.nsf/55c38d716d632d9b8525689b005ba1c0/73c32437f18741ce85256d510055ca5a?OpenDocument&Highlight=0,qwaletee

Now, in this case, QUERY_STRING is OpenDocument&Highlight=0,qwaletee which does not help much.  Buy if you use HTTP_REFERER instead if QUERY_STRING, you will get http://www-10.lotus.com/ldd/46dom.nsf/Search?SearchView&Query=qwaletee&SearchOrder=0&Start=1&Count=100

You can then parse out the &Query=qwaletee&.  Or even use the URL as-is.  You still have to somehow stick the HTTP_REFERE info from teh document open page into the query string for the save document page, which is what contains the $$Retrun output.  One way around this might be to have a field SAVED with the document called REFER_BACK, which will contain a copy of the previous HTTP_REFERER.  So your $$RETURN might be something like:

"<B>Thanks!<B><BR><A HREF=\"" + REFER_BACK + "\">Back to search results</A>"

That's assuming you use standard Domino search URLs, so that HTTP_REFERER conatins everyting you needed.  If not, you'll have to modify your search results URL so you can parse out the values, or set them in cookies, and use those values passed trhough to the ?SaveDocument page, and refer to taht in the $$Return.
0
 
LVL 24

Expert Comment

by:HemanthaKumar
Comment Utility
Just place Query_String Field (hidden) access it through formula ,.. WHich will be essentially anything after ? in the url

Use string manipulation function to get the value of query
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

For Desktop Techs: How to retain a user's Notes configuration data when swapping out the end user's computer. (Assuming that you are not upgrading to a completely different version of Notes client) All you need to do is: 1) install Notes o…
  In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

744 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now