Professional Web Applications Themes

Calling functions between frames... - PHP Development

JavaScript can not run on server side. You can include it in the output of your PHP script. "Albert Finchly" <Albert_FinchlyYahoo.co.uk> wrote in message news:c0bdsm$15lcfp$1ID-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? > >...

  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_FinchlyYahoo.co.uk> wrote in message
    news:c0bdsm$15lcfp$1ID-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. #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_FinchlyYahoo.co.uk> wrote in message
    news:c0bdsm$15lcfp$1ID-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

  3. #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

  4. #4

    Default Re: Calling functions between frames...

    "Albert Finchly" <Albert_FinchlyYahoo.co.uk> wrote in message
    news:c0bdsm$15lcfp$1ID-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.doent.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

Similar Threads

  1. Calling other functions
    By Tony Doyle in forum ASP.NET Building Controls
    Replies: 2
    Last Post: November 28th, 08:00 PM
  2. calling javascript dom functions from a flash objectwith frames
    By Dotmix_il in forum Macromedia Flash Data Integration
    Replies: 0
    Last Post: August 16th, 06:16 PM
  3. calling functions with include
    By paradox in forum PHP Development
    Replies: 1
    Last Post: May 13th, 08:06 PM
  4. Calling functions?
    By Charles A. Lackman in forum ASP.NET General
    Replies: 3
    Last Post: July 7th, 11:48 PM
  5. calling functions
    By niv in forum ASP
    Replies: 1
    Last Post: June 30th, 06:22 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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