Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| Rivi 40: | Rivi 40: | ||
console.log( options ); | console.log( options ); | ||
for ( var oi in options ) { | for ( var oi in options ) { | ||
//select.find( 'option' ).each( function() { | //select.find( 'option' ).each( function() { | ||
var option = options[ oi ]; | var option = options[ oi ]; | ||
var page = options.text(); //jQuery( this ).text(); | var page = options.text(); //jQuery( this ).text(); | ||
var value = options.val(); //jQuery( this ).val(); | var value = options.val(); //jQuery( this ).val(); | ||
searchImg = "action=query&prop=imageinfo&iiprop=url|size&format=json&titles=" + encodeURIComponent( page ); | searchImg = "action=query&prop=imageinfo&iiprop=url|size&format=json&titles=" + encodeURIComponent( page ); | ||
console.log( value ); | |||
jQuery.ajax({ | jQuery.ajax({ | ||
type: 'POST', | type: 'POST', | ||


