Free Wehosts?
#1
Posted 28 October 2013 - 11:37 PM
Please link away some webhosts that you like/are using yourself.
#3
Posted 29 October 2013 - 05:56 AM
#4
Posted 29 October 2013 - 06:36 AM
#5
Posted 29 October 2013 - 07:05 AM
Hellkid98, on 29 October 2013 - 05:56 AM, said:
Check Junk / Spam?
#6
Posted 29 October 2013 - 11:20 AM
Is there a way to re-send the verification mail?
#7
Posted 30 October 2013 - 09:03 AM
#8
Posted 30 October 2013 - 09:12 AM
#9
Posted 30 October 2013 - 01:49 PM
#10
Posted 30 October 2013 - 02:05 PM
Let's say I have a file with all the 'divs' in it
<div id="info"> <h1>SomeInfo Header</h1> <p1>bla bla bal</h1> </div>
Then the main file
<!DOCTYPE HTML> <head> <title>Test</title> <script> <! Some scripts here> </script> <a href="#" id="info"> Info button </a> </head> <body> <div id="main"><h2>Change this part with a new div</h2></div> </body>
And I don't know how to load a div from a file and replace the 'main' one with the new one..
Can someone please help me?
#13
Posted 30 October 2013 - 03:34 PM
ZudoHackz, on 29 October 2013 - 02:16 AM, said:
Meh, I'm done with 000webhost. First, they say their auto installer is being developed, for like a hole year, second, my site was off for 13 days due to DDoSing after they SAY they'll change the IPs every 6 hours..
Now I use 1freehosting.com - your site may have 1 minute off time per day though, not that one minute even matters...
#14
Posted 30 October 2013 - 05:01 PM
Shazz, on 30 October 2013 - 03:29 PM, said:
#15
Posted 30 October 2013 - 10:28 PM
Hellkid98, on 30 October 2013 - 05:01 PM, said:
In that case, you should use jQuery.
All you have to do is add:
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js">within the <head></head> tags.
Add a link within the <body></body> tags. Ex:
<a href="#" id="page1">PAGE 1</a>
Also add a
<div id="main"></div>within the <body></body> tags (this is where the content will be loaded).
Then you will have to write some JavaScript, so add another <script type="text/javascript"></script> but this time without the 'src' attribute.
You will write you JavaScript code within these tags.
I will just spit out a bunch of JavaScript at you (with minimal comments), I hope you go and learn what each part is doing.
jQuery docs: http://api.jquery.com
$(document).ready(function(){ // Once the document is loaded and ready: $('#page1').click(function(){ // (Attaching an event listener.) Every time the link with ID 'page1' (the one we just created) gets clicked, execute this: $('#main').load('/page1.html'); // Load /page1.html into the div with ID 'main' (again, the one we created above). }); });
That should work, let me know if you are having issues.
#16
Posted 30 October 2013 - 11:42 PM
#17
Posted 31 October 2013 - 08:21 AM
Shazz, on 30 October 2013 - 10:28 PM, said:
And does the div file that I'm loading have to look something like this?
<div> <h1>A header</h1> </div>
Is this how you load a specific id from a file?
$( "#main" ).load( "content #someID" );
#18
Posted 31 October 2013 - 03:34 PM
Hellkid98, on 31 October 2013 - 08:21 AM, said:
The link does have to be within the body. The <head></head> tags are for meta data, like the description, CSS files and JavaScript stuff; the only thing really visible that is meant to be within <head></head> is the <title></title> tags. Now, it might work if you put some content in head tags, but it only works because modern browsers like Chrome and Firefox are smart enough to understand what you are trying to do. However, your webpage won't be complying with the HTML standards and old browsers (especially IE) will not produce the results you want. Plus there is no advantage of putting it within the head tags anyway.
The file can have anything you want. Just imagine it as if you were to copy the contents of that file and then paste it within the <div id="main"></div>. It can contain HTML and even its own scripts.
And for more information on the .load, read http://api.jquery.com/load/ .
You have to specify the URL of the file, so you can even do something like
$( "#main" ).load( "http://google.com/" );But when you don't put in a domain and just do
$( "#main" ).load( "/page1.html" );you are telling it to get it from the current domain. So it would automatically resolve it to 'http://yourdomainhere/page1.html'.
If you are having trouble, make sure that the file is actually in the right place. Try visit the file through your browser, you should be able to type in 'http://yourdomainhere/page1.html' in your browser and it should bring you there.
Hope this helps
EDIT: No, adding a #someID to the URL won't load that element (div).
#19
Posted 08 November 2013 - 05:37 PM
#20
Posted 08 November 2013 - 10:33 PM
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users