|
-
Dec 21st, 2003, 04:43 PM
#1
Thread Starter
Junior Member
SQL in HTML without ASP
hi,
i want to ask if it's possible to send data to an html doc to another html doc and execute an SQL query with the data received from the sender html page.
i made an ADO connection and executed a query in my html page. I must rebuid the query with the sent data from first page. But i dont want to use ASP. is there something like Request.Querystring in html?
-
Dec 21st, 2003, 06:48 PM
#2
Re: SQL in HTML without ASP
Originally posted by alperaydin
hi,
i want to ask if it's possible to send data to an html doc to another html doc and execute an SQL query with the data received from the sender html page.
i made an ADO connection and executed a query in my html page. I must rebuid the query with the sent data from first page. But i dont want to use ASP. is there something like Request.Querystring in html?
You cant do that just with HTML, you will need some sort of scripting language for database connectivity. E.g ASP, PHP and few others.
HTML in itself is static and you will be able to generate dynamic content which you seem to be trying to do.
[VBF RSS Feed]
There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.
If I have been helpful, Please Rate my Post. Thanks.
This post was powered by : 
-
Dec 22nd, 2003, 10:22 AM
#3
Re: SQL in HTML without ASP
Originally posted by alperaydin
hi,
i want to ask if it's possible to send data to an html doc to another html doc and execute an SQL query with the data received from the sender html page.
i made an ADO connection and executed a query in my html page. I must rebuid the query with the sent data from first page. But i dont want to use ASP. is there something like Request.Querystring in html?
1. The question is somewhat redundant, since (as xplained) HTML is static. You cannot "send data to anhtml doc to another html doc" You must use server side scripting.
2. More importantly, why, and what are you trying to accomplish?
-
Dec 22nd, 2003, 12:33 PM
#4
Thread Starter
Junior Member
thanks all
thank you for your replies
i wanted to make an html page to serve a database table with some parameters defined by the client. And i didn't want to use ASP, in order not to install IIS or PWS. (finally i installed)
But i still wonder if i can do something like that:
putting some option objects on the page and binding a sub defined in <SCRIPT> to their onclick events. Each time an option is clicked, onclick event will call the CreateList sub. And in the sub the parameters of the query will be determined by the options.
Is that just a dream?
thanks all
-
Dec 22nd, 2003, 01:46 PM
#5
Re: thanks all
Originally posted by alperaydin
Is that just a dream?
YYYYYYYYYyyyyyyyyyyyyyyyyyyyyyyeeeeeeppp!!!
-
Dec 22nd, 2003, 01:50 PM
#6
Hyperactive Member
Javascript ????
Try looking into examples using javascript.
-
Dec 22nd, 2003, 03:09 PM
#7
Re: Javascript ????
Originally posted by johnweidauer
Try looking into examples using javascript.
Since when has client side scripting worked with databases?
-
Dec 22nd, 2003, 03:13 PM
#8
Hyperactive Member
Client Side / DB
Well, I have written stuff using Javascript that allowed you to instantiate ActiveX objects that existed on the client machine. Not the ADO Control, but other things, thought maybe you could do this as well. If its SQL or something, if the server allowed anyone to connect to the db, then i thought it might be a realistic idea, but maybe not.
-
Dec 22nd, 2003, 03:35 PM
#9
Aah, ActiveX. But that'd just add as an extra overhead headache for him/her, wouldn't it? I'm sure there's an easier way to accomplish whatever he/she's trying to do.
Besides, I personally am paranoid about running ActiveX controls on my machine nowadays. :paranoid:
-
Dec 22nd, 2003, 03:38 PM
#10
Hyperactive Member
ActiveX Javascript
Overhead yes, threatening, no.
If you think of it, you would be using an Active X created By Micro$oft that is already running in multiple locations on your machine. It would make the connection to the DB slow.
If HTML is the only option, meaning unable to run the web server on IIS, then maybe go with some free stuff like PHP, or ChiliSoft or something. Dunno, just a thought.
-
Dec 22nd, 2003, 03:45 PM
#11
Re: ActiveX Javascript
Originally posted by johnweidauer
If HTML is the only option, meaning unable to run the web server on IIS, then maybe go with some free stuff like PHP, or ChiliSoft or something. Dunno, just a thought.
Even PHP and ChiliSoft still require a webserver..... Be it IIS or Apache or NetBSD, you still need a webserver to run serverside programming.
TG
-
Dec 22nd, 2003, 03:49 PM
#12
Hyperactive Member
webserver
true, figuring his requirement for DB Connectivity via HTML, i thought maybe IIS was not an option, thus ChiliSoft or PHP, free.
alperaydin, what webserver are you running, also, Request.QueryString, works in ASP only.
-
Dec 22nd, 2003, 03:59 PM
#13
Apparently, he does have PWS or IIS, but just doesn't want to use it. That's the part that confuses me... but hey, he must be human.
-
Dec 22nd, 2003, 04:17 PM
#14
Originally posted by johnweidauer
true, figuring his requirement for DB Connectivity via HTML, i thought maybe IIS was not an option, thus ChiliSoft or PHP, free.
alperaydin, what webserver are you running, also, Request.QueryString, works in ASP only.
Maybe I don't get it, but to run PHP, one would still need IIS....
Unless you run Apache.... or NetBSD.... point being that it requires somekind of websrver... IIS or otherwise. I get the feeling that this is being developed for something internal, and doens't have the cababilities to set up IIS.
Personally, ActiveX is a bad way to go... 1) Not all browsers support it. 2) There is some current litigation going on regarding the ability to run objects within the browser.
TG
-
Dec 22nd, 2003, 05:17 PM
#15
Hyperactive Member
Web Server?
I have thrown out a couple of ideas. Trying to offer ideas since all of the information needed to provide a solution has not been given is all.
-
Dec 22nd, 2003, 06:31 PM
#16
-
Dec 22nd, 2003, 06:45 PM
#17
Hyperactive Member
wow...
Ok, so this has turned into a discussion.
1) I would not recommend running ActiveX objects in web environments unless you are running a service that needs to be powered by something a little more robust than ASP, or you are on an Intranet and the above applies.
2) Instantiating the ADODB ActiveX from javascript doesnt install any software, it calls an existing/registered DLL on Windows machines - client side, given it exists.
3) A web server is needed, which one being used in this discussion is unknown. For a better answer, please provide the web server being used.
4) However, if you would like to show database tables, you can use Front Page Server Extensions, if supported by the web server, and create HTML pages that connect to the data using the Front Page "BOTS". This would require #3 to be answered.
-
Dec 22nd, 2003, 06:49 PM
#18
Fanatic Member
-
Dec 22nd, 2003, 06:51 PM
#19
Hyperactive Member
XML True dat
I neglected XML, probably cause my office is cold and my fingers hurt after a lot of typing
however, that is a good idea as well
-
Dec 23rd, 2003, 08:38 AM
#20
Addicted Member
JScript != JavaScript
I wanted to jump up and down and yell and remind you that JScript is not JavaScript, and that JavaScript can't call ActiveX objects. JScript can. JScript is proprietary and closed, as a result, it is supported by a single browser, and that browser has the worst support for things like CSS.
Travis, Kung Foo Journeyman
Web Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.5 Guide and Reference
Perl: Documentation, Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
OSS: Mozilla, MySQL (Manual)
-
Dec 23rd, 2003, 11:35 AM
#21
Hyperactive Member
your right
my mistake...it has been a while.
I had used Javascript to control ActiveX object on the web page, not instantiate the object.
sorry for the confusion.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|