Zungfte: Ajax

Hallo zusammen,

ich programmiere derzeitig was für meine HP jedoch will dies hier nicht .

function replaceBody(request){  
  window.setTimeout(function(){$("content").innerHTML = request.newBody;}, 2000);  
  window.setTimeout("Effect.Appear('content')", 2000);  
}  
  
function openView(viewtype){  
  Effect.Fade('content');  
  
  window.location.href = "#view_"+viewtype;  
  
  var url = "getUrl.php";  
  
  switch(viewtype){  
    case "geil":  
      url = "getUrl.php";  
      break;  
  
    case "shop":  
      break;  
  }  
  
  var view = new Ajax.Request(url,  
  {  
    onSuccess: function(transport){  
      var jsonResponse = transport.responseText.evalJSON(true);  
      if(jsonResponse.status == "success"){  
        replaceBody(jsonResponse);  
      }  
    }  
  });  
}

er lässt sich nicht aufrufen also die case geil per link:
<span class="ajaxLink" onclick="openView('geil');">Test</span>

  1. Hallo zusammen,

    ich programmiere derzeitig was für meine HP jedoch will dies hier nicht .

    function replaceBody(request){

    window.setTimeout(function(){$("content").innerHTML = request.newBody;}, 2000);

    .......

      
      
    es ligt hier:  
      
    Effect.Fade('content');  
      
      
    aber was oO