473,324 Members | 2,400 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,324 software developers and data experts.

Relative folder reference in form action property?

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 automate some information retrieval on a subscription web service I belong to, and have had much luck
with similar sites using the XMLHTTP com to automatically POST the form data. However, in this case, I can't find the
submission handler. The line in the form (which can be found at www.imrmls.com) looks like this:

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

the goodform() function is a simple client-side character validator, and does not change or alter the form's ACTION
property in any way.

I have never seen a relative ference in a form's action property -- didn't know it could be done. AND, the XMLHTTP POST
method will not allow a folder reference -- it has to be a specific file.

Any ideas on how I could find the specific filename for the form submission handler? I have triedalmost every variation
of a name I can tink of -- all to no avail. I have also looked at other forms on the server, and all refer to a
subfolder under the "servlet" folder, but with no specific file name. For example, the searcvh page form would have an
"Action" property of "/servlet/Search"

I have asked the site developer, but they get sketchy about stuff like this, because theoretically, I could allow anyone
to access their entire site with just so much as a click of the mouse on my server. I don't want to do that, but it
would save enormous amounts of time if we didn't have to do all of this manually.

Thanks so much to anyone who can help. To conservative members, I apologize for a nearly off-topic question, but as a
long-ago active member of this group, I know that the nature of the question deals closely with what many JS programmers
deal with daily.

Thanks again,

Shannon

Jul 20 '05 #1
1 5069
Shannon wrote:
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 automate some information retrieval on a subscription web
service I belong to, and have had much luck with similar sites using the
XMLHTTP com to automatically POST the form data. However, in this case, I
can't find the
submission handler. The line in the form (which can be found at
www.imrmls.com) looks like this:

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

the goodform() function is a simple client-side character validator, and
does not change or alter the form's ACTION property in any way.

I have never seen a relative ference in a form's action property -- didn't
know it could be done. AND, the XMLHTTP POST method will not allow a
folder reference -- it has to be a specific file.
I fail to see the problem: surely if you post to servlet/Login, it will be
processed?

But is it easy to translate that relative reference to an absolute one:
just set http://the_url_from_the_html_file_wi.../servlet/Login as the
url.

And there is no "filename" or "folder" on the webserver. What happens is
that /servlet/Login is mapped to a servlet that could be any "file" (a java
class actually), and this is webserver configuration specific.

This is how jsp/servlet webservers are configured, it is not like php or asp
where you post to a specific .php|.asp file.

Any ideas on how I could find the specific filename for the form
submission handler? I have triedalmost every variation
of a name I can tink of -- all to no avail. I have also looked at other
forms on the server, and all refer to a
subfolder under the "servlet" folder, but with no specific file name. For
example, the searcvh page form would have an "Action" property of
"/servlet/Search"

I have asked the site developer, but they get sketchy about stuff like
this, because theoretically, I could allow anyone
to access their entire site with just so much as a click of the mouse on
my server. I don't want to do that, but it would save enormous amounts of
time if we didn't have to do all of this manually.

Thanks so much to anyone who can help. To conservative members, I
apologize for a nearly off-topic question, but as a long-ago active member
of this group, I know that the nature of the question deals closely with
what many JS programmers deal with daily.

Thanks again,

Shannon


--
mvg,
Christophe Vanfleteren
Jul 20 '05 #2

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

Similar topics

1
by: Michael Brennan-White | last post by:
If I submit my for using a get action the resulting page loads . If I use a post action I get an error page saying "The page cannot be found". I am calling the originating page!!! This happens...
0
by: jason | last post by:
What is the best way to handle global includes for 3 subwebs that may at various times consume similiar include files such as ENQUIRY FORMS. I ask this question as I now have the oppportunity to...
5
by: jason | last post by:
Can anyone help me find a solution to quickly working out relative paths to a folder in the root of my server... Although it easy when you go - say - two levels down: .../includes it...
10
by: Tony Abate | last post by:
I am working on an ASP.NET app that is going well except for one thing. I build my application and then move the .aspx file to a different directory. I can point the Codebehind property back to the...
8
by: Paul Bromley | last post by:
I am trying to get somewhere with user controls and have come up against an obstacle with using relative paths. I have a dataset in my user control, and have tried to enter the path with the...
6
by: Julien | last post by:
Hello, I have some files located in a file server and managed by a SQL database from a web based interface using ASP + VBSCRIPT technology. I need to automatically copy those files to a web...
2
by: D Godwin | last post by:
This is probably more of a straight HTML question, but here goes: I want to change from http to https during a form submit. This it pretty straightforward with a complete path...
8
by: JJ | last post by:
I'm confused about paths. I have a functionn that uses the mappath method, which I think requires a virtual path (is that the same as a relative path?). But this doesn't always work as the...
9
by: Keith G Hicks | last post by:
I'm having a lot of trouble with "file in use" errors in my "folder watcher" project. Starting and stopping the watcher and reading my XML file work fine. Once the watcher is started, I'm reading...
0
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...
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: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
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)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
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
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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.