leertaste Posted September 19, 2013 Posted September 19, 2013 (edited) Hello Community, I want to ask you, how to create a box like this on my homepage: you can see that the homepage doens't have to reload to show the information inside that "box".can someone tell/help me? Edited September 19, 2013 by leertaste
Vincent Posted September 20, 2013 Posted September 20, 2013 Sounds like Java. There is also a way in PHP but this is not as goog as Java.
Asura Posted September 20, 2013 Posted September 20, 2013 Hi leertaste, I'm not sure what Thor v2 is talking about. This can be accomplished with frames and links with the target specified as the label of the frames. Basic HTML. <a target="frame_name" href="information.html">Link</a> http://www.w3schools.com/html/html_iframe.asp http://www.w3schools.com/html/tryit.asp?filename=tryhtml_iframe_target
Sunzuke Posted September 20, 2013 Posted September 20, 2013 (edited) <script> function reload(target, site) { var ajaxRequest; try { ajaxRequest = new XMLHttpRequest(); } catch (e) { try { ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) { alert("Your browser broke!"); return false; } } } ajaxRequest.onreadystatechange = function() { if(ajaxRequest.readyState == 4) { var ajaxDisplay = document.getElementById(""+target+""); ajaxDisplay.innerHTML = ajaxRequest.responseText; } } ajaxRequest.open("GET", "/"+site+"/", true); ajaxRequest.send(null); } </script> Edited September 20, 2013 by Sunzuke
Vincent Posted September 22, 2013 Posted September 22, 2013 Hi leertaste, I'm not sure what Thor v2 is talking about. This can be accomplished with frames and links with the target specified as the label of the frames. Basic HTML. <a target="frame_name" href="information.html">Link</a> http://www.w3schools.com/html/html_iframe.asp http://www.w3schools.com/html/tryit.asp?filename=tryhtml_iframe_target Using frames is outdated. To do it the "good" way you have to use Java that can load dynamic stuff without siterefresh. The problem at PHP is that the code is execute serverside. Java not. You can take a look at Sunzukehe make it right Oh du bist der Beste Irgendwas habe ich aber 100%ig falsch gemacht.. Das Ganze schaut bei mir jetzt nämlich so aus: Unbenannt.png Will be helpfull if we can see your comeplete code.
leertaste Posted September 22, 2013 Author Posted September 22, 2013 Sunzuke send me this file:salesch.eu/soeinebox/soeinebox.rarI tried to put this onto my homepage but I am sure I did something wrong.This is what it looks like:
krisnx Posted October 13, 2013 Posted October 13, 2013 its use jquery . try to learn some jquery basic
Question
leertaste
Hello Community,
I want to ask you, how to create a box like this on my homepage:

Edited by leertasteyou can see that the homepage doens't have to reload to show the information inside that "box".
can someone tell/help me?
7 answers to this question
Recommended Posts