Calling functions between frames...

Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default Re: Calling functions between frames...

    JavaScript can not run on server side. You can include it in the output of
    your PHP script.



    "Albert Finchly" <Albert_Finchly@Yahoo.co.uk> wrote in message
    news:c0bdsm$15lcfp$1@ID-186257.news.uni-berlin.de...
    > I know it's not so difficult to call a JavaScript function that exists in
    > another frame, but is it possible to do the same server-side in PHP?
    >
    >

    Hi Ho Guest

  2. Similar Questions and Discussions

    1. Calling other functions
      All, Using .NET 1.1, I have built a custom control, however I am having trouble compiling it. For the on click event of the button, I want it to...
    2. calling javascript dom functions from a flash objectwith frames
      Calling dom javascript functions from a flash object works properly in a regular web page. When this page is a part of a frameset on another...
    3. Calling Javascript Functions
      Hi, I've done a function to populate a drop down list, but I cant seem to call it properly. ================== This is in the head of the...
    4. Calling functions?
      Hello, I wrote a jscript function within the HTML window of my webpage and would like to call it from inside the ASPX code-behind page. Any...
    5. calling functions
      how do i call a vbscript function (which is between <%%>) from a vbscript script function (which is between script tags-<script...
  3. #2

    Default Re: Calling functions between frames...

    This question is not logic, maybe try to ask using some exemple. You can use
    any function you created before on any php, you just need to include() it.
    It that what you need.

    Savut

    "Albert Finchly" <Albert_Finchly@Yahoo.co.uk> wrote in message
    news:c0bdsm$15lcfp$1@ID-186257.news.uni-berlin.de...
    > I know it's not so difficult to call a JavaScript function that exists in
    > another frame, but is it possible to do the same server-side in PHP?
    >
    >
    Savut Guest

  4. #3

    Default Calling functions between frames...

    I know it's not so difficult to call a JavaScript function that exists in
    another frame, but is it possible to do the same server-side in PHP?


    Albert Finchly Guest

  5. #4

    Default Re: Calling functions between frames...

    "Albert Finchly" <Albert_Finchly@Yahoo.co.uk> wrote in message
    news:c0bdsm$15lcfp$1@ID-186257.news.uni-berlin.de...
    > I know it's not so difficult to call a JavaScript function that exists in
    > another frame, but is it possible to do the same server-side in PHP?
    You can use the following javascript in one frame to call a php script in
    another, should you wish to:

    parent.targetframename.document.location.href="/path/to/script.php";

    (If you using a frameset within a frameset, then you'll have to prepend
    another "parent." to that to go up another level, if required)


    If you're wanting to pass variables to the target script, you can add them
    to the query string. eg
    /path/to/script.php?myVar=somevalue


    What script.php does with the variables is up to you. ;o)


    If you're wanting to "POST" some variables to a php script on the server
    through another frame, you can use the target="framename" attribute within
    your form tag too, and not have to worry about twiddling about with
    javascript at all.
    > JavaScript can not run on server side.
    Humbug! ;o)

    Well, ok, usually true from a PHP developer's perspective, but not true as a
    generalised statement - JavaScript is used extensively server side these
    days for working with java based objects and apps.

    Cheers,
    thunder




    thunder Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139