Jump to content

Petani

Members
  • Posts

    22
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

Petani's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. hi guys, i have problem write java class in php via php java bridge. i try write this java code in php: http://www.lucenetutorial.com/lucene-in-5-minutes.html when i found this line: IndexReader reader = DirectoryReader.open(index); i dont get it how to write it in php. i've tried but error result. in DirectoryReader class, i found: public static DirectoryReader open(Directory directory) throws IOException { return StandardDirectoryReader.open(directory, null, 1); } but, when it be like this: Query q = new QueryParser(Version.LUCENE_40, "content", analyzer).parse(querystr); i write in php like below: $query = new Query\QueryParser($version->LUCENE_43,'content',$analyzer); $query->parse($querystr); it's no error. so, could you help me how to write it in php?? thanks in advance.
  2. hi guys, im new with google map, i need some help. i have ajax call, here: $('#checkbtn').click(function(e) { e.preventDefault(); var lo=$("#long").val(); var la=$('#lat').val(); $.ajax({ url:BASEURL+'register/checklocation', type:'POST', data:{log:lo,lat:la}, success:function(data) { $('#view_checkmap').html(data); } }); }); here is my view to view the map: <script> function initialize() { var myLatlng = new google.maps.LatLng(<?php echo $lat; ?>,<?php echo $long; ?>); var mapOptions = { zoom: 15, center: myLatlng, mapTypeId: google.maps.MapTypeId.ROADMAP } var map = new google.maps.Map(document.getElementById('mymap'), mapOptions); var marker = new google.maps.Marker({ position: myLatlng, map: map, title: 'my location' }); } google.maps.event.addDomListener(window, 'load', initialize); </script> <div id="mymap" style="width:500px; height:300px;"></div> when i access to the URL, it displays, but when i access over ajax, nothing display. is my code worng or something else? thanks in advance.
  3. sphinx, yes, but never used it b4. lucene you give is old version, im using new one now. when i read lucene book about how to integrate to php, it suggets me use php java bridge or zend lucene search. but in performing, zend is slower than php java bridge-lucene. so.. i use php-java-bridge, i have installed php java bridge in tomcat well. now, i dont know how to put lucene n php java bridge together. need really help QuickOldCar, thanks in advance b4.
  4. hi guys, i m gonna use php-java-bridge for integrating a java library to my website, i've tried install it to my tomcat but not work, can you all help for this, how to install pjb, so that when i hosting my web to hosting server it can run well along with pjb. really need ur help. thanks so much b4.
  5. hi all, im planning to build search engine in my web app now. im gonna use lucene for search library. but i dont find how to install lucene for web using. so, can you give me ref. or tut or step by step how to install lucene in web server(localhost)?? so that i can use lucene along with php. please help me all. thanks so much b4.
  6. hi all, i have planning to create a web app cross paltform(android for sure) of my campus. i use html5, jquery mobile. web app that i will create soon, there is a map of my campus, on that map, user can navigate it, such as zoom, click on a faculty building to see detail(photo or other description). i do so,bcoz there's not my campus map in google map(of course). so that's why i planning to make it by myself. so, how i create the map?? what software should i use?? sorry if there's a wrong word thanks advance.
  7. okay, sorrt for that, this is my code friend, <html> <head> <script src="jquery.js"></script> <script> $(document).ready(function() { $("#addBtn").click(function() { $("#form_name").append('<select id="name_emp"><option value="1234">joko</option><option value="9900">Rudi</option><option value="7786">anto</option></select><div id="id_emp"></div>'); }); $('#name_emp').change(function() { var ID = $("#name_emp").val(); $('#id_emp').html(ID); }); }); </script> </head> <body> <div id="form_name"> <select id="name_emp"> <option value="1234">joko</option> <option value="9900">Rudi</option> <option value="7786">anto</option> </select> <div id="id_emp"> </div> </div> <button id="addBtn">Add Name</button> </body> </html> - when i select employee's name, the ID's employee is out, -after that, i click Add Name button to display that select element again, so that i could choose more employee.. -then i choose the employee's name again, but ID's employee is not out that's my problem friends,
  8. sorry, may be my explanation is poor, this is the form that id make: http://imageshack.us/photo/my-images/84/selectq.jpg/
  9. hi friends, im trying a case, n i have problem on it, im gonna input multiple data , here sample my form html: <div id="form_name"> <select id="name_emp"> <option value="1234">joko</option> <option value="9900">Rudi</option> <option value="7786">anto</option> </select> <div id="id_emp"> </div> </div> <button id="addBtn">Add Name</button> n i want, for example, a user can show that select elemen above more than 1, so i create jquery code below: $("#addBtn").click(function() { $("#form_name").append('<select id="name_emp"><option value="1234">joko</option><option value="9900">Rudi</option> <option value="7786">anto</option> </select> <div id="id_emp"> </div>'); }); so, if a user click Add Name button, the select elemen wil show again. after a user choose from select elemen, i want jquery show the ID, example, if i choose joko, ID will show 1234 n so forth. so i create jquery code below: $('#name_emp').change(function() { var ID = $("#name_emp").val(); $('#id_emp').html(ID); }); it works when i choose the name n the ID is out between <div id="id_emp"></div> at first time, but, when i click Add Name button to show again the select elemen, n i choose employee name, the ID is not out,that's my problem friends, can you help me? thanks before....
  10. hi friends, i have problem, i'm using foundation zurb form my project now. this's my first time use foundation zurb. n i use reveal feature to display a form. the form display, but when i click submit, nothing happen, how can be like that?? i just try a simple reveal just like below, <a href="#" data-reveal-id="form_up">form</a> <div id="form_up" class="reveal-modal"> <form action="go.php" method="POST"> <label>username</label> <input type="text" name="name" required> <input type="submit" value="save"> </form> </div> how to solve that friend? thanks before, friends
  11. what are confuse about? for the first time, search in google, there's alot tutorial how to use it, then, if you face a problem, trial.
  12. hi friend, i have found the way to solve it. i just add tinyMCE.triggerSave(); so my ajax can be like this: $(document).ready(function() { $('#form_profile form').submit(function() { tinyMCE.triggerSave(); $('#out_form_login').empty(); $.post('save_profile.php',$(this).serialize(),function(data) { $("#out_form_login").show(); $('#out_form_login').html(data); }); return false; }); }); thanks for friend jazzman1 for trying to help me. .... really helpful,...
  13. oh ya, have u tried saving texts in textarea(using tinymce) via ajax just like above?? i dont know js debugger? is that really helping my friend? so, what's the best js debugger u know friend,
  14. thanks for the response my friend, so you mean, just like this? <div id="out_form_login"> </div> <div id="form_profile"> <form method="POST"> <!-- add POST method --> <table> <tr> <td class="title">My Profile</td> </tr> <tr> <td> <textarea name="profil_my" cols="100" rows="25"> </textarea></td> </tr> <tr> <td align="right"> <input type="submit" name="save_profil" value="save"> </td> </tr> </table> </form> </div> it's still the same, i have to click save button twice to save it to DB successfully. i've tried to non-active tinymce, n become textarea normal , it works to save with just one click, but back, i active tinymce, it's back to its problem.
  15. oh ya friend, i forget to add, $(document).ready() function, this is the true: $(document).ready(function() { $('#form_profile form').submit(function() { $('#out_form_login').empty(); $.post('save_profile.php',$(this).serialize(),function(data) { $("#out_form_login").show(); $('#out_form_login').html(data); }); return false; }); }); it's still the same, i have to click twice save button to save the data.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.