how to show a result of search in a list in phonegap?

73 views
Skip to first unread message

Fekria

unread,
May 19, 2012, 7:04:16 AM5/19/12
to phonegap
HelIo, I want to generate a result of search in the form of list
following criteria of choice before. Then, I have a page "
recherche.html " in which I put the form of search and a page "
recherche.js " in which I put the specific Javascript code. If the
customer clicks the button search it makes out a will and drafts
towards the page " listeRecherche.html " but does not display the list
of search.So, the problem I knew how to post(show) the list of search
in the page " listeRecherche.html ". This is a part of code of "
listeRecherche.html "

<script>
$('#listeRecherche').live('pageshow', function(event) {

callAjaxRecherche();
lister();

});
</script>

</head>
<body>
<div data-role="page" id="listeRecherche" data-add-back-btn="false">

<div data-role="header" data-theme="b">

<h1>Liste Recherche</h1>
<a href="menu.html" data-icon="delete" class="ui-btn-
right">Quitter</a>

</div>
<div data-role="content" id="recherche">

<ul data-role="listview" data-inset="true" data-theme="e" data-
filter="true" class="recherche" id="recherche">


</ul>



</div>
Please have you any idea about this?

Libby

unread,
May 19, 2012, 11:41:17 AM5/19/12
to phon...@googlegroups.com
Assuming all your jQuery Mobile multi-page markup and code
is working.. also perhaps the async of ajax call is handled
properly, do you call list init and refresh somewhere like:

 $("ul#recherche").listview();
 $("ul#recherche").listview('refresh');

Which is related to jQuery Mobile not PhoneGap of course.

Libby

rpca...@gmail.com

unread,
May 19, 2012, 8:48:47 PM5/19/12
to phonegap
I'd use jQuery's JSON.stringfy(results), or in case you are using some
webby thing like PHP: json_encode($results).

Later on, I'd decode everything and go through the results one by
one.

Fekria Boukthir

unread,
May 20, 2012, 5:59:38 PM5/20/12
to phon...@googlegroups.com
The problem now that I have the list of search but not the specific list because I would have a result dependent to the creteria of search I don't know how to do it, please help me!! and thanks

--
You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en

For more info on PhoneGap or to download the code go to www.phonegap.com

Reply all
Reply to author
Forward
0 new messages