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


JavaScript form POST return issue

Reply
  #1 (permalink)  
Old 10-19-09, 07:00 PM
GameFrame GameFrame is offline
Newbie Coder
 
Join Date: May 2009
Location: Finland
Posts: 35
Thanks: 0
Thanked 3 Times in 3 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>
__________________
NiX API - Stay protected. Multi-purpose API protection solution for webmasters.
nixapi.com

Last edited by End User; 10-20-09 at 08:58 AM. Reason: Removed mult. acronym tags
Reply With Quote
  #2 (permalink)  
Old 10-20-09, 06:30 AM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,515
Thanks: 20
Thanked 109 Times in 106 Posts
If it is AJAX, please post the javascript that receives the response from the server.

If it isn't AJAX, please post the PHP that generates the output.
Reply With Quote
  #3 (permalink)  
Old 10-25-09, 09:23 PM
GameFrame GameFrame is offline
Newbie Coder
 
Join Date: May 2009
Location: Finland
Posts: 35
Thanks: 0
Thanked 3 Times in 3 Posts
Sorry for late reply, been busy with work. With any form that issue occurs so therefore i think there is no need to provide any PHP code. I actually tried to fix it without any luck.
__________________
NiX API - Stay protected. Multi-purpose API protection solution for webmasters.
nixapi.com
Reply With Quote
  #4 (permalink)  
Old 10-26-09, 06:42 AM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,515
Thanks: 20
Thanked 109 Times in 106 Posts
If every form fails - it may be the PHP code.
Reply With Quote
Reply

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 12:43 PM
Confused about the from address with php form processor AshleyQuick PHP 0 06-01-04 11:52 AM
JavaScript concurrency issue dugfresh JavaScript 0 12-09-03 01:12 PM
Help trim code down TheLaughingBandit JavaScript 0 09-02-03 09:50 AM
javascript form dave111 JavaScript 2 08-21-03 12:36 AM


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