VBScript And JavaScript On Same Page

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..?

View Replies


ADVERTISEMENT

Pass A Javascript Variable To Another Page But Vbscript

I have an input box when the user clicks on the button.

var number=prompt("enter journal number");

How is it possible to pass this variable forward but to vbscript? So i could use that variable in an sql procedure?

View Replies View Related

Vbscript To Javascript

is it possible to convert a server-side vbscript variable to a server-side javascript variable?

View Replies View Related

Javascript/VBScript

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.

View Replies View Related

Javascript And VBScript

i have an asp page where i am using a component that works if i use <%@
Language= Javascript> at the top.

But i also want to use VBScript functions in the asp code. how can i do
that?

View Replies View Related

Javascript Vbscript

I am doing a form, and using javascript for validation messages.
eg. ensure fields have been filled in, are not numeric etc.

However my ASP file connected to this form is in vbscript.
Is it ok to use both They are in different files

View Replies View Related

VBScript Or JavaScript

Can someone enlighten me on the advantages/disadvantages of these VBScript or JavaScript?Or is it merely a programming preference?

View Replies View Related

Javascript/VBscript In Asp

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?

View Replies View Related

Using VBScript (or JavaScript) In ASP

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:

View Replies View Related

Using Arrays In ASP/javascript Or VbScript

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:

View Replies View Related

JavaScript Executes Before VBScript

If I create the following ASP script: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...)

View Replies View Related

Call Javascript From Vbscript Not Working

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:

View Replies View Related

Calling Javascript Function In Vbscript!

i have a problem statement like this:

<%
sub test()
---------
end sub
%>

<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().

View Replies View Related

Assign Javascript Variables To ASP (VbScript)

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.

View Replies View Related

Calling Javascript Function Using Vbscript

I would like to call a javascript function using vbscript. Is this possible at all? If so, what should the code be?

View Replies View Related

Calling A Javascript Function From Vbscript Form

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 ....

View Replies View Related

Server-side Vbscript Call With Javascript Client-side

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:

View Replies View Related

Javascript And Asp Page

I have a javascript code which was helped by someone in this forum. Here is the code:

View Replies View Related

JavaScript & FSO In One Page

I am just a beginner in ASP and need your experiences. I want to display a popup menu written in JavaScript on some links in a page.This popup menu will be multileveled.And when the mouse comes over an item in the menu File System Objects code will execute.Here is an example: Code:

View Replies View Related

Ca;ll Javascript In Page Load

I'm having some fits with getting this to work but I'm near the end and I'm
hoping this one obstacle is not a huge one to get past.
Here's my scenario:
I have a page where when someone clicks on a dropdown and selects an item,
it will hide 2 other dropdown boxes that are related as the input in those
are applicable. When I save those items, everything gets into the db fine.
The problem is when the page refreshes, those 2 related dropdown boxes that
should be not visible are still visible. Is there a way in VBScript to
hide/show those controls based on the data in dropdown A? Javascript is
handling the actions but I don't think I can call Javascript on page load.

View Replies View Related

Print Page With Javascript

I display an HTML Report on the screen and have a print button on the page. The print button uses the following JavaScript code.

onClick="window.print()"

Works great except it displayed the print dialog box and the user must hit the print button on the diaglog box to print the report. Is there any way to print the Web Page directly without displaying the Print Dialog Box?

View Replies View Related

JAVASCRIPT Validation In An ASP Page

I created an upload page.. using ASP. It works fine but there seems to be a problem with the javascript field validations I wrote. There is a Paper title and upload extension validation in the page... when people use netscape and submit it... nothing is happening...

but the paper is being uploaded... doesn't go to the confimation page... and if they use Explorer and try to submit the paper again... it gives a 'File already Exists' error as they already submitted using Netscape.. Can any one help me fix this problem so that it works fine with both browsers... or is there a way I can write a server side validation? HERE IS MY CODE:

View Replies View Related

Javascript Confirm In ASP Page

I'm trying to make a confirm window for my site, the confirmation ask user a question with yes or no answer then if the response is yes redirects the user to a page and if its no redirects to another page.The problem is that i need the two pages to carry a different querystring; also i need this to act as a link and not as a form.

View Replies View Related

Vbscript In Asp Page

strTOFile = "ServerQuotes" & strDir & "Engineering" & strFile & ".xls"
strQLFile = "ServerQuotes" & strDir & "Engineering" & strFile & ".doc"
if (fsoObject.FileExists(strTOFile))=true Then %>
<open sheet
<% end If%>

this code checks if the file is present in the server quotes or not ,it works with in the server but not in the client(it cannot fine the sever. but if i remove the if statement then if the file is present it connects from the client.

View Replies View Related

How Do I Call A JavaScript Function From An ASP Page?

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?

View Replies View Related

JavaScript Where It Runs When Embedded In Asp Page

I want to know when we embed javascript or vbscript in asp pages where the script runs whether on client's browser or web server? also is there any possibilities like in asp.net we have "runat" wherein we can specify sever or client option available when we are programing in asp.

View Replies View Related

How To Call Asp Page With A Javascript Command

How to call asp page with a javascript command.

View Replies View Related

Calling A VBscript From An ASP Page

I am trying to execute some script on my server that is currently run on an ASP page.

However, I am finding that it can often take up to 5-10 minutes to run and the user is not needed for this execution anyway. What I am attempting to do is write the script into a .vbs file on the server and execute the script when necessary.

I would like this script to run without the user knowing and therefore I do not want the asp page to wait for a return from the script. I am trying to use:

Set WshShell = Server.CreateObject("WScript.Shell")
ReturnVariable = WshShell.Run("c:connorVBScript1.vbs", 0, FALSE)

The FALSE tells the system to run the code and not wait for a return. The webpage seems to run and returns to the user as it should but the script is not executed.

Anyone have any ideas?

View Replies View Related

ASP Page As Remote Function Call From Javascript

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:

View Replies View Related

VBScript - Sending From One Page's Textbox To The Next

I have data from page 1 that I want to pass to page 2, either in a querystring or a form. I got that part.

Once I'm on page 2, I can retrieve that data with Response.Form or Reponse.Querystring in the vbscript code I have up in the header, but if I write

Document.Form1.Textbox1.value=response.form("passedData"), nothing happens.

So I thought that the code up in the header doesn't "see" the textbox, because as I dimly understand it, the textbox is client-side and the script is server-side. So then I thought I should put the same line down in the html where the form is defined (enclosed in <% tags). But that triggers an error because the code down there doesn't seem to know what response.form is anymore! I tried using a variable as a go-between, but it didn't change the results.

So how in the world do I get my incoming parameter (whether form or query string) to go and live in a textbox in the target page? I need it there (don't I?) so that I can later pass it along to page three (among other reasons).

In short, I can get strings passed from page 1 to page 2, but then page 2 doesn't seem able to put them into controls or pass them along to page 3.

I have scoured google and forums and seen some responses that involve about 30 lines of code (which I don't understand). Surely it can't be that complicated to pass a string from page 1 to page 2 and then have it available to pass along to page 3.

View Replies View Related

How To Hide VBScript Code In ASP Page?

How can I hide VB Script code in the ASP Page? Even though the display.asp includes the script_functions.asp, when I click on View Source from IE, I can still the VB Script code? What can I do to hide the code from the people who use display.asp?

View Replies View Related

Printing Web Page Without Using Javascript Command Window.print()

I want to print a complete asp page without using Javascript command window.print(). I want to print current web page in backgroud withot displaying printer dialog. Can you give me some information.

View Replies View Related

Check Existence Of File Using VBScript In ASP Page

Is there a way to check if a file exist using VBScript in an ASP page.
So the code might go something like this:

If Exists("C:Junk1.txt") then
Do something
Else
Do something else
End If

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved