#46
  1. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    Error in IE5 with document[....]


    I have an error on this line

    document[...]' is not an object
    code 0

    why?
  2. #47
  3. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    Using Javascript to call PHP function


    I have a situation where in I need to call php function in JavaScript.The javascript is invoked through OnClick event of a save button. The PHP function contains all the logic for database updates. I am using window.location to transfer to a php page to update the databse. However, this requires passing all the data on the page through HTTP post variable or cookies. I want to avoid this. Is there any other alternative method to invoke PHP functions (containing database updates) when user clicks a save button. The user needs to be on the same page after the database updates. Any help in solving this problem is appreciated.

    Thanks,

    Rama
  4. #48
  5. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    Java


    I have recently begun to program in java to no prevail!!! I need to know how to put a menu structure together, as well as a file structure!! THese are not to be done in appletts!! help!
  6. #49
  7. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    PHP8.0?


    Guys, lets cut the bull ****. I am designing a new programming language called PHP8.0. It will be the best Language ever for server programming.

    Sammy
  8. #50
  9. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    Re: Using Javascript to call PHP function


    Let me know if you find out.....
  10. #51
  11. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    Re: Using Javascript to call PHP function


    maybe you can let the PHP redirect the user back to the page he was coming from.
    At the end of the php script ofcourse...
  12. #52
  13. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    Different window


    You could open an new window which could run the script
  14. #53
  15. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    me too


    Did you get an answer to your question? I'm having the same issue. It works fine in frontpage, but after publishing, I get the message in IE5? Let me know please-
  16. #54
  17. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    fix for $page<->$call_page


    This will fix the $page<->$call_page confusion so that the page ends up in $page. Also, why not stick the entire script in a file called "location.php" and include it in all the necesary pages?

    Thanks for the nifty code!

    <?
    // Get the calling page
    $call_page = $PHP_SELF ;
    // Find the last occurence of the / character
    $pos = strrpos ($call_page, "/");
    // Grab everything past the last /
    $page = substr ($call_page, strrpos($call_page, "/") + 1);
    $pos = strpos ($page, ".");
    // Grab from the beginning of the string up to the . char
    $page = substr ($page, 0, strpos($page, "."));
    // Get the position again, but this time for the last directory
    $pos = strrpos ($call_page, "/");
    // Grab from the begining to the end minus the page_name.html
    $subdir = substr ($call_page, 0, ($pos-strlen($call_page)));
    // Grab ererything past the last /
    $subdir = substr ($subdir, strrpos($subdir, "/") + 1);
    ?>
  18. #55
  19. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    Re: basename and useful examples


    Dear Sirs,
    Pls. can i get an examples of OCP (SQL PL/SQL) test.
    thanks.
  20. #56
  21. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2002
    Posts
    1
    Rep Power
    0

    Re: Second Tutorial?


    Kyle?
  22. #57
  23. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    Preload images question


    Hi all,

    First of all, I want to thank the author for such a great tutorial. Not only was it easy to understand and implement, but it is also a great learning tool. Thanks so much!

    I am curious if anyone has set up code to pre-load the rollover images for the code. I notice that my "in" graphics take a couple seconds longer than the rest of the page to load. Also, I am curious, if I try to do this myself, should I try to pre-load all of the "in" images on every page? If not, I would be happy to hear alternative suggestions. :-)

    Thanks!
    Maureen
  24. #58
  25. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    Preload images


    I had a similar issue, and I solved it after a bit of messing around. My images are thumbnails generated dynamically with PHP. You can see what I did by going to "my photos section":http://www.shallimus.com/?section=photos on my website and clicking on any of the categories. If it is any use to you, I'd love an email saying so.
    -Adam/Shallimus
  26. #59
  27. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    [no subject]


  28. #60
  29. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    Using Javascript to call PHP function >>> ANSWER


    Rama,

    - create a iframe with invisible style;
    - modify the target into the form tag using id of iframe into target attribute;
    - into iframe, call the web page for modifiying data into the tables, and send the parent frame to the page with atualized data.

    regards,

    mf

IMN logo majestic logo threadwatch logo seochat tools logo