473,320 Members | 2,104 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Form action question -- remost POST using XMLHTTP

Hi everyone,

I am trying to post some data to a form using the XMLHTTP object, and have run into a problem trying to find the proper
location of the receiving page.

The form points to a directory, like so:

<form action="/servlet/Login" target="_top" method="POST" enctype="x-www-form-encoded" onSubmit='return goodform()'>

but the XMLHTTP object requires a specific file reference.

Does anyone have any ideas on how to find the specific file that receives the form submission?

Btw, the site is http://www.imrmls.com

Thanks in advance for any help or information you can provide.

Sincerely,

Shannon
Jul 19 '05 #1
7 6197
you could try requesting the folder ref with telnet - hopefully you'll
get a redirect back which will maybe tell you more

________________________________________
Atrax. MVP, IIS
http://rtfm.atrax.co.uk/

newsflash : Atrax.Richedit 1.0 now released.
http://rtfm.atrax.co.uk/infinitemonk...trax.RichEdit/

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #2
Shannon wrote:
Hi everyone,

I am trying to post some data to a form using the XMLHTTP object, and
have run into a problem trying to find the proper location of the
receiving page.

The form points to a directory, like so:

<form action="/servlet/Login" target="_top" method="POST"
Shouldn't that be "/servlet/Login.asp" ? This string should not work unless
you have a default asp page in a folder called "Login", and even then, I'm
not sure it would work ...

enctype="x-www-form-encoded" onSubmit='return goodform()'>

but the XMLHTTP object requires a specific file reference.

Does anyone have any ideas on how to find the specific file that
receives the form submission?


Do you mean the file-based path to the receiving page? I've never had to
supply that in my xmlhttprequest calls. A file does have to be specified.
But a relative url can be used. You can download my dynamic listbox demo
available at
http://www.thrasherwebdesign.com/ind...asp&c=&a=clear
to see an example.

Or do you mean that you don't know the name of the file you are calling? To
which I can only reply: why not? You wrote it didn't you? :-)

HTH,
Bob Barrows
Jul 19 '05 #3
Maybe this?? Assuming "Login" is an ASP file. You didn't give it an
extension in the code.

<form action="http://www.imrmls.com/servlet/Login.asp">
--

Phillip Windell [CCNA, MVP, MCP]
pw******@wandtv.com
WAND-TV (ABC Affiliate)
www.wandtv.com

"Shannon" <shannon@d-v-a-p-s_withnodashes_.com > wrote in message
news:9e********************************@4ax.com...
Hi everyone,

I am trying to post some data to a form using the XMLHTTP object, and have run into a problem trying to find the proper location of the receiving page.

The form points to a directory, like so:

<form action="/servlet/Login" target="_top" method="POST" enctype="x-www-form-encoded" onSubmit='return goodform()'>
but the XMLHTTP object requires a specific file reference.

Does anyone have any ideas on how to find the specific file that receives the form submission?
Btw, the site is http://www.imrmls.com

Thanks in advance for any help or information you can provide.

Sincerely,

Shannon

Jul 19 '05 #4
On Mon, 29 Sep 2003 06:53:32 -0400, "Bob Barrows" <re******@NOyahoo.SPAMcom> wrote:
Shannon wrote:
Hi everyone,

I am trying to post some data to a form using the XMLHTTP object, and
have run into a problem trying to find the proper location of the
receiving page.

The form points to a directory, like so:

<form action="/servlet/Login" target="_top" method="POST"


Shouldn't that be "/servlet/Login.asp" ? This string should not work unless
you have a default asp page in a folder called "Login", and even then, I'm
not sure it would work ...

enctype="x-www-form-encoded" onSubmit='return goodform()'>

but the XMLHTTP object requires a specific file reference.

Does anyone have any ideas on how to find the specific file that
receives the form submission?


Do you mean the file-based path to the receiving page? I've never had to
supply that in my xmlhttprequest calls. A file does have to be specified.
But a relative url can be used. You can download my dynamic listbox demo
available at
http://www.thrasherwebdesign.com/ind...asp&c=&a=clear
to see an example.

Or do you mean that you don't know the name of the file you are calling? To
which I can only reply: why not? You wrote it didn't you? :-)

HTH,
Bob Barrows

Thanks, Bob

No -- sorry. My post was written bleary-eyed and frustrated. I am trying to utilize the call from my server to
automate information retrieval off-server (from an information source that we subscribe to). Thus, I do not have access
to the file names or structures on the server I am calling, and must rely on inspection of the HTML source code
displayed on the actual form to derive both the form element names and the submission handler.

I have never seen a submission handler referenced by a relative folder path only (with no file name), and don't have any
idea where to send the POST data.

the form can be seen at http://www.imrmls.com

-- it's the login screen form that comes up as the default page.

Thanks for your help and info -- will check out the link you provided.

Shannon
Jul 19 '05 #5
I know -- confusing. I didn't specify clearly enough that I did not write the form code. I am trying to POST data to
it to automate information retrieval from a site to which I subscribe. The Form's Action propeorty is definately set to
a relative folder reference -- something I have not seen in a form.

FYI -- the form can be viewed at www.imrmls.com -- it's the login form that appears as a default.

Odd, indeed. Thank you for your time and information,

Shannon

On Mon, 29 Sep 2003 08:40:18 -0500, "Phillip Windell" <pwindell{at}wandtv*d0t*com> wrote:
Maybe this?? Assuming "Login" is an ASP file. You didn't give it an
extension in the code.

<form action="http://www.imrmls.com/servlet/Login.asp">


Jul 19 '05 #6
You would have to post to

http://www.imrmls.com/servlet/Login
--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"Shannon" <shannon@d-v-a-p-s_withnodashes_.com > wrote in message
news:dg********************************@4ax.com...
I know -- confusing. I didn't specify clearly enough that I did not write the form code. I am trying to POST data to it to automate information retrieval from a site to which I subscribe. The Form's Action propeorty is definately set to a relative folder reference -- something I have not seen in a form.

FYI -- the form can be viewed at www.imrmls.com -- it's the login form that appears as a default.
Odd, indeed. Thank you for your time and information,

Shannon

On Mon, 29 Sep 2003 08:40:18 -0500, "Phillip Windell" <pwindell{at}wandtv*d0t*com> wrote:
Maybe this?? Assuming "Login" is an ASP file. You didn't give it an
extension in the code.

<form action="http://www.imrmls.com/servlet/Login.asp">

Jul 19 '05 #7
Shannon wrote:
On Mon, 29 Sep 2003 06:53:32 -0400, "Bob Barrows"

No -- sorry. My post was written bleary-eyed and frustrated. I am
trying to utilize the call from my server to automate information
retrieval off-server (from an information source that we subscribe
to). Thus, I do not have access to the file names or structures on
the server I am calling, and must rely on inspection of the HTML
source code displayed on the actual form to derive both the form
element names and the submission handler.

I have never seen a submission handler referenced by a relative
folder path only (with no file name),
Neither have I.
and don't have any idea where
to send the POST data.

the form can be seen at http://www.imrmls.com

-- it's the login screen form that comes up as the default page.
Can you ask someone at the site?

Thanks for your help and info -- will check out the link you provided.


It probably won't help in this situation.

Bob Barrows
Jul 19 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Shannon | last post by:
Hi, all -- this is a weird question that does not really have to do with javascript, but I used to spend a lot of time here, and am hoping someone might be able to help... I am trying to...
4
by: MLH | last post by:
I can launch a session of IE from Access 97 database. For instance, I want to page my friend, I go to http://www.arch.com/message/ then type his 800XXXXXXX number in the field and click...
8
by: Goldwind | last post by:
Hi, I"m writing a page in asp. When the user presses on Submit the form is passed by Post to a url in a different site. The problem is that i want to do this action in script, meaning call a...
8
by: david.lindsay.green | last post by:
Hello all, I am quite new a web scripting and making web pages in general and I have stumbled across a problem I have as yet been unable to solve. I am trying to take the contents of a textarea box...
4
by: pbd22 | last post by:
hi. could somebody tell me, when uploading a file, i know the form where the upload component is must have enctype=multipart/form-data but, is the same true for the form with the server code to...
1
by: Pupkin | last post by:
Hi, I've got a web form that needs to submit its data in a number of different directions. I was hoping to use XMLHTTP to post it to two external service providers EROI and Salesforce) So...
7
ak1dnar
by: ak1dnar | last post by:
Hi, I got this scripts from this URL There is Error when i submit the form. Line: 54 Error: 'document.getElementbyID(....)' is null or not an object What is this error. Complete Files
2
by: rpjd | last post by:
I am trying to submit entries in a form to a database. I am using " within my submission form and $_POST I am getting the connection to the database but I my script is not executing,...
6
by: BarryX | last post by:
Hi, How do I simulate this from the server side: <form name="SearchForm" method="POST" id="SearchForm" action="http://SOMEURL/Search.ASP?Parm1=1&Parm2=2"> I have generally been posting data...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.