C
|
cgphp 10/12/2012 |
You can't execute PHP code inside the Javascript onload event. That event is only for client side code. You can make an ajax call to your PHP script to fetch the database value. |
I
|
igiacchi author 10/12/2012 |
You can't execute PHP code inside the Javascript onload event. That event is only for client side code. You can make an ajax call to your PHP script to fetch the database value.
|
C
|
cgphp 10/13/2012 |
If you want to fetch data from database when the user selects a value from the lookup you can do an AJAX call. You can find more info about jquery AJAX call here: http://api.jquery.com/jQuery.ajax/ |
I
|
igiacchi author 10/13/2012 |
If you want to fetch data from database when the user selects a value from the lookup you can do an AJAX call. You can find more info about jquery AJAX call here: http://api.jquery.com/jQuery.ajax/
|
![]() |
Admin 10/15/2012 |
Ivano, |
I
|
igiacchi author 10/15/2012 |
Ivano, you are looking for solution from the wrong angle. Since you are looking for a database interaction use BeforeAdd event where you can execute your queries and assign a value to the serial number field. If you want to perform the same task before page is submitted, right after selection is made from the lookup wizard you do need to use AJAX and the complexity of this task is beyond the beginners level.
|
![]() |
Admin 10/16/2012 |
This task (executing requests via AJAX) is not specific to PHPRunner. You can find a lot examples on the Web for any level of programming knowledge. |