php with javascript

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

    php with javascript

    Hello i have this script

    echo " <a
    href=\"javascri pt:openCentered ('re.php?betali ng=$betaling&pe rsemail=$email& logid=$logid&id =$id&reactie=ye s&logoproep=$lo goproep&persopr oep=$persoproep &date=$date&log email=$logemail ','codes','480' ,'230','scrollb ar=yes')\"
    OnMouseOver=\"w indow.status='I ndoDutchMatchin g!'; return true;\"
    OnMouseDown=\"w indow.status='I ndoDutchMatchin g'; return true;\"
    OnMouseOut=\"wi ndow.status='In doDutchMatching '; 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


  • kaeli

    #2
    Re: php with javascript

    In article <e21bf$425a5628 $52ade8f3$20984 @news.versatel. nl>, irlan345@msn.co m
    enlightened us with...[color=blue]
    > Hello i have this script
    >
    > echo " <a
    > href=\"javascri pt:openCentered ('re.php?betali ng=$betaling&pe rsemail=$email& logid=$logid&id =$id&reactie=ye s&logoproep=$lo goproep&persopr oep=$persoproep &date=$date&log email=$logemail ','codes','480' ,'230','scrollb ar=yes')\"
    > OnMouseOver=\"w indow.status='I ndoDutchMatchin g!'; return true;\"
    > OnMouseDown=\"w indow.status='I ndoDutchMatchin g'; return true;\"
    > OnMouseOut=\"wi ndow.status='In doDutchMatching '; 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
    >[/color]

    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.



    Comment

    • Irlan agous

      #3
      Re: php with javascript

      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
      "kaeli" <tiny_one@NOSPA M.comcast.net> schreef in bericht
      news:MPG.1cc44f 01cf48a08098a49 a@nntp.lucent.c om...[color=blue]
      > In article <e21bf$425a5628 $52ade8f3$20984 @news.versatel. nl>,
      > irlan345@msn.co m
      > enlightened us with...[color=green]
      >> Hello i have this script
      >>
      >> echo " <a
      >> href=\"javascri pt:openCentered ('re.php?betali ng=$betaling&pe rsemail=$email& logid=$logid&id =$id&reactie=ye s&logoproep=$lo goproep&persopr oep=$persoproep &date=$date&log email=$logemail ','codes','480' ,'230','scrollb ar=yes')\"
      >> OnMouseOver=\"w indow.status='I ndoDutchMatchin g!'; return true;\"
      >> OnMouseDown=\"w indow.status='I ndoDutchMatchin g'; return true;\"
      >> OnMouseOut=\"wi ndow.status='In doDutchMatching '; 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
      >>[/color]
      >
      > 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
      >[/color]


      Comment

      • kaeli

        #4
        Re: php with javascript

        In article <ea0f6$425a9dea $52ade8f3$29754 @news.versatel. nl>, irlan345@msn.co m
        enlightened us with...[color=blue]
        > 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[/color]

        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
        <input type="button">
        [color=blue]
        > , you get what i mean now??[/color]

        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=\"w indow.status='I ndoDutchMatchin g!'; return true;\"
        OnMouseDown=\"w indow.status='I ndoDutchMatchin g'; return true;\"

        i.e.
        OnMouseOver=\"w indow.status='m ouse OVER'; return true;\"
        OnMouseDown=\"w indow.status='m ouse 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.



        Comment

        • Irlan agous

          #5
          Re: php with javascript

          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

          "kaeli" <tiny_one@NOSPA M.comcast.net> schreef in bericht
          news:MPG.1cc46e be28ce1e1198a49 f@nntp.lucent.c om...[color=blue]
          > In article <ea0f6$425a9dea $52ade8f3$29754 @news.versatel. nl>,
          > irlan345@msn.co m
          > enlightened us with...[color=green]
          >> 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[/color]
          >
          > 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
          > <input type="button">
          >[color=green]
          >> , you get what i mean now??[/color]
          >
          > 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=\"w indow.status='I ndoDutchMatchin g!'; return true;\"
          > OnMouseDown=\"w indow.status='I ndoDutchMatchin g'; return true;\"
          >
          > i.e.
          > OnMouseOver=\"w indow.status='m ouse OVER'; return true;\"
          > OnMouseDown=\"w indow.status='m ouse 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
          >[/color]


          Comment

          • kaeli

            #6
            Re: php with javascript

            In article <b5952$425b8133 $52ade8f3$30515 @news.versatel. nl>, irlan345@msn.co m
            enlightened us with...[color=blue]
            > 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,[/color]

            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!
            --
            --
            ~kaeli~
            If a turtle doesn't have a shell, is he homeless or naked?



            Comment

            • Randy Webb

              #7
              Re: php with javascript

              Irlan agous wrote:
              [color=blue]
              > Man, yes i wrote the code.[/color]

              I wouldn't let anybody know that if I were you.
              [color=blue]
              > It is an image button.[/color]

              No, its an image of a button, but its *not* a button.
              [color=blue]
              > I know its a string variable, but i dont want the user to see the variables[/color]

              Then don't let them see it.

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


              [color=blue]
              > 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,[/color]

              Then fix it.
              [color=blue]
              > maybe its not possible,[/color]

              Maybe not, Maybe so.

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

              --
              Randy
              comp.lang.javas cript 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?

              Comment

              • Jeff North

                #8
                Re: php with javascript

                On Mon, 11 Apr 2005 10:09:05 -0500, in comp.lang.javas cript kaeli
                <tiny_one@NOSPA M.comcast.net> wrote:
                [color=blue]
                >| In article <e21bf$425a5628 $52ade8f3$20984 @news.versatel. nl>, irlan345@msn.co m
                >| enlightened us with...
                >| > Hello i have this script
                >| >
                >| > echo " <a
                >| > href=\"javascri pt:openCentered ('re.php?betali ng=$betaling&pe rsemail=$email& logid=$logid&id =$id&reactie=ye s&logoproep=$lo goproep&persopr oep=$persoproep &date=$date&log email=$logemail ','codes','480' ,'230','scrollb ar=yes')\"
                >| > OnMouseOver=\"w indow.status='I ndoDutchMatchin g!'; return true;\"
                >| > OnMouseDown=\"w indow.status='I ndoDutchMatchin g'; return true;\"
                >| > OnMouseOut=\"wi ndow.status='In doDutchMatching '; return true;\"><img src=\""
                >| > . $fotoj . "\" border=1></a></td>\n";//[/color]

                You don't want people to see this in the Address/URL bar:
                betaling=$betal ing&persemail=$ email&logid=$lo gid&id=$id&reac tie=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.
                [color=blue]
                >| > 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? ;)
                >|
                >| --[/color]

                ---------------------------------------------------------------
                jnorthau@yourpa ntsyahoo.com.au : Remove your pants to reply
                ---------------------------------------------------------------

                Comment

                Working...