PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Tuesday, July 26, 2022

[FIXED] How to make an app return search results within itself for quick page navigation offline?

 July 26, 2022     dreamweaver, input, javascript, jquery, search     No comments   

Issue

I am building a multi-page mobile application that will be run offline but it needs to be able to search for pages within itself for users to navigate around the application easy. So far everything I see online for advice about this involves or Jquery menu, and both to the best of my knowledge perform searches online with servers. What is the best advice for the element to use or direction to go for me to build a search bar where users enter a search and a list of items that are the available pages within the app appear so that the user can select on the results and navigate to those pages quickly? I am completely new and fumbling my way though this, I appreciate any help I can get


Solution

I would add a json object like:

{
    pages: [
        'home': '/home',
        'options': '/options',
        'etc': '/etc'
    ]
}

and use that as your data for your search to return from. Not incredibly clean, but serves the purpose.



Answered By - G_H
Answer Checked By - David Marino (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing