Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Open Page In Frame


i would like to open a page always inside a frame. This can be achiieved with a simple javascript

<SCRIPT LANGUAGE="JavaScript">
<!--
if (self == top) {
location.replace("index.htm");
}
// -->
</SCRIPT>

However this can cause a popup depending on the user's browser settings




View Complete Forum Thread with Replies

Related Forum Messages:
Page To Open In The Webshops Main Frame Instead Of Opening In A New Window.
When the user register himself for a newsletter at my webshop the webshop sends out an email with an activationkey. When the user clicks the activationkey in the email I want the page to open in the webshops main frame instead of opening in a new window. Is this possible?

View Replies !
Open Msword Doc In Frame Wont Work?
I'm tring to open word in a frame to read a word doc. Word will not cooperate. Is this possible to do? Code:

View Replies !
Page In A Frame
I have to do in order to put a php file in a frame. Here's the code I have.

<HTML>
<HEAD>
<TITLE>OnlyHell</TITLE>
</HEAD>

<FRAMESET rowss="1,*" framespacing="0" border="0" frameborder="0">
<FRAME SRC="radio.html" scrolling="no" name="radio"

noresize marginwidth="0" marginheight="0">
<FRAME SRC="playing_test.php" name="body">
</FRAMESET>

</HTML>

View Replies !
Can Frame Refresh The Whole Page
I have a page with two frames, what I want is to set it up so that one frame can refresh the whole page.

Because the top frame is a form and the bottom page is the displays lists of database entries, but it get changes everytime the form on the top frame is submitted. I've tried to involving javascript on this, it worked, but it doesnt always work, sometimes it fail to refresh.

View Replies !
Html Frame And Page
I would like to have a constant logo and list of links at the top of the page, is there a way to do this so I don't have to copy and paste this information into every page?

View Replies !
Automatically Loading A New Page In A Frame.
the basic idea here is that I want a web page that is made up of
frames to redirect automatically to a frame depending on an if
statement...

if($1 == $2)
{
load url1.php in frame "main"
}else
{
load url2.php in frame "main"
}

The frame "main" is an <iframeif that makes a difference.

View Replies !
Passing Variables In Frame Page By Post Method
Is it possible to send  variables by post method through a submit button to a frames page, and have all 3 pages in the frame pick up the variable using the $_request[var] ?In other words, I click on a submit button. in form action method call index.php the index page has a top, main, and a left frame.how do i get each one of those to receive the variable, when i can only sendit to one page? or is it possible to send it to more than one page, but only action to one page?

View Replies !
Script Show The Requested Secure Page Apear In The Right Frame?
How do I have my formscript show the requested secure page apear in the right frame instead of popping up this page in a new window. I tried to fix it by writing " target=top" into the script line. Doesn't work ! Code;

View Replies !
Script To Open A Small Page When Loading A Large Page?
the idea is a script that loads when a large page is trying to open that need for example 5-6 mins to load and in the mean time to open a very small page that is saying loading the page please wait and when the large page is loaded to go directly to that page. Do u get my idea?

View Replies !
Controlling URL In One Frame From Another Frame
I want to develop a frames page with two horizontal pages. Within the bottom frame I want to control websites that appear in the upper frame. That is, enter URLs via some input box in the lower frame and have the site appear in the upper frame.

Also, as an added feature (as if this was not enough!) if the user clicks on a link in the upper frame this new url will appear in the lower input box (just as it would in the Address/URL box in a browser).

View Replies !
How To Open Page
I want to send the browser to a differnet page how do i do this with php? it's an if statment

if true send to example1.com else send to example2.com.

View Replies !
Open A New Page?
I have a small problem, this is my current script:

{$_SESSION['login'] = $_POST['login'];
$login='You are now logged in <b>' . $_SESSION['login'];}
else{
$login= 'Wrong user name or password.';}

If the user name or password is incorrect, it will just display Wrong user name or password. But what I want it to do is have the browser open a new page if it is incorrect, for example incorrect.php. Which will then display an incorrect user name or password message. This shouldn't be too complicated, I just have no idea how to go about it.

View Replies !
On If Statement Open .htm Page?
how to open a preset page from an if statement, such as:

if ($row["password"]==$password ) {
printf("Successfully Logged In!");
}else{
print("Login failed!");}

where instead of just printing the text string it opens a new page!!

View Replies !
IE Ask To Open The (php) Page As File
I just uploaded a new website onto a new server. On this server however, when you click on the only 2 php pages. IE will ask to open the page as file. Is there a simple way to fix this, or is it simply the new server that can't support php? The two pages are just a simple email form.

View Replies !
Open A Page In Grayscale On Mac...
I've having a serious issue that I need your help with as soon as humanly possible.  I have a page that has some products on it, when the product is clicked, it opens up the printable version along with the print dialog box for printing. My problem is, I need the page to open up in grayscale. It's working in IE, but it's not working in Fire Fox, and it's not working on Mac. 

View Replies !
Orig. Page Open
Usually when I use header it just replaces the current page, but now with this code it opens a new tab in firefox and puts in the page there, leaving the original page in the original tab. What can be the cause of that? code:

if ($_REQUEST['returnitems']) {
header("Location: http://" . getenv(HTTP_HOST) . "/index.php?section=admin&action=returns"); }

View Replies !
Can't New Page To Open Using Button
Here is the code I have. Does anyone see anything wrong with it? It won't go to the url when clicked. Code:

View Replies !
Open Feedback Page
i am trying to open feedback page after a user visiting a particular site( that means when a particular user close all pages after see the ste and at last i want to open the feed back page).

View Replies !
Open And Process Remote Page
I want to be able to ask users for a URL, open that page, change some of the
contents and then display that page as if they had typed the URL into a
browser. I have toyed with some of the php functions for opening URLs, but
what I am not clear on is how much work my script will have to do (do I need
to fully emulate a browser, for example).

The net effect I am after is very similar to the page translation feature
that Google offers. Does anyone have any examples of this kind of technique.
Any ideas how much work is involved? (My 'translation' is pretty trivial, so
really it is mostly a question of how much work to display the remote page).

View Replies !
Open A Page Using The Function Fsockopen()
I try to open a page using the function fsockopen(), however I the following output appears: "HTTP/1.1 302 Moved Temporarily". How can I get past this?

View Replies !
Shortest Code To Open A Web Page From PHP
I have Windows Vista and PHP with Curl.I would save a web page on my harddisk with a PHP command-line command. What's the more minimalist way to do it?

View Replies !
Open Link In Included Page
How to include Link that could open in same page rather than going to another page


for example, if i include a file in home.php

 <? include("/index.php") ?> and I want to open up the LINKS in  "index.php"

in same home.php.

example   - open    "/index.php?p=Hits"  on same home.php page

I know i could have FRAMES but i dont want to frames in my site

View Replies !
How To Get Rec Id And Use Header() To Open New Page And Pass Rec Id
1. After the record is inserted I would like to open page_add.php and pass the record id (there is an auto_increment field in the table called ID) to the new page "page_add.php". I was thinking of using header() to open the new page and passing the id as parameter (i.e. page_add.php?rec_id=what ever) is there a better way to do this?

2. how would I get the record id after I store the new record?

3. Also not sure how to write header() with a variable in it?

Code:

View Replies !
Web Page Open Up Automatically Using An If-statement
I was wondering if there was a way to have a web page open up automatically using an if-statement, either as a pop-up or just going to the page in the current browser window?

View Replies !
How To Open Random Flash Page Using Hyperlink?
I'm new to using PHP so please bear with me.

I'm trying to create a hyperlink that will open a random Flash page so that users will see a different flash module each time. Here is some of the code that I wrote but I'm not sure if it'll work since I'm not very good at coding. Oh yeah, I'm not using a database either.

// random_menu.html
<head>
<?php
$i = rand(0,3);
?>
</head>
<body>
<a href = "www.x.com/random.php?i=$i">x</a>
</body>
---------------------------
// random.php
<head>
<?php
$i = $_post["i"];
if ($i = = 0){
$value = "a";
}
else if ($i = = 1){
$value = "b";
}
...etc.
</head>
<body>
<object>
<param name="movie" value="$value">
<embed src="$value"></embed>
</object>
</body>

Please help if you know how to do this.

View Replies !
Text File To Popup Or Open In A New Page
I have a form which takes user input. On submit, the form will run a
php script that will create a new text file using the user input.

I want this text file to popup or open in a new page. The problem is
that when the page opens it still shows the old text file, i need to
hit refresh for it to show the last user input.

the html file (greatly simplified):
<html><head>
<title>Untitled</title>
</head>
<body>
<form action="action.php" method="post">
<p>Title: <input type="text" name="Title" /></p>
<p><input type="submit" /></p>
</form>
</body>
</html>

The php file (simplified as well):
<?php

$spot_code = $_POST['Title'];

// Open the file and erase the contents if any
$fp = fopen("myfile.3dml", "w");

fwrite($fp, "<TITLE NAME=" . '"'. $spot_code .'"'. " />
");

fclose($fp);

//redirect
header( 'Location: http://localhost/mytest/myfile.html' );

?>

the text file, myfile.3dml is embedded in myfile.html (it requires a
plugin to view - it's a 3D world). When myfile.html is opened it
displays myfile.3dml but it needs to be refreshed to show the current
input.

View Replies !
Search Script - Open A New Page Showing All Fields
let's say i have 3 fields : name , sirname , age.name is primary.i need to click on the result ,for example : george , and open a new page showing all fields.for example george lucas 35.Any ideas? Code:

View Replies !
Setup A Page When You Open A Drop Down Menu Of Options
How do I setup a page when you open a drop down menu of options, select an option and then an image on the page changes to the selection you landed on. Code:

View Replies !
How To Open Page And Make Sure Users Sees The Right Information
I'm making a website where registered users can upload a photo as well as information. The main page will display all of the users' photos. When user1 clicks on, say, user5's photo i want a page to open up and user5's information to be displayed. Is there a way to do this? Code:

View Replies !
How Can I Open A Source Of A Page (.html, Javascript ) In A Textarea
I need to find out how can I open a source of a page (.html, javascript ) in a textarea, edit the page and then submit it back to the server.

View Replies !
Open Popup Window When Page Is Loaded If A Field Is Populated
Would it be possible to open a popup window on loading the instruction page but only when the critical information section of the page contains text?

The popup window could either contain the contents of the critical information section or just a visual warning that such information exists on the main page.

I have a pretty good knowledge of VBA but sadly my knowledge of php and javascript is very limited.

View Replies !
Set The HTTPS Username And Password Using Php/flash And Then Open The Secure Page.
My hosts allow secure https logins on specific directories. What I want to do is have a login screen in flash, if the user enters the correct username and password I would like to set the HTTPS username and password using php/flash and then open the secure page.

In my mind at this point they'll be logged in and then can navigate the secure page without seeing the browsers https login dialog. Am I kidding myself, or is this possible?

They're config is the following:
PHP Version 4.3.11
4.9-STABLE FreeBSD
Zend Engine v1.3.0

Apache/1.3.33 (Unix) PHP/4.3.11 mod_ssl/2.8.22 OpenSSL/0.9.7c
FrontPage/5.0.2.2635 mod_throttle/3.1.2

View Replies !
Automatically Open Default Mail Program And Insert The Current Page Of Browser As The Body Of The Message.
On my website I would like the facility to click on an image or text that will automatically open up their default mail program and insert the current page on their browser as the body of the message.

I realise that most browsers will have this facility already but I would like to add my own method. Problem is, I have no idea on how to achieve this. I'm sure it can't be that difficult though. It maybe can be done just using HTML, I don't know.

View Replies !
Open On Open / Save Box Dont Work With Download Script
I have a download script. I'm storing files above webroot and using download script for making files available for download to users.

Now the problem is that when file download open/save dialogue box comes... if the user clicks on save they can save the file and then they can open it without any problem . But if they click on open then they can't open the file. It says file path not found or there was some error file could not be open.....

View Replies !
How Many Connections Are Open And On What Pages They Are Open.
I know why I am getting this message. Is there any code I can write up to find how many connections are open and on what pages they are open.

View Replies !
Frame
How do you use PHP to put any website a user wishes in a big frame while you
put your own personal one at the top?

View Replies !
GET From Within A Frame
I have some php code inside a frame of an html page. I cannot seem to get any GET variables from the URL. I have some javascript inside the frame that I want to run based on a value from the GET. I am having trouble trying to figure out how to communicate that variable to the php page inside the frame.

View Replies !
Cookie In Frame
I have this login that works fine when the page is presented as-is, but
I want to allow other site owner to put any page from my site in a
frame in their own site.

The thing is that when the page is called from a different domain, the
cookie is not sent to the server.

View Replies !
Frame Is Not Disappearing?
I am using frames in my website, there are 2 frames in site. when
sessions are expired the login page is displaying in the main frame,
but the other frame as it is in above. why the above frame is not
disappearing? is it means sessions are not expired in the above
frame?

View Replies !
Frame Redirection
"Web redirection : Pointing of certain domain to certain folder or elsewhere.

Bought 123.com and forward it to www.abc.com/123
Bought xyz.com and forward it to www.abc.com/xyz
This is done not from the DNS level but using scripts or frame
redirection."

I am not sure if i am posting in the right forum but this is what I want to achive. Does anyone here know anything about frame redirection?

View Replies !
Is There A Way To Redirect To A Frame?
I know that with javascript you can do this
window.parent.left.location = "http://www.site.html"

that redirects a frame named left.

I know that in php you can do this
header( 'Location: http://www.site.html' ) ;

But how can i make php load that page into the frame named left?

View Replies !
Inline Frame
Can PHP control an Inline Frame? I have an Inline frame in my page And I have this PHP code which displays links:

$q = "SELECT * FROM rent
ORDER BY Date DESC
LIMIT 100;";

$res = @mysql_query($q);

while($r = @mysql_fetch_array($res))
{
echo "<a href='/results/flats.php?P={$r['ID']}'>{$r['Title']}</a><br />";
}
I want these links to Open in the Inline Frame (not the whole page)

The Inline-frame name is 'Frame'

What should I add to my code.

View Replies !
Load Url Into A Frame
I have a database with url's in it, and I want to load one at random into a frame, when a link is clicked I want to load a new random url into the frame

I can do everything except load the new url into the frame, how would I do that?

View Replies !
Jump Frame?
I want to make a jump frame (i think is the name), when people click in an image or video, appears a frame in the top (or left), but i want to put an id for each video and image.

There are a simple and better way, but i don´t know how to do, where we can put only the link and it redirects with the frame in php (out.php) like this one (this is an adult link, not spam, only is an example what i want): Code:

View Replies !
Header Frame
i am using of header() in my script(my script name is: login.php): PHP Code:

header("location: send.php");
exit();

it works correct. but when i use of it in frame in html, header() doesn't work!!

<iframe style="WIDTH: 100%; HEIGHT: 700px" border="0" name="I1" align="center" src="http://www.domain.com/login.php" frameborder="0" scrolling="no"></iframe>

any one know why?

View Replies !
Frame Refresh
I am trying to create a tabbed page within a frame. I have no experience of frames and to be honest I have tried to keep away from them. What I have is 3 frames

__________
| | 2 |
| 1 |____|
| | 3 |
|_____|____|

Frames 2 and 3 are auto refreshing to show data to the user (hence why I am using frames). Fram 1 is the problem. It has a tabbed page, the parent page GET's the variable and then passes it to the page that is called in frame 1. e.g. PHP Code:

<frame frameborder="0" scrolling="no" noresize="noresize" src="home.php<?php if (isset($_GET['page'])) { print("?page=".$_GET['page']); } ?>" />

Work fine in IE. However, in Firefox everytime you click a tab it does something like in the screen shot.

View Replies !
Detects Frame
Anyone knows how ASP detects frame? I couldn't find any PHP solutions yet.

View Replies !
Frame Redirect
I am trying to use PHP to redirect a user to a different page. I would just use the header("Location: ..."); but I am trying to redirect only one frame of my frameset. Any hints?

View Replies !
Set The Frame At Bottom
I want to display input messages in a floating frame. I want to set scroller to the bottom initially so that the newest messages are displayed first.

View Replies !
Frame Relay
I`m creating an intranet with php and I'm willing to set it up in a computer connected to a frame relay system.

Do you think that I can access to this computer from another PC using IP address through the frame relay so it may work?

View Replies !
Reading From Frame
I'm looking for someone who can help me creating a piece of code. The code should read either the content of a frame, which contains an external website, or the URL. Then it should run a loop, to check if the URL in the frame changes, and when it does, then run a function. I have tried to make this in javascript, but i found out that javascript dosn't allow to read the URL from windows or frames which contain content from another server.

View Replies !
SESSION Within A Frame
I am working on a site that has been set up using frames, basically the top frame holds some menu items and a 'close window' button, this obviously does as the name suggests... Unfortunately a few issues.

When I log in in the bottom frame the top frame log out button doesn't display, UNTIL I refresh the whole window... Anyone know how I can make this refresh both frames when the user logs in? Code:

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved