Current location: Hot Scripts Forums » General Web Coding » JavaScript » JavaScript form POST return issue

JavaScript form POST return issue

 
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 10-19-09, 08:00 PM
GameFrame GameFrame is offline
Newbie Coder
 
Join Date: May 2009
Location: Finland
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
JavaScript form POST return issue

I have the following code below in my index.php. A form uses it like this:

Code:
<form action="" method="post" onsubmit="return check_submit(this);">
So basicly i want to display that "Please wait ..." on form submit and immediately after the form has processed itīs POST, return also actual form output. Issue is the following: It only returns that "Please wait ..." text but no actual results from that form. I am very bad with JS however i would prishiate if someone could assist me to get actual form output too after that "Please wait..." text.

Code:
<script language="JavaScript" type="text/javascript">

<!--

var submitted = false;

function check_submit(theform)
{
   if (submitted) return false;
   theform.submit.disabled=true;
   theform.submit.value="Please Wait...";
   return (submitted = true);
}
//-->

</script>
__________________
GFM - Main developer
█ The most advanced and the fastest Game Server Control Panel - Try out the demo and signup for one month free trial!
gfmdemo.gameframe.net

Last edited by End User; 10-20-09 at 09:58 AM. Reason: Removed mult. acronym tags
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
 

Bookmarks


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
TreeView Control - Background Image? tim8w Windows .NET Programming 1 04-11-07 01:43 PM
Confused about the from address with php form processor AshleyQuick PHP 0 06-01-04 12:52 PM
JavaScript concurrency issue dugfresh JavaScript 0 12-09-03 02:12 PM
Help trim code down TheLaughingBandit JavaScript 0 09-02-03 10:50 AM
javascript form dave111 JavaScript 2 08-21-03 01:36 AM


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