- This topic has 3 replies, 2 voices, and was last updated 10 years, 11 months ago by
Code_A.
-
AuthorPosts
-
andapende68MemberGood Day
I am working on a app that directly connects to a main server in our office, well i am able to submit data which is in a string format, When a user sends a request which would be for example their username and password the main system authenticates the information then sends back a reply with the information that was requested. I need to display the information on a table in a html widget. The table i made with Microsoft word then saved it as an html object. when i place the code of the generated Html the simulator screen is blank and the table doesnt show. Then when i remove the table and just want to display the data it also produces a blank screen im not sure if it my code but then ive tried to just display any random page from the html widget and still i get a blank screen im not sure what the problem is please advise anyone.
Thank you
Andrea 68
Code_AMemberCan you share your code or an example that is causing the issue? Make sure you are only including the HTML code that is between the <body> tags.
andapende68MemberGood day Code A
I have attached the example i am working on currently, it shall include all the code i have placed for the function i need done im just not sure if im using the code correctly. Please advise me on how my code is not responding or where my errors are, again let me just mention in my first attempt i used the submit function that one can bind to a button function, problem is im not sure where to place my code for the data to be returned and displayed in the html widget as the response is going to be text that will be wrapped inside html tags.
and here is the submit code i am using.
//
function submit();
var Profilenumber = Profilenumber.val();
var PasswordFeild = PasswordField.val();
var dependentnumber = Dependentnumber.val();$(‘form’).submit(function() {
$.getJSON(‘ajax/test.json?’ + $(this).serialize(), function(data) {
$(‘.result’).html(“response”)
});
});
Thank YouAndrea
Attachments:
You must be logged in to view attached files.
Code_AMemberMaybe this Login Scenario Example will help. This shows where to put the code in your <your_screen>_custom.js file to handle the response from the submit form function.
-
AuthorPosts