php with javascript

I

Irlan agous

Hello i have this script

echo " <a
href=\"javascript:eek:penCentered('re.php?betaling=$betaling&persemail=$email&logid=$logid&id=$id&reactie=yes&logoproep=$logoproep&persoproep=$persoproep&date=$date&logemail=$logemail','codes','480','230','scrollbar=yes')\"
OnMouseOver=\"window.status='IndoDutchMatching!'; return true;\"
OnMouseDown=\"window.status='IndoDutchMatching'; return true;\"
OnMouseOut=\"window.status='IndoDutchMatching'; return true;\"><img src=\""
.. $fotoj . "\" border=1></a></td>\n";//


Only the MoueOut and MouseOver are working, why not the MouseDown, if the
use presses the button, it sees all the variables, i want to hide them

Irlan
 
K

kaeli

Hello i have this script

echo " <a
href=\"javascript:eek:penCentered('re.php?betaling=$betaling&persemail=$email&logid=$logid&id=$id&reactie=yes&logoproep=$logoproep&persoproep=$persoproep&date=$date&logemail=$logemail','codes','480','230','scrollbar=yes')\"
OnMouseOver=\"window.status='IndoDutchMatching!'; return true;\"
OnMouseDown=\"window.status='IndoDutchMatching'; return true;\"
OnMouseOut=\"window.status='IndoDutchMatching'; return true;\"><img src=\""
. $fotoj . "\" border=1></a></td>\n";//


Only the MoueOut and MouseOver are working, why not the MouseDown, if the
use presses the button, it sees all the variables, i want to hide them

Don't look at the PHP.
Look at what the browser sees. The browser doesn't see PHP code.

Open the page, then view source.
You might find the problem right there. I find that to be the case,
especially when I omit a quote or something in the PHP.

If you still don't see it, copy the actual source from the browser here.

Oh, BTW, it looks like you have the same thing going to the status bar for
onmouseover and onmousedown, so don't you think it might be hard to tell the
difference? ;)

--
--
~kaeli~
Going to church doesn't make you a Christian any more than
standing in a garage makes you a car.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace
 
I

Irlan agous

So, if its the same, how do i tell javascrip to show something on the status
bar, when the button is in pressing status, when the user holds down the
button, it sees the names of the variables, you get what i mean now??

Irlan
 
K

kaeli

So, if its the same, how do i tell javascrip to show something on the status
bar, when the button is in pressing status, when the user holds down the
button, it sees the names of the variables

No it doesn't. The code tells it what to put there and it's a string, not a
variable.
And it isn't a button, it's an image enclosed in an href for some odd reason.
A button is
, you get what i mean now??

Did you write that code? You didn't, did you?

These two lines are identical except for the exclamation point. Change them
to be more different so you can see what it's doing.

OnMouseOver=\"window.status='IndoDutchMatching!'; return true;\"
OnMouseDown=\"window.status='IndoDutchMatching'; return true;\"

i.e.
OnMouseOver=\"window.status='mouse OVER'; return true;\"
OnMouseDown=\"window.status='mouse DOWN'; return true;\"


--
--
~kaeli~
A little rudeness and disrespect can elevate a meaningless
interaction to a battle of wills and add drama to an
otherwise dull day.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace
 
I

Irlan agous

Man, yes i wrote the code. It is an image button. I know its a string
variable, but i dont want the user to see the variables, like i said before,
that is not odd, is that so hard to understand for you? I used the MouOver
and Down, but the down part doesnt work, maybe its not possible,

Irlan
 
K

kaeli

Man, yes i wrote the code. It is an image button. I know its a string
variable, but i dont want the user to see the variables, like i said before,
that is not odd, is that so hard to understand for you? I used the MouOver
and Down, but the down part doesnt work, maybe its not possible,

I don't help people who "speak" to me like that after I've tried to help them
already, for free, on my own time.

Have a nice day!
--
 
R

Randy Webb

Irlan said:
Man, yes i wrote the code.

I wouldn't let anybody know that if I were you.
It is an image button.

No, its an image of a button, but its *not* a button.
I know its a string variable, but i dont want the user to see the variables

Then don't let them see it.

Simple solution:
Dont f**k with the statusbar, you have no worries. Now, where's the problem?


like i said before, that is not odd, is that so hard to understand
for you? I used the MouOver and Down, but the down part doesnt work,

Then fix it.
maybe its not possible,

Maybe not, Maybe so.

And learn to quote/reply properly, its covered in this groups FAQ.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Answer:It destroys the order of the conversation
Question: Why?
Answer: Top-Posting.
Question: Whats the most annoying thing on Usenet?
 
J

Jeff North

| In article <[email protected]>, (e-mail address removed)
| enlightened us with...
| > Hello i have this script
| >
| > echo " <a
| > href=\"javascript:eek:penCentered('re.php?betaling=$betaling&persemail=$email&logid=$logid&id=$id&reactie=yes&logoproep=$logoproep&persoproep=$persoproep&date=$date&logemail=$logemail','codes','480','230','scrollbar=yes')\"
| > OnMouseOver=\"window.status='IndoDutchMatching!'; return true;\"
| > OnMouseDown=\"window.status='IndoDutchMatching'; return true;\"
| > OnMouseOut=\"window.status='IndoDutchMatching'; return true;\"><img src=\""
| > . $fotoj . "\" border=1></a></td>\n";//

You don't want people to see this in the Address/URL bar:
betaling=$betaling&persemail=$email&logid=$logid&id=$id&reactie=yes.....

The only way (that I know of) is to:
make all these items as hidden types
<input type="hidden" name="logid" value="<? echo logid?>" />
Place these on a form and set the method to post:
<form name="form1" method="post" action="webpage.php" >
On the 'wepage.php' then use the $_POST function to retrieve the
hidden values.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,165
Latest member
JavierBrak
Top