This topic is locked
[SOLVED]

 Mobile Search

5/25/2015 5:14:42 AM
PHPRunner General questions
R
RicardoP author

Hi, I hope you can help me with this.
I have a page with a search box (edit box with AJAX popup) and the search works ok in Desktop version but when I try to search on the mobile version it doesn't work.

I've tried to change to dropdown box but with this amount of data it becomes impossible to find anything.
Is there any other solution?
Thank you for your help.

HJB 5/25/2015

The Microsoft buddies had been already working on it by Windows Phone 8.1 , say, the browser options allow to choose between HANDY (no way for AJAX to run) and DESKTOP browsing (like PC monitor operation = good time for AJAX to perform ...) or say, the best workaround for the time being on the mobile page side is to simply drop AJAX and to hop over (activate) LIST SEARCH option instead. While missing AJAX is not the only issue (see list below), we need to wait until the mobile community is giving Microsoft phones a deeper than current 5% market share look which shall most probably happen later this year when Windows Phone 10 is out and the 6 and 8 processor kerneled smartphones TALKMAN and CITYMAN, coming snapdragon-powering of TWO different screens with different content to get displayed at the very same time, are dirty cheap up for grabs in the markets.
Citing excerpt ex http://xlinesoft.com/phprunner/docs/mobile_template.htm
The list of differences between desktop and mobile versions of your app
Missing in mobile version

· Inline edit, Inline add, Copy record, Printer-friendly, Export, Import, PDF view

· Advanced search

· Search suggest

· Case-sensitive search

· Ajax search/pagination

· Add/Edit/View in popup

· Resizable table columns

· Dynamic permissions Admin area

· CAPTCHAs

· Details page in popup

R
RicardoP author 5/25/2015



The Microsoft buddies had been already working on it by Windows Phone 8.1 , say, the browser options allow to choose between HANDY (no way for AJAX to run) and DESKTOP browsing (like PC monitor operation = good time for AJAX to perform ...) or say, the best workaround for the time being on the mobile page side is to simply drop AJAX and to hop over (activate) LIST SEARCH option instead. While missing AJAX is not the only issue (see list below), we need to wait until the mobile community is giving Microsoft phones a deeper than current 5% market share look which shall most probably happen later this year when Windows Phone 10 is out and the 6 and 8 processor kerneled smartphones TALKMAN and CITYMAN, coming snapdragon-powering of TWO different screens with different content to get displayed at the very same time, are dirty cheap up for grabs in the markets.
Citing excerpt ex http://xlinesoft.com/phprunner/docs/mobile_template.htm
The list of differences between desktop and mobile versions of your app
Missing in mobile version

· Inline edit, Inline add, Copy record, Printer-friendly, Export, Import, PDF view

· Advanced search

· Search suggest

· Case-sensitive search

· Ajax search/pagination

· Add/Edit/View in popup

· Resizable table columns

· Dynamic permissions Admin area

· CAPTCHAs

· Details page in popup


I will try with List Search option then.
Thank you for the help.

HJB 5/25/2015

http://www.xlinesoft.com/tutorials/MultipleDropdowns.html
... multiple chained dropdowns tutorial as per URL above refers ..., never had found the time yet to test such logics within the MOBILE PAGE suggested option LIST SEARCH while it depends so much on the business you are running whether such multiple chained dropdowns would contribute to your needs, yet fact remains, the pre-selection could run smoothly ...

lefty 5/28/2015

Have Tried List Page w/search and clients just said no way. Edit as ajax can work in mobile see below to my changes . Do backup your output and if you change source code your on your own.
The Table you need to change is YOURTABLESETTINGS.PHP
You need to make 2 changes.
Go to the table in your output file and find is(mobile) , change settings as below . To get ajax in mobile . Please backup . You can do this in source code but I am not advising this. I have done this since Mobile template came out and works with no issues . Although maybe admin can fill us in as to why he has this set to false . Maybe security issue . But has worked for me for years.
if (isMobile())

$tdataYOURTABLE[".isUseAjaxSuggest"] = false; [size="4"]**
[b]// Change this to true_[/b][/size]

else

$tdataYOURTABLE[".isUseAjaxSuggest"] = true;
// Begin Lookup settings

$edata["LookupType"] = 2;

$edata["LookupTable"] = "Customers";

$edata["autoCompleteFieldsOnEdit"] = 0;

$edata["autoCompleteFields"] = array();

$edata["autoCompleteFields"][] = array('masterF'=>"CustomerID", 'lookupF'=>"CustomerID");

$edata["LCType"] = 1;

if( isMobile() )

{

$edata["LCType"] = 0;
[size="4"][b]// Change 0 to 1**[/b][/size]
If I am mistaken admin please delete this post but I have used this since mobile template came out although changed this in Settings.php in source code is(mobile) before build where ajax is set to false . Not sure why this is in the source code like this maybe you can fill us in?

}

HJB 5/29/2015

John,
many thanks for provision of your workaround. While security issues on AJAX are one Thing, I think that the major reason for NO AJAX under the mobile pages by default under mobile has somehow to do with the fact thany any AJAX search operation means to make extensive usage of server as each ONE character entry is causing the server to run through the database content then. Say, if lots of people are just playing with it on search operations, it can have negative impact on the performance to display content. Anyway, I asked ADMIN to provide where to change the number of characters to 3 (three) until AJAX takes off to run a search at v5.2 times years ago, here it is:
Quote
Sure, just modify searchSuggest function in include\ajaxsuggest.js file:

--------------------------------------------------------------------------

function searchSuggest(oEvent,oElement,searchType)

{

if(oElement.value.length<3) return;

oEvent=window.event || oEvent;
Unquote
In other words, search after 3 characters shall not only have positive impact on prudent server resources management, but as well on a much lower number of pop-up screened items to click compared to "after 1 character" Setting where another reason to set the NO AJAX under mobile page could be found as a tiny mobile screen does not have the space to display pop-up screened auto-suggest content like on a PC Monitor, so I guess, to simply avoid too many complaints/feedback that some users somehow feel unsatisfied on this and that (pop-up Limitation etc pp), not knowing the techniques and limitations behind it, ADMIN has been setting this to NO by default.

lefty 5/29/2015

____

As far as speed goes you will see below . In the past years Bandwith has been extended on mobile to a lot of unlimited plans. I use my project everyday to check login audit and my data from this web application is minimal. So not a problem with your above idea. Your changing it in Js file. Don't touch it . Just change for server side . The new versions of ASP/PHP Runner with correct servers settings load my ajax in seconds . Although sometimes autofill does not autofill in an area where signal Is noth that good . So What I did is instead of having autofill , I added an event to grab data on lookups behind the scenes and made fields hidden in mobile view and then have the array fill in my autofiels for me , as sometimes withouth this event I would get mixed results. like all of a sudden the customer number is missing. You would think just make it required but in the mobile community the users get frustrated so just grab the extra autofill data for them in an event. but that's another subject here is the screen shot for AJAX below
Have used this for years since template came out you can make the field larger with some javascript . Table has 4000 Products loads in seconds. I will leave a screenshot here from a mobile with ajax set to what I have stated above . Let me know if you think this is not readable.
This is MOBILE ADD PAGE on IPAD but works fine on Android and IPhone also.


That is an IPAD . But even on phone it is not bad . I just don't understand why it is not in the source code . But technically it is , you just have to change two lines .

HJB 5/29/2015

John,
many thanks for having taken your time to widen the issue by your own daily experiences, all well noted and understood. YES ..., mobility is on the run, say at least me is guessing that a dramatic change shall happen within the mobile user community by autumn this year when Microsoft is dumping the smartphones TALKMAN and CITYMAN under Windows 10 Mobile phone OS at market prices which are flagged off under "Gimme more than 5% market share" strategy. Say, both models shall change the way of mobile users that way, the built-in new Snapdragon CPU shall serve TWO screens with DIFFERENT content (the Microsoft buddies had been baptizing the idea behind by naming it CONTINUUM...) at the very same time. Scenario: Bob as beverage seller, returning from the road into office, would use his second PC MONITOR under wireless connection with his smartphone to display e.g. a typical masterpiece of trading software to enter or to retrieve data on a call on his smartphone too. PORTABLE MINI CALL CENTER like atmosphere shall be up and running in a couple of months while 6 and 8 processor kerneled mobile gadgets seem to send the traditional PC user into early retirement over time as enough processing power is coming in quite "handy" soon. Yes, while it is said that roughly above 55% of Facebookers are solely logging in by mobile gadget in hands on daily basis, the NOVEMBER 2011 prompt bargain of mine to stick to a limited time special by ADMIN of just $25 for the mobile phone template is now going to somehow metamorphose more and more into a GOLD BULLION like masterpiece of code in the very next months, especially once some manual adjustments here and there (I mean, those from your end <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=77326&image=1&table=forumreplies' class='bbc_emoticon' alt=':)' /> ) are polishing up the already shiny brillance of mobile page code among the mobile phone user community.
Anyway ..., walk2fly thanks again and is trying to stay tuned on the mobile runway for take-off as and when due <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=77326&image=2&table=forumreplies' class='bbc_emoticon' alt='B)' />