on 05-12-2006 11:27 AM
Hi,
We have a HTMLB input field on a BSP page. We need to fill another field based on the value entered in the first input field. For that I can fire onblur event using the following Java script, but I don't know how to capture the value in the input field and call a function module to get some values based on the given input field value. Any help?
<script for="INPUTFIELDID" event=onblur type="text/javascript">
</script>
Hi Raja,
I implemented the same code mentioned by you in oninputprocessing, still I am getting the same error.
Error message: Access not possible using 'NULL' object reference. ( type of termination: RABAX_STATE ).
I tried the option(htmlbSL) mentioned by Rohit also. But using that also, I am getting the same error. I don't know what code I missed. Any idea what causing the error.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
To call onInputprocessing on the firing of the event, you can use the following code in your javascript:
htmlbSL (this , 2 , 'SUBMITVALUES:onInputProcessing(submit)');
The event can be captured in onInputProcessing with value of event->id as 'SUBMITVALUES'.
I hope it helps.
regards,
Rohit
PS: I have searched for help on htmlbSL but couldnt find any.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Raja,
I am using the following code as said by you.
<bsp:htmlbEvent id = "myid"
onClick = "myonclick"
name = "ValueChanged"/>
<script for="IP1" event=onblur type="text/javascript">
ValueChanged();
</script>
when ever focus is changed from input field "IP1",I assume it will fire event mentioned in onClick, that is "myonclick".I am trying to capture the same event"myonclick" in oninputprocessing code. It's firing an event and it's taking me to onInputprocessing event. In debugging when I check the value of the event, it's showing value "**Illegal reference**" and upon executing this, I am getting the follwoing error in BSP page.
Error message: Access not possible using 'NULL' object reference. ( type of termination: RABAX_STATE )
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Raja,
I used the same code mentioned by you. It's firing onInput processing event, but it's firing with empty or NULL value, which I am not able to capture in onInputprocessing and giving error saying that cannot access NULL reference.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rohit,
Yes, If I am able to call onInputprocessing when onblur is fired, that will be helpful to get the required values using the value entered in the input field. And also page need to be refreshed with retrieved values.Please let me know how to call onInitialization when onblur is fired.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
<script for="INPUTFIELDID" event=onblur type="text/javascript">
document.<form id>.<inpufieldid>.value = this.value
</script>
Regards
Raja
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Raja Sekhar,
I don't think so we can get this reqirement by using input field but we can get it by using dropdownlistbox.
Regards,
Azaz Ali.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Do you want to call the OnInputProcessing when the oblur event is fired?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
you can look in the sourcecode of the html page in your browser.
However you can use javascript with "document.forms[x].elements[y].value" .
In the document object there is an array with all forms and there you can find an array with all html objects like input or button.
Maybe you have to try it out what x and y you have to use.
Best regards,
Nils
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.