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 8266791
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T05:17:19+00:00 2026-06-08T05:17:19+00:00

This is hard to sum up in the title. I’m using CodeIgniter with jQuery

  • 0

This is hard to sum up in the title. I’m using CodeIgniter with jQuery Mobile. I have a page(index.php) with a dropdown list which submits the form when clicked (onChange).

    <select name="organiser_dropdown" onchange="this.form.submit()">

It works fine. So it brings me to the next page (view_events) with no problems. However, when I press the ‘back’ button on the mobile (Samsung Galaxy S Plus), and select an option from the dropdown list in index.php, the form submits, I go to the correct page (view_events) with the correct information, and then it brings me back to the page with the dropdown list.

There are no redirects and the code logic seems to be correct. When I test it in the desktop browser, everything works as normal.

I’m almost certain that the problem is that the phone is caching the page so when I click back to index.php, it doesn’t reload the page, and somehow this is breaking it? I think it’s caching because the page doesn’t seem to take time to reload.

I have used a submit button instead of the onChange() function, and everything works as normal. That also indicates that it’s an issue with caching.

I used jQuery to listen for the onChange event and to submit the form by clicking a hidden button. It worked without problems, but it loaded the page with the dropdown list still appearing on the phone GUI. This would seem a bit weird for usability reasons, if I was to kepe this as an option.

It’s not a native phone App, it’s a mobile website.

In CodeIgniter, the controller is using a function with 1 parameter which is the selected item from the dropdown list:

public function view_events($organiser_type = '') {...}

When the *$organiser_type* is not sent through the url, I have a piece of code which retrieves the value from the POSTed form:

if($this->input->post('organiser_dropdown')) {
        $organiser_type = $this->input->post('organiser_dropdown');
    }
  • 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-08T05:17:22+00:00Added an answer on June 8, 2026 at 5:17 am

    I have kind of figured out the problem here. I think that jQuery Mobile is not fully executing the index.php page once i press the back button on the phone.

    I put this in all my links to force a page load without ajax:

    data-ajax="false"
    

    More information regarding this can be found here: http://jquerymobile.com/test/docs/pages/page-links.html

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

Sidebar

Related Questions

Sorry for the insanely long title, I find this one hard to sum up.
I have something like this hard-coded: private string[,] m_RolesForUser = new string[,] { {John,President,Chair},
This question is hard to describe succinctly, so bear with me. Currently I have
This question is hard to phrase, so I'm going to have to use some
I realise this might be hard to explain, so let me start by using
Have looked quite hard for this answer but having no luck. I have 3
Hard to put a descriptive title to this which is easy to understand so
Excuse the phrasing of the title but it was kind of hard to sum
The program under discussion attempts to compute sum-of-first-n-natural-numbers using recursion . I know this
Mine is this: Hard coding is the way! All my problems go away. Just

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.