小编Gui*_*s 2的帖子

加载回调后jQuery ui对话框更改标题

我在此UI对话框中提交表单后,我想从UI对话框中更改标题.所以在load我应该建议之后的回调函数中,但我已经尝试过google而没有结果.

有人有想法吗?

javascript jquery jquery-ui jquery-dialog

111
推荐指数
2
解决办法
13万
查看次数

如何在jQuery UI对话框中更新'标题?

可能重复:
加载回调后jQuery ui对话框更改标题

我在此UI对话框中提交表单后,我想更改UI对话框中的标题.所以在load我应该建议之后的回调函数中,但是我已经尝试过google而没有结果.

title jquery-ui-dialog

77
推荐指数
2
解决办法
7万
查看次数

通过ajax()请求获取Google Maps API的地址坐标

我试图通过下一个示例http://jsbin.com/inepo3/7/edit获取Google Maps API的lng和lat坐标.我期待一个"成功"弹出窗口,但它会一直显示"错误"弹出窗口.谷歌地图请求提供了正确的json反馈(由firebug检查).

<script type="text/javascript">
    $().ready(function() {

        $.fn.getCoordinates=function(address){

            $.ajax(
            {
                type : "GET",
                url: "http://maps.google.com/maps/api/geocode/json",
                dataType: "jsonp",
                data: {
                    address: address,
                    sensor: "true"
                },
                success: function(data) {
                    set = data;
                    alert(set);
                },
                error : function() {
                    alert("Error.");
                }
            });
        };

        $().getCoordinates("Amsterdam, Netherlands");
    });
</script>
Run Code Online (Sandbox Code Playgroud)

有谁知道如何解决这个问题?

此致,Guido Lemmens

编辑

我在jQuery中使用Google Maps Javascript API找到了一个更好的解决方案:

<script type="text/javascript">
    $().ready(function() {
        var user1Location = "Amsterdam, Netherlands";
        var geocoder = new google.maps.Geocoder();
        //convert location into longitude and latitude
        geocoder.geocode({
            address: user1Location
        }, function(locResult) { …
Run Code Online (Sandbox Code Playgroud)

javascript ajax jquery google-maps google-maps-api-3

8
推荐指数
1
解决办法
3万
查看次数

在TD的jquery Tree Traversal prev()

我试图在之前的TD中通过jquery检查/取消选择一个选择框.我已经尝试了几个小时的几个组合与prev(),parent(),nearest(),但仍然没有结果...这是示例代码:

<table>
 <tr>
 <td><input type="checkbox" class="resultcheck"></td>
 <td><label class="resultchecklabel">Text 1</label></td>
 </tr>

 <tr>
 <td><input type="checkbox" class="resultcheck"></td>
 <td><label class="resultchecklabel">Text 2</label></td>
 </tr>

</table>

<script>
$('.resultchecklabel').live('click', function() {
 if ($(this).prev('td input:checked').val() != null) 
 {
  $(this).prev('td').prev("input").removeAttr("checked");
 }
 else
 {
  $(this).prev('td').prev("input").attr("checked","checked");
 }
});
</script>
Run Code Online (Sandbox Code Playgroud)

谁能帮我解决这个问题?非常感谢!

jquery traversal

3
推荐指数
1
解决办法
6896
查看次数

如何创建Ajax Popup表单并提交表单

我想请求ajax-popup bij点击带变量的链接.弹出窗口将显示服务器请求的某些日期.提交后,将在服务器上检查数据并发送回复.根据响应,新内容将显示在弹出窗口中.用户可以在之后关闭弹出窗口.

我已经搜索了一段时间的教程或示例,但我找不到任何.

谁可以给我一个启动的例子或建议?

ajax jquery popup

2
推荐指数
1
解决办法
3万
查看次数

UI对话框工具提示

我正在寻找应该在UI对话框中运行的工具提示,但在搜索和测试几个工具提示(如cluetip)后,我没有成功..:-s

我测试了jquery Cluetip.当我将鼠标悬停在一个链接/ img上时,这个工具提示出现了,但是工具提示显示了后面的ui对话框... ??? 我猜是一个z指数问题.我搜索过,但我找不到线索.

有人能告诉我当我将鼠标移动到ui对话框中的链接或图像上时,我需要显示一些工具提示吗?

谢谢!

jquery user-interface dialog tooltip

2
推荐指数
1
解决办法
2178
查看次数