English 中文(简体)
JQM s 活动两次
原标题:JQM s Page Events are running twice

我把这块建筑在“page”中,但翻了一番。 我不肯定为什么发生这种情况。 然而,它的确从我无法提供的json URL中提取了信息,但它没有在超文本上显示! 任何建议都值得欢迎。 页: 1

<ul id="test">
    <li>test</li>
</ul>



 $.ajax ({
        async: true,
        url: "http://json",
        dataType: "json",
        success: function (data) {
            var map_stop = "";
            for (info in data) {
                 var locationid = info.Location_Name;   
            }
            map_stop +=  <li>test  + locationid +  </li> ;

            $("#test").html(map_stop);

        },
        error: function() {
             alert( error );   
        }
    });

Update: Here is something from JSFiddle that kind of shows my problem or is my problem...I m not sure. http://jsfiddle.net/uJmkR/2/

Update again

I forgot add the data-role divs. http://jsfiddle.net/uJmkR/4

问题回答

If your JSON data and JS coding are correct, it s jQuery problem not really concern to jQueryMobile.





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签