Click here to Skip to main content
15,918,706 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: HTML Form Pin
alex.barylski7-Oct-03 18:14
alex.barylski7-Oct-03 18:14 
QuestionCounting visits in my web page... How can I do it? Pin
Joan M7-Oct-03 7:34
professionalJoan M7-Oct-03 7:34 
AnswerRe: Counting visits in my web page... How can I do it? Pin
alex.barylski7-Oct-03 9:38
alex.barylski7-Oct-03 9:38 
GeneralPayroll service Pin
ravfingcoder6-Oct-03 5:17
ravfingcoder6-Oct-03 5:17 
GeneralRe: Payroll service Pin
Nathan Ridley7-Oct-03 3:50
Nathan Ridley7-Oct-03 3:50 
GeneralRe: Payroll service Pin
devvvy7-Oct-03 4:17
devvvy7-Oct-03 4:17 
GeneralRe: Payroll service Pin
Sage16-Oct-03 8:58
Sage16-Oct-03 8:58 
GeneralProblem while posting to many asp pages from an html page! Pin
TPN6-Oct-03 0:46
TPN6-Oct-03 0:46 
I want to post information to many asp pages but it doesn't work correctly. To test, I created 2 pages: the first page is the "poster" and the second page is the "receiver"

The first page:

<script language=JavaScript>
function do_submit()
{
        var i;
	var count = 10;
	for (i = 0; i < count; i++)
	{
		document.frmMain.Index.value = i;
		document.frmMain.submit();
	}
}
</script>

<form name=frmMain action="http://pcproject/multipost/destination.asp">
<input type=hidden name=Index>
<input type=button value=Test onclick="do_submit();">
</form>


The second page: Written in ASP, To monitor the result

Dim Index
Index = Request("Index")

Dim fs
Set fs = Server.CreateObject("Scripting.FileSystemObject")
fs.CreateTextFile Server.MapPath(Index)
Set fs = Nothing

    'Do not return result
Response.Status = 204


I expected that after running the test, the second page would create 10 files named from 0 to 9 but sometimes the file names are from 1 to 9, sometimes from 2 to 9.
It seem that the first post and the second post take no effect.
The amazing thing is if I put the statement alert("something"); next to the statement document.frmMain.submit(); in the JavaScript code of the poster, the test is OK. May it need a delay time???

I'm so confuse, please help me.
GeneralRe: Problem while posting to many asp pages from an html page! Pin
Nathan Ridley6-Oct-03 17:53
Nathan Ridley6-Oct-03 17:53 
GeneralRe: Problem while posting to many asp pages from an html page! Pin
TPN6-Oct-03 20:58
TPN6-Oct-03 20:58 
GeneralRe: Problem while posting to many asp pages from an html page! Pin
Nathan Ridley7-Oct-03 3:55
Nathan Ridley7-Oct-03 3:55 
GeneralRe: Problem while posting to many asp pages from an html page! Pin
TPN10-Oct-03 21:19
TPN10-Oct-03 21:19 
GeneralRe: Problem while posting to many asp pages from an html page! Pin
Nathan Ridley10-Oct-03 22:53
Nathan Ridley10-Oct-03 22:53 
GeneralRe: Problem while posting to many asp pages from an html page! Pin
TPN11-Oct-03 18:11
TPN11-Oct-03 18:11 
GeneralRe: Problem while posting to many asp pages from an html page! Pin
Sage16-Oct-03 9:18
Sage16-Oct-03 9:18 
GeneralRe: Problem while posting to many asp pages from an html page! Pin
Philip Fitzsimons7-Oct-03 3:03
Philip Fitzsimons7-Oct-03 3:03 
GeneralRe: Problem while posting to many asp pages from an html page! Pin
TPN10-Oct-03 20:28
TPN10-Oct-03 20:28 
GeneralRe: Problem while posting to many asp pages from an html page! Pin
Philip Fitzsimons12-Oct-03 23:12
Philip Fitzsimons12-Oct-03 23:12 
GeneralWebServices and .Net Pin
sybux20005-Oct-03 9:48
sybux20005-Oct-03 9:48 
GeneralRe: WebServices and .Net Pin
David Cunningham5-Oct-03 9:55
cofounderDavid Cunningham5-Oct-03 9:55 
GeneralRe: WebServices and .Net Pin
sybux20006-Oct-03 7:01
sybux20006-Oct-03 7:01 
General&lt;input type=file&gt; Pin
kokain5-Oct-03 6:26
kokain5-Oct-03 6:26 
GeneralRe: &lt;input type=file&gt; Pin
markkuk5-Oct-03 7:12
markkuk5-Oct-03 7:12 
GeneralRe: &lt;input type=file&gt; Pin
Blake Coverett5-Oct-03 10:24
Blake Coverett5-Oct-03 10:24 
GeneralRemote and Local DBs Pin
J. Dunlap3-Oct-03 12:20
J. Dunlap3-Oct-03 12:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.