Passing Client-side Array Index To Server Side Script
Following is a vbscript code extract triggered by a combobox OnChange event. arrVendorA and arrdefpack are server side arrays and i need the intCounter parameter to be the array index. Code:
<script>
sub getstdPackByVendor(strPartNo, intCounter)
dim selVendor
selvendor= colSelect("cboVendor", intCounter).value
if selvendor= "<%=arrvendorA(intCounter)%>" then
if "<%=arrdefpack(intCounter)%>" = 2 then
colTD("txtStdPack" & intcounter+1 ).innertext = cstr("<%=arrVAStdPAckL2(intCounter)%>")
end if
end if
end sub
</script>
View Complete Forum Thread with Replies
Sponsored Links:
Related Messages:
Server-side Array, Client-side Index Problem
The following code is giving me a type mismatch error at the 'if' statements... any ideas, anyone ? sub getstdPackByVendor(strPartNo, intCounter) dim selVendor selvendor= colSelect("cboVendor", intCounter).value if selvendor= "<%=arrvendorA(" & intCounter & ")%>" then if "<%=arrdefpack(" & intCounter & ")%>" = 2 then colTD("txtStdPack" & intcounter+1 ).innertext = cstr("<%=arrVAStdPAckL2(" & intCounter & ")%>") end if end if end sub
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
Can Client Side Scripts See Server Side Form?
I have a Client Side Java Script which is supposed to re-load the options on my serverside ASP form. I have been trying to get the syntax right to assign the Select box on the ASP form to a variable in my JavaScript so I can update the options. Can anyone either tell me if this is not possible or what the syntax should be. Here is some information. Form Name = AddProdForm Select Box name = subprodline JavaScript Variable = form1 Here is one of the many versions of this line I have tried. var form1=document.forms(""AddProdform"");
View Replies !
View Related
Tables - Server-side Vs. Client-side?
I am starting to build quite a few pages that will have tables of data from an SQL database. I have been building the table rows on the server side in VBScript, but I have been thinking about having the VBScript code just build array variables in the <head> section (or as local variables), and then have JavaScript functions on the client side actually populate the tables when the page loads. I do plan to do other things like being able to sort the tables in JavaScript code on the client, limit the tables height and be able to scroll the rows, and click on a row in the table, and have the values populate a form. I will also need to be able to export/download/? some tables into Excel.
View Replies !
View Related
Client Side And Server Side Validation
I am doing login page . (login.asp)As usual it has username , password textbox and a login button .i need to do client side validation for mandatory fields and I need to do server side validations to check for the hardcoded username and password .if it matches i have to redirect to another page(content.asp)
View Replies !
View Related
Client Side Asp Within Server Side Asp
im trying to use the following code to log whenever a user clicks through this particlular message box - however, this currently logs regardless of whether or not the message box was clicked - im assuming this is because the server-side code can't see the client side if condition. but how can i set the varMsgBox variable as a server-side variable? Code:
View Replies !
View Related
Client/Server Side Variables
At the moment I am building a small news board on my companys intranet. There are 2 different offices with 2 different domains. for each office I want to show different news relating to that office. Is there any way with asp to get the name of the domain that the user is logged onto so I can filter different news for each domain. This will just save the hassle of putting the intranet on 2 different domains.
View Replies !
View Related
Client Side Server.HTMLEncode
Normally when I do serverside processing and if the string may contain < or > characters in the userdata I would do: <%=Server.HTMLEncode(userdata)%> However if I'm doing client side processing is there any equivalent VB function that I can call to do just that, or do I have to write my own routine to convert < to < and > to >, etc?
View Replies !
View Related
Client Side
This has happened before and it was due the connection string not being set in VB. My question is, when I try to reconnect can I use a different connection string on the client than I have on the server, I wonder because not all my connection strings are not equal. Some of my database paths are in Access and the rest are in SQL. That means I have to retry several times before a scrip timeout occurs. If you have read this far then you are an idiot, but the rest of the database seems to work just fine. In fact I can pull all fields out with no problem. It is just that connection string that has resulted in causing my pages not to post.
View Replies !
View Related
Add Client Side
I want to add clinet side javascript on the asp:dropdownlist's onchecked changed event how i do this does any one have any idea.i use the following method in vb.net code behind file dropdownlist1.Attribuets.add("onCheckedChanged","javascript:aa()") and see that when i change the option in the list the javascript method aa not fired.
View Replies !
View Related
OT-client-side
I'd like to have two radio buttons, and the first one will be selected by default when the page loads. When it is selected, the two checkboxes below the second radio button should be invisible. The only way to see the two checkboxes is when the second radio button is selected. If you select it and then go back to the first radio button, those checkboxes should disappear again.what should i do?
View Replies !
View Related
Client Side Exe
We want to create an Intranet page for our customers. which provides a variety of information. But we also want to be able to allow users to access applications on that PC by clicking a link on the page (ex. link: WRITE A LETTER - opens MS Word). All PC's are imaged the same way so the applications are always in the same location. I'm sure this is a violation of MS security inherent in IE, IIS, or in Windows XP alone. Can someone offer an advice - as to (1) is this possible using an Intranet page; or (2) is there a development environment that it would be possible in?
View Replies !
View Related
Client Side File
I have a need to transfer a graphic file to a user's system and then access that file. I must have the drive letter:path location of the file. If at all possible I'd prefer that this not require user input. (Note that since this is my app and in a corporate network, I have the server in the Trusted Sites zone and every single action is marked "Enabled" in the IE security settings and users will be using IE exclusively.) It doesn't matter to me how the file gets to the client, save that it get there from IE, and the file is initially retrieved via a url I give the client. I have even looked into reading the file out of the IE temporary files but have had no luck.
View Replies !
View Related
Loading Client-side XML
What's the easiest way to load a client-side XML file (or say something located on an external host)? My ASP script will (hopefully) read the information between the XML tags and put those into the entry fields of an HTML form. The only method I've seen involves the Server.MapPath, however in my case those XML files will obviously not be located on the server. Code:
View Replies !
View Related
How Can I Know Whether Client Side Downloading Is Over Or Not
I am now working in a project where my client registers inmy site. after registering and the confirmation of the demand draft i will be sending him a link to the download of the product. till now the work is OK. but if in any case my client is not able to complete the downloading and if he wants to resume it in a later time, it is not possible. bcas i am deleting his link immediately after request to download ( to avoid him fron forwarding the link to some one else). if i didnt delete his record some one else can also dwnload the same product from me.
View Replies !
View Related
Obtaining Client Side IP
Is their a client side VBscript command that I can use to post the local IP address of the machine back to my web server. I want to obtain the client's side IP address of their machine. However because my IIS stands behind a firewall and uses reverse hosting techniques, the http headers contains the firewall's IP instead of the client's.
View Replies !
View Related
Debugging Client-side
I installed the Microsoft Script Debugger 1.0.7295 and am trying to debug client side javascript. I m not able to set break points on the page; that option is disabled no matter how I open up the script debugger.I have tried opening the page in the following ways: 1) with the "debugger;" in the client-side java script 2) through IE menu 3) planting a javascript error in the client-side code, so the process must stop and ask "Do you want to debug...?
View Replies !
View Related
Refresh Client Side
This code will return the client's current time. But how to refresh the time automatically? <SCRIPT LANGUAGE=VBSCRIPT> Document.Write Time </SCRIPT> What if I want to refresh the server's current time? Is this client side's job or server side's job?
View Replies !
View Related
Client Side Scripting
I ened to get the user's windowsNT logon name. When the ASP is on my computer I can easily get it because I am logged in to what is the server. When the page is on another machine I cannot retrieve the login because the script is running on the server and not the client. What code do I use to make a script run client side instead of server side? The code I need to run client side is: sFullUser = trim(Request.ServerVariables ("LOGON_USER")) If there is another way to get the user's login from windows that will work just fine too.
View Replies !
View Related
Client Side ActiveX
I have an ActiveX component that identifies all Webcams connected to a computer and pics one. Then it transfers video data. If I have both the client and Server running on same machine it works fine. I want the client to be able to download the dll/ActiveX Component automatically and then the transfer should start The plan is to create a Web based Chat program.
View Replies !
View Related
Client Side Oncheckedchanged
I want to add clinet side javascript on the asp:dropdownlist's onchecked changed event how i do this does any one have any idea. i use the following method in vb.net code behind file dropdownlist1.Attribuets.add("onCheckedChanged","javascript:aa()") and see that when i change the option in the list the javascript method aa not fired. can any one help me?
View Replies !
View Related
Writing The File On The Client Side
I have developed a windows 2000 based web-based application which uses only HTML and JavaScript code for the client side and C++ on server side . Now i need to implement a feature to implement "writing the log file" on the client machine for this application. As JavaScript doesn't support client side file writing i think i need to use ASP or similar language. 1. Is it possible to write on client machine using ASP?? 2. If it is possible please thow some light on how to implement this. 3. Will my code be stable if i embedd the ASP code into the exisiting HTML & JavaScript code?
View Replies !
View Related
Writing Client-Side Cookies Is ASP
There are TONS of examples in how to do this. Thats all well and good. That would work for most people and thats great. What I need is the ability to write Client-Side cookies. I have yet to find someone who knows how to do this. Can someone impress me and show me code that writes Client-Side cookies?
View Replies !
View Related
Connect Access Db On Client Side
1. i need to develop a admininstrator module where, admin who login from client side will have a access database, and will browse that access database and click a submit button says "upload" 2. I have to take all the data of that access database and upload to sql server which is in ftp server. 3. It is not just mere uploading of data but i have to do lot of process in that database and format the data with proper relationship and then upload. so my question is How to connect a access database which is in client side.?
View Replies !
View Related
Client-side Image Resizing
My company works with a lot of estate agent websites and other projects that require images to be uploaded by the client (and their employees). We have been searching for a client-side resizing application (such as a Java applet) that can perhaps create a thumbnail, as well as a smaller version of the original file and then upload these two images to the webserver. There are plenty of php and perl Applets that do this, but none that can submit to an ASP form.
View Replies !
View Related
Mixing ASP With Client Side Javascript
Im using a table which can add rows dynamically.This is pure javascript. However, first cell of each row, is a 'select' drop down menu, which has to be populated with entries from the database. So i have to use ASP to connect to the db, retrive the file with the values and pass on these numbers to the 'value' part of the 'select' element of each row. How can I do this?
View Replies !
View Related
ASP Client-Side Form Validation
This would be the longest project I have worked on, but I'm trying to use client side validation on a form that collects a users information. The problem I have is how do you validate a field when processing the form and if a field say is EMPTY, then error message and the users needs to enter some data. I know that I can say POST="validate.asp" or something, however I have this page going from one form page to another and I can't get my head around being able to validate the field on the page before processing the form and moving to page 2 form, and so on. Is there away to have the validation on the first page and somehow once validated move to page 2 form?
View Replies !
View Related
Client Side Javascript Escaping
I thought it would be easy but I have spent (wasted) lots of hours on it I have this SQL statement that returns customer names. Customer names can be as simple as John Doe or a bit more complicated such as Sean "Big Al" Apple Using ADO object, it gets stored into a variable in VBscript on server side, so the line of code will be like Code: msCustomerName = rsCustomer("customer_name") At this point, I have no idea, of course, what letters the variable may contain.
View Replies !
View Related
VBScript (client-side) And ASP Variables
I'm having an issue using a VBScript (client side) and ASP together. Basically I have this piece of testing code (sampled from my site) where the "Order Total" is obtained from the server. In my code I just declare an "Order Total" server side variable and set it myself. Code:
View Replies !
View Related
Client-side ActiveX Component
I wrote a vb6 "client-side" ActiveX Component that will extract the user's network login.Now I want to be able to do some server-side work with this info, and it would be great if I could put the user's network login into a session variable but serverside-code is executed first .... My objective is for, each time (or the first time) our intranet users access the intranet's web page, it call the activeX which pull their user name which them would call SQL and displays custom information. would an include file work ? or can I in vb6 re-write my ocx so that it places the username directly in a server session object
View Replies !
View Related
Asp.net Client Side Validation Not Working
I have created a new site, using asp.net c#. My pages contain client side validation to validate the users input. On my local machine this works fine, but when I moved my site to the test server, the validation don't want to execute. If I view source on the page I can see the java script is created, but it don't execute. I'm browsing to the site in IE, so it is not a browser problem and the validtation works on other sites on the same server.
View Replies !
View Related
Client Side Validation Problem
Everytime i submit, it does no validation checks and just submits the form as normal and i cannot work out why. Does someone know where i am going wrong. <form method=post name="form1" action="SaveJournal.asp" onsubmit="return ValidateForm(form1)"> Code:
View Replies !
View Related
Launching Notepad.exe Client Side
I have written an ASP application using our IIS server which retrieves data and displays them in a nice grid. My boss wants the application to create a .txt file of this data when a button is clicked and then open Notepad with this new file so that it can be saved locally on a user's harddrive. I can create the file itself fine, but trying to launch Notepad client-side with this new .txt file has proven to be an absolute nightmare. It is a nightmare because I've gotten errors such as from "Automation server can't create object" to others that are a constant, annoying road-block to what seems to me ought to be a simple trick. Bottom line, how do I do the above without getting errors (opening Notepad with the file created)? Again, Notepad is what my boss wants used, so with that I need to know the solution with ASP (not ASP .NET).
View Replies !
View Related
Parse An Xml On The Client Side Computer
I have only been doing ASP for 2 days now so I am learning as I go. I am trying to paser through a xml document that is on the clients computer. I am using the XMLDOM object. The problem is that the path that I supply using <input type="file" name="mFile"> is always looking to the server's hard drive instead of the clients computer. How do I make the XMLDOm object load the xml file from the clients computer. Code:
View Replies !
View Related
Examine A Client-side File
What I'm trying to do here is have the user select a file of thier local machine (dont know what format to make the file yet, examining this problem b4 development) From that file, certain fields on the page will be populated automatically. The file they will select will have been saved from a visit to a different site I created so no worries about formatting. But I can't seem to figure out how to do this without actually uploading the file. To repeat, I just want to examine the file and be done with it. If I can't do this without uploading, then could someone explain how I do that because I've been having trouble finding a source that doesnt want me to buy thier .dll. I find it hard to believe that IE would implement input type=file and IIS would not have it's own method of getting that file.
View Replies !
View Related
Selecting Client-side Files
Basically I am wanting to incorporate some of the functionality of the Common Dialog control into this Web tool we are building, specifically the InitDir and FileType properties. The end user needs to select a file stored client-side - is this possible using IE6?
View Replies !
View Related
Best Forum For Client-side Issues
I have a very tough issue I'm looking for help on re: javascript/css. I see that MS has groups with HDTML in the title, but there are quite a few of them, and they don't seem to get updated very often. At least not compared to this ASP group. which one I am likely to get some help on?
View Replies !
View Related
Check Duplicate Username In Client Side
I have a regiseter form, which contains like 35 fields and most of them are must fields. So if user enters all and submit and if username happens to be duplicated then i have to get all the values and put it back and ask him to change the username / or other option is only ask him to change the username/ in both cases i have to keep all the data and feel unsafe and inconvenient. So is it possible to write a function in on change event in the text box,in which he write the username, and check if that name exists pop up a message saying username already exists.
View Replies !
View Related
To Prevent Client Side Web Page Caching
I wish to avoid caching asp pages at the user end . Currently I have declared Response.Expires=0 at the top of my asp page. I have also used the following meta tags to prevent client side caching: <meta HTTP-EQUI="PRAGMA" CONTENT="NO-CACHE"></meta> but still the pages are cached at the client side.
View Replies !
View Related
Can't Access Client Side Environment Variables
I am trying to find out how to access %APPDATA% environment variable on the client side of an ASP Intranet application. I need this so that I can perform some cleanup function. So far everything I read points to using Environment.GetEnvironmentVariables("APPDATA"); I can't seem to get this to work. Error message says Environment not defined.
View Replies !
View Related
Delete File On Client Side Machine
Is it possible to delete a file on a client side machine using VB/JAVA script? My website allows the user to upload a file to the website and after that I would like to delete the file on their machine tried this: Set fso = CreateObject("Scripting.FileSystemObject") fso.DeleteFile("C:1-1-S.xml") But it is always looking to the server machine? How do I say delete file XYZ on client machine. Is this even possible with the security issues?
View Replies !
View Related
|