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 3 of 3
  1. #1
    Senior Coder o0O0o.o0O0o's Avatar
    Join Date
    Jan 2008
    Location
    C:\Windows\System32
    Posts
    1,018
    Thanks
    19
    Thanked 9 Times in 9 Posts

    calling php from Javascript ---Problem Solved

    hi ,


    I have just found a php script through which we can directly call the php functions

    e.g

    PHP Code:
    <php

    require"PHPLiveX.php";

    function 
    getData($id)
    {
    ..... 
    database code
    }

    function 
    setData($a,$b)
    {
    ... . . . 
    database code




    we just have to use this line

    PHP Code:
    $plx = new PHPLiveX("getData,setData");
    <? $plx->Run(); ?>


    And we can call functions directly from javascript

    PHP Code:
    <a href="javascript:getData(1, 'target=showText');">test it</a>

    <
    span id="showText"></span
    It is working perfectly fine


    http://www.phplivex.com/
    Last edited by o0O0o.o0O0o; 01-16-2008 at 04:50 AM.

  • #2
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Location
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Posts
    7,691
    Thanks
    42
    Thanked 637 Times in 625 Posts
    Also known as Ajax...

  • #3
    Senior Coder o0O0o.o0O0o's Avatar
    Join Date
    Jan 2008
    Location
    C:\Windows\System32
    Posts
    1,018
    Thanks
    19
    Thanked 9 Times in 9 Posts
    Quote Originally Posted by Fumigator View Post
    Also known as Ajax...
    I know its AJAX , but the person who does not know AJAX in detail
    can use it very easily


  •  

    Posting Permissions

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