hongruiqi / happs

Automatically exported from code.google.com/p/happs
0 stars 0 forks source link

Happs.org website configuration problem? #43

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. konqueror gg:happs (google for HApps with konqueror)
2. Select the 1st link Google provides. Its http://happs.org
3.

What is the expected output? 
   A faithful rendition of the HApps homepage 

What do you see instead? 
  CODE:
var li = $(addr), name=li.attr("id"), urlName = "repos/"+name; 
url="/proxy/happs.org/"+urlName $.ajax({type: "GET", url: 
url+"/package-info.xml", dataType: "xml", success: function(xml) { 
name=$("package-info",xml).attr("name") synopsis=$("package-info > 
synopsis",xml).text() description=$("package-info > 
description",xml).text() ver=$("package-info",xml).attr("version") 
partialTag = "-"+"-partial -"+"-tag="+ver+" "; repo="
darcs get "+ partialTag+ "http://happs.org/"+urlName+"
"; val = "
"+ ""+name+""+" —"+ ""+synopsis+""+ "
" + repo + "
"+ Wiky.toHtml(description)+ //; description+ "
" ; li.html(val).addClass("package-info"); //li.hover(function()
{$("#desc_"+name).css("display","block");}, // function()
{$("#desc_"+name).css("display","none");}); }}) } 
$(document).ready(function(){ //alert($("#body").width()); 
size=$("#packages > li").size(); for(i=0;i< stylelist.length; i++) { var 
link = document.createElement("link"); link.href=stylelist[i] link.type 
= "text/css"; link.rel = "stylesheet"; head.appendChild(link); } } //defer 
loading of stylesheets we don't yet need 
loadStyleSheets(["js/wiky.lang.css,wiky.math.css"]); // // --> 

What version of the product are you using? On what operating system?
Whatever happs.org was running (Was it running HApps, or something else?) 
on Fri Aug 15 08:21:46 PDT 2008

Please provide any additional information below.
1.  Surfing to http://www.happs.org (instead of http://happs.org) renders 
as expected in Konqueror (the KDE Web browser, running in Linux, X11).
2. Using FireFox works fine with http://happs.org.

Original issue reported on code.google.com by louis.fr...@gmail.com on 15 Aug 2008 at 3:30

GoogleCodeExporter commented 8 years ago
Aparently a script was served but the first part wasn't recieved:
 var li = $(addr),
      name=li.attr("id"),
      urlName = "repos/"+name;
      url="/proxy/happs.org/"+urlName
.
.
.
end "script" tag
end "body" tag
close "html" tag

Original comment by louis.fr...@gmail.com on 15 Aug 2008 at 3:49

GoogleCodeExporter commented 8 years ago
wget http://happs.org also returns an index.html with everthing before "var li= 
$(addr)," chopped off.  So, this is probably a problem at happs.org, rather 
than a 
HTTP client problem.

Original comment by louis.fr...@gmail.com on 16 Aug 2008 at 1:41