Login
Latest Development Blogs
Forum Topics Post
Browse By Tag
Hi,
I have noticed an issue with WebInput. Here is a description and also a sample is attached herewith.
When i edit a value in WebInput and make a postback by pressing Alt+S(Save in webtoolbar) and the cursor is still in webinput then the updated value is not reflecting on server-side and it takes same old value.
This issue wont happen in case you Edit a value in textbox and then press a Tab for loosing the focus on textbox and then press Alt+S.
Also this issue wont happen in case you Edit a value in textbox and then press Save button manually using mouse click.
Steps to Follow for reproducing the Issue.
1) A default value has been assigned to webinput using this code:
if (!IsPostBack) WebInput1.Text = "25";
2) Now change a value in WebInput without pressing a Tab(focus should remain on the same control) and now press Alt+S.
3) Now when the page is reloaded you will see the value in the label is same as it was on First Page Load.
Note: Please add the required Intersoft dll's, I have removed it for attachment purpose.
Thanks,
Huzefa
Hi Hezufa,
I have attached a sample of your with a modified workaround I gave you at previous post. I did not meet any problem with the workaround.
Please check the OnKeyUp function, where I put the workaround.
Thank you and have a nice day.
Hope this will work well on your side.
Best regards,
Niven Prasetya
I was able to replicate your issue. I have informed this issue to the developer. I will informed you as soon as possible regarding this matter.
Once again thank you and have a nice day.
It seems that the WebInput didn't LostFocus on the object that is why you need to refresh twice by using the HotKey.
As below I attach a solution regarding this issue.
function WebInput1_OnKeyUp(controlId) { var WebInput1 = ISGetObject(controlId); WebInput1.SetValueData(WebInput1.HtmlObj.value); return true; }
Hope this can solve your issue.
I tried this but it is not working at my end...
The result is same even after writing this script..