cdocutils.nodes document q)q}q(U nametypesq}q(XLoadqKXStylesqKXmethodsqNX loadTimeoutq KX loadErrorq KXRequireq KXthe mathjax.ajax objectq NX loadCompleteq KXloadHookqKXfileURLqKXapi-ajaxqKX propertiesqNuUsubstitution_defsq}qUparse_messagesq]qUcurrent_sourceqNU decorationqNUautofootnote_startqKUnameidsq}q(hhhhhUmethodsqh h h h h h h Uthe-mathjax-ajax-objectqh h hhhhhUapi-ajaxqhU propertiesquUchildrenq]q (cdocutils.nodes target q!)q"}q#(U rawsourceq$X .. _api-ajax:q%Uparentq&hUsourceq'cdocutils.nodes reprunicode q(XR/Data/Code/JavaScript/MathJax/Code/SourceForge/trunk/mathjax/docs/rst/api/ajax.rstq)q*}q+bUtagnameq,Utargetq-U attributesq.}q/(Uidsq0]q1Ubackrefsq2]q3Udupnamesq4]q5Uclassesq6]q7Unamesq8]q9Urefidq:huUlineq;KUdocumentq)q?}q@(h$Uh&hh'h*Uexpect_referenced_by_nameqA}qBhh"sh,UsectionqCh.}qD(h4]qEh6]qFh2]qGh0]qH(hheh8]qI(h heuh;Kh` documentation for details on how to do this properly.qh&h?h'h*h,hah.}q(h4]qh6]qh2]qh0]qh8]quh;Kh`qh&hh,U pending_xrefqh.}q(UreftypeqXrefqU reftargetqXsynchronizationqU refdomainqXstdqh0]qh2]qU refexplicitqh4]qh6]qh8]qUrefdocqUapi/ajaxquh;Kh]qcdocutils.nodes emphasis q)q}q(h$hh.}q(h4]qh6]q(UxrefqhXstd-refqeh2]qh0]qh8]quh&hh]qhYXSynchronizing with MathJaxqq}q(h$Uh&hubah,UemphasisqubaubhYX6 documentation for details on how to do this properly.qq}q(h$X6 documentation for details on how to do this properly.qh&hubeubh>)q}q(h$Uh&h?h'h*h,hCh.}q(h4]qh6]qh2]qh0]qhah8]qhauh;Khh8]r?Uentriesr@]rAuh;Nh(h߉hUh0]r?h2]r@h4]rAh6]rBh8]rChXdescriberDhjDuh;Nh)rr}rs(h$Uh&h?h'h*h,hCh.}rt(h4]ruh6]rvh2]rwh0]rxhah8]ryhauh;KAhhYXkeyr?r@}rA(h$Uh&j5ubah,h{ubhYX is one of rBrC}rD(h$X is one of rEh&jubj)rF}rG(h$X``js``rHh.}rI(h4]rJh6]rKh2]rLh0]rMh8]rNuh&jh]rOhYXjsrPrQ}rR(h$Uh&jFubah,j ubhYX or rSrT}rU(h$X or rVh&jubj)rW}rX(h$X``css``rYh.}rZ(h4]r[h6]r\h2]r]h0]r^h8]r_uh&jh]r`hYXcssrarb}rc(h$Uh&jWubah,j ubhYX and the rdre}rf(h$X and the rgh&jubhm)rh}ri(h$X`value`rjh.}rk(h4]rlh6]rmh2]rnh0]roh8]rpuh&jh]rqhYXvaluerrrs}rt(h$Uh&jhubah,h{ubhYX is the file of that type to be loaded (this makes it possible to have the file be created by a CGI script, for example, or to use a rurv}rw(h$X is the file of that type to be loaded (this makes it possible to have the file be created by a CGI script, for example, or to use a rxh&jubj)ry}rz(h$X ``data::``r{h.}r|(h4]r}h6]r~h2]rh0]rh8]ruh&jh]rhYXdata::rr}r(h$Uh&jyubah,j ubhYXT URL). The file must be relative to the MathJax home directory and can not contain rr}r(h$XT URL). The file must be relative to the MathJax home directory and can not contain rh&jubj)r}r(h$X``../``rh.}r(h4]rh6]rh2]rh0]rh8]ruh&jh]rhYX../rr}r(h$Uh&jubah,j ubhYX file path components.rr}r(h$X file path components.rh&jubeubh])r}r(h$XWhen the file is completely loaded and run, the `callback`, if provided, will be executed passing it the status of the file load. If there was an error while loading the file, or if the file fails to load within the time limit given by ``MathJax.Ajax.timout``, the status will be ``MathJax.Ajax.STATUS.ERROR`` otherwise it will be ``MathJax.Ajax.STATUS.OK``. If the file is already loaded, the callback will be called immediately and the file will not be loaded again.rh&jh'h*h,hah.}r(h4]rh6]rh2]rh0]rh8]ruh;KOh(h$X**file**r?h.}r@(h4]rAh6]rBh2]rCh0]rDh8]rEuh&j3h]rFhYXfilerGrH}rI(h$Uh&j=ubah,UstrongrJubhYX" --- name of the file to be loadedrKrL}rM(h$X" --- name of the file to be loadedrNh&j3ubeubah,U list_itemrOubj()rP}rQ(h$X+**callback** --- the callback specificationrRh.}rS(h4]rTh6]rUh2]rVh0]rWh8]rXuh&jh]rYh])rZ}r[(h$jRh&jPh'h*h,hah.}r\(h4]r]h6]r^h2]r_h0]r`h8]rauh;KZh]rb(j<)rc}rd(h$X **callback**reh.}rf(h4]rgh6]rhh2]rih0]rjh8]rkuh&jZh]rlhYXcallbackrmrn}ro(h$Uh&jcubah,jJubhYX --- the callback specificationrprq}rr(h$X --- the callback specificationrsh&jZubeubah,jOubeh,U bullet_listrtubah,U field_bodyruubeubj)rv}rw(h$Uh&jh'h*h,jh.}rx(h4]ryh6]rzh2]r{h0]r|h8]r}uh;K[hh4]r?h6]r@h8]rAuh&j0h]rB(j()rC}rD(h$X***file** --- name of the file to be loadedrEh.}rF(h4]rGh6]rHh2]rIh0]rJh8]rKuh&j:h]rLh])rM}rN(h$jEh&jCh'h*h,hah.}rO(h4]rPh6]rQh2]rRh0]rSh8]rTuh;Kch]rU(j<)rV}rW(h$X**file**rXh.}rY(h4]rZh6]r[h2]r\h0]r]h8]r^uh&jMh]r_hYXfiler`ra}rb(h$Uh&jVubah,jJubhYX" --- name of the file to be loadedrcrd}re(h$X" --- name of the file to be loadedrfh&jMubeubah,jOubj()rg}rh(h$X+**callback** --- the callback specificationrih.}rj(h4]rkh6]rlh2]rmh0]rnh8]rouh&j:h]rph])rq}rr(h$jih&jgh'h*h,hah.}rs(h4]rth6]ruh2]rvh0]rwh8]rxuh;Kdh]ry(j<)rz}r{(h$X **callback**r|h.}r}(h4]r~h6]rh2]rh0]rh8]ruh&jqh]rhYXcallbackrr}r(h$Uh&jzubah,jJubhYX --- the callback specificationrr}r(h$X --- the callback specificationrh&jqubeubah,jOubeh,jtubah,juubeubj)r}r(h$Uh&jh'h*h,jh.}r(h4]rh6]rh2]rh0]rh8]ruh;Keh}r?(h$Uh&j3ubah,h{ubhYX or r@rA}rB(h$X or rCh&jubj)rD}rE(h$X``MathJax.Ajax.STATUS.ERROR``rFh.}rG(h4]rHh6]rIh2]rJh0]rKh8]rLuh&jh]rMhYXMathJax.Ajax.STATUS.ERRORrNrO}rP(h$Uh&jDubah,j ubhYX) as their last parameter.rQrR}rS(h$X) as their last parameter.rTh&jubeubj)rU}rV(h$Uh&jh'Nh,jh.}rW(h4]rXh6]rYh2]rZh0]r[h8]r\uh;NhXmethr?hXMathJax.Ajax.loadErrorr@U refdomainrAXpyrBh0]rCh2]rDU refexplicitrEh4]rFh6]rGh8]rHhhUpy:classrINU py:modulerJNuh;Kxh]rKj)rL}rM(h$j<h.}rN(h4]rOh6]rP(hjBXpy-methrQeh2]rRh0]rSh8]rTuh&j:h]rUhYXMathJax.Ajax.loadError()rVrW}rX(h$Uh&jLubah,j ubaubhYXD method will be executed, then the file's callback will be run with rYrZ}r[(h$XD method will be executed, then the file's callback will be run with r\h&j,ubj)r]}r^(h$X``MathJax.Ajax.STATUS.ERROR``r_h.}r`(h4]rah6]rbh2]rch0]rdh8]reuh&j,h]rfhYXMathJax.Ajax.STATUS.ERRORrgrh}ri(h$Uh&j]ubah,j ubhYX as its parameter.rjrk}rl(h$X as its parameter.rmh&j,ubeubj)rn}ro(h$Uh&j#h'Nh,jh.}rp(h4]rqh6]rrh2]rsh0]rth8]ruuh;Nh(h4]r?h6]r@h2]rAh0]rBh8]rCuh;Kh uh;Kh hYXcallbackr? r@ }rA (h$Uh&j5 ubaubaubeubeubj)rB }rC (h$Uh&j h'h*h,jh.}rD (h4]rE h6]rF h2]rG h0]rH h8]rI uh;Kh`. For example:rM h&jB h'h*h,hah.}rN (h4]rO h6]rP h2]rQ h0]rR h8]rS uh;Kh`rl h&jK h,hh.}rm (Ureftypern Xrefro hXcss-style-objectsrp U refdomainrq Xstdrr h0]rs h2]rt U refexplicitru h4]rv h6]rw h8]rx hhuh;Kh]ry h)rz }r{ (h$jl h.}r| (h4]r} h6]r~ (hjr Xstd-refr eh2]r h0]r h8]r uh&jj h]r hYXCSS Style Objectr r }r (h$Uh&jz ubah,hubaubhYX. For example:r r }r (h$X. For example:r h&jK ubeubcdocutils.nodes literal_block r )r }r (h$XEMathJax.Ajax.Styles("body {font-family: serif; font-style: italic}");r h&jB h'h*h,U literal_blockr h.}r (Ulinenosr Ulanguager X javascriptr U xml:spacer Upreserver h0]r h2]r h4]r h6]r h8]r uh;Kh (h$X **callback**r? h.}r@ (h4]rA h6]rB h2]rC h0]rD h8]rE uh&j4 h]rF hYXcallbackrG rH }rI (h$Uh&j= ubah,jJubhYX --- the callback specificationrJ rK }rL (h$X --- the callback specificationrM h&j4 ubeubah,jOubeh,jtubah,juubeubj)rN }rO (h$Uh&j h'h*h,jh.}rP (h4]rQ h6]rR h2]rS h0]rT h8]rU uh;Kh h6]r? h2]r@ h0]rA h8]rB uh;Kh]rC (j<)rD }rE (h$X**file**rF h.}rG (h4]rH h6]rI h2]rJ h0]rK h8]rL uh&j; h]rM hYXfilerN rO }rP (h$Uh&jD ubah,jJubhYX& --- the file name possibly including rQ rR }rS (h$X& --- the file name possibly including rT h&j; ubj)rU }rV (h$X ``[MathJax]``rW h.}rX (h4]rY h6]rZ h2]r[ h0]r\ h8]r] uh&j; h]r^ hYX [MathJax]r_ r` }ra (h$Uh&jU ubah,j ubeubah,jOubah,jtubah,juubeubj)rb }rc (h$Uh&j h'h*h,jh.}rd (h4]re h6]rf h2]rg h0]rh h8]ri uh;Kh