Warning: Use of undefined constant Symbol - assumed 'Symbol' (this will throw an Error in a future version of PHP) in /mnt/new-ebs/workbench-106550/lib/dojo/util/docscripts/lib/parser2/dojo2.inc on line 215 Warning: Use of undefined constant JavaScriptSymbol - assumed 'JavaScriptSymbol' (this will throw an Error in a future version of PHP) in /mnt/new-ebs/workbench-106550/lib/dojo/util/docscripts/lib/parser2/dojo2.inc on line 215

dojox/data/WikipediaStore.js

  • Provides:

    • dojox.data.WikipediaStore
  • Requires:

    • dojo.io.script in common
    • dojox.rpc.Service in common
    • dojox.data.ServiceStore in common
  • dojox.data.WikipediaStore

    • type
      Function
    • chains:
      • dojox.data.ServiceStore: (prototype)
      • dojox.data.ServiceStore: (call)
    • parameters:
      • options
    • summary
      Initializer for the Wikipedia data store interface.
    • description
      The WikipediaStore is a data store interface to Wikipedia, using the
      Wikipedia SMD spec from dojox.rpc. It currently is useful only for
      finding articles that contain some particular text or grabbing single
      articles by full name; no wildcards or other filtering are supported.
    • example
      	var store = new dojox.data.WikipediaStore();
      	store.fetch({
      		query: {title:"Dojo Toolkit"},
      		onItem: function(item){
      			dojo.byId("somediv").innerHTML = item.text["*"];
      		}
      	});
  • dojox.data.WikipediaStore.constructor

    • constructor - constructor
    • type
      Function
    • parameters:
      • options
  • dojox.data.WikipediaStore.fetch

    • parameters:
      • request: (typeof object)
    • summary
      Fetch a page or some partially-loaded search results from
      Wikipedia. Note that there isn't a way to sort data coming
      in from the API, so we just ignore the *sort* parameter.
    • example
      Loading a page:
      	store.fetch({
      		query: {title:"Dojo Toolkit"},
      		// define your handlers here
      	});
    • example
      Searching for pages containing "dojo":
      	store.fetch({
      		query: {
      			action: "query",
      			text: "dojo"
      		},
      		// define your handlers here
      	});
    • example
      Searching for the next 50 pages containing "dojo":
      	store.fetch({
      		query: {
      			action: "query",
      			text: "dojo",
      			start: 10,
      			count: 50 // max 500; will be capped if necessary
      		},
      		// define your handlers here
      	});
    • type
      Function
  • dojox.data.WikipediaStore._processResults

    • parameters:
      • results
      • def
    • type
      Function
  • dojox.data.WikipediaStore.service

  • dojox.data.WikipediaStore.idAttribute

    • type
      String
  • dojox.data.WikipediaStore.labelAttribute

    • type
      String
  • dojox.data

    • type
      Object
  • dojox

    • type
      Object