Pls help me, query_string using onchange

Hi,

In my web form, there is an Subject list field, It contains, so many text values. I need that once we select one text, then it automatically opens another form2, and must display that subject field value in form2 in query_String field. For this I know we have to use onchange event, bcoz i am not using any button to give simple @urlopen function.

So for this please give the onchange event script. Pls I am in big trouble.

Hope soon

Rajan

Subject: Pls help me, query_string using onchange

Do you see the “Browse by” and “Select view” drop down in the right hand navigator of this forum?

That automatically navigates to a different view using onChange event.

Try asking your browser to view the HTML source of the page to see how that was done:

<SELECT name=“URLpick” onChange=window.open(db+this.options[this.selectedIndex].value,‘_top’)>

Select view Date (threaded) Date (flat) With excerpt Author Category Platform Release

Or try searching this forum. This question has been answered hundreds of times in this forum already.

Subject: Pls help me, query_string using onchange

try this in the onchange event:var selindex=document.forms[0].subject.options.selectedIndex

location.href = “http://www.xxx.com&Query=” + document.forms[0].subject.options[selindex].text;

Subject: RE: Pls help me, query_string using onchange

Hi Steve,

I was tried using ur example, but it is giving error

varselindex=document.forms0].SUBJECT.options.selectedIndex

location.href = “/lms.nsf/EmpIssueBooks?openform&Query=” + document.forms[0].SUBJECT.options[selindex].text;

— Below is error-------------

HTTP Web Server: Lotus Notes Exception - Entry not found in index [/lms.nsf/EmpIssueBooks?openform&Query=Chemical Engineering]

I also used below code inplace of above code, but this also not working

location.href = “http://10.1.1.92/lms.nsf/EmpIssueBooks?openform&Query=” + document.forms[0].SUBJECT.options[selindex].text;

Pls give me solution

Adv thanks

Rajan