Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8188215
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T02:49:51+00:00 2026-06-07T02:49:51+00:00

Here’s what I want to do: a unique HTML page that contains: a lot

  • 0

Here’s what I want to do: a unique HTML page that contains:

  • a lot of <ul><li></li></ul> to show menu then submenu then subsubmenu, to choose a product
  • a dialog to ask for a fixed number of products (1, 2 and 5)
  • a JavaScript that handles AJAX

Here’s how this will work: the customer “navigates” through all the categories and products, and if he wants one, I show a dialog with product description that asks him how many products he wants (1, 2 or 5).

(1) When the customer clicks 1, 2 or 5 I make and AJAX request that says to the server “add this product to the basket” (= all is kept on the server side). NB: it’s all JSON.

(2) When the customer clicks on the basket, I go to a new page that shows what’s in the basket and an option to validate it.

Two questions:

  • there’s no sample of “changing dynamically” modal dialogs with jQuery mobile. Is it the same principle that jQuery has (ie I just have to modify a little bit my script to make it work on a mobile phone)?
  • there’s no sample of AJAX exchanges in JSON format (it’s all about loading full HTML webpage, not only pure data exchanges). Same question: is it the same principle that jQuery has?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T02:49:52+00:00Added an answer on June 7, 2026 at 2:49 am

    there’s no sample of “changing dynamically” modal dialogs with jQuery
    mobile. Is it the same principle that jQuery has (ie I just have to
    modify a little bit my script to make it work on a mobile phone)

    I don’t believe jQuery itself has a dialog either, instead I think you are referring to the jQuery UI dialog. That said the principle is essentially the same, you can reuse the same dialog to display different content by just changing the content in between uses. The main thing you will probably need to be aware of is that for content that is enhanced by jquery mobile you may need to call the appropriate widgets refresh or create method. In addition while i’m not sure if it is officially documented you often need to do so in the pageshow (or at least before the page is shown) event.

    For example say you are changing items in a JQM listeview you may need to do something like the following to get the new content to be enhanced

    $(document).delegate('#yourDialog','pageshow', function(page,ui) {
       $('#yourListView').listview('refresh');
    })
    

    there’s no sample of AJAX exchanges in JSON format (it’s all about
    loading full HTML webpage, not only pure data exchanges). Same
    question: is it the same principle that jQuery has?

    There is no sample because it works exactly the same, JQM requires a version of the jQuery library so those functions are all still there (and of course you don’t actually need jQuery to perform ajax calls). You can conduct regular ajax requests and do as you wish in response.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here is an example: I write html code inside of textarea, then I swap
That's pretty much it. I'm using Nokogiri to scrape a web page what has
Here's some sample HTML <style> .icon {display:none;} </style> <ul> <li>ABC <i id=abc class=icon>x</i></li> <li>DEF
Here are my functions: function dropmenu() { $(.dropdownitem).show('slow'); } function hidemenu() { $(.dropdownitem).hide('slow'); }
Here is the final result of what my page is(not much fancy stuff yet):
Here's what I'm trying to accomplish with this program: a recursive method that checks
Here is the problem that I am trying to solve. I have two folders
Here's what I'm doing. I want to upload multipart file via Ajax to my
Here is my HTML. Just a simple form: <form> Username: <input type=text id=username/> <br/>
I know there's a lot of other questions out there that deal with this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.