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

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.Bottom.TxtUsrName.value + ' - ' +
parent.frames.Bottom.TxtRemarque.value); // testing purpose
// post the data to the server. ex .. myURL.asp?userID=1000&Art=ART1201
// 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 2096
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.Bottom.TxtUsrName.value + ' -
P> ' +
P> parent.frames.Bottom.TxtRemarque.value); // testing purpose //
P> post the data to the server. ex .. myURL.asp?userID=1000&Art=ART1201
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.asp" target="secondframe";
- 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.Bottom.TxtUsrName.value + ' - ' +
parent.frames.Bottom.TxtRemarque.value); // testing purpose
// post the data to the server. ex .. myURL.asp?userID=1000&Art=ART1201
// 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.Bottom.TxtUsrName.value + ' - ' +
parent.frames.Bottom.TxtRemarque.value); // testing purpose
// post the data to the server. ex .. myURL.asp?userID=1000&Art=ART1201
// 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
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"...
3
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...
4
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...
4
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. ...
0
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
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...
1
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,...
6
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...
7
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,...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
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...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
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...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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...

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.