I'm creating a forum based site with basic BBCode features, but am concerned that misuse of the [ img ] tag will mess up my layout. I do not want to go down to road of users uploading images, but want to allow them to embed images from flickr, photobucket etc.
So, is it possible to restrict all linked images that are say, over 400 pixels wide? I've been racking my brains and have had trouble coming up with any solutions. Is it possible?
Does anybody know of a way to get an image width and height without using a custom dll? we have aspJPEG on the server, and there are methods to fetch image width and height with that, but it only works with JPEG and i need to get dimensions for gif and png, too.
I have an ASP page which displays different images according to the querystring and the images are all of different sizes. However, in some browsers the image overlaps with the text next to it occasionally.
I guess by specifying the "width" and "height" of the image in the HTML should solve the problem. However, I do not want to store the width and height of each image in the database. (There are too many of them!) Is there any function I can use in my ASP page to obtain the width and height of an image?
I know there must be a JavaScript way, but is there a VBScript way? I asked here, because if there's a javascript way I need to also use VB with it...since I want to trim an image if it's over a certain size...
I have a page where users can upload images, but sometimes the images are too small. How can get the height and width (in pixels) for an image? I've seen it done in PHP but never in ASP.
Is there Javascript that you can run where it limits the width of an image. For example:
All images that are under 400px wide will display at their native size but if an image exceeds 400px wide it will get scaled proportionly to 400 px wide and however many pxs high (to maintain proportion).
sidenote: images will be populated on page from a database.
I have a popup where I scale the image to a smaller size than original. Iused to set the img tag to width="50%". This no longer works in the current edition of IE on MS. On Mac IE it still does. Go figure.
So... I now need to set the width to a fixed value. I also need to adjust the popup to the value of the image height + some value to allow for text etc.
The quandry? How can I get the height and width of an image into a variable for use on the calling asp page.
I'm trying to read in image data using the filesystemobject. I am able to read the comments field for all file types it seems, except the ones I want, .gif .jpg and .bmp.
Is it possible to do this?! If so what might I need to do? Code:
I have a database that has 2 tables linked into it from another database. I am having problems trying to pull in values from those 2 linked databases. One of the tables is tblClient. Code:
Ithe goalposts have been moved (yet again!) and the database that was one, may have to become many, being used on subdomains of the same server sharing some information but not all from a 'global' database.The solution I initially found was to used linked tables and developing it on pws - this was perfect. I linked local databases to the external table data in the 'global' database hey presto the application ran smoothly. There was only 1 connection to each local database and I could retrieve all the information I needed from the global one. However on uploading I have no idea how to set this via asp or sql as online the path of the linked tables is what was on my local machine and I have found no way of being able to edit this or indeed know if this is possible.
I am using one combo box and populating it with the values . i have another combo box on the page. I want to display the related values in this second combo box based on the selection in the first combo box.
I am trying to reload this page on the change event of the combo box but the values are not coming in the 2nd combo box . Please send me a solution to this or if possible a sample code for the same.
1. Can I, say by session, determine if a user logged in can amend/delete data they have entered? But no one else. Say they book a conference room, but only they can delete it
2. I want to prevent cross bookings (in terms) of time.
I have an Access DB that has a linked table to a SQL Anywhere DB. When I try to access this Access DB, it prompts me the first time every time for username and password to the SQLA DB. This isn't a problem when it is just me that is working on development, however,
I figured MS would have something good to say about this issue, so that my users can use this DB as well. MS says I need to pre-open the table using the same credentials for both DB's. I have tried this several ways, and am still unable to open the linked access DB.
The error I get is that the DSN=xsellvehicles (this is the DSN that is used by Access to open the table that resides in SQLA) can't be used because the username or password doesn't work.
I've been tasked with the challenge of re-sizing images linked via BBcode on the fly. I have compiled a list of functions that do individual components of this task, but stringing them together has proved, well, a challenge.
I discovered this code that will re-size the images, however this will need to be added on an ad-hoc basis, and the fact that the image name appears twice complicates the usual system I used to add the code.
Usual way of replacing the code (inside a function):
if you have seen an example floating around on the internet of three linked list boxs using asp code and a database connection. I have managed to get it to work for the first 2 list boxs, but I am unable to get it to populate the third list box, this is how it is:-
Tables:- Main_cat Sub_cat Subsub_cat.
Not all Sub_cats will have subsub_cats, hope this makes sense. I have attached the code.
I currently have a page with car manufacturers in a dynamic form menu. Users can select one and click submit to find available cars by that manufacturer. What i now need is a second menu on the page where when a manufacturer is selected, the models associated with that manufacturer display for a user to choose. For example if Ford is selected:
Menu One Menu Two ------------------ ----------------- Ford Focus Fiesta Ka....
Can i do this with ASP to say "if menu one is ford, menu two contains...."? Or is there a much easier way which i am somehow missing?
I'm trying to restrict access to a page based on a session variable called MemberUserID, so the way I thought of doing it was to say if MemberUserID is not equal to this value, then you would get an error page, but the operator I'm trying to use is giving me an error:
<% If Session("MemberUserID") != Name Then Response.Redirect "error.asp" End If %>
How can one restrict what kind of web browser users use to view your web site. I only want users to be able to browse my web site using firefox. I know this is possible because I've seen others do it. I'm just tired of it working fine on firefox and not right on other browsers.
I know I'm doing something simple wrong here and it's doing my head in. Don't know if anyone can help without me posting yards of code? I am using normal login page in dreamweaver which uses record id as the username and users password as password.
This all works fine logs in and forwards to /ammend.asp?id=7295 which is also restricted, then the user can update their record, no problems so far. The problem is that if I change the ?id= to another number 7687 for instance in the browser then the user has access to that record 7687 when I though it should go back to the login page.
' then set up a query ' ----------------------------------------------- sQuery = "SELECT DISTINCT * from tablename Order By columnA, columnB " ' << insert your own sql here
could someone give an example so I could follow it?
I want to link 2 list boxes on the same page without reloading it. The list boxes are dynamic and when one selects an item in the first one, the second one get's populated accordingly. So far I've been stuck with Javascript Object Expected Error and I cant find a way to make it work. Code:
I am unable to show and image or flash i have in an access database that is linked to an images subfolder, below is what i am using to show text on my ASP page but i want to ad a couple of images to the database to show in different locations on the page or pages, so i guess i needed a call function but ive used the one i have on my database image rotator scipt and a few others i have dowloaded and still the call scripts wont work, i'm sure im doing alot wrong can someone please edit this code and show me what to do... if its no bother
This works fine for showing the text on a page:
<% Dim rs Set rs = Server.CreateObject ("ADODB.Recordset")
rs.Open "introtext", "DSN=introTXT.mdb"
While Not rs.EOF Response.Write "<br>" & rs("Content") & "<br>" Response.Write "" & rs("URL") & "" rs.MoveNext Wend
Table 2 => For the ASP Form 2.1) ID: 2.2) Text field 1 (Normal input field) 2.3) Product (Dropdown Menu, Data Source Table 1, Field 1.2) 2.4) Description (Text Field, Data Source Table 1, Field 1.3)
The Description value should be in correlation with the Dropdown Menu value in Table 1