Discussion Forums  >  WebViews and HTML for Mobile

Replies: 1    Views: 271

HHI Golf Guy
Code is Art
Profile
Posts: 10
Reg: Jun 27, 2012
Bluffton
3,600
07/12/12 10:10 AM (13 years ago)

SOLVED: JQuery Mobile, GMaps. Linking Behavior

NOTE: Current testing of the problem listed below is in desktop web browser only, not emulator or test app. I'm using JQuery Mobile and have a page with information on a specific local beach and when you click the Get Directions button it finds your current location and plots the directions from your location to that beach. When I test the individual page everything works fine. The code is based on http://code.google.com/p/jquery-ui-map/source/browse/trunk/demos/jquery-mobile-example.html?r=248. But here's the odd part. I have a summary page of all beaches in the area that link to the individual beach pages. There is no map code or map js calls on the beach summary page. When I link to an individual beach page from the summary page the Get Directions button does not return a response. There are no errors showing in the error console. There are no duplicate id's between the pages. Can anyone think of why linking to the page would cause the map page not to work?
 
HHI Golf Guy
Code is Art
Profile
Posts: 10
Reg: Jun 27, 2012
Bluffton
3,600
like
07/12/12 11:47 AM (13 years ago)
Solved by adding rel=external to the href tag of the parent page.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.