Javascript Form Image Replacement Breaking In ASP Classic
I skinned an LMS (Learning Management System) using CSS and Javascript. The forms were skinned with niceforms.js, the site works perfectly in FF, IE 7 and IE6 but in ASP the javascript doesn't replace the images with the skinned elements. All the javascript functions initialize but the images are not placed in. Code:
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Preventing Form Injection On Classic ASP Pages
I've seen plenty of articles and utilities for preventing form injections for ASP.NET, but not too much for classic ASP. Are there any good input validation scripts that you use to avoid form injection attacks? I'm looking for good routines I can reuse on all of my form processing pages.
ASP Replacement
Does anyone know of an ASP (VBScript) that can function as a Yahoo Group style replacement? This includes handling digest emails as well. All the popular forum software I've looked at, such as Snitz, can't handle it.
PWS Replacement
I have just upgraded my win98SE pc to winxp home. I am aware that PWS won't work with xp home, and I need to upgrade to XP pro for IIS. Problem is that I don't really want to upgrade unless I have to. I've been investigating the various server options available. I need to run .asp scripts and connect to access 2000 databases. I'm not sure what servers will do this as the documentation is never that clear. Will Apache do what I want, and is there a duffers guide to getting it running?
Apostrophe Replacement
I know this is a very commonly asked question, but I can't find a solution anywhere that I have looked. I need to take the text that will be typed in paragraph form by the user (textarea field) and do two things with it: 1. Store it in a SQL Server database field 2. Send it in an email upon page submit. Of course, single quotes have caused problems, so I have this code: strInternalDesc = Replace(Trim(Request.Form("InternalDesc")),"'","''") Problem is, it shows up like this in the email that is sent: ============================== We''re in the process of ============================== I would like to get rid of the double apostrophes, but not sure how. Went to an article on ASPFAQ, and saw something which directed me to do this: strInternalDesc = Replace(Trim(Request.Form("InternalDesc")),"'",chr(34)) However, that just makes it a regular double-quote. I guess I could try and find out what the character number for apostrophes are, but not sure where that is. Besides, will that mess up my SQL Server or the email if I do that?
Replacement For Global.asa
Is it possible to make another file act likle global.asa? at the moment my project uses this file but im not sure how many hosts allow users access to it, so if i could just include another file and make it act like the global.asa that would be great.
Free Textarea Replacement
Not strictly an ASP question, but it's for an ASP-based content management system: I'm looking for a good, free textarea replacement application which creates a WYSIWYG interface from form textareas. I have used HTMLArea in the past but it only works on IE6. Does anyone know of such a thing?
Breaking Into .net
Im new to ASP.NET as well as classical asp. To become strong in .NET, should i learn vb verywell (because im relatively new to it but it doesnt look that foreign working with vbscript) or the .net framework such as classes and server controls?
Breaking Up A String
I am wondering if any body can guide me on how to break up a string so that i can use the first letter as a querystring.
Breaking Out Of Frames
I need to break out of the frames in the following line, or a line that does a similar thing: Response.Write("<meta http-equiv=""Refresh"" content=""2; URL=http://localhost/MyWeb/Loanerz.asp"">")
Breaking While Loop
How can i break out from a while loop or for loop in vbscript. in jscript we can use break etc.. in vbscript how can i do it. can i go to statment.
Breaking Down String
I have a string of text which I have managed to seperate with commas e.g. test,test1,test2,test3,test4 if anyone knew how to split this up into individual words. so i can write them to a databse.I have been stuck on this.
Line Breaking Off
I am trying to merge 2 strings together from the database to create a meta tag. It comes up as <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <meta name="description" content="Looking for Architects in NY? Click here for Architects in New York."><meta name="keywords" content="architect, local, builders, home design, remodelling, construction, Albany County, Albany, Colonie, Saratoga County, Rensselaer County, Troy, Schenectady County, Schenectady, Montgomery County "> It works fine, however the the last "> breaks off to the next line which shouldn't be happening. I tried searching for "<br>" and chr(34) (the carriage return),but there's nothing.
Non-Breaking Space Problem
I have a script that allows you to edit an html page (the html being stored in a database). The problem is that any characters in the html disappear when viewing the page for editing. Is there some way to escape them?
Having Trouble Breaking Loop
I'm trying to break this loop for 4 different contacts to be inserted into the system. For new inspections I want to be able to search the DB for the Owner, User, Contractor, and Cert_Recipient for new boilers the certificate will be mailed to the contractor which will be the Cert_recipient first. then for annual inspections I want to be able to search for Owner, user, and Cert_Recipient for annual inspections I will have to search the DB for either the owner or User as the Cert_Recipient For some apparent reason I can't stop the search, it keeps going thru the loop. I must be missing something. Code:
Pages Breaking Out Of Iframes
I would like to prevent a page from breaking out of it's iframe when indexed by a search engine. I would like to use asp (which I am just starting out in) and I know it is somewhere along the lines of "yourframespage.asp?id=pageid". Can anyone give me a rundown of how I do this exactly because I cannot seem to work out how to do it.
Session Variables And Cookies Breaking
The login state in my site relies on a combination of session variables and encrypted cookies. Some of my users are reporting that they are being "logged out" by the system - which seems to be related to their cookies being blanked out. I've checked all of the code and now that it's not being overwritten by my ASP. The weird thing is that my site has two domain names, both pointing to the same pages and directories (no redirect). If this problem is happening to them and they switch to the other domain name and log back into the site, they stay logged in no problem. It also seems to not recur if the person is "logged out" and then logs back into the site on their own. I had one problem like this in the past, because I had a tracking cookie that was being written on every page, and found that some browsers (don't remember which) had a limit of how many cookies could be written - and when they hit the limit the oldest cookie was tossed out. However, I don't have any code doing this now. Anybody have any ideas what could be going on? Are there any session variable/cookie limits on the server side?
Function Return Breaking For Loop
Can anyone tell me why the funciton checkCode returning in the middle of the for loop breaks the for loop? ie. If I remove the section: if checkCode("0011") = 1 then response.write "<br />Passed submission of user code" else response.write "<br />failed submission of user code" end if from the code snippet below, then the code will successfully loop through and print out all the post var fields (there are in fact 4). If however you leave this in, the function returning seems to break the for loop from continuing through all the other post variables after "user_code" Code:
Breaking Text Up Over Multiple Fields
Is there any way that I can break up text in a text field to spread across multiple fields in an access database? I've got a FAQ section that I want admins to be able to edit via an online interface. Unfortunately, it often doesn't fit into the 255 character restriction that access has. Any ideas?
Form Image
I have an image as input for my form. I have some code extract some value from that form using a query and sets a cookie equal to that value.I need to have that image as a link to another page. When I put <a></a> tags around it, the query doesn't collect a value.
Using An Image To Submit A Form
I have four images, lets just call them A, B, C,D I have a hidden value called "area" When the asp page loads, it gets the value of area (the form submits to itself) What I want to do is: when you click on a image A area = "A" submit form to itself Is this possible?
Interactive Image Within Form
I have a form with severakl fields and a picture of a human being. I want to user to be able to mark/shade any section of the body they want and add notes next to it. When they submit the form, thhe image must be added to the DB. Is this possible - if so, how? Any demos, examples, guides?
Form Upload Image
Currently I have a simple form where users input and update their data. This works fine. However, we now have a need for users to be able to upload a picture to their profile. I have managed to successfully do this, however, once the picture is uploaded I need it to be automatically resized and renamed in the format "username.jpg". Then I need the path of the picture to be stored in the database with their record so that when it is opened the picture can be shown also....
Upload Image Form
I need to create a upload image form,but this will need check image size, width and height, and don't use any extra COM. Is it possible?
Web Print Form Image
My ASP.Net page displays an image file of some application form, legal size. When I choose to print the page, only parts of the form got printed----missing the fields at far left and bottom. It might be possible to adjust the image size when it is saved. But would it be possible to do that from the ASP.Net page?
Form To Email Including Image
Does anyone know of a form to email ASP script that allows the user to attach an image file from their computer to be sent as an attachment to the email, along with other data collected from the form? I've seen this on sites particularly for recruitment allowing resumes to be attached along with personal info.
Form Won't Work With An Image Submit Button
I have a problem with my login form. I'm using a piece of graphic as a submit button. The problem is that is seems that i can't submit anything when i'm uisng this solution. If i replace the image submit button with a standard button then there is no problem....
Cannot Use Request.Form In Image Uploading Pages
I have downloaded a Image Upload componet and incorporated it into my existing code. It is working great. My issue is that I cannot call a field from another table in SQL. On insert.htm, I can do this: ptrack = Clng(Request.QueryString("tracknumber")) And I can get the tracking number of the specific client. If I try to do this in insert.asp, it doesn't work. I have read other posts regarding this and I still cant get it to work. Like I mentioned before, it is a tracknumber, so its a numeric. Code:
Multiple Form Buttons, How Can I Bind Image With Them
Well i have pictures in database and i display them all on the page. While i display them i put a button with them each. So that they can be deleted. But the problem is that. as i put the button in a loop while displaying images. The name of the button is same and when i click the button to post the values to the next page where i should have the script to delete image. All the values of all the images go to the next page. I want to bind that particular image with that button, so that when one specific button is clicked only the id of the picture binded with that will go to next page. I can do the job by having a delete link with each image and posting the value to other page. But i have to use the BUTTON to do that. But dont know how to use it.
Display An Image From Access, Stored As Location Name Not Actual Image.
I have a client who has had a ASP site with an Access database for several years. It stores information for the used cars on his lot. I have stored text in the database that points to the location of the image for each record. Each record will have a thumb image that is supposed to display in a list of vehicles available then the user can select an item from this list and a new page displays with the information and the regular size image. So far everything has worked fine exept for the display of the images which are stored in a separate directory called veh-photos. All I get are image place holders. I am using Dreamweaver 2004 and and Access 2000 for the database. Following is the code to list vehicles: ....
Open Image In 'Kodak Image Edit Control' With Web Browser
1.I want to show a image file of type '.tif' in the browser window; for that I'm writting as ASP code page. 2.This '.tif' type image can be shown better with 'Kodak Image Control'. 3.To have this 'Kodak Image Control' on my code page I just add it's ..ocx to tool box and then drag it from 'Toolbox' to the page. 4.Now after dropping this control to the code it's type is getting changed to 'object' instead of type 'ImgEdit'(and I think this is the reason I don't get correct result). 5.On one button's 'Onclick' event I'm calling a javascript function with which I'm setting a 'Path'and'Display' property of a control. 6.And want to show a image at location -- '..MFTDRCMF919685173-62.tif' which get shown in new browser window but could not get shown in that particular control. That means the path is correct, then what is the problem? For better understanding of problem I'm pasting a following code which I've tried up till now...... .................................................. <%@ Language=VBScript %> <% OPTION EXPLICIT %> <HTML> <HEAD> <META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0"> <SCRIPT LANGUAGE=javascript> <!-- function showpic() { var path; path = document.frmtif.path.value; alert(path); document.frmtif.ImgEdit1.Image =path; document.frmtif.ImgEdit1.Display; window.parent.self.open(path); } //--> </script> </HEAD> <BODY bgColor=#ffe4e1> <form name="frmtif"> The Image <P> <OBJECT id=ImgEdit1 style="WIDTH: 409px; HEIGHT: 218px" type="ImgEdit" align=left border=1 classid=clsid:6D940280-9F11-11CE-83FD-02608C3EC08A name=imgtif></OBJECT> <input type="hidden" name="path" value="..MFTDRCMF919685173-62.tif"> <input type="button" name="show" value="Show" onclick="showpic();"> </P> </form> </BODY> </HTML> ..................................................
Displaying Alternate Image When Image Source Not Found
I am creating a dynamic ASP VBScript page, which gets data from an Access database. In the database, there is a field which holds a URL to an image. I can get the image to display fine, but where there is no file that matches the URL (i.e. a missing image) I want to display an alternative, default image (e.g. one that says "Awaiting Image"). The field is never blank, but the image file may not exist for all records in the database. I think what I am trying to get to is the following: If file exists (using URL from database to get location of image file) thendisplay image using the url from the database as the image source else display default image - hardcoded in program endif I have had a go and come up with the attached but I get an error with my if statement. <% Dim objFSO Set objFSO = Server.CreateObject("Scripting.FileSystemObject") If objFSO.FileExists (server.mappath("<%=(Recordset1.Fields.Item("ImageLocation").Value)%>")) Then <img src="<%=(Recordset1.Fields.Item("ImageLocation").Value)%>"> Else <img src="images/awaitingimage.jpg" width="243" height="239"> End If %> I get "The page cannot be displayed" with the following error: Error Type: Microsoft VBScript compilation (0x800A03EE) Expected ')' /living_space_root/TMP5zdpv2l4js.asp, line 58, column 66 If objFSO.FileExists (server.mappath("<%=(Recordset1.Fields.Item("ImageLocation").Value) -----------------------------------------------------------------^
Displaying Alternate Image When Image Source Not Found
I am creating a dynamic ASP VBScript page, which gets data from an Access database. In the database, there is a field which holds a URL to an image. I can get the image to display fine, but where there is no file that matches the URL (i.e. a missing image) I want to display an alternative, default image (e.g. one that says "Awaiting Image"). The field is never blank, but the image file may not exist for all records in the database. I think what I am trying to get to is the following: If file exists (using URL from database to get location of image file) then display image using the url from the database as the image source else display default image - hardcoded in program endif I have had a go and come up with the attached but I get an error with my if statement...
ASP Classic
I have just moved an ASP Classic website to a new hosting company that has a number of .NET components available. The website works fine after the move with one exception. We were creating PDFs using ASPPDF for ASP but now it looks like only ABCPDF.NET is available. My knowledge of ASP.NET is very limited at this time and I am planning on converting the site to ASP.NET soon but I really need to get the PDF working as soon as I can.
Classic ASP And VSS
I am trying to add a Visual InterDev project to Visual Source Safe 6d. Normally I just go up under Project | Source Control | Add to Source Control and I can load the project to VSS but now when I try to add the project to VSS I get the error: "Cannot establish source control for the Web Application. The server does not have a source control system installed on it, or the user name is not recognized." I am on a workstation which has VSS installed. VSS is also installed on the web server istself. I atttached to the VSS database as "admin" and under my own user name but I continue to get the same error. What could be wrong? Perthaps I am using the wrong version of VSS. Is version 6d compataible with Visual InterDev? Or do I need an earlier version?
Classic ASP
I am developing on WXP SP1 with VS.Net 2003 and VS6 installed. I cannot get my localhost webserver to render any classic ASP pages. ASP.Net and standard HTML works. If I request an ASP page from localhost the browser hangs for several minutes before just doing nothing. The status bar says the website is found but nothing is ever downloaded. I have verified the mappings in the IIS manager and I have re-registered the ASP.DLL. I am now at a complete loss.
Classic ASP
We have a requirement where we have to develop a custom Login Page which will accept user's NT credentials ( Username , password, domain name). This then needs to be passed to a website which uses Windows Authentication my question is how do we pass these credentials to IIS in classic ASP?
Classic ASP And IIS 6.0
The following code works on IIS 5.0 on a Windows 2000 server. Response.Clear Response.ContentType = "application/rtf" Response.AddHeader "content-disposition", "inline;filename=letter.rtf" response.write l_strBuffer But on IIS 6.0 running on Windows 2003 server we get an error. "Internet Explorer cannot download <file name>. Interner Explorer was not able to open this Internet site. The site is either unavailable or cannot be found. Please try again later." After increasing the AspBufferLimit attribute in the metabase.xml, we were able to resolve the issue. Is there any other way to resolve this without modifying the metabase.xml?
Classic ASP
I have list of asp pages that are grouped together by sections they belong to - So section Add could have pages add.asp and add2.asp, Section Delete could have pages del.asp and del2.asp so that the final display should look like this Click on link below: Add add.asp add2.asp Delete del.asp del2.asp The recordset returned contains the following fields: Code:
ASP Classic
I want to rename the file which i just uploaded it on the server.I want the code that do this.
Classic Asp
I intend to have a dynamic array of non fixed size set rsseats = conn.execute("select * from seats") Dim arr(1) response.write ubound(arr) do while not rsseats.eof ReDim arr(ubound(arr)+1) rsseats.movenext loop set rsseats = nothing But i will get hit with "The array is fixed or temp locked" how should i fix that
Classic ASP And IIS 7
I'm migrating a classic ASP site from IIS 6 to IIS 7 and I'm finding some minor problems that I'm assuming are IIS 7 config related. The problem I'm concerned with right now is that when I run the asp pages, they have lost all their image and CSS links. Functionality is fine (that is I can query the DB, update records, etc) but all graphic features have been lost. how to solve this issue?
Image From Image Folder Into Byte Array?
I can convert an image that is retrieved from a FileUpload object into a byte array and insert it into the database.. When the user signs-up i wish tosimply insert into the Picture (DB Type = Image) field to an image i already have saved in my images folder? Anyone know of a way to do this? Tutorials, articles or advise??!
Classic ASP Classes
I've been working in .NET for some time now and I don't remember specifically how asp classes are cleaned up in classic asp. I've been put on a Classic ASP project(ugh) and we're having some serious stability problems. Once we reach a point of sustained CPU useage of over 80% IIS 6 restarts the w3wp.exe process which of course terminates all sessions and resets the website. I've noticed that the previous developer has an include which creates a couple of class objects in ASP. Not third party or "CreateObject" objects, but ASP classes. This include is in A LOT of files and the classes not being destroyed in any of them. My question is could this be the problem? I seem to remember a problem with ASP classes and not destroying them causing leaks of some sort. I need to mention that the memory doesn't seem to be leaking but the CPU utilization goes wacko as if ASP/IIS is corrupt. My environment is Windows 2k3 and IIS 6. The previous environment was Windows 2K and IIS5. Both environments had the problem. Before I go through these hundreds of files I was wondering if anyone remember what the problem was with ASP classes not being destroyed.
|