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


ADVERTISEMENT

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

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

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

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

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

I have a dll coded in vb that has a method X with the follwing signature

function X(a as string, optional b as string, optional c as string)

now i need to call this method from asp using javascript.

var dl = Server.CreateObject("dll");
dl.X(....);

I need to pass only 2 parameters 'a' and 'c'. Had it been vbscript I could have done dl.X(a,,c) but javascript doesn't accept that.

View Replies View Related

JavaScript Value

I'm having a customer submit an order. When they submit it, it posts to a
page that processes the order and inserts into our database, while
displaying a summary of their order. I have a javascript function that will
cause a "confirm" box to show up if an order seems like it might be a
duplicate. However, I can't seem to get the code to "wait" for the response
from that box, which I guess makes some sense. Am I stuck with having an
interim page or doing something with posts or is there an easy way to get
the record to not insert until the user responds to the confirm box?

View Replies View Related

Is There Any ASP Or JavaScript Out There That Will Take Out S P A C E S!!!

Im sure it exists but i am having some difficulty finding it. I need come code to take out any SPACES in a textbox when text is entered OR submitted. Example

i have a text box where people can enter there car registration.

To keep consistency thoughout my site, i want L736 VAF to be entered into the database as L736VAF.

so that when it is recalled via a search form, L736VAF wont be returned as "no record found" because some one has put a space init!

So i basically need code to eliminate any space!

View Replies View Related

JavaScript

I need to detect the users browser resolution (done with javascript)
var height= (screen.height)
var width= (screen.width)

Now I need to use these javascript variables to set the values of hidden html forms. How would I go about doing this.

<input name="width" type="hidden" value= Javascript Variable Here ?????>

View Replies View Related

ASP And Javascript

update some long commOn first page I display all the records from database (working well). Then first column has href which opens a popup (i am passing rownum from database to popup). I was hoping to run ASP code on load of the page so the comments which is already there for that row in the databse automatically comes in a textarea. And then you can edit and hit update. And this will update the database.
Also I was thinking of using session variables for the rownum. But bcos I have href which opens a popup, I am not sure how i can set the session variable.
I dont want to pass the "comments" itself to the next page bcos it can be really long comment and QueryString has some limitations.

View Replies View Related

Javascript

I am making a dynmanic form that goes to a question depended on the answer. Is there a way that I can make it remember what the person selected (radio button) in the question so that I don't have to write something like,

"<input type = 'radio' name='Question3' value='Yes' checked <% if Question3 = "Yes" then response.write "SELECTED" end if%>>Yes<BR>" + ????

View Replies View Related

Is It Possible Asp And Javascript Use Together

is it possible to use them together?i keep getting errors when i use them together

View Replies View Related

Asp With Javascript

I have a asp page that have an array for instance:

<%
a(0)=0
a(1)=1
a(2)=2
a(3)=3
%>

I would like to show each element of the array with alerts in javascript... Do you know what its the way to make something like this...

View Replies View Related

Javascript With ASP

i have an asp page which shows a list of articles which are pulled from the database.
I have a variable as below which defines number of records to show on each page

<%

numRows = 5
%>

Now i also have a drop down list from which you can choose 'display 5 records per page', display 10 records per page' and so on.What i want is when a new value is chosen from the list, the page refreshes and the ASP variable numRows is set to this new value.

View Replies View Related

Javascript

I'd like to put some SQL values in my Javascript which is defined in de Head
section
If I put it in there like <%objrs=("field")%>, the script does not seem to
run ?

View Replies View Related

Asp & Javascript

I have a page that opens a javascript modal window and passes a variable. I then have that variable in Javascript. Is there anyway for me to get the value of that variable in asp. I am passing an id and want to check what the id is and open my recordset accordingly.

View Replies View Related

Javascript Or Js In Asp

i'm looking for a prog in js or javascript who cas disable a key on keyborad??

View Replies View Related

Javascript + ASP

Is there a way that I can refresh a combo box using javascript after I select data from a another combo box? I can't seem to find the answer to this question. I'm guessing after I select the item in the first combo I could requery the database and display the correct informtion based off of it. I just don't know where to start. I've searched all over the internet.

View Replies View Related

ASP And JavaScript?

Will JavaScript function in ASP? or are there specific functions in ASP which replace JavaScript?

I'm running JavaScript to compress down a menu and want to use an #include statement to port the menu to multiple pages. If I have to sacrifice the JavaScript I'd need a way to compress the menu in ASP.

View Replies View Related

ASP With Javascript...

basically I call a javascript refresh function, but I need to pass a url to it too to indicate what this should refresh to. The problem is the function I call, then calls another function and I need to pass the url info down, as it is this second function that needs it.

It seems to work from passing it from the link to the first function, but I think it must loose it passing it from the first function to the second.. Code:

View Replies View Related

Javascript Yes/No

I have searched for some examples, but to no real avail, for a JS function
that displays a user Yes/No dialog box.

Basically, i have an ASP application that displays a SQL table on an ASP
page.

I have created a "Remove" hyperlink (in a loop) by each record and i need to
use an OnClick event so when the user clicks this hyperlink it displays this
Yes/No dialog.

At the moment the hyperlink simply removes the relevant record.

I need an OnClick event that displays a Yes/No box that when the user clicks
Yes - it goes to remove.asp, and when No is clicked it does nothing.

User Clicks Remove next to record > Yes/No dialog> Yes = remove.asp No =
End. Code:

View Replies View Related







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