Page 1 of 2

pop up page issue

Posted: Sat Dec 28, 2013 6:56 am
by Ketan Patil

i am fetching records (on search query) from database to a page in a grid. on click event of labels in a grid i am opening a pop up.

when pop is closed all the fetch records from page got erased.

what to do for keep page as it is before pop up was fired.

pl. help


pop up page issue

Posted: Sat Dec 28, 2013 9:44 am
by Igor
  1. "Set local storage variable" on search button click
    Image

    1. Update service mapping like on Screen shot. Save JS code from where clause, you need add this code after you update component mapping

      Image

    2. Add new event with below JS code psbn-Page Show-Run JS

      pre
      var lst_inputStr = localStorage.getItem("inputStr");

      if ((lst_inputStr === undefined) (lst_inputStr == null) (lst_inputStr == "undefined")) {

      console.log("LocalStorage inputStr is null");
      }
      else {
      serch_name.execute();
      }
      /pre


pop up page issue

Posted: Sun Dec 29, 2013 10:15 am
by Ketan Patil

ur solution is working , but one problem is there..

for first time of page show of psbn page it is showing all the records, actually first tome it would be blank page, after when we press search with some input , then only it would show the records..

one more question : what is the difference between popup & page?

if we use popup from a page , page values would not be get affected.

can u suggest me any other alternative to use popup ?


pop up page issue

Posted: Sun Dec 29, 2013 10:17 am
by Ketan Patil

or tell me how to erase local variable inputStr after leaving the page psbn.


pop up page issue

Posted: Sun Dec 29, 2013 8:16 pm
by Alena Prykhodko

pop up page issue

Posted: Sun Dec 29, 2013 8:28 pm
by Alena Prykhodko

Popup windows are often used to allow the user to make selections from a particular set of options that may be fixed or dynamic. However it is often superior to make those options a separate page, which may present more information and result in fewer clicks.

You are right, page will not be affected.

You can search for alternatives online, if approach can be created by means of Javascript, jQuery, HTML you will be able to implement it in Appery.io.


pop up page issue

Posted: Tue Dec 31, 2013 5:15 pm
by Ketan Patil

what to do with popup issue.

why there are popup given separately if ur suggesting us to use new page?


pop up page issue

Posted: Tue Dec 31, 2013 5:16 pm
by Ketan Patil

not proper answer for problem in UI


pop up page issue

Posted: Tue Dec 31, 2013 7:32 pm
by maxkatz

Out-of-the-box you can use either a popup or a page. You can search jQuery Mobile forums and see if there are other solutions. You can also use any 3rd party JavaScript library.


pop up page issue

Posted: Tue Dec 31, 2013 7:42 pm
by Ketan Patil

I would like to join other providers like mobine cube or as u know there are many in the market who do not have support staff like u, who put the main problem aside all the time....
Please do not reply if u do not have proper solution!