473,594 Members | 2,694 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 1371


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
5078
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
1968
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
3330
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
7821
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
3342
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
3509
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
2194
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
3226
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
2294
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
7954
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
7882
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
8259
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8377
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8016
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5415
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
3905
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1487
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1218
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.