473,386 Members | 1,706 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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 14780
"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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.