Need help with jQuery

0 Answers 49 Views
Application
EdwardCandis
Top achievements
Rank 1
EdwardCandis asked on 19 Jan 2022, 05:55 AM | edited on 01 Feb 2022, 02:21 PM

Hi

I have successfully used jQuery to get and use the Value from a Field embedded on the page's form ... this is triggered by an entry (Key 13) ... what I would like to do for a different page is wait for a Form Field to be in focus, then update the content of the Field then refresh the Page ... what I believe is going wrong with my attempt is I don't believe the dynamic page has been loaded before my script is attempting to change the value. The example I have basically fires once when the page supposedly finishes azar loading.

<pre hidden=""> <script> var xmlhttp = new XMLHttpRequest(); var apptype = "New Membership chatrandom Application"; xmlhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { jQuery('#vfb-field-1916').focus(); jQuery('#vfb-field-1916').val(apptype); location.reload(true); }} </script>

</pre> [vfb id=42]

Martin
Telerik team
commented on 21 Jan 2022, 04:23 PM

Could you please let me know what Kendo components are you using and how your issue is related to them? Once I am more familiar with the problem, I will be glad to help.
Martin
Telerik team
commented on 04 Feb 2022, 08:42 AM

Hello, I see that you have edited your post, but it still does not provide enough information for me to understand the scenario. Kindly provide the information requested in my previous post and I will be happy to help.

No answers yet. Maybe you can help?

Tags
Application
Asked by
EdwardCandis
Top achievements
Rank 1
Share this question
or