473,468 Members | 1,314 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

PHP code using onMouseOver?

Hey - -

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

Thanks - -- -

Ken
Dec 7 '05 #1
7 14784
"Swincher" wrote:
Hey - -

Is there any way to do this? Or, lacking that, any way to simulate it?
No. And no.
Thanks - -- -


You're welcome

--
phil [dot] ronan @ virgin [dot] net
http://vzone.virgin.net/phil.ronan/

Dec 7 '05 #2
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?

Dec 7 '05 #3
Swincher wrote:
Is there any way to do this? Or, lacking that, any way to simulate it?


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.
Dec 7 '05 #4
Following on from Swincher's message. . .
Hey - -

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

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
pe******@eminent.demon.co.uk.not.this.bit.no.html
2 Tees Close, Witham, Essex.
Gravity beer in Essex <http://www.eminent.demon.co.uk>
Dec 8 '05 #5
On 7 Dec 2005 14:32:54 -0800, "wi************@gmail.com"
<wi************@gmail.com> wrote:
Why not do it client-side in javascript?


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
Dec 8 '05 #6
Swincher wrote:
On 7 Dec 2005 14:32:54 -0800, "wi************@gmail.com"
<wi************@gmail.com> wrote:

Why not do it client-side in javascript?

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


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
Dec 9 '05 #7
*** Colin Fine escribió/wrote (Fri, 09 Dec 2005 10:52:50 +0000):
Javascript is a scripting language, designed and (AFAIK) restricted to
client-side programming on web pages.


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
--
Dec 10 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: David Girard | last post by:
I'm getting the following error which is no big deal - the problem is it is LOCATION specific - which has me really baffled... for some reason the error only appears on different machines in...
0
by: Keith | last post by:
I have downloaded some sample code from the net to display a calendar etc. The code is below. How can I modify this code so that when called in a popup window and a date is clicked, that date...
25
by: delerious | last post by:
I see some code examples like this: <DIV onmouseover="this.style.background='blue'"> and other code examples like this: <DIV onmouseover="javascript:this.style.background='blue'"> Which...
7
by: x muzuo | last post by:
Hi guys, I have got a prob of javascript form validation which just doesnt work with my ASP code. Can any one help me out please. Here is the code: {////<<head> <title>IIBO Submit Page</title>...
7
by: windandwaves | last post by:
Hi Gurus I am trying to make this rather complicated maps with an a huge number of mouseovers and the like. I want to set up a function that OnMouseDown swaps the OnMouseOver and OnMouseOut for...
6
by: christian9997 | last post by:
Hi I would be very helpful if someone could help me with this code. It works fine in IE but when I display it in Netscape or Firefox and I move the mouse from one menu to the other the gap...
4
by: Jeronimo Bertran | last post by:
This may be a very simple question. I have some old java code that uses scripting to dynamically create a <MAP> in my HTML. <map name="Map"> <script> var i; for (i=0; i<arr.length; i++)
1
by: laurakr | last post by:
I am trying to use a clear to get my bottom nav bar below the quote box on the right, but it isn't working. I would like the bottom edge of the quote box to "stick" to the footer nav bar but copy...
1
by: mark4asp | last post by:
<form runat="server"automatically adds <divtag to code contained within. Is there a way to stop that? Mixing block-level elements with inline-level elements messes up the HTML becasuse that is...
16
by: haft | last post by:
I have posted this question on a javascript forum as it contains javascript code however it was believed to be an asp issue. The following head section javascript code contains the function...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.