Improvements in the [web module]

Discussion in 'Feature Request & Suggestion' started by danilodorgam, Feb 10, 2015.

  1. danilodorgam

    danilodorgam New Member

    Joined:
    Feb 4, 2015
    Messages:
    18
    Likes Received:
    3
    I use quite the web module and lately I realized that if I do not have internet on my device the module will only show an error message, and most lay users will not understand.

    My suggestion is: to offer a personalized page that appears when the user does not have data connection.
    :)
     
    #1
  2. Mohd Shafiq Mat Daud

    Joined:
    Feb 8, 2015
    Messages:
    2
    Likes Received:
    0
    Easy solution is using jquery.ex:
    $(document).on('offline online', function (event) {
    alert('You are ' + event.type + '!');
    //or change background image perhaps
    });

    Sent from my MI 3W using AppYet
     
    #2
  3. joseph raphael

    joseph raphael Well-Known Member

    Joined:
    Feb 3, 2015
    Messages:
    776
    Likes Received:
    312
  4. danilodorgam

    danilodorgam New Member

    Joined:
    Feb 4, 2015
    Messages:
    18
    Likes Received:
    3
    @Mohd Shafiq Mat Daud
    where this code to be on the page ?.
    in my case I pull everything from an external source, so as to rotate the internet without script
     
    #4
  5. Mohd Shafiq Mat Daud

    Joined:
    Feb 8, 2015
    Messages:
    2
    Likes Received:
    0
    you could use iframe to serve external and use jquery in your source. There already jQuery js inside appyet. just need to link to it.

    Sent from my MI 3W using AppYet
     
    #5
  6. joseph raphael

    joseph raphael Well-Known Member

    Joined:
    Feb 3, 2015
    Messages:
    776
    Likes Received:
    312
    If there is no internet connection he won't be able to reach the page that contains the jquery code in first place (http://www..../index.html). AppYet jquery is integrated in the feed module not the web module as it cannot add header content to an external webpage.

    This page can only be changed inside App code itself. Here's an example of a code I suggested to @appyet to use http://files.youmobile.org/appyet404.html
     
    #6
  7. viraaj11

    viraaj11 New Member

    Joined:
    Feb 13, 2015
    Messages:
    18
    Likes Received:
    3
    Can we also enable uploading of files? It doesnt work for some reason (while it works on chrome) so maybe switching to chromium as a base will be the solution I suppose?
     
    #7
  8. joseph raphael

    joseph raphael Well-Known Member

    Joined:
    Feb 3, 2015
    Messages:
    776
    Likes Received:
    312
    Did you test this on the latest Dev release ?
     
    #8
    viraaj11 likes this.
  9. viraaj11

    viraaj11 New Member

    Joined:
    Feb 13, 2015
    Messages:
    18
    Likes Received:
    3
    Nope, I just read the changelog and there was nothing about ir in the web module section, so that's why I raised it.
     
    #9
  10. joseph raphael

    joseph raphael Well-Known Member

    Joined:
    Feb 3, 2015
    Messages:
    776
    Likes Received:
    312
    I remember that appyet fixed that issue on an early dev release v1.0.2 or v1.0.3, I'll check on that...
     
    #10
    viraaj11 likes this.
  11. viraaj11

    viraaj11 New Member

    Joined:
    Feb 13, 2015
    Messages:
    18
    Likes Received:
    3
    Oh yay, and is there any way to use dev releases instead of stable releases to compile the apps?
     
    #11
  12. appyet

    appyet Support Team Member
    Staff Member

    Joined:
    Feb 2, 2015
    Messages:
    1,286
    Likes Received:
    443
    not at this moment. but our dev release are getting very close to release. you should not have to wait for too long
     
    #12

Share This Page