473,698 Members | 2,033 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Howto get data from Server

PVU
Hello,

I have an page that calls the function below.
What i want to do is that this function post data to the server (ASP) and
the server will response with 'OK'
My question is how can i send data clientside from Javascript to the server
? (navigate ? with url ?)
and check the returned data in the same function ?
function ShowData(TxtArt )
{
alert(TxtArt + ' : ' + parent.frames.B ottom.TxtUsrNam e.value + ' - ' +
parent.frames.B ottom.TxtRemarq ue.value); // testing purpose
// post the data to the server. ex .. myURL.asp?userI D=1000&Art=ART1 201
// fetch the data from the server. to verify if the 'OK' is recieved ->
the server will response with 'OK'
// if 'ok' -> i will update clientside an frame (ex. contents of
shoppingbasket)
}

Any idea's ?
Kind Regards,
Peter Verburgh
Jul 23 '05 #1
3 2107
Hello, PVU!
You wrote on Thu, 1 Apr 2004 23:20:15 +0200:

P> I have an page that calls the function below.
P> What i want to do is that this function post data to the server (ASP)
P> and the server will response with 'OK'
P> My question is how can i send data clientside from Javascript to the
P> server ? (navigate ? with url ?)
P> and check the returned data in the same function ?
P> function ShowData(TxtArt )
P> {
P> alert(TxtArt + ' : ' + parent.frames.B ottom.TxtUsrNam e.value + ' -
P> ' +
P> parent.frames.B ottom.TxtRemarq ue.value); // testing purpose //
P> post the data to the server. ex .. myURL.asp?userI D=1000&Art=ART1 201
P> // fetch the data from the server. to verify if the 'OK' is recieved
P> ->
P> the server will response with 'OK'
P> // if 'ok' -> i will update clientside an frame (ex. contents of
P> shoppingbasket)
P> }

IMHO, there is no common way to implement such kind of operations (in
javascript, there may be something in VBScript, like Request/Response
objects, but i'm not sure).

I think the most reasonable way is to post data to server-side script, wich
can perform some action (validate etc) and depending on results respond to
frame proper html-page.
Something like:
- your page consist of two frames - first is a form, ssecond - is a basket;
- form submit with action="show.as p" target="secondf rame";
- show.asp checks if TxtUsrName is real user name;
- if yes - response is a basket;
- if no - response is an error page, catalog, banner etc ;)

Good luck

// WBR, Mozyra Stepan
// SM17-UANIC
Jul 23 '05 #2
Ivo
PVU said:
What i want to do is that this function post data to the server (ASP) and
the server will response with 'OK'
My question is how can i send data clientside from Javascript to the server ? (navigate ? with url ?)
and check the returned data in the same function ?
function ShowData(TxtArt )
{
alert(TxtArt + ' : ' + parent.frames.B ottom.TxtUsrNam e.value + ' - ' +
parent.frames.B ottom.TxtRemarq ue.value); // testing purpose
// post the data to the server. ex .. myURL.asp?userI D=1000&Art=ART1 201
// fetch the data from the server. to verify if the 'OK' is recieved ->
the server will response with 'OK'
// if 'ok' -> i will update clientside an frame (ex. contents of
shoppingbasket)
}

Any idea's ?


For selected browsers only, the xml http request object, as mentioned in the
FAQ:
http://jibbering.com/faq/#FAQ4_38
http://www.galasoft-LB.ch/myjava/Web...Demo/Demo.html
http://jibbering.com/2002/4/httprequest.html
in tango with some clever serverside processing.
HTH
Ivo
Jul 23 '05 #3
PVU
tnx
i'll check it out.
Peter.

"PVU" <pe*****@skynet .be> schreef in bericht
news:40******** **************@ news.skynet.be. ..
Hello,

I have an page that calls the function below.
What i want to do is that this function post data to the server (ASP) and
the server will response with 'OK'
My question is how can i send data clientside from Javascript to the server ? (navigate ? with url ?)
and check the returned data in the same function ?
function ShowData(TxtArt )
{
alert(TxtArt + ' : ' + parent.frames.B ottom.TxtUsrNam e.value + ' - ' +
parent.frames.B ottom.TxtRemarq ue.value); // testing purpose
// post the data to the server. ex .. myURL.asp?userI D=1000&Art=ART1 201
// fetch the data from the server. to verify if the 'OK' is recieved ->
the server will response with 'OK'
// if 'ok' -> i will update clientside an frame (ex. contents of
shoppingbasket)
}

Any idea's ?
Kind Regards,
Peter Verburgh

Jul 23 '05 #4

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

Similar topics

3
6185
by: Roberto | last post by:
I have the following problem: I have the following form client side: <FORM.......> <FORM action="./WZUpload.asp" method="Post" enctype="multipart/form-data" WIDTH=100%> <INPUT Type="file" name="UpFileName" STYLE="{Width:400px}"><BR>
3
3415
by: Dan Sikorsky | last post by:
I've sent private data back to the IIS by implementing the web page reference to HTTPS, but how can secure data be sent to the client computer over the internet using SSL? -- Thank you, Dan Sikorsky MSCS, BSCE, BAB
4
1764
by: Vlady | last post by:
Hello. I recently built an ASP.NET "financial" application. I got to the point where I have a HTML template (a contract) which needs to be filled with various data from the database. I put a "generate contract" button on my ASPX page, but I totally lack ideas of how to put the data in the correct places in the html file. I was recommended (actually "do like this" from my boss) to enclose the variable name like this {variable_name} in the...
4
2848
by: Ray Dukes | last post by:
What I am looking to do is map the implementation of interface properties and functions to an inherited method of the base class. Please see below. '**************************************************************************** ' Issues '****************************************************************************
0
1505
by: Mark Harrison | last post by:
HOWTO: Integrating Posgresql queries into an event loop. Mark Harrison mh@pixar.com May 27, 2004 Problem ------- The commonly used postgresql APIs will block until completed.
8
4187
by: Topper | last post by:
Hello. I have simple web folders structure: -ROOT - BIN WebService.dll WebService.asmx I need to use my WebService.dll not in bin folder - for example, in ROOT. How do i this? How can i do this without .config file only with some configuration
1
2257
by: BStrick | last post by:
I would like to know what may be the "Best" way to approach with problem. I have an application that I created to transfers data dynamically from an unknown source (ie maybe Excel, Access, XML, or SQLServer) and imports it into a datatable and then on to the dataGridView for the user to see. The thing about that initial datasource is that the application will not know how its columns are formatted up until the data is actually sent...
6
5928
by: Ian Boyd | last post by:
Every time during development we had to make table changes, we use Control Center. Most of the time, Control Center fails. If you try to "undo all", it doesn't, and you end up losing your identity seed, or your constraints, or your triggers, or your table. Talking to developers at other companies who have had the misfortune of using DB2, they are adamant that you cannot use the tools; they are buggy and you just have to resign yourself to...
7
20325
by: =?Utf-8?B?QVRT?= | last post by:
HOWTO Run multiple SQL statements from ASP/ADO to an Oracle 10g. Please help, I'm trying to write an ASP page to use ADO to run a long query against an Oracle 10g database, to create tables, if they do not already exist. In terms of ASP/ADO, that would be fine in a SQL Server Sense by a simply ASP/Server-Side JavaScript as such: var cnTemp = Server.CreateObject("ADODB.Connection");
0
8672
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
8600
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
9155
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
8858
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6517
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
5859
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
4614
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2322
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1997
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.