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


ADVERTISEMENT

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

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

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

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

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

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

Shop Cart List Page With Several Remove Buttons, No Javascript

how would I go doing it without javascript and using 'POST'?

Having a page with a variable list of items in a shopcart, each item
with its own 'remove' button. How could I do this without a javascript
and using POST as the form type? (so having <a href="page.htm?remove=2>
is not possible)

View Replies View Related

Javascript Form Validation - Form Action To Another Page

In my prototype asp page (with no javascript and no password validation, I have a registration form with the following action:

<form name="form" method="post" action="RegDetails.asp">

This works fine, the form details are collected by RegDetails.asp

I am attempting to include javascript server side validation for the pasword, which obviously requires password and password2 fields (to be verified). I have used the script available at:

http://javascript.internet.com/forms/val-pass.html

It works fine in a new blank page with the form action:

<form name=myForm onSubmit="return validatePwd()">

The final stage in this javascript demo form displays an alert box:

else {
alert('Nice job.');
return true;


When I change the first line of my original form to:

<form name=myForm onSubmit="return validatePwd()">

how do I get my original action of - action="RegDetails.asp" instead of this alert box?

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

Containing Javascript

I'm putting together a site to allow someone to add content to a DB
through a text area form, and then display it on the web. Pretty basic.

The problem I'm having is that they need to add snippets of javascript,
but by the time its displayed on the page, there have been extra
linebreaks added, breaking the javascript code.

Replace(string, vbCrLf,"") won't work because that removes all
linebreaks. Is there a way to preserve the original linebreaks as
submitted to the DB in the first place

View Replies View Related

Javascript Value

i am trying to call a javascript function in asp code.But i need the return value of javascript function to use in asp code. how can i do this?

the name of the javascript function is get_textvalue() and it returns a text value.
i have a variable which is named volume in asp code.actually the thing that i want is volume = get_textvalue() but in asp code how can i do this ?

View Replies View Related







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