Results 1 to 3 of 3

Thread: Click event2

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2005
    Posts
    103

    Question Click event2

    I have a picture and want a variable to change if the user clicks on this picture. If possible without reloading the whole page.

    Is there a way in general to clear parts of the page with php without reloading it? And how to rewrite stuff there??

    Please help.

    FES

  2. #2
    Junior Member
    Join Date
    Oct 2005
    Posts
    17

    Re: Click event2

    The things you are wanting to do can only be done with javascript. Since javascript is clientside and PHP is serverside, their ability to interact is VERY, VERY limited. Therefore, no, you cannot do this without reloading the page. That is the only way to pass information from javascript to PHP.
    If you need help doing that, let me know.

  3. #3
    Lively Member deranged's Avatar
    Join Date
    Jun 2004
    Location
    TN
    Posts
    104

    Re: Click event2

    If you put parts of your HTML in <div> tags you can hide those parts. This does not require reloading, but is entirely javascript.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width