473,394 Members | 1,715 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,394 software developers and data experts.

How to preprocess the html address before opening it?

Hallo,

is it possible to open a page like this:

http://www.mydb.com/query.php?Lng=1&...T_HERE&Ava=Gt5

from a local page which would look like this:
----- local page starts -----
Enter ID: ....MY_TEXT_HERE......
[Search]
----- local page ends ------

The field <MY_TEXT_HERE> should be substitued with the text entered
into the local page. I think that it should be possible with some kind
of client-side scripting - javascript or vbscript or something similar.

Thanks,
Jiri Rosicky

Mar 15 '06 #1
4 1363


I gather you want to automate some server script call/submission,
just in the local page, make the form as it's on the server, and for
Action, give the full url, including http://....., and fill out the
fields Value=".." respectively, you can even submit it upon opening
by means of <body onload="document.forms[0].submit()">.

Danny
Mar 15 '06 #2
Thanks for reply. I am not sure if I wrote my question clearly. Ok, I
would like to have a local page with an input for entering some text -
say "FUN". After pressing the submit button on that local page I would
like to open (in a new browser window) a url like this:

http://www.mydb.com/query.php?Lng=1&...&ID=FUN&Fgx=45

I am not very familiar with javascript so an example would be great!

Thanks,
Jiri Rosicky

Mar 15 '06 #3
ro***@volny.cz wrote:
is it possible to open a page like this:

http://www.mydb.com/query.php?Lng=1&...T_HERE&Ava=Gt5
from a local page which would look like this:
----- local page starts -----
Enter ID: ....MY_TEXT_HERE......
[Search]
----- local page ends ------

The field <MY_TEXT_HERE> should be substitued with the text entered
into the local page. I think that it should be possible with some kind
of client-side scripting - javascript or vbscript or something similar.


Yes, it is possible with client-side scripting. No, this should not
be done that way. It is in fact merely a matter of Web development
and HTML basics:

<form action="http://www.mydb.com/query.php">
<input type="hidden" name="Lng" value="1">
<input type="hidden" name="Edn" value="2">
<input type="hidden" name="Sch" value="5">
<input type="hidden" name="Sky" value="4">

<label for="myID">Enter ID:</label>
<input name="ID" id="myID" value="MY_TEXT_HERE">

<input type="hidden" name="Ava" value="Gt5">

<input type="submit" value="Search">
</form>

RTFM. STFW.
PointedEars
Mar 15 '06 #4
Hi Tomas!

Your code solves exactly what I need! I am wondered there is no need to
use javascript:-)

Thanks a lot!
Jiri

Mar 17 '06 #5

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

Similar topics

4
by: Sylvain Donnet | last post by:
Hi, My question is probably entirely described in the subject... I need to preprocess a PHP file before it enters the PHP parser. My goal is to change some non-PHP parts of text into PHP orders....
13
by: nospam | last post by:
NEWS.COM Amazon wins patent for ordering forms # 6,615,226 http://tinyurl.com/m7v8 http://news.com.com/2100-1017-5070569.html In its latest patent, the online retailing giant outlined a...
11
by: Chris Croughton | last post by:
I have a requirement to partially preprocess C code. By 'partially' I mean that I need to define some macros (to the utility) and have it preprocess only those macros, leaving everything else...
2
by: Benny Raymond | last post by:
I need to be able to process the message WM_MOVING and WM_MOVE, however I noticed that the following breakpoint in PreProcessMessage isn't hit on move (it does get hit when I press alt for instance...
8
by: rn5a | last post by:
I have a HTML page named Index.html which is divided into 3 frames. The URL of 2 of the frames are HTML pages but the 3rd frame houses a ASP page. Now when I go to Windows Explorer, navigate to...
11
by: emailus | last post by:
I am webmaster for the domain <www.alpha1.org.au>. Not being an expert in html, I take advantage of my domain Registrant's web building tool, 'Instant Website'. This tool is provided as part of...
1
by: efinzel | last post by:
Good morning- I am brand new to any kind of programming language. I am only attempting it because I want to use the Generic Mapping Tools program (http://gmt.soest.hawaii.edu/) to create maps. I...
3
by: valerehorath via AccessMonster.com | last post by:
Hi, I am attempting to select a value in a combo box in a form in access 2000 and pass it to a variable in an html document. How can i do this? Thank you very much. -- Message posted via...
1
by: =?iso-8859-1?Q?David_S=E1nchez_Mart=EDn?= | last post by:
Hi! I've seen the message below in this python list, that seems to be unanswered. I'm trying to do the pretty same thing. There's a way to preprocess the request with a mod_python handler...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.