facebook

HTML widget show a blank screen after I set code in it.

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #349415 Reply

    andapende68
    Member

    Good 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

    #349423 Reply

    Code_A
    Member

    Can 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.

    #349426 Reply

    andapende68
    Member

    Good 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 You

    Andrea

    Attachments:
    You must be logged in to view attached files.
    #349444 Reply

    Code_A
    Member

    Maybe 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.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: HTML widget show a blank screen after I set code in it.

You must be logged in to post in the forum log in