Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Apr 2011
    Location
    Mumbai
    Posts
    19
    Thanks
    10
    Thanked 0 Times in 0 Posts

    Smile if function is declare in Javascipt

    if function is declare in Javascipt then how it is call in php please give me an example

  • #2
    Banned
    Join Date
    Feb 2011
    Posts
    2,699
    Thanks
    13
    Thanked 395 Times in 395 Posts
    That doesn't make sense to me.

    PHP code is executed on the server before any html/css/javascript is sent back to the requesting browser.

    Javascript is executed in the user's browser after the browser receives it from the server. So php code can create javascript code to be executed when it is received by the browser but not the other way round.

    Can you give an example of what you are trying to do?

  • Users who have thanked bullant for this post:

    harry343 (04-26-2011)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •