PHP code using onMouseOver?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Swincher

    PHP code using onMouseOver?

    Hey - -

    Is there any way to do this? Or, lacking that, any way to simulate it?

    Thanks - -- -

    Ken
  • Philip Ronan

    #2
    Re: PHP code using onMouseOver?

    "Swincher" wrote:
    [color=blue]
    > Hey - -
    >
    > Is there any way to do this? Or, lacking that, any way to simulate it?[/color]

    No. And no.
    [color=blue]
    > Thanks - -- -[/color]

    You're welcome

    --
    phil [dot] ronan @ virgin [dot] net


    Comment

    • william.clarke@gmail.com

      #3
      Re: PHP code using onMouseOver?

      PHP is server-side
      OnMouseOver is client-side (within the browser)

      You could use javascript to post a message back to the server in the
      OnMouseOver event which wouldn't really be a sensible approach.

      Why not do it client-side in javascript?

      Comment

      • Harald Nesland

        #4
        Re: PHP code using onMouseOver?

        Swincher wrote:[color=blue]
        > Is there any way to do this? Or, lacking that, any way to simulate it?[/color]

        One could always do it with javascript + XMLHttpRequest( ), since AJAX is
        such a buzz nowadays... But it might be slow, depending on how you want
        it to interact with the server.

        Comment

        • Peter Fox

          #5
          Re: PHP code using onMouseOver?

          Following on from Swincher's message. . .[color=blue]
          >Hey - -
          >
          >Is there any way to do this? Or, lacking that, any way to simulate it?[/color]
          Yes - sort-of.

          You have to use Javascript (ie client-side) to capture the event. If
          you think your users may not have js then there is no way.

          Having captured the event how do you get PHP to fire up? There is only
          one way and that's by requesting a page.

          But!, you say, I'm quite happy with the page I'm on and fetching a new
          page will overwrite it :( What's the answer? To open the new page in
          its own window or in it's own frame.


          IMHO OnMouseOver--->Get a page is going to result in a terrible user
          interface.

          --
          PETER FOX Not the same since the submarine business went under
          peterfox@eminen t.demon.co.uk.n ot.this.bit.no. html
          2 Tees Close, Witham, Essex.
          Gravity beer in Essex <http://www.eminent.dem on.co.uk>

          Comment

          • Swincher

            #6
            Re: PHP code using onMouseOver?

            On 7 Dec 2005 14:32:54 -0800, "william.clarke @gmail.com"
            <william.clarke @gmail.com> wrote:
            [color=blue]
            >Why not do it client-side in javascript?[/color]

            Thanks to all who responded. I am trying it that way now. I'm just not
            that good at Java. I am used to a ASP-type of page. trying to learn to
            do it another way, without a database involved.

            Ken, aka Swincher

            Comment

            • Colin Fine

              #7
              Re: PHP code using onMouseOver?

              Swincher wrote:[color=blue]
              > On 7 Dec 2005 14:32:54 -0800, "william.clarke @gmail.com"
              > <william.clarke @gmail.com> wrote:
              >
              >[color=green]
              >>Why not do it client-side in javascript?[/color]
              >
              >
              > Thanks to all who responded. I am trying it that way now. I'm just not
              > that good at Java. I am used to a ASP-type of page. trying to learn to
              > do it another way, without a database involved.
              >
              > Ken, aka Swincher[/color]

              Nothing to do with Java. Do not confuse Java and Javascript - they have
              nothing in common except some syntax.

              Java is a general purpose programming language which can be used on its
              own, or (in web context) either server-side or client-side.

              Javascript is a scripting language, designed and (AFAIK) restricted to
              client-side programming on web pages.

              ASP and PHP (and for that matter Perl) are used server-side and the
              client never sees the code, only the text (usually HTML) produced by the
              code.

              Colin

              Comment

              • Alvaro G. Vicario

                #8
                Re: PHP code using onMouseOver?

                *** Colin Fine escribió/wrote (Fri, 09 Dec 2005 10:52:50 +0000):[color=blue]
                > Javascript is a scripting language, designed and (AFAIK) restricted to
                > client-side programming on web pages.[/color]

                Actually, you can use JavaScript to write server-side scripts, shell
                scripts, macros... You just need the appropriate interpreter.


                --
                -+ Álvaro G. Vicario - Burgos, Spain
                ++ http://bits.demogracia.com es mi sitio para programadores web
                +- http://www.demogracia.com es mi web de humor libre de cloro
                --

                Comment

                Working...