Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6

Thread: Coding proplem

  1. #1
    New to the CF scene
    Join Date
    Dec 2005
    Posts
    7
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Coding proplem

    I use Expression Web as my web editing program. I use forms and I'm using this coding for my index page
    --------------------------------------------------------
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
    "http://www.w3.org/TR/html4/frameset.dtd">

    <html>

    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Untitled 1</title>
    </head>

    <frameset rows="168,*">
    <frame name="header" scrolling="auto" src="topfr.htm" noresize="noresize" title="navigate to mmsc" frameborder="0" marginheight="0" marginwidth="0" target=" main">
    <frame name="main" scrolling="auto" src="welcome.htm" noresize="noresize" title="Marine Mammal Stranding Center" frameborder="0" marginheight="0" marginwidth="0" target="_self">
    <noframes>


    <p>This page uses frames, but your browser will not support them.</p>


    </noframes>
    </frameset>

    </html>
    ------------------------------------------------------------------

    According to Expression webs, target cannot be used in a frame tag. Everything in that coding is right except for "target="main" and target="self" and I should fine another way to do the function that these two things do. I can't find a way around it. I have to use these two, tags?, for the frame to work. Also, I can't find a way to get rid of the border between the upper and lower frames.
    The address of this web page is..
    http://www.marinemammalstrandingcent.../newindex1.htm
    How can I solve this problem?

  • #2
    Senior Coder nikkiH's Avatar
    Join Date
    Jun 2005
    Location
    Near Chicago, IL, USA
    Posts
    1,973
    Thanks
    1
    Thanked 32 Times in 31 Posts
    You know all the problems with frames, right? You're going to have to code around quite a few issues if you continue to use them, but want a decent site that users can bookmark, search engines can index, and search pages don't bring them to a page that doesn't have navigation, among other things.

    That said, the target attribute of frame is documented.
    http://www.w3.org/TR/html401/present/frames.html#h-16.3

    If your editor doesn't support it, you should really get a new one.

    If this post contains any code, I may or may not have tested it. It's probably just example code, so no getting knickers in a bunch over a typo, OK? If it doesn't have basic error checking in it, such as object detection or checking if objects are null before using them, put that in there. I'm giving examples, not typing up your whole app for you. You run code at your own risk.
    Bored? Visit
    http://www.kaelisspace.com/

  • Users who have thanked nikkiH for this post:

    metmmsc (10-11-2007)

  • #3
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Quote Originally Posted by nikkiH View Post
    You know all the problems with frames, right? You're going to have to code around quite a few issues if you continue to use them, but want a decent site that users can bookmark, search engines can index, and search pages don't bring them to a page that doesn't have navigation, among other things.

    That said, the target attribute of frame is documented.
    http://www.w3.org/TR/html401/present/frames.html#h-16.3

    If your editor doesn't support it, you should really get a new one.
    It seems that his editor does support it however it has been used incorrectly. Often times when something says its invalid, its because it really is invalid. There is no target attribute associated with a frame.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • Users who have thanked _Aerospace_Eng_ for this post:

    metmmsc (10-11-2007)

  • #4
    Senior Coder BarrMan's Avatar
    Join Date
    Feb 2005
    Location
    Israel.
    Posts
    1,644
    Thanks
    69
    Thanked 83 Times in 82 Posts
    Why do you have a space in the target attribute?
    Code:
    <frame name="header" scrolling="auto" src="topfr.htm" noresize="noresize" title="navigate to mmsc" frameborder="0" marginheight="0" marginwidth="0" target=" main">
    Shouldn't it be:
    Code:
    <frame name="header" scrolling="auto" src="topfr.htm" noresize="noresize" title="navigate to mmsc" frameborder="0" marginheight="0" marginwidth="0" target="main">
    ?

  • Users who have thanked BarrMan for this post:

    metmmsc (10-11-2007)

  • #5
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Quote Originally Posted by BarrMan View Post
    Why do you have a space in the target attribute?
    Code:
    <frame name="header" scrolling="auto" src="topfr.htm" noresize="noresize" title="navigate to mmsc" frameborder="0" marginheight="0" marginwidth="0" target=" main">
    Shouldn't it be:
    Code:
    <frame name="header" scrolling="auto" src="topfr.htm" noresize="noresize" title="navigate to mmsc" frameborder="0" marginheight="0" marginwidth="0" target="main">
    ?
    No. The target attribute is still INVALID inside of a frame. It needs to be on the link that is to open in the frame. The documentation provided by nikkiH shows this.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • Users who have thanked _Aerospace_Eng_ for this post:

    metmmsc (10-11-2007)

  • #6
    Senior Coder nikkiH's Avatar
    Join Date
    Jun 2005
    Location
    Near Chicago, IL, USA
    Posts
    1,973
    Thanks
    1
    Thanked 32 Times in 31 Posts
    Yeah I had reading comprehension issues myself this morning.
    Mondays...

    If this post contains any code, I may or may not have tested it. It's probably just example code, so no getting knickers in a bunch over a typo, OK? If it doesn't have basic error checking in it, such as object detection or checking if objects are null before using them, put that in there. I'm giving examples, not typing up your whole app for you. You run code at your own risk.
    Bored? Visit
    http://www.kaelisspace.com/

  • Users who have thanked nikkiH for this post:

    metmmsc (10-11-2007)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •