Jump to content

Petani

Members
  • Posts

    22
  • Joined

  • Last visited

Everything posted by Petani

  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.
  16. hi all. i have problem with tinymce n jquery, i use tinymce for textarea below: i have form like this: <div id="out_form_login"> </div> <div id="form_profile"> <form> <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> i have jquery ajax: $('#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; }); when i try to click save button to save the text in textarea(using tinymce) to DB, it didn't work, but when i click the save button once again, it works. i confuse how could this happen. is something wrong with my code?? thanks b4.
  17. You've got this forum community confused. Look at my signature line. You try stuff, we help guide. sorry for that friend ... this is my first time to ask to this forum. but it's fixed now, problem solved. ...
  18. hm.. may be friend, but i dnt really know much about it. hehe... thanks so much helping me so far. but i still need more clue from u n others about how to create it, beside i try to find it by myself.
  19. sorry Mahngiel, it works out. but it's not what i want. i want to create header just like facebook's. when we scroll down it still sticky on the top. but when we change screen resolution to lowest or highest, the header keep follow it i try it,n the header successfully sticky on the top. but when i change screen resolution, it mess up.
  20. so so sorry Mahngiel, i dnt intend not to respect ur help. yesterday connection in city is so slow, n i wanna go out quickly, so that i cant open link u give me. that's why i decide to post my code. now, i use connection in my friend, look great. n i can see ur link u give me. thanks advanced. it works out
  21. this my code: html <!DOCTYPE HTML> <html> <head> <title>my web</title> <meta http-equiv="content-type" content="text/html;charset=utf-8" /> <link rel="stylesheet" href="script/css/style.css" media="screen" /> </head> <body> <div id="wrap_body"> <div id="header"> <div id="header_menu"> MY HEADER </div> </div> </div> </body> </html> css code body { background:#f2f2f3; margin:0; } #wrap_body { height:auto; min-height:100%; width:100%; position:relative; } #header { height:auto; width:auto; position:static; color:#ffffff; } #header_menu { position:fixed; background:#424156; font-family:Arial; width:100%; } im still beginner in css, so help me friends. thanks b4
  22. hi all, i need your help. im not expert in css. im trying to create a header just like facebook. when i wrote css code, it successfully sticky to the top using "position:fixed", but when i change my screen resolution from 1366x768 to 800x600, it mess up. can you help how to create just like facebook has?? thanks so much b4.
×
×
  • 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.