jquery Programming Glossary: whatigot
dynamic drop down box? http://stackoverflow.com/questions/16924082/dynamic-drop-down-box data 'theOption ' sel_stud success function whatigot alert 'Server side response ' whatigot '#LaDIV' .html whatigot.. success function whatigot alert 'Server side response ' whatigot '#LaDIV' .html whatigot '#theButton' .click function alert.. alert 'Server side response ' whatigot '#LaDIV' .html whatigot '#theButton' .click function alert 'You clicked the button'..
Place PHP results inside HTML page http://stackoverflow.com/questions/17221813/place-php-results-inside-html-page data 'theOption ' sel_stud success function whatigot alert 'Server side response ' whatigot END success fn END .ajax.. success function whatigot alert 'Server side response ' whatigot END success fn END .ajax END dropdown change event Note that.. document replace the line alert 'Server side response ' whatigot with this '#myDiv' .html whatIgot Presto Your DIV now contains..
dynamic drop down box? http://stackoverflow.com/questions/16924082/dynamic-drop-down-box alert 'You picked ' sel_stud .ajax type POST url another_php_file.php data 'theOption ' sel_stud success function whatigot alert 'Server side response ' whatigot '#LaDIV' .html whatigot '#theButton' .click function alert 'You clicked the.. POST url another_php_file.php data 'theOption ' sel_stud success function whatigot alert 'Server side response ' whatigot '#LaDIV' .html whatigot '#theButton' .click function alert 'You clicked the button' END success fn END .ajax.. data 'theOption ' sel_stud success function whatigot alert 'Server side response ' whatigot '#LaDIV' .html whatigot '#theButton' .click function alert 'You clicked the button' END success fn END .ajax END dropdown change event..
Place PHP results inside HTML page http://stackoverflow.com/questions/17221813/place-php-results-inside-html-page .val alert 'You picked ' sel_stud .ajax type POST url your_php_file.php data 'theOption ' sel_stud success function whatigot alert 'Server side response ' whatigot END success fn END .ajax END dropdown change event Note that the data from the PHP.. type POST url your_php_file.php data 'theOption ' sel_stud success function whatigot alert 'Server side response ' whatigot END success fn END .ajax END dropdown change event Note that the data from the PHP file comes into your HTML document in.. with the id myDiv . To insert the data from PHP into the HTML document replace the line alert 'Server side response ' whatigot with this '#myDiv' .html whatIgot Presto Your DIV now contains the data echoed from the PHP file. The ajax can be triggered..
|