Hi All!
1. A text field can be easily mapped to the button event (I did it using JavaScript).
2. However, the second prob remains to solve. I am trying to use the 'load(pageName)'
method for this purpose. However, I am finding that the pageName can only be a
className
(generated through compilation). However, my requirement is to pass a variable to
this page i.e. pageName. I am trying to do itin this fashion :
load("pageName.htm?Code="+paramValue);
When I compile and run this thing, it throws a null pointer exception.
Can somebody pls guide me whats wrong with this approach or how can I avoid this and
can have the desired results"
Thanx.
Rajneesh Garg
rajneeshgarg.ecode.com
---------------------------------------------
"peter cheung" <[EMAIL PROTECTED]> wrote:
>
>First of all if you want someone to design how to do all the stuff you want , you
>should go and get someone who have done some project using ND.
>
>Everything you need can be done easily except the enter key.
>You will have to write a javascript to intercept the enter key and fire the image
>button.
>This works in IE by firing the onclick event of the image button.
>In Netscape the javascript cannot fire that event.
>You have to write that yourself.
>(May be another button with the same function but not an image.
>Try to hide it using dhtml?)
>
>
>"Rajneesh Garg" <[EMAIL PROTECTED]> wrote:
>>
>>----- Original Message -----
>>Sent: Friday, December 17, 1999 3:01 PM
>>
>>
>>> Hi there!
>>>
>>> I am doing this project in ND5 with Oracle 8i as the database.
>>> I have a text field and a 'image' type button on page P1. The user is
>>> required to fill the text field and press the button. The query is then
>>> executed and the results are displayed on page P2.
>>> The requirements are
>>> 1. We want to map the button with the text field i.e. sometimes the user
>>> enters the data and presses the enter key, instead of pressing the button.
>>> We want that if user presses the text field, it should even then execute
>>the
>>> query in the same manner the pressing of button does.
>>>
>>> 2. The query generated as a result of user input shows the results on page
>>> P2. In the result set displayed, the user can choose the appropriate
>>result
>>> and can proceed (thro hyperlinks). The wish list, however, is that if the
>>> resultset consist of only 1 record, instead of opening page P2, the
>>> appropriate page related to that result should be opened. Presently, we
>>can
>>> reach this page from P2 thro' the hyperlink on P2. The 'home page' of the
>>> resultant page can be accessed by passing a value in the url in following
>>> manner:
>>> "pgHomePageOfResult.htm?value=UNIQUENUMBER"
>>> How can we achive these results.
>>> Any help will be appreciated.
>>>
>>> Thanx,
>>>
>>> Rajneesh Garg
>>> http://rajneeshgarg.ecode.com/
>>>
>>>
>>
>
_________________________________________________________________________
For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
For dire need help, email: [EMAIL PROTECTED]