我正在尝试创建一个介于7-36个菜单项之间的twitter引导下拉列表.不幸的是,有很多项目,我只能看到前15个左右.在创建新列之前,我希望能够分割项目数,使每列不超过10个.
我不是要尝试嵌套下拉列表,我只是想改变下拉列表的显示方式,以便每列不超过10个项目,但是仍然应该显示所有项目.我尝试将每10 li秒放入他们自己的div中,但我认为这甚至不符合HTML.是否可以通过TBS完成此操作?
我创建了一系列标记.我使用这些标记来听取"点击"并将标记放在谷歌地图上,以及创建"清除所有标记","重新显示所有标记"和"删除所有标记"的功能.
问题是,我如何以一种能够一次清除或删除一个标记的方式执行此操作?原因是因为如果我偶然地在一个我不想要的地方进行策划,并且我想清除/删除它,我就无法做到.如果我要清除/删除该特定标记,我之前绘制的其他标记也将被清除/删除...
我的代码:
//Initialize the map
function initialize() {
var myLatlng = new google.maps.LatLng(2,110);
var myOptions = {
zoom: 3,
center: myLatlng,
mapTypeId: google.maps.MapTypeId.HYBRID
};
map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
infowindow = new google.maps.InfoWindow({
content: "loading..."
});
}
function changeForm(the_form) {
window.location = the_form;
}
//Listen for click
function marker() {
google.maps.event.addListener(map, 'click', function(event) {
addMarker(event.latLng);
});
}
// Place markers in by click
function addMarker(location) {
marker = new google.maps.Marker({
position: location,
map: map,
title:"Specified Location",
icon: 'images/greenPoint.png'
}); …Run Code Online (Sandbox Code Playgroud) 我正在尝试使用以下格式实现与Drupal 6的SOAP调用:
POST /0_5/ClassService.asmx HTTP/1.1
Host: api.mindbodyonline.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://clients.mindbodyonline.com/api/0_5/AddClientsToClasses"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<AddClientsToClasses xmlns="http://clients.mindbodyonline.com/api/0_5">
<Request>
<ClientIDs>
<string>string</string>
<string>string</string>
</ClientIDs>
<ClassIDs>
<int>int</int>
<int>int</int>
</ClassIDs>
<Test>boolean</Test>
<RequirePayment>boolean</RequirePayment>
</Request>
</AddClientsToClasses>
</soap:Body>
</soap:Envelope>
Run Code Online (Sandbox Code Playgroud)
我是SOAP的新手,所有的Web文档都不适用于Drupal.此外,我必须在SOAP(而不是HTTP GET或POST)中进行此调用.
我如何在Drupal中进行SOAP调用?您能否使用上面的示例请求格式提供有效的代码示例?