July 24th, 2013, 09:15 PM
-
Should I include Jquery and Javascript again in the reloaded div?
Hi;
Should I include JS functions and librbaries in reload_paypal.php as well?
javascript Code:
$.post('reload_paypal.php', { special_requests:special_requests},function(output){$('#' + div_id).html(output).show('slow');});
}
Thanks
Last edited by zxcvbnm; July 24th, 2013 at 09:17 PM.
July 24th, 2013, 09:21 PM
-
Originally Posted by zxcvbnm
Hi;
Should I include JS functions and librbaries in reload_paypal.php as well?
javascript Code:
$.post('reload_paypal.php', { special_requests:special_requests},function(output){$('#' + div_id).html(output).show('slow');});
}
Thanks
No, because your $.post() is posting/sending data to your "reload_paypal.php" page. You do not need to add that jQuery AJAX $.post() API to the PHP, your sending the data to; I think your thinking of session data.
July 24th, 2013, 09:40 PM
-
Originally Posted by web_loone08
No, because your $.post() is posting/sending data to your "reload_paypal.php" page. You do not need to add that jQuery AJAX $.post() API to the PHP, your sending the data to; I think your thinking of session data.
Hello;
What about php code that was included? For example:
PHP Code:
include "config.php";
Thanks
July 24th, 2013, 09:43 PM
-
Hello;
Thank you it fixed a few error as it already had Jqueries in there (like said).
What about php code that was included? For example:
PHP Code:
include "config.php";
Thanks
edit:
It looks like I have to include php files on the reloaded page
Last edited by zxcvbnm; July 24th, 2013 at 09:53 PM.
July 24th, 2013, 10:05 PM
-
Is your jQuery code within your "config.php" page? Because, if it is and your using PHP include("config.php"); your jQuery code will be accessible in any page, that your PHP include() resides in.
July 24th, 2013, 10:32 PM
-
Originally Posted by web_loone08
Is your jQuery code within your "config.php" page? Because, if it is and your using PHP include("config.php"); your jQuery code will be accessible in any page, that your PHP include() resides in.
Jquery is seperate, php is seperate. The jquery libraries are all included but php funcitons not.
I send you a provate message with a link in next 5 minutes.
Thank you