#1
  1. A Change of Season
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2004
    Location
    Next Door
    Posts
    2,664
    Rep Power
    171

    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.
  2. #2
  3. A Not To Shabby Code Smurf
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Aug 2008
    Posts
    1,158
    Rep Power
    183
    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.
  4. #3
  5. A Change of Season
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2004
    Location
    Next Door
    Posts
    2,664
    Rep Power
    171
    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
  6. #4
  7. A Change of Season
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2004
    Location
    Next Door
    Posts
    2,664
    Rep Power
    171
    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.
  8. #5
  9. A Not To Shabby Code Smurf
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Aug 2008
    Posts
    1,158
    Rep Power
    183
    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.
  10. #6
  11. A Change of Season
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2004
    Location
    Next Door
    Posts
    2,664
    Rep Power
    171
    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

IMN logo majestic logo threadwatch logo seochat tools logo