Plone plone.app.jquery 1.9.1打破了TinyMCE等?(Plone plone.app.jquery 1.9.1 breaks TinyMCE etc?)
如果我安装一个新的Plone 4.3.2然后将默认的plone.app.jquery从1.7.2升级到1.9.1,编辑默认主页会显示以下内容: - TinyMCE显示没有工具栏 - 表单选项卡不再工作 - Javascript控制台错误:
- TypeError: a.browser is undefined jQuery.extend(jQuery.tools.overlay.conf, popupforms.js (line 15) - TypeError: jQuery.tools.overlay is undefined jQuery.tools.overlay.conf.oneInstance = false; ++reso...pers.js (line 16) - TypeError: jQuery.tools.overlay is undefined jQuery.extend(jQuery.tools.overlay.conf, popupforms.js (line 15) - TypeError: jqForm.children(...).tabs is not a function $("input[name='form.button.PublishComment']").live('click', function () { comments.js (line 146) - TypeError: $(...).live is not a function $("input[name='form.button.PublishComment']").live('click', function () { comments.js (line 146)
我怎样才能将plone.app.jquery 1.9.1与最新版本的Plone一起使用?
If i install a fresh Plone 4.3.2 and then upgrade the default plone.app.jquery from 1.7.2 to 1.9.1, editing the default homepage shows the following: - TinyMCE shows no toolbar - Form tabs no longer work - Javascript console errors:
- TypeError: a.browser is undefined jQuery.extend(jQuery.tools.overlay.conf, popupforms.js (line 15) - TypeError: jQuery.tools.overlay is undefined jQuery.tools.overlay.conf.oneInstance = false; ++reso...pers.js (line 16) - TypeError: jQuery.tools.overlay is undefined jQuery.extend(jQuery.tools.overlay.conf, popupforms.js (line 15) - TypeError: jqForm.children(...).tabs is not a function $("input[name='form.button.PublishComment']").live('click', function () { comments.js (line 146) - TypeError: $(...).live is not a function $("input[name='form.button.PublishComment']").live('click', function () { comments.js (line 146)
How can i use plone.app.jquery 1.9.1 with the latest version of Plone?
原文:https://stackoverflow.com/questions/22624567
最满意答案
为了更好地区分,Android的以下API的使用如下:
- Google Maps Android API将地图添加到您的Android应用。 集成基本地图,3D建筑,室内平面图,街景和卫星图像,自定义标记等等。
- Google Places API for Android实现设备位置检测,自动完成并向您的应用添加数百万个位置信息。
要获取用户位置周围的地点,请尝试“ 当前位置”。
您可以调用
PlaceDetectionApi.getCurrentPlace()
来查找本地业务或设备当前所在的其他位置。 您可以选择指定PlaceFilter
将结果限制为一个或多个地点ID(最多10个),或仅选择当前打开的地点。 如果未指定过滤器,则不会过滤结果。以下代码示例检索设备最可能位于的位置列表,并记录每个位置的名称和可能性。
PendingResult<PlaceLikelihoodBuffer> result = Places.PlaceDetectionApi .getCurrentPlace(mGoogleApiClient, null); result.setResultCallback(new ResultCallback<PlaceLikelihoodBuffer>() { @Override public void onResult(PlaceLikelihoodBuffer likelyPlaces) { for (PlaceLikelihood placeLikelihood : likelyPlaces) { Log.i(TAG, String.format("Place '%s' has likelihood: %g", placeLikelihood.getPlace().getName(), placeLikelihood.getLikelihood())); } likelyPlaces.release(); } });
请尝试阅读给定的文档以获取更多信息,例如有关使用此API的权限和使用限制。
after long trying I was going with the following solution. Using the GooglePlaces webservice (link in my question):
final String PLACES_API_BASE_URL = "https://maps.googleapis.com/maps/api/place/nearbysearch/json?"; final String LOCATION_PARAM = "location"; final String RADIUS_PARAM = "radius"; final String KEYWORD_PARAM = "keyword"; final String LANGUAGE_PARAM = "language"; final String KEY_PARAM = "key"; mDestinationUri = Uri.parse(PLACES_API_BASE_URL).buildUpon() .appendQueryParameter(LOCATION_PARAM, String.valueOf(latitude)+","+String.valueOf(longitude)) .appendQueryParameter(RADIUS_PARAM, "1000") .appendQueryParameter(KEYWORD_PARAM, naturalLanguageQuery) .appendQueryParameter(KEY_PARAM, "YOUR_API_KEY") .build();
If this will accept from google we will see.
相关问答
更多-
如果您使用错误的调试密钥库来生成API密钥,则可能会发生此问题。 如果您在ubuntu中工作,那么您可能在root中打开ide,这意味着用于签署应用程序的调试密钥库是根文件夹(/root/.android/debug.keystore)中的那个,而您可能使用用户文件夹中的debug keystore创建api密钥。 请检查并确保使用正确的。 我还添加了一个带有类似问题的已回答问题的链接: Google Maps V2在Android 2.2上显示空白屏幕 This issue can occur if yo ...
-
它就像Molle博士说的那样,只是将类.googft-info-window放在我的css上并更改了参数......谢谢。 It works like Dr. Molle said, just placed the class .googft-info-window on my css and changed the parameters...thanks.
-
使用python 3从googlemaps api响应中提取数据(Using python 3 to extract data from googlemaps api response)[2022-08-30]
你有一个dict清单。 因此,您可以使用列表索引获取第一个项目,然后使用一个键获取dict元素。 例如: item = geocode_result[0] item['address_components'] # Returns another list item['formatted_address'] # Returns a string 'Chesapeake, VA 23325, USA' You have a list of dicts. So you can get the first ite ... -
虽然Google Maps API Developer文档已经足够了。 我见过的最好的Google Maps API 教程是@geocodezip的http://geocodezip.com/ 如果你仍然有疑问,Stackoverflow充满了 谷歌地图和 谷歌-MAPS-API-3 Though Google Maps API Developer documentation is enough. 1.The very best tutorial collections I've ever seen for ...
-
使用PHP解析Googlemaps(Using PHP to parse Googlemaps)[2021-12-02]
你不需要屏幕刮擦。 而是看到这个SO帖子: 如何通过谷歌地图与PHP获得步行或驾驶距离 这告诉我们如何使用API You do not need to screen scrape. Instead see this SO post: How to get walking or driving distance via google maps with php This tells how to do using the API -
你可以给脚本标签一个id,然后用javascript添加它,如果它还没有。 您还必须检查谷歌地图API是否已加载。 就像是: function initMap(){ // your map set up scripts in here ... } if(window.google && window.google.maps){ // the map API is already be loaded (from a previous button click, maybe) i ...
-
通过googleMaps API中的查询轻松快捷地获取地点(Easy and fast way to get places by query in googleMaps API)[2023-05-24]
为了更好地区分,Android的以下API的使用如下: Google Maps Android API将地图添加到您的Android应用。 集成基本地图,3D建筑,室内平面图,街景和卫星图像,自定义标记等等。 Google Places API for Android实现设备位置检测,自动完成并向您的应用添加数百万个位置信息。 要获取用户位置周围的地点,请尝试“ 当前位置”。 您可以调用PlaceDetectionApi.getCurrentPlace()来查找本地业务或设备当前所在的其他位置。 您可以选择 ... -
您可以使用Googles Places Api: https://developers.google.com/places/android-api/ You can use the Googles Places Api: https://developers.google.com/places/android-api/
-
用Client()替换googlemaps.Client() Client() 。 Replace googlemaps.Client() by just Client().
-
GoogleMaps在Api等级8(GoogleMaps in Api level 8)[2022-03-25]
将其添加到xml中的mapview中, android:clickable="true" 或者,在Java文件中添加它, mapView.setClickable(true); Add this to your mapview in xml, android:clickable="true" Or, Add this in your Java file, mapView.setClickable(true);