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:
How do I go about calling a server-side vbscript within a client-side javascript function? What I have is a page heavy on the javascript that has a number of functions, one of which is to begin a visual countdown with an onclick and also open an asp page containing the server-side vbscript, which initiates a wake-on-lan call. I had no idea how to call the vbscript within the javascript function, so this is why I opted for the vbscript asp page "pop-up" via window.open. Code:
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 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?
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'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:
<INPUT TYPE=button Name=temp Value="submit" onClick="vbscript:More();"> <script language = 'vbscript'> <%Function More response.write "Inside the fucntion" End Function%> </script>
I'm trying to call multiple asp page just simply by clicking a button But could i do this method? or how could i pass the value from this page to another asp page.
It should be something like this:
<SCRIPT LANGUAGE='VBSCRIPT'> <!-- function btnClick_onClick document.form.action = "myform.asp?ID=" & document.form.txtfield.value document.form.submit End Function --> </SCRIPT> ...
I have a website that uploads text files onto the webserver and executes the SQL statements inside the files. All my asp pages are working fine, the login page gets the user details from the db and everything, but when I try to upload the file to the webserver, i just hangs, and does nothing.
I download the script and the author states that you must have VBScript 5 installed on your webserver for the function to work properly. How do I install vbscript 5 on my webserver? I am using windows xp pro, with IIS v5.1.
I am trying to embed JavaScript to an ASP page which will be executed on the server side and will send a HTTP request from the ASP Web server another remote server. Then I need to capture the remote server's response and save it as a string.
I have an asp page which I'm working on and its a mixture of VBscript and Javascript. What i am trying to do is pull data from a MySQL database using VBscript and the onchange event, then pass the information through to a javascript function.
At first i was able to do this writing the code into the page using VBscript and then use a javascript switch statement, But now i need to access this data dynamically on the fly. Can anyone help, or point me in the right direction of how to achive this?
I need to be able to access a value in a text field in my asp code. This needs to be done client-side, because reposting to the page would take way too long. I'm writing this page for one user so I can tell them what browser to use if need be. Code:
I am trying to implement a shopping cart type idea for my website, and am learning how to use a simple array to do this.
The array has 4 attributes per item, namely, ISBN, BookTitle, price, Quantity.
I have been practising creating and entering data into arrays etc. as i am not familiar with how arrays work within an ASP environment. Basically, i would like to know how to add to my existing array, and keep the existing data in the array as well!! Code:
<script language="VBScript" runat="Server"> Response.Write("Hello from VB<br/>") </script> <script language="JavaScript" runat="Server"> Response.Write('Hello from JS<br/>'); </script>
and run it, I get the following output: Quote: Hello from JS Hello from VB
As you can see, despite appearing later in the file, the JS is being executed before the VBS. How can I stop this happening? (I want to include a VBS file...)
I want to pull data from a number of tables, Categories, SubCategroies and then place into JavaScript drop downs and have the options in the second drop down change upon the selection from the 1st drop down. Is this possible.? How is it done..? Arrays..?
<script language = "javascript"> function test1() { ------------ <%test()%> // fine and works well if there is no response.write() in test() as i know. } </script>
now the problem is that how can i call test1 within scriplets or within test().
Is it possible to assign javascript variables values to ASP?
e.g. How would I store the following JS variable as an ASP variable in VBScript?
<script type="text/javascript"> var intJavaScriptNumber = 25; </script>
The problem is I've got about 50 of these variables on a page, and they all need to be used in a simple equation which slows the browser down. If I could get them all into ASP then I could process this server side much more comfortably.
It's a simple validation page and was working fine until i made some changes to the next page.
A regular form that calls a javascript function, but suddenly i javascript function does not execute anymore. i tried calling other functions but none of them works, but when i treid onSubmit("javascript:alert('some text')") it works fine.
I tried debugging it in dreamweaver and i get an regular expression missing error number 1005 on the last line of the javascript.. that is ....
I want to have a single script for sending emails, accessible from both ASP pages in any virtual directory in our websites (all on the one server), plus accessible from a number of WSH (windows scripting host vbscript files) which are triggered by the web servers Scheduled tasks.
The script formats text and checks emails and so on.
Is this a candidate for a web service? if so, how would i write it? Is a web service available from WSH?
We have a C++ DLL that we call from VB6 program. This is how we declare the DLL in VB6: Declare Function RefSearch Lib "csearch32.dll" (ByVal path As String, ByVal findword As String, ByVal CaseSensitive As Integer) As Integer This is how we call the DLL in VB6: hit = RefSearch(path, SearchStr1, ChkValue). Can I call this DLL in ASP and how ?