SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict delpino's Avatar
    Join Date
    Nov 2001
    Location
    London
    Posts
    335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    clickable table cells and cache problem

    I've experimented with code which will make table cells clickable, one side effect is that pages are cached now. I've tried to solve that problem with the no-cache metatag but it didn't work.

    The code:
    Code:
    <TD
    onMouseOver="this.style.backgroundColor='#e9e9e9';this.style.cursor='hand';" 
    onMouseOut="this.style.backgroundColor='white';"
    onClick="window.open('add_diary.php?day=$ll[3]&month=$ll[2]&year=$ll[1]','_self')">
     
    <SPAN class="fakelink">Edit</SPAN>
     
    </td>
    is there a way around this, or is this doable with CSS?
    http://www.antosch-and-lin.com - Language Learning

  2. #2
    SitePoint Zealot tezza's Avatar
    Join Date
    Aug 2003
    Location
    Australia
    Posts
    155
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    with your onclick event, instead of doing window.open (_self), using location.href="add_diary...".

  3. #3
    SitePoint Addict delpino's Avatar
    Join Date
    Nov 2001
    Location
    London
    Posts
    335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    working.. thanks to Oz
    http://www.antosch-and-lin.com - Language Learning


Bookmarks

Posting Permissions

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