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

Remote Scripting vs XMLHttp: Validating field without submitting a form.

CJM
I have a form where I want to be able to validate a field against a DB
*before* the form has been submitted.

After doing a bit of homework, it seems there are two general approaches:

1) Remote Scripting [using RSExecute/RSGetASPObject]
2) Using XMLHTTP/XMLDOM objects

I have no experience with either, so I though I'd see what my peers are
using.

Does anybody have any suggestions/preferences? Any good code examples?

Thanks

Chris
Jul 19 '05 #1
3 1895
CJM wrote:
I have a form where I want to be able to validate a field against a DB
*before* the form has been submitted.

After doing a bit of homework, it seems there are two general
approaches:

1) Remote Scripting [using RSExecute/RSGetASPObject]
2) Using XMLHTTP/XMLDOM objects

I have no experience with either, so I though I'd see what my peers
are using.

Does anybody have any suggestions/preferences? Any good code examples?

Thanks

Chris


Remote Scripting is pretty dead. It was a PITA to implement.

In an intranet environment, xmlhttp has proved very useful to me, but,
depending on the amount of data that needs to be validated against, there
are other approaches possible via xml. Here's a couple ideas:
http://www.davidpenton.com/testsite/tips/

Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jul 19 '05 #2
CJM

"Bob Barrows" <re******@NOyahoo.SPAMcom> wrote in message
news:ur**************@TK2MSFTNGP12.phx.gbl...

Remote Scripting is pretty dead. It was a PITA to implement.

In an intranet environment, xmlhttp has proved very useful to me, but,
depending on the amount of data that needs to be validated against, there
are other approaches possible via xml. Here's a couple ideas:
http://www.davidpenton.com/testsite/tips/

Bob Barrows


Bob,

If I've digested your code correctly, the asp creates a recordset contain
the whole dataset, which is then displayed when the button is pressed.

This is not really a solution to my problem; my dataset is toolarge for
this - I need to query the DB AFTER the page is sent to the client. I just
need to confirm that the value entered by the user is a valid key on in a
particular table.

I have two examples of code that would/should work (as I explained before).
I take your point about Remote Scripting, but the XMLHTTP solution looks
like it is a PITA as well!

I'll wait a day or so for any further replies, but after that I'm going to
have to bite the bullet and pick one of these two nightmare beasts!

Thanks anyway

Chris
I've heard tha
Jul 19 '05 #3
CJM wrote:
"Bob Barrows" <re******@NOyahoo.SPAMcom> wrote in message
news:ur**************@TK2MSFTNGP12.phx.gbl...

Remote Scripting is pretty dead. It was a PITA to implement.

In an intranet environment, xmlhttp has proved very useful to me,
but, depending on the amount of data that needs to be validated
against, there are other approaches possible via xml. Here's a
couple ideas: http://www.davidpenton.com/testsite/tips/

Bob Barrows

Bob,

If I've digested your code correctly, the asp creates a recordset
contain the whole dataset, which is then displayed when the button is
pressed.

This is not really a solution to my problem; my dataset is toolarge
for this -


That's why I said it depends on how large the dateset is.

I need to query the DB AFTER the page is sent to the client. I just need to confirm that the value entered by the user is
a valid key on in a particular table.

I have two examples of code that would/should work (as I explained
before). I take your point about Remote Scripting, but the XMLHTTP
solution looks like it is a PITA as well!


Actually, it isn't. As long as the clients are using IE5.5 or higher, there
is nothing to set up on the client machines.

Aaron has a few examples on the aspfaq site. They do not appear to be too
intimidating to me, but then again, I've been using it for months. The most
intimidating part was learning to navigate the xmldom.

Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jul 19 '05 #4

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

Similar topics

4
by: Irene | last post by:
Hi, I have an asp page that allows a user to search for info in a DB and add info to a DB. The search uses "ADODB.Connection" objects in the page, but the add will use a call to an isapi dll...
6
by: Jennifer Smith | last post by:
Currently we have a site that allows users to listen to mp3 files. It is creating bandwidth issues. So we want to move the mp3 files to an ISP that caps bandwidth usage. Ours is currently...
4
by: Dimitris | last post by:
Hello, I have a problem that it seems easy but its really not. I am using Microsoft remote scripting for a site that I am making. Everything is going pretty good except one thing. My values which I...
1
by: microsoft.public.dotnet.languages.vb | last post by:
Hi All, I have an asp page. There I enter some text. This text needs to go some other web site but as jsp page ( such as http://www.web.com/Link.jsp). Now, I was told to submit my asp page as...
1
by: govince | last post by:
Not sure this is realyy realted to access, but a least to asp scripting. This is what I am trying achieve, I'll try to make it as clear as possible: I am integrating a search page form a...
6
by: lisa | last post by:
One of the things I hate the most about ASP.NET is the postback of an entire page just to update a single field. So I was looking around, and I came across Remote Scripting. See, when I write...
17
by: freemann | last post by:
Can anyone provide example code showing how to send form results to a results page, email and a comma delimited file? Notice that I need it going to all three locations. Details: I have forms...
5
by: sklett | last post by:
I'm not real experienced with asp.net so this may be obvious. I've got a situation where some of my client side javascript is causing my posted form's controls to lose their values. In other...
3
by: axelman | last post by:
Hi guys, I'm using Classic ASP, IIS6, IE 7, FF 3 I've developed a vb script to downloand files hosted in my server (zip, doc, pdf, jpg, xls, et. etc.) it's very straight forward and there's a ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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,...
0
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...

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.