Current location: Hot Scripts Forums » General Web Coding » JavaScript » keeps loading?


keeps loading?

Reply
  #1 (permalink)  
Old 09-01-10, 11:54 AM
Morlaf Morlaf is offline
Newbie Coder
 
Join Date: Aug 2010
Posts: 20
Thanks: 4
Thanked 0 Times in 0 Posts
keeps loading?

got this really basic form written in javascript:

HTML Code:
<HTML>
<body>
<SCRIPT LANGUAGE="JavaScript">

function readText (form)
{
    TestVar =form.inputbox.value;
    document.write("Welcome " + TestVar);
}

</SCRIPT>


<FORM NAME="myform" action"" METHOD="GET">
What is your name? <BR>
<INPUT TYPE="text" NAME="inputbox" VALUE=""><P>
<INPUT TYPE="button" NAME="button1" Value="Submit" onClick="readText(this.form)">
</FORM>



<script type="text/javascript"><!--
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
//-->
</script>
<script type="text/javascript"><!--
try {
var pageTracker = _gat._getTracker("UA-256751-2");
pageTracker._trackPageview();
} catch(err) {}
//-->
</script>
</BODY>
</HTML>

but when i run it, though it does what i want but the tab keeps displaying the loading image, as though the page is not fully loaded. Any ideas, please?

Last edited by UnrealEd; 09-01-10 at 12:07 PM. Reason: fixed [html] tags
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 09-02-10, 04:26 AM
Yeroon's Avatar
Yeroon Yeroon is offline
Code Master
 
Join Date: Aug 2007
Location: Netherlands, Nijmegen
Posts: 850
Thanks: 2
Thanked 20 Times in 20 Posts
Hi,

I can't see the loading in IE, Chrome or Firefox. It works in IE. Chrome won't display the text though. After sumbit gives an empty page. Are you sure it wasn't somehow the google analytics that were still trying to load?
__________________
Feel free to thank people if they help you by clicking thanks at a post.
=================================
Make it idiot proof and someone will make a better idiot.
=================================
Realise the impotence of proof reading everything you publish
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 09-14-10, 06:12 PM
Morlaf Morlaf is offline
Newbie Coder
 
Join Date: Aug 2010
Posts: 20
Thanks: 4
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Yeroon View Post
Hi,

I can't see the loading in IE, Chrome or Firefox. It works in IE. Chrome won't display the text though. After sumbit gives an empty page. Are you sure it wasn't somehow the google analytics that were still trying to load?
the "google analytics"? no idea what that is dude.... but thanks..... i am happy with that )
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 09-15-10, 07:55 PM
Yeroon's Avatar
Yeroon Yeroon is offline
Code Master
 
Join Date: Aug 2007
Location: Netherlands, Nijmegen
Posts: 850
Thanks: 2
Thanked 20 Times in 20 Posts
Hehehe ok. Glad you are happy

You have google analytics in your page:

Code:
<script type="text/javascript"><!--
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
//-->
</script>
With any external code or content you get, you are potentially in trouble. Your webserver might be running smooth, but if at a certain point the external one isn't, then your webpage might stall due to that. That was my point.

I often see a webpage not load because the page is still waiting for some external advertisement to load. I often go back or close my browser not going to wait. Thats why I always warn people about external content.
__________________
Feel free to thank people if they help you by clicking thanks at a post.
=================================
Make it idiot proof and someone will make a better idiot.
=================================
Realise the impotence of proof reading everything you publish
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks

Tags
browser, javascript


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
loading umarrana JavaScript 1 07-15-08 01:52 AM
Creating a loading screen. rwalter JavaScript 2 03-13-08 03:46 PM
speeding up the loading process donff Flash & ActionScript 2 07-30-07 07:30 AM
XML Config vs. Dynamic Loading Trevor PHP 0 09-12-05 10:45 PM
Loading Image Rodi JavaScript 1 02-19-05 08:36 AM


All times are GMT -5. The time now is 12:12 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.