By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,729 Members | 1,363 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,729 IT Pros & Developers. It's quick & easy.

PHP and framing a site.

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.