473,721 Members | 2,259 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 2108
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
6187
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
3416
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
1769
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
2851
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
1510
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
4189
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
5930
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
20330
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
8730
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
9215
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
9131
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
9064
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...
0
8007
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
6669
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
4484
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
4753
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2576
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.