Is there a way to detect that my ASP is going to display in a frame? Everything I've found tells me how to test if the browswer is frame capable. I know HTTP_REFERER is a big hint but it isn't very authorative. I can do this easily in javascript but that is of little help while I'm still running on the server.
What I want to do is check to see if I am executing in my frame. If not then load the frame then execute. Everything I can think of to do is either too late or unreliable.
I'm going to go down this route of Cookie detection
<%
If Request.Querystring("Check") = "" Then
Session("cookietest") = "True"
Response.Redirect("cookietest.asp?Check=True")
Else
If Session("cookietest") Then
<!-- Execute code if enabled -->
Else
<!-- Execute code if disabled -->
End If
End If
%>
I’m a little worried, do you know how spiders work with regards to this sort of thing? My site gets some traffic due to it being spidered by the likes of google and I don’t want to loose that flow.
If I use this at the entry point of my site to redirect browsers with cookies turned off to a page telling them to turn them on will that stop the spiders?
I have just uploaded my website and it looks fine in IE, but awful in Mozilla. I need to load a different CSS file according to what browser a user has. Does anyone have any code that will detect browsers and versions?
I have a piece of ASP code that I want to run differently if it is on my development server.Basically, if it's on my server I just want it to do a few response.writes... If it's on another server I want it to send an email.Right now I have code to do both, but it's a pain to flip flop between them. Is there a simple way to accomplish this?
I am running an asp script (form submitting to database). After the db entry I want to re-direct the users to one of 3 pages depending on which browser they are running .. Internet Explorer, Netscape 4.7 or Netscape 6 or higher (since I am using embedded video feedback with CSS and dhtml....and all these brpwser handle things differently (ie. Netscape 6+ does not understand the <embed> tag or at least won't let me manipulate the video.) I can do it in javascript but how does one go about this in an asp script?
Does anyone have a good and simple Low/High bandwidth detection script that either redirects the user to a page based on their bandwidth or which sets a variable that can be used to turn on/off media and content?
How can I detect what browser type my users are using, currently with my asp server variables I only detect Netscape and Mozilla as U, how can I get specific information without having to use software that you must pay for?
I have an photo gallery, I want to create a button that opens a new window fixing the full size image snugley in it, which is easy.
But I want to get a script which detects the image size so i can use the variables to open the window.
What i want to not do is have to more options in the database with height and width in, and have to call them, although i'll do that if i have to, but i thought i would try something new.
If I have existing code that has a drop down box to select department. This then brings up the Access database based on a field passed from the drop down selection.
How can I get the database to show up without getting rid of the table display from the selection. This way I do not have to go back adn forth for every selection.
I am trying to use frames in asp page. Well I am aware that frames are on client side etc.. what I need is following. Let me explain using the main page which have the frames skeleton :
I have an ASP programme which calls functions to display a list of tables from an access database
e.g.
table1(a,b) table2(a,b) etc
Ive also created the frames page dividing the page into two vertical colums 30% and 60% Ive created a menu in the left column and when clicked upon want to have just a single table displayed in the right column, how do i do this?
I am having an issue using ASP and frames. I am required to use frames so NOT using them isn't an option.
Problem: When a user enters the site they goto survey.asp (this is the frameset page). However when an ASP script redirects to the survey.asp page I get double frames.
Meaning, that when the user is returned to the page the orgional frames exsist and then ANOTHER set of frames is set within those!
I just wonder what are the implications to use frames to build portal. I've seen some sites that are quite fast with frames but I just wonder if there are hidden "costs".
I've tried to use in the past and I run into a lot of problems when I worked with environment where there were frame and no frames pages.
I have a page with three frames. One on the top, one on the left and one on the right.I use the frame on the left as a list of selections for the user (ie a menu). When the user makes their selection, the frame on the right shows the relevant page.I want to give the user the option of hiding and showing the frame on the left, by click on a button.My experience with frames, is nil.
When I put my asp files in frames and call the frame from browser, I get a message to save the files. The files aren't actually displayed. How can I see the asp files in frames?
Say for instance that I have 2 frames and I have code in one. That code is returning information from a database. In that database there are hyperlinks to images. Upon clicking that hyperlink how do I force the image into the other frame?
At present It opens appears to go to a new page, but everything is coded in one ASP page. So I have to click back to select another image? I want to be able see both the database and image so I dont have to go back and forth
I can build a nice looking website in HTML, but I have to admit that I don't know a ton of other code beyond that (i.e. ASP, Javascript, PHP, etc. - although thanks to Sitepoint I have incorporated a tell-a-friend and contact form using ASP)
My client currently subscribes to a service for selling his photographs where he uploads his images to a "sales site" that establishes a gallery for him where his clients can select and purchase images online. He would like to incorporate the "branding" from his site (header, background, footer, etc.) around the pages for his image sales site. My first thought was to use frames and to direct the main frame to the sales site pages, however the "padlock" icon in IE that indicates security to users when purchasing disappears because it's just a page within the frameset and he feels that his clients won't be comfortable purchasing from his sales site if they can ensure their online purchase is secure (apparently that padlock icon eliminates a lot of stress for his shoppers).
I then considered using CSS to try to accomplish the same result, but have come to find that IE doesn't support the function of CSS that would allow me to "call" information from a different URL. Code:
at index_left.asp there are menus and above the menu table, there is another table for me to display user's name once he/she logs into the system. to see the login page (login.asp), user has to click Login on the left and login page will appear on the right. but after user has logged in, his/her name never appear on the right place unless i refresh the page.
I have a frameset on domain X in which an ASP-page is loaded from domain Y into one of the frames. It seems that the ASP-page is not handling any cooky's. After each load the session-object is empty. When directly opening the page from domain Y (without the frameset) everything works ok. Does anyone knows why this is happening en what can be done to make it work?
I've got an asp page that is set up in with two frames. The problem in question pertains to the main frame which contains a simple 'response.redirect' line that redirects the visitor to a different location. Other than this line, everything else are tags and no asp-oriented code.
I've tested this on a couple of computers, and it works fine. However, there are a few other computers in my office where the redirect just hangs and doesn't load the redirected page (i.e. the status bar states 'Open http://someurl.com' and stays like that)
Is this a problem with using the asp line, or is it a computer setting/browser setting I'm overlooking?
My site uses frames.I have a header frame, a menu frame and a main frame. When the page opens, the header frame and the main frame are generic. The main frame has a log-in dialog. Once the user logs in, they are taken to a 'main' page and I want to replace the header and menu frames with other frames .
I have a frameset with 2 different pages. When a user logs in the page is setup based on that particular user. The problem I have comes when that user logs off (killing his/her session) and someone else logs in one of the fr4ames does not always refresh with the new users info.
The user actually has to right click on it and click on refresh. I am killing session with �Session.Abandon� (this seems to be working). I have the following statements at the top of the page that is not refreshing: Code:
i am currently working on frames in ASP. i have four asp files namely frame1.asp, frame2.asp, frame3.asp and frame4.asp - i have separated an ASP page into two frames one in the left side named frame1.asp and the other on the right side named frame2.asp i have specified a link in frame2.asp and passing a parameter along with that link. if i click that link it should replace both the left side frame frame1.asp with frame3.asp and as well as the right side frame frame2.asp with frame4.asp is that possible?for your information, i pass the parameter along with the link in frame2.asp after contacting the oracle database table and retrieving some value from it.
I would like to refresh a frame when an action takes place in another frame.
Suppose for example:
I use three pages page1, page2, page3 which are displayed in 3 frames frame1, frame 2, frame 3 respectively.
if click on some link in page1 it will open page2 in frame. this clicking should be captured immediately and displayed immediately in page 3 which is in frame 3. This should be done immediately as if it is live.