473,770 Members | 3,912 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_HER E......
[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 1381


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="documen t.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_HER E......
[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">Ente r 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
5097
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. I see in PHP doc an output_handler to postprocess the output. And I see that there is no input_handler. Does anybody have a clue, a solution ? I am also looking for a solution outside PHP, in some Apache modules (for instance mod_transform,...
13
1984
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 method for expanding portions of the ordering form, then collapsing that portion of the form and removing the data fields. The content for that particular section of the form would then be displayed again.
11
3363
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 intact. A compiler's preprocessor won't do this, since it will also process macros defined in the code (and in standard header files) and strip out everything. For instance, given source like: #include <stdio.h> #if defined(AAA) void...
2
7836
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 though). It does get hit on the WndProc, however I can't return a true here, so it's worthless for me... Any help would be awesome: ==== start code ==== public const int WM_MOVING = 0x0216; public const int WM_MOVE = 0x0003; protected...
8
3353
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 the folder in which the all the 4 files (3 HTML + 1 ASP) reside & select Index.html (by clicking with the mouse or by using the arrow keys on the keyboard), strangely the Windows "File Download" dialog box (with 'Open', 'Save', 'Cancel', 'More...
11
3526
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 the fee I pay for web hosting. 'Instant Website' provides the option of having your opening page as a Flash Page, which you'll see if you visit <www.alpha1.org.au>. Well, you'll see it if you visit from a Windows machine. For some reason, when...
1
2203
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 have a lot of Arc data that I want to convert to use in GMT. I found a file, shp2gmt (http://169.237.35.250/~dylan/grass_user_group/map1.html), that I can use to do this. However, the shp2gmt.c file needs to be preprocessed before it can be...
3
3232
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 http://www.accessmonster.com
1
2303
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 and then proxying it with mod_proxy?
0
9602
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9439
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8905
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7431
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6690
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5326
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5467
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3987
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3589
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.