what i'm trying this: i've php global variable $currentid , simple jquery script check if there "id" (page) in hash of url , if yes wanted give value $currentid . i've been reading lot , notice shall use ajax i'm not managing it. my code is: <script type="text/javascript"> $(document).ready(function(){ if (parent.location.hash != '' ) { var thecurrentid = parent.location.hash.split('#')[1]; $.ajax({ url: 'my.php', //current page type: 'post', data: {theid: thecurrentid }, datatype: 'json', success: function () { } }); } // code here }); </script> could me please? thank in advance. php server side language, meaning once has sent data browser, php variables , data cannot changed... however, using ajax, can send request php page , change data in dom based on result. consider th...
i want retrieve data web server in android application, , don't know begin. should use web services? i recommend these tutorials: connect android php , mysql , json in android , php , mysqli i used these tutorials , managed trying working without difficulty. between them describe each step in how attempting @ each stage, android application, database , web server side , has information included can process , use received information the thing add connect android php , mysql tutorial makes use of mysql_ in php deprecated. better use mysqli why included third link. the basic outline of want this: 1) in android app make request server php script using class this: import java.io.bufferedreader; import java.io.ioexception; import java.io.inputstream; import java.io.inputstreamreader; import java.io.unsupportedencodingexception; import java.util.list; import org.apache.http.httpentity; import org.apache.http.httpresponse; import org.apache.http.namevaluepair...
i have datatable filtered columns , using watermark set input value , save space in header, when try use dataexport pdf file rendered kind of reference watermark, like: column title org.primefaces.component.watermark.watermark@46339a4c desired column content (...) and structure of xhtml basically: <h:form id="formid"> <p:commandbutton value="export"ajax="false"> <p:dataexporter type="pdf" filename="file" preprocessor="#{my.stuff}" target="tableid" /> </p:commandbutton> <p:datatable id="tableid" value="#{my.content}" var="mytable"> <p:column id="columnid1" filterby="#{mytable.item}"> <p:watermark value="item" forelement="formid:tableid:columnid1" /> <p:outputtext value=#{mytable.item}" /> </p:column> ...
Comments
Post a Comment