onclick not working in Safari

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • amskape
    New Member
    • Apr 2010
    • 56

    #1

    onclick not working in Safari

    Hi pals,
    I am also in onclick problem, my code works fine in FF,OPERA,Chrome but not in Safari.
    My problem is this onclick.

    Code:
    <?php if(has_access($userarray,'view_serverdet','server')){
    	if (('Y' == $webpanel_ajax) && ('N' == $server_details || $usergroupid == "1")) { ?>
    		<span class="expand" id="exp<?php echo $server_row['id']?>" onclick="view_details('<?php echo $server_row['id'];?>','page','<?php echo $shade;?>')">+</span>
    <?php }
    } ?>
    The corresponding function like:
    Code:
    function view_details(id,from,class) {
      	 alert("id is:"+id);
      	 alert("from is:"+from);
      	 alert("class:"+class);
              //some other codes
    }
    In other Browsers these values alert, but in Safari not. Why Pls Give me a solution
    ASAP.I use Safari 5.0.3 in Fedora 13 using Wine.

    Thankfully
    Anes P.A
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    what does the HTML source code look in Safari?

    Comment

    Working...