Ketan Patil
Posts: 0
Joined: Tue Dec 03, 2013 1:10 pm

pop up page issue

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

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

pop up page issue

  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

Ketan Patil
Posts: 0
Joined: Tue Dec 03, 2013 1:10 pm

pop up page issue

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 ?

Ketan Patil
Posts: 0
Joined: Tue Dec 03, 2013 1:10 pm

pop up page issue

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

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

pop up page issue

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.

Ketan Patil
Posts: 0
Joined: Tue Dec 03, 2013 1:10 pm

pop up page issue

what to do with popup issue.

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

Ketan Patil
Posts: 0
Joined: Tue Dec 03, 2013 1:10 pm

pop up page issue

not proper answer for problem in UI

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

pop up page issue

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.

Ketan Patil
Posts: 0
Joined: Tue Dec 03, 2013 1:10 pm

pop up page issue

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!

Return to “Issues”