I have a page with a pop up window for a 800x600 resolution. But people using a different resolution will not benefit. So is there an asp script to detect what resolution people are using. And by detecting this it will alter the pop up screen size. Get what i mean?
While coding in VBA,I had been receiving script errors when attempting to utilize the online help from within the VBA IDE. After fiddling with security settings and much searching for KB Articles as well as Googling newsgroups archives all to no avail, I finally discovered the resolution to this issue.
From within Internet Explorer, under "Tools" and "Internet Options" and "General", run the "Delete Files" under the "Temporary Internet Files" section.
For those of you who have ever experienced the Internet Explorer problem whereby "View" and "Source" does nothing, the above should resolve that issue as well.
I am using the File System Object to get a list of photo through a specified path :
Dim fso, ffolder, ffile, fc, fproperity, strOut, strPic Set fso = CreateObject("Scripting.FileSystemObject") Set ffolder = fso.GetFolder(folderspec) Set fc = ffolder.Files
For Each ffile in fc intCount = intCount + 1 strPic = strPhotoPath & ffile.name Set fproperity = fso.GetFile(strPic) ..... Next
I can display all photos without any problem, but I cannot get the resolution(height and width) property of each of the photo. Is there any way in doing this?
I'm trying to replace a JavaScript that checks screen resolutions with an ASP dito I've tried the HTTP_UA_PIXELS (servervariables) but it doesn't seem to work. I haven't found how to do this anywhere and I guess it's simple but please tell me how to do this
what i need to do is when someone hits my site, it must detect what that person's screen resolution is and according to that include a specific navigation.
I use a little asp script to get some site statistics ... essentially logging each session into a database using global.asa.
How do I capture the screen resolution in this setup ?
I know how to get the screen resolution in JavaScript ... but how do I combine javascript and asp within global.asa ? Or is there another way in asp to get the screen resolution ?
I'm retrieving the screen resoltion with javascript code, but i can't assign the correct value to asp. the response.write is displaying zero (0) for screen res., although when i do a document.write in the javascript part, then my screen res. is 1004 ...
how to auto adjust resolution of web page so that it gets adjusted on every resolution . like my website gets open perfectly on my pc but when I tried it on some other pc which had changed resolution the web page was very such shifted to left side which was looking bad. how to auto adjust resolution of web page?
Can anyone advise the best way for me to check a screen resolution using any of the above technologies, i am creating a dropdown menu which is populated by a database with rollovers and suchlike, and i was planning on using showhide layer function with javascript however when i resize the browser at a certain point the layer get at most 30 pixels to small, which looks bad. Code:
how do u detect what the current pagename is (i.e. page.asp). also if the command is stored in the include will it return the include file name or the page that the command is included in name?
I have a Javascript to detect whether a client's browser has flash installed, but as so many people are putting me off relying on Javascript, could you please let me know if you know how to detect whether a browser has flash installed using ASP.
Is there any way to detect a mac using ASP? I am trying to let a mac with no referer into my site, but NOT any other OS that does not come from my site
for instance:
If OS = Mac & http_referer = "" then do nothing else If OS <> Mac & http_referer <> "http://www.mysite.com/" then response.redirect "http://www.notmysite.com/" end if
I have an ASP website which curently sends emails via CDONTS. Sometimes emails are not getting sent and there is no way to detect the error. I would like to be able to log on a database that an email has been sucsessfully sent or log an arror on a database if the email has failed. One ways I have thought of is to call a VB.NET DLL which I have written (I only have .NET not VB6!!). But i ma not sure how to call a VB.NET DLL from an ASP page.
How can you detect if it is a bot that's visiting your page, or a real person? Is it in the 'Request' class or what?
I know you can ban bots from crawling your page, but this is not want I want to do, I just want a script that can define if its a real person thats visitng your webpage, or a spider.
I've got a page that increments a count when the page is hit. The problem is, I do not want search engine spiders to affect this count. I'd like to wrap the increment code in an if/then statement so that it doesn't get triggered when it sees that the visitor is a spider.How do I sense that spider? Is it with the server.variables("referrer")? Is there a good list anywhere of the names of the major search engine spiders?
At the moment i am checking that all the fields have been filled out, at the moment i am using the following...
if firstname = "" and surname = "" and address1 = "" and town = "" and county = "" and country = "" and postcode = "" and phone = "" and email11 = "" and email2 = "" and password1 = "" and password2 = "" then
is there a better more efficient way of doing this?
If I write an entry into this DB, Name and EMail, the ID is auto increment. How can I detect what ID has been created ? I want a user to submit details to me, they get the ID as a ticket number ?
I am planning out the stages for an application at work, the application needs to detect when a client has emailed 'us' and then trigger a new row written to a database and email the client back by return.
I can see how most of what our application needs to do can be achieved with ASP/SQL Server - but the part I am unsure of is the email detection...I suppose the closest thing to what we are aiming for would be one of those 'helpdesk' apps that many companies have - you email them - you get an automated confirmation email back by return with a ticket number etc etc - anyone got any ideas on how I can achieve this?
I am writing an application which when the code first loads there is a form which all the fields are blank. I then need to test some date fields to check if the end date is before the start date etc. The form fails to work. So I then wrote a test asp page which has a single box I then use an If...
Else statement if it is Blank then do nothing if it has data in the text box then display a message. The form works ok until I input text and then it does not detect any input text in it and therefore does not display the message. This is totally the oppoisite of the original application which does not detect the form is empty. Code:
I'm writing a script to add documents to a database, that can be sorted via date. As the date doesn't necessarily corrospond with the day the document is being added (i.e. it could have been orignally published in 1999) I have created a series of dropdown menus that allow the user to choose day, month and year. However, they could potentially choose, for exmple, 31st of February, which will generate a database error.
How can my code intelligently detect an invalid date before it generates a database error? Every system I can think of is overcomplicated for such a seemingly simple problem.
I have a program written in ASP. Normally it is all done by using include file etc.The client has asked for the program to be rewritten using frames. This can be done, but I have of course told the client that includes are better than frames and more easily manageable. Despite that advise the client wants to press on .
I have worked out a means by which I can move everything over to frames. How do I detect and ascertain if a page has been opened in a frame; if it has determine the name of the parent frame; and ensure it cannot be opened else where - ie another frame or window without a frame ?
Is there any way in VB ASP of identifying if an image which is placed on a page fails (if it's simply not been put on the server for instance so IE gives it a red X)? I want to detect this if it happens and display a default image or something.
i'd like to know if there is some way to detect whether a field is of type MEMO (i'm using MS Access) so to behave accordingly placing a textarea instead of a textbox in the UI.
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' m getting a (0x80040E2F) error, if I submit my form, with blank textboxes to my update stored procedure. The stored procedure expect values, so how can I detect if a form field was empty. I've tried testing to see if the form field is null, blank and to count the characters, but I can't get it working. My SQL table allows nulls, so it's not that.
Is it possible to use IIS 5.x software on WinXP/2K OS and VBScript to detect the logged in user account.
ie, we login with our firstname initial, last name (amartone) as well as the domain the computer resides in? My account is under ITU, so I am ITUamartone.
Can ASP detect this? I'm making an intranet app, and I'd rather validate users that way than have them log in over and over.