I've been playing with the idea of just how to use an ASP page to provide a
remote function call. In an ideal world this would be a web service but how
can you do it if restricted to ASP 3.0 ?
Idea 1 was to write an ASP page that accepted arguments using the classic
?X=1&Y=2 type of strings and have the page return an ADO disconnected record
set containing the results of the action. This is call very well, and works,
but you do have to allow the browser to create an ADODB.RecordSet in which
to place the results which goes against some security principles. Code:
I have created a JavaScript function to validate values of a parameter. Let's say validate(parm). I have saved the entire file as validate.inc and included in my ASP page as: <!--#include virtual="/Validate.inc"-->
Now from an ASP page I want to call JavaScript validate function and pass on a parameter, X, to validate. How do I call a JavaScript function from an ASP page?
I am working on an asp page, but I want to validate a form from a client side, with Javascript. The problem is, I am not very sure where to call the function, either in the form tag or in the button submission. The worse is, I have no idea how to validate that function in my asp tag. Hope that someone can help. here's my code:
I am attempting to create a web-page that will check several servers and verify that the local admin account has been renamed properly. I've written a .vbs (command file) to do it - I have the necessary rights on each server - and it works just fine (portion shown below)
My problem is converting it to an asp web page. When I try, I always get a security failure. I've checked and the page is running under a domain id with admin rights to the servers. I am assuming its something I just can't find the answer to, about the way ASP handles security impersonation. Can someone point me to where I need to look? Code:
I really don't know what's happening now with my IIS, it's really annoying me, before, when I'm accesing my asp page, I got the "ActiveX component can't create object" error and that's pointing to the line of "Set objConn = Server.CreateObject("ADODB.Connection")".
And I think the registration of my components are fine. I already reinstall my MDAC 2.8 but still no luck, then I used the IIS lockdown tool and now I can run my asp pages. But there's another problem, when I used to process my first page to the second page...
It really takes a long time to process and nothing happens, and when i refreshed the page or close it....I got now this error msg "The remote procedure call failed and did not execute".
I am upgrading an ASP app that implements javascript remote scripting. The probem is that the application works fine except when any remote scripting is called. Does remote scripting work under IIS6.0?
I am trying to call a javascript function from a vbscript function. The problem is it keeps saying variable not defined and it does not need to be defined. I need it to execute the javascript function when flagit = 6. Code:
is it possible to call ASP subs, files, functions, etc. from Javascript commands? I want to have a setup of various buttons where clicking on a button would call an ASP sub to grab info from a db.
I have a form which checks email addresses. On submitting the form i have some JavaScript checking the format of the email address, once this has been completed successfully I would like my asp function to run. On successful completion of that I would like my form to be submitted to another page. Is this possible?
I'm trying to call asp function just simply by clicking a button But could i do this method? or how could i pass the function and values.It should be something like this:
<script LANGUAGE='VBSCRIPT'> <!-- function btnClick_onclick Dim strID Dim strName strID = document.form.txtID.value strName = document.form.txtName.value
I used this method to get the datas from array. After that, i call the function ora_login) by passing parameter but it doesn't work. It comes out 'Type mismatch' . it's there any method to do it?
for i=0 to ubound(cnn_ikh) if i=0 then ora = "'" &cnn_ikh(i)& "'," elseif i = ubound(cnn_ikh) then ora = ora & "'" & cnn_ikh(i) & "' " else ora = ora &"'" & cnn_ikh(i) & "'," end if next
I would like to call a C function (Unix server) from a dll (VB) based on a Windows server (ASP - II5). Is it possible? If yes, can you show me how to do it?
I have a class. I create an instance of this class in Page_Load event. Somewhere in the page I'd like to execute an a function (public) member of this class. This function return a string. How can I call this function ?
trying to do an asp page for downloading contents. i want to update into database,while user click for download.
i coded like this
<a herf="filepath" >download</a>
i want to cal a update function while cilick on dat link. Now i coded the updation in dat page itself.so whenver the page visted,the database upadting,even the user click didn't click on dat link.
I am writing a web page using ASP. I have an html form when submitted the data is validated using a javascript function. BAsed on the results from the data validater is it possilbe to call a function within that same page instead of calling another URL using the Form Action statement? Or can the form action point to another .asp program, perform the logic within that program but not actually load the page
I need to load some data into our oracle database after the data is validated and am not familiar with using javascript to do this. I already have code within my program that does the database call which I would like to use.
That's what I get when I try and view "default.asp" on my server.
EVERY other page works except that and no, it's not the ASP code since it works fine on our web host (uplinkearth.com) as you can see here.
Why does it do that? The service is stared in Services, along with the Locator...why shouldn't it work? It just started doing this not to long ago for no good reason (of course, we all know NOTHING happens for 'no good reason'). Any ideas?
If I type it in (http://frontier/) it doesn't load, so I 'Stop' it, then refresh and gives me that message...
I'm using Windows XP Pro with IIS 5...all service packs and updates installed along with mySQL.
I am working on a webapp (asp + vbscript).I have a function call in my page (not through form). I want to avoid calling this function when the user hits refresh button.I found that I can do it in ASP.Net :
if not Page.IsPostBack then callFunction() end if
Can I do something like that in ASP. If yes, what is the ASP equivalent of the above code?
I have been using a product from the net which facilitates file uploading. It works great except for some reason I can not get the little window that pops up to accurately represent the file upload process. It just doesn't work. So, I began to think of a simple work around. If when the form is submitted, I call a javascript function which opens a small new window telling them their files are being uploaded.
It could have an animated gif if you will of a progress bar. Once the files are uploaded in the (asp) script I am using, I have a Response.Redirect Statement sending the person to another page. Before this redirect, could I not have a call to a javascript function that would close the small window automatically?
what is the correct way to dynamically build a call to a function in asp? i have the name of the function i want to call in a dictionary object, this works to execute the function but the output_value variable does not get set.
functionString = d.Item("create_contract_function_name") 'set variable for the create contract function name that was retrieved functionString = "output_value = " & functionString & "(param1, param2)"
i've been making a simple registration page. i got a quest , i need my page to check the form for mistakes (i check mistakes using javascript but it can be done by asp aswell) and submit it to another page for deeper check, (the deeper check can only be done in asp since it needs to connect to the database) is this posible?
or if its posible to call a asp function on click it would be better. ps: if i get a link to a free asp script regis page, that would be best.