SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    Jan 2005
    Location
    uk colchester
    Posts
    175
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    ok in IE but not in FF

    I have the below code the idea being if the arrow image in the column nest to is is a clickable link then the table row containing this javascript will also be clickable, this works great in IE but does not work in FF.

    I have as good as no javascript skills and wondered if anyone knew of an easy fix

    Cheers

    Ian



    if ($right_arrow == true) $this->table_row_parameters = 'onclick="javascript:window.location=\''.$right_arrow.'\'"' . ' onmouseover="this.style.cursor=\'hand\'"';

  2. #2
    SitePoint Wizard silver trophy kyberfabrikken's Avatar
    Join Date
    Jun 2004
    Location
    Copenhagen, Denmark
    Posts
    6,157
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try removing javascript:

  3. #3
    SitePoint Member Mupo's Avatar
    Join Date
    Oct 2007
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Or try this:
    <sript>
    function goto_page(_url)
    {
    window.location = _url
    }
    </script>
    ...
    if ($right_arrow == true)
    $this->table_row_parameters = 'onclick="goto_page(\''.$right_arrow.\")"' ..


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
  •