473,396 Members | 1,846 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

PHP and framing a site.

Hey all,

Been working on a site and it's about 98% done now :) I'm having an
issue where the site is framed with a about three <frameset>'s. Because
of how I wanted it to scroll and where the main content was.

Now my issue is this my navigation is in a frame of itself. I wanted
to use like this:

if ($page == "Home") {
echo "<img src=\"../images/nav/ocalagrooming_03-over.png\"
alt=\"Home\" width=\"148\" height=\"39\" align="top\" border=\"0\">";
} else {
echo "<a href=\"../index.php\" target=\"_top\"
onmouseover=\"imgOn('img1'); window.status='Groomed to Perfection';
return true\" onmouseout=\"imgOff('img1'); window.status=''; return
true\"><img
src=\"../images/nav/ocalagrooming_03.png\" alt=\"Home\" width=\"148\"
height=\"39\" align=\"top\" border=\"0\" name=\"img1\"><br /></a>";
}

Now on the page Home at the top it defines $page, problem is PHP
doesn't see this because it's in separate frames! Any help on how to
correct this or a right way?
TIA
--
:: TJ::

Jul 17 '05 #1
3 1627
TJ Bright wrote:
Hey all,

Been working on a site and it's about 98% done now :) I'm having an
issue where the site is framed with a about three <frameset>'s. Because
of how I wanted it to scroll and where the main content was.

Now my issue is this my navigation is in a frame of itself. I wanted
to use like this:

if ($page == "Home") {
echo "<img src=\"../images/nav/ocalagrooming_03-over.png\"
alt=\"Home\" width=\"148\" height=\"39\" align="top\" border=\"0\">";
} else {
echo "<a href=\"../index.php\" target=\"_top\"
onmouseover=\"imgOn('img1'); window.status='Groomed to Perfection';
return true\" onmouseout=\"imgOff('img1'); window.status=''; return
true\"><img
src=\"../images/nav/ocalagrooming_03.png\" alt=\"Home\" width=\"148\"
height=\"39\" align=\"top\" border=\"0\" name=\"img1\"><br /></a>";
}

Now on the page Home at the top it defines $page, problem is PHP doesn't
see this because it's in separate frames! Any help on how to correct
this or a right way?
TIA

Don't use frames...

http://www.html-faq.com/htmlframes/?FramesAreEvil
http://karlcore.com/articles/article.php?id=2
http://www.discountdomainsuk.com/art...chived/9/688/1
http://www.search-marketing.info/traps/frames.htm

for starters...

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Jul 17 '05 #2
So is $page referring to what frame the page is in?

Without destroying your model, you could define $page in the script
where this if..else takes place or maybe use sessions.

Communicating between frames is a pain and usually requires tons of
javascript. Next go around, take the high road.

-aaron

Jul 17 '05 #3
Hello Jerry,

I read every last one of those articles and was astounded as well as
upset. I wish I'd of seen or known of these issues/problems a long time
ago. I loved the frame layout becase if the cleanliness to it. I have
no problem dropping the procedure for something more stable and less
painstaking!

On 2005-05-24 23:57:11 -0400, Jerry Stuckle <js*******@attglobal.net> said:
Don't use frames...

http://www.html-faq.com/htmlframes/?FramesAreEvil
http://karlcore.com/articles/article.php?id=2
http://www.discountdomainsuk.com/art...chived/9/688/1
http://www.search-marketing.info/traps/frames.htm

for starters...

--
:: TJ::

Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Florent | last post by:
Hi, I run a few sites and I want to log in my main site database when/if there is a problem, (like a page not found or an unknown agent). But I don't want to give direct access to my database...
10
by: Thad | last post by:
Any javascript I could try on this? I've got a popup window on my site with the browser chrome removed. Another site's gone ahead and done a popup to my same .html page. The visitor to that site...
6
by: Jeremy S. | last post by:
Sorry if this is too far OT - I posted this in the IIS group and got no response - so here goes: What would be a good or recommended way to make a Web site in IIS6 inaccessible to users on the...
6
by: Brad | last post by:
I have a win2003 server workstation with multiple webs, each web has it's own ip address. In VS2005, if I select to open an existing web site, select Local IIS, the dialog correctly displays a...
0
by: HackingPSP | last post by:
I saw a lot of requests for a program like this, so I wrote it. Yeah, my site has "PSP software by Auri" but in this case it means "Pretty Sweet Programming" :) There's both a VS2005 add-in and a...
20
by: mike | last post by:
I help manage a large web site, one that has over 600 html pages... It's a reference site for ham radio folks and as an example, one page indexes over 1.8 gb of on-line PDF documents. The site...
3
by: DBLWizard | last post by:
Howdy All, Is it possible to have Visual Studio 2005 create a project form an existing hosted website? In other words I want to be able connect via ftp to my website structure and have it pull...
16
by: Ben Sehara | last post by:
Is there any way I can limit the access to my website? I have a site "A" and I want to allow access to it only from site "B" login user. If someone try to access site "A" directory, I want it...
3
by: John Kotuby | last post by:
Hi all, Within an IFRAME of a standard site constructed of mostly static HTM type pages, I am calling up one page from a large ASP.NET 3.5 site. I have precompiled the ASP.NET site and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.