javascript_howto thread: SV: javascript onmouseover and html frame problems in linux
Graham,
Two things:
1. In what browser are you experiencing your problems (I don't have
access to Linux, but it might help people who have it to help you).
2. Change your code to this:
<A HREF=3D"jframe1.htm" onMouseover=3D"display()" target=3D"_top" >Show
text</A>
/Robert
-----Ursprungligt meddelande-----
Fr=E5n: Graham Thurman [mailto:g.thurman@u...]
Skickat: den 8 oktober 2002 15:06
Till: JavaScript HowTo
=C4mne: [javascript_howto] javascript onmouseover and html frame
problems
in linux
I am having problems using the onmouseover command in linux. The same
code
works fine in windows.Below in a simple example of what is not working:
...some code missing...
function display()
{
parent.right_frame.document.form1.textbox1.value=3D'Hello you!'; }
<A HREF=3D"jframe1.htm"
onMouseover=3D"javascript:display()" target=3D"_top" >Show text</A>
...some code missing...
I am currently adding hyperlinks to submit buttons in order to use the
onmouseover command to display different images from a database and pass
values from the database at the same time to the next page. The code I
am
using is below. If solving the simple solution above will solve the one
below then thanks. Otherwise, do you have any thoughts on the code below
in a linux browser?
The script below is used in a while loop to generate buttons, each one
displaying the name of the item in the database, and carrying a unique
value:
$ID=3D$myrow["ItemClassID"];
$desc=3D$myrow["ItemClassDescription"];
echo "<form action=3D\"displayitems.php \"method=3D\"get\">";
echo "<a href=3D'displayitems.php'";
echo "onMouseOver=3D";
printf
("\"parent.right_frame.document.form2.image1.src=3D'../getdata_from_datab
a
se.
php? Item_ID=3D$ID'\"");
echo "<input type=3Dsubmit width=3D\"10\" value=3D$desc
name=3D\"test\">";
echo ("</td></Tr>");
echo "</a>";
echo "</form>";
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramm
e
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramm
e
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramm
e
r-20