![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I am new to javascript coding on a web client, but recently had to put together a basic page to do some database lookups. The code works nicely. I am using an ADO connection object. The performance is good, and the code works nicely, but I am concered, because my database connection string is in my .js file. Is there some better way to do this, like the usage of the global.asa and an application value, that is common with ASP code? BV. |
#3
| |||
| |||
|
|
BenignVanilla wrote: I am new to javascript coding on a web client, but recently had to put together a basic page to do some database lookups. The code works nicely. I am using an ADO connection object. The performance is good, and the code works nicely, but I am concered, because my database connection string is in my .js file. Is there some better way to do this, like the usage of the global.asa and an application value, that is common with ASP code? BV. Don't use javascript (which is client-side) to access the database. Use a server-side language. |
#4
| |||
| |||
|
|
... We're investigating a method by which we could use HTML to post to ASP page, |
|
but I am not sure how to get data back from the ASP in order to update the HTML that initiated the post. Is that possible? |
#5
| |||
| |||
|
|
Fleeing from the madness of the jungle BenignVanilla <bvanilla (AT) tibetanbeefgarden (DOT) com> stumbled into news:alt.comp.lang.javascript,alt.www.webmaster and said: ... We're investigating a method by which we could use HTML to post to ASP page, Should be trivial enough - research http get & http post but I am not sure how to get data back from the ASP in order to update the HTML that initiated the post. Is that possible? yes - research server.execute & server.transfer (assumes ASP/vbScript) |
#6
| |||
| |||
|
|
"William Tasso" <SpamBlocked (AT) tbdata (DOT) com> wrote in message news p.s7ykh5k2m9g4qz-wnt (AT) tbdata (DOT) com...Fleeing from the madness of the jungle BenignVanilla <bvanilla (AT) tibetanbeefgarden (DOT) com> stumbled into news:alt.comp.lang.javascript,alt.www.webmaster and said: ... We're investigating a method by which we could use HTML to post to ASP page, Should be trivial enough - research http get & http post but I am not sure how to get data back from the ASP in order to update the HTML that initiated the post. Is that possible? yes - research server.execute & server.transfer (assumes ASP/vbScript) My problem is that, I am working in an environment that can display HTML, but not ASP. |
|
... we need some way of knowing if that succeeded in the original HTML. |
#7
| |||
| |||
|
|
"Jerry Stuckle" <jstucklex (AT) attglobal (DOT) net> wrote in message news:eeGdnUVhgalm0aHZnZ2dnUVZ_vWdnZ2d (AT) comcast (DOT) com... BenignVanilla wrote: I am new to javascript coding on a web client, but recently had to put together a basic page to do some database lookups. The code works nicely. I am using an ADO connection object. The performance is good, and the code works nicely, but I am concered, because my database connection string is in my .js file. Is there some better way to do this, like the usage of the global.asa and an application value, that is common with ASP code? BV. Don't use javascript (which is client-side) to access the database. Use a server-side language. That would be my preference, but we are working within a set of constriants placed on us by the software with which we are working. We can write pages only in HTML. We're investigating a method by which we could use HTML to post to ASP page, but I am not sure how to get data back from the ASP in order to update the HTML that initiated the post. Is that possible? BV. |
#8
| |||
| |||
|
|
My problem is that, I am working in an environment that can display HTML, but not ASP. So right now, I had planned to collect the form information and place in the database via javascript, then our PM decided that we'd have a performance hit so we are investigating a way to call an ASP on a web server from our HTML so the server side script could do the updates to the DB, but we need some way of knowing if that succeeded in the original HTML. You'd have to convince me that your PM has the best interests of the |
#9
| |||
| |||
|
|
My problem is that, I am working in an environment that can display HTML, but not ASP. Please describe that environment in more detail. -- William Tasso |
![]() |
| Thread Tools | |
| Display Modes | |
| |