Jump to content


  • Content Count

  • Joined

  • Last visited

Everything posted by biza

  1. humm... well, the $_REQUEST['submit'], only runs when you click the button to submit to upload the form values to database. All this form is working correctly.what I'm trying to do is when you select an option in select box the value of the option chosen by me is passed to the ajax Now I want the ajax return me the value for the page to be able to use the switch for each of the options reference for example if you choose ACT it will show only the fields for the ACT option. Can you help me
  2. these are the shots of the actual output request... https://www.dropbox.com/s/v1p5defscvdqgvc/Screen%20Shot%202013-10-29%20at%206.07.02%20PM.png and all code I use in the inser_actividade.php page is: <script type="text/javascript" src="js/jquery.min.js"></script><script type="text/javascript">function show(){var option = document.getElementById("subuniverso").selectedIndex;var ref = document.getElementById('subuniverso').options[option].text.substr(0,3); alert( ref); // <- Retorna os dados em array dos option selecionados $.ajax({ url: 'in
  3. I dont detect de error . I send you the screen shot's of my all work . I have done all things and nothing. My page: https://www.dropbox.com/s/70sey1evjb4nm6y/Screen%20Shot%202013-10-29%20at%203.41.47%20PM.png My page with firebug console error: https://www.dropbox.com/s/s5o3xw1d52aitls/Screen%20Shot%202013-10-29%20at%203.43.31%20PM.png My code view in console error firebug : https://www.dropbox.com/s/zrr2c3jcs4fioll/Screen%20Shot%202013-10-29%20at%203.43.37%20PM.png I change the code to see an error callback handler and nothing, only an error query.min.js (linha 6) alert https://ww
  4. So, thescientist, I have done what you said, but I don't have any success, I have the console firebug open before the request is made , and the POST not have been send.
  5. anyone know a way to pass values ​​from ajax to php without refresh?
  6. Ingome , but I don't see nothing, I look up for the value in Firebug's console and nothing
  7. In success callback , a put this code: success: function(response) {alert(console.log(response)} And the alert show undefined
  8. the response show the variable in debugger mode, in firebug console, but not in the web page. i put a "echo" to show me the "$ref" variable but, nothing!
  9. In net tab shows sending and response, and variable in ajax is sent but the php page does not return echo
  10. justsomeguy , I send you a picture with browser, is confused for me too.https://www.dropbox.com/sc/d6ek88viw680w5v/oBac1PmC1I
  11. justsomeguy, I see the correct response in firebug, but in the page i see empty array "array()", when I put print_r($_POST).
  12. justsomeguy , thank for your help, have been valuable I use firebug to verify , and on firebug i see my response, but I have too a print and a "echo" to print the PHP response , and nothing!
  13. Ingolme, i already put the following code: <?$ref = $_POST['ref'];echo $ref; ?> nothing
  14. hello, I am trying pass values ​​from ajax to php without refresh the page, I have a drop down list, and when I choose an option,I want send a value to ajax . now to change values in the "form", I want, the value who I have send to the ajax transform in php variable. PHP: <? $result = mysql_query("SELECT id_subuniverso, subuniverso, ref FROM tbl_sub_universo ORDER BY subuniverso ASC"); echo'<select name="sub_uni" id="subuniverso" onchange="show();"> <option value="0" size="35">..........Seleccione o Sub-Universo..........</option>'; while( $row = mysql_fetch_array(
  • Create New...