10-16-2009 10:15 AM
I have a website that contains a database of bands and venues. Wesbite visitors can search the database and see the schedule of when and where a band is playing. The search results can be filtered based upon one or more search criteria (band name, musical genre, venue name, city, etc). http://atlbands.com
The new page takes the parameters, performs a query and returns a list of the matching schedules. The page works as expected in IE and Firefox, as well as on an iPhone. It does not work on a BlackBerry. I utilized the BB Simulater and I can see what is happening.
The search page is http://atlbands.com/msearch.php
An example of a URL that might be generated on this page is
What is strange is that on the BB, this URL is generated
As you can see, the URL is pointing to tthe msearch.php page and not the mresults.php page. Of course this page doesn't expect any parameters, so the user simply sees the page reset, with all of their selections removed.
I tried to use location.href and location.assign but these do the same thing. The funny thing is that the regular search page works on the BB (albeit it isn't very easy to navigate on a mobile device). The difference there is that the search and results page are the same page. For the results of a search using a small BB screen, I wanted to utlize all available space to dispaly the results and not take up any space redisplaying the SELECT options.
Is there a known issue regarding page redirect on the BB, or have I made some coding error?
Solved! Go to Solution.
10-16-2009 08:23 PM
I always use document.location.href = URL; now as I found this works for all simulators I tested it on.
Let me know how you get on, if it fails I'll have another look.
10-16-2009 08:52 PM
It works for me on simulator I tested it on - 8900 v18.104.22.168
10-16-2009 09:07 PM
10-18-2009 11:39 AM
Well, there certainly was no good reason. You are correct, using the standard post method is all that is required in this sceario, and resolves my problem. Thanks so much for your help. I renamed the page to http://atlbands.com/mobile.php