Hello friends,
I have the following problem and I am breaking my head trying to solve it. I am pretty sure this is something simple, but I have spent enough time.
I have a form called $$ViewTemplate for FacePeople | FacePeople used on the web with one html text field.
When I click on the button, this is the URL generated by my code:
http://dpusso002.som1.nj.jpmorganchase.com/legal/experts.nsf/FacePeople?openview&startkey=Gross
When I hit the enter key, this is the URL generated:
http://dpusso002.som1.nj.jpmorganchase.com/Legal/experts.nsf/FacePeople?startkey=Gross
What’s missing? openview&
This form has an embedded view called Facebook\People.
Here are some of the code in the html
I am gathering some values when the form loads:
<body text="#000000" bgcolor="#FFFFFF" onload="path = window.location.pathname.toLowerCase(); <p>var nsfPos = path.indexOf(".nsf");path = path.substr(0, nsfPos + 5);"></p> <p>The code I put onSubmit appears here:</p> <form onsubmit="alert('Your request is being processed, please wait.');key = window.document.jump.startkey.value.replace(/ /g, "+");
window.location = path + "FacePeople" + "?openview&startkey=" + key" action=“”>
This is where I have the button
<!- This is the only text field in the form//–>
<img src=“/legal/experts.nsf/search.jpg?OpenImageResource”
onclick="key = window.document.jump.startkey.value.replace(/ /g, "+")
window.location = path + "FacePeople" + "?openview&startkey=" + key" alt=“”>
The code in the button and in the onSubmit is:
key = window.document.jump.startkey.value.replace(/ /g, “+”)
window.location = path + “FacePeople” + “?openview&startkey=” + key
Any help is greatly appreciated