Get List of jQuery UI themes - from an URL (same-origin-policy)

后端 未结 4 1687
花落未央
花落未央 2020-12-03 15:40

Does anyone know a way to get list of jQuery themes from http://jquery-ui.googlecode.com/svn/tags/1.8.23/themes/ ?

I am creating simple webpage with themes roller wh

4条回答
  •  时光取名叫无心
    2020-12-03 16:25

    I found this service from yahoo(YQL) and this Cross-domain requests with jQuery plugin that uses YQL to fetch cross domain content.

    http://james.padolsey.com/javascript/cross-domain-requests-with-jquery/

    DEMO: http://jsfiddle.net/SXHrB/4/

    The below code simply fetched me the whole page which I parsed to get the required content.

    $.ajax({
        url: 'http://jquery-ui.googlecode.com/svn/tags/1.8.23/themes/',
        type: 'GET',
        success: function(data) {
            alert(data.responseText.substring(data.responseText.indexOf('
      '), data.responseText.lastIndexOf('
    ') + 4)); } });

提交回复
热议问题