jQuery Mobile Wordpress + jQuery UI 谷歌地图
你好,这是烤我的面条,任何帮助都会很棒!谢谢
低头..我正在使用 WordPress 作为 CMS 构建一个 jQuery-mobile alpha 4 网站。我正在尝试让 googles jquery 地图 UI 在我的主题中工作。您会认为很简单,但我在 jquery-maps-ui 脚本的第 318 行收到错误。
我正在使用一个法国人开发的主题。这是我个人认为可以找到的最好的基础。网址> frobert.com/en/2011/03/30/generic-jquery-mobile-wordpress-theme/
我的计划是在我的地图页面上使用融合表等获得一些地理定位功能。但我什至无法了解基本的基本演示可以工作!?这是我获取源代码的地方,所有 jquery mobile 框架。http://jquery-ui-map.googlecode.com/svn/trunk/demos/jquery-mobile-example.html
如果有人可以获得基本地图演示以在此 WordPress 主题中工作, 能不能请你帮助:-)
如果你想在你的 WordPress 上重现我的错误。在下面的链接上下载主题,一切准备就绪,其中包含 google 地图-ui 页面脚本。 http://wtrns.fr/_PTQG94oxWzvUA
您所需要做的就是添加一个带有名为“maps”的 slug 的页面
该文件夹中还有 google map-ui 和脚本的工作 html 示例。它也适用于本地。
将主题放入主题文件夹后,您还需要添加 wp_tap 插件(包含在下载中)。这是因为它将桌面浏览器重定向到您的默认主题。然后 wp_tap 插件将设备重定向到 jquery-mobile 主题。设置简单。如果不安装此插件,它会出于某种原因将您锁定在管理员之外。但如果您已经登录,那么它无需插件即可工作,您只需将其设置为默认主题即可。我知道听起来很狡猾,但效果很好。如果您认为可以让它发挥作用,请尝试一下。我已将 wp-tap 插件包含在我的下载链接中。
任何建议都会很棒!谢谢,乔什
Hello, this is baking my noodle, any help would be awesome! Thanks
The low down.. I'm building a jQuery-mobile alpha 4 site using wordpress as a CMS. I'm trying to get googles jquery maps UI to work in my theme. Simple you would think but I'm getting an error on line 318 of the jquery-maps-ui script.
I'm using a theme developed by a french dude. It's the best one I could find in my personal opinion to build on. URL > frobert.com/en/2011/03/30/generic-jquery-mobile-wordpress-theme/
My plan is to get a bit of geo locate functionality on my map page with fusion tables etc. But I cant even get the basic of basic demos to work!?? This is where I'm getting my source, all jquery mobile frameworked.. http://jquery-ui-map.googlecode.com/svn/trunk/demos/jquery-mobile-example.html
If anyone can get the basic map demo to work in this wordpress theme, could you please help :-)
If you want to re-create my exact error on your wordpress. Download the theme on the link below all ready to go with the google map-ui page scripts included. http://wtrns.fr/_PTQG94oxWzvUA
All you need to do is add a page with a slug called 'maps'
Also in the folder is a working html example of google map-ui and script. It works locally too.
Once you drop the theme in your themes folder, you need to add the wp_tap plugin also (included in the download). This is because it redirects desktop browsers to your default theme. And then the wp_tap plugin redirects devices to the jquery-mobile theme. Easy setup. With out this pluging installed, it locks you out of your admin for some reason. But if your already logged in, then it works with-out the plugin, and you can just set it to you default theme. Sounds dodgy I know but it works sweet. Give it a go if you think you can get it to work. I've included the wp-tap plugin in my download link.
Any suggestions would be so great! Thanks, Josh
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您加载 jquery 2 次,这就是您收到该错误的原因...如果您对 jquery 地图插件有疑问,请在论坛中提问,jquery 谷歌地图插件论坛。
改变这个
You load jquery 2 times, thats why you get that error... If you have questions about the jquery maps plugin, pls ask in the forum, jquery google maps plugin forum.
Change this