www.webdeveloper.com
Recent Articles
  • Finding Slow Running Queries in ASE 15
  • A More Advanced Pie Chart for Analysis Services Data
  • Adobe AIR Programming Unleashed: Working with Windows
  • Performance Testing SQL Server 2008's Change Data Capture Functionality
  • The ABC's of PHP: Introduction to PHP
  • How to Migrate from BasicFiles to SecureFiles Storage
  • Why the Twitter Haters Are Wrong
  • User Personalization with PHP: Beginning the Application
  • Whats in an Oracle Schema?
  • Lighting Enhancement in Photoshop
  •  

    Go Back   WebDeveloper.com > Client-Side Development > HTML

    HTML Discussion and technical support for building, using and deploying HTML sites.

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1  
    Old 04-06-2007, 09:34 AM
    • MaNiC MoE •'s Avatar
    • MaNiC MoE • • MaNiC MoE • is offline
    Future Freek WebDesigner!
     
    Join Date: Mar 2007
    Location: Jeddah (Currently)
    Posts: 157
    Talking What's wrong with the code??!

    If you read this, then pleeeeeeeeze replay

    Well, as you know, I haven't yet mastered HTML. So my questions may be sort of dumb. The last thing I learnt was Frames

    And so, I decided to make a small project which I nammed "Soap Super Browser". Well, I know the name is somehow dumb and meaningless, but it just came in mind lol... It ain't a browser, but just a page made up of two frames. You could see it at :

    http://www.fileupyours.com/files/817...%20Browser.zip

    I made it but it doesn't work. It's supposed to do the following :
    1) Show two frames : "Navigations.html" & "Start Page".
    2) Thr "Navigations.html" includes two pictuers : "Back" and "Forward" buttons. When you open a site in the "Start Page" ad click on the back, it should go to the previous and vice versa...

    It's easy to understand if you download it and see it...
    Plz tell me where the mistake it!

    Last edited by • MaNiC MoE •; 04-06-2007 at 09:49 AM. Reason: I misused thr HTML tag thingy
    Reply With Quote
      #2  
    Old 04-06-2007, 12:02 PM
    the tree's Avatar
    the tree the tree is offline
    Hotter than you
     
    Join Date: Jun 2004
    Location: England
    Posts: 3,023
    It'd be nice if you could tell us exactly what the inconsistencies are between how it working and how it should be.

    Also, in your markup (which is atrocious, but that's for another post) you've referenced files with all lower-case URLs when the actual file names are in title case.
    __________________
    Disclaimer. (1) Whilst I will help you sometimes, if I feel like it, and my advice in relation to your actual question will be of good quality: my posts are to be taken with a pinch of salt. I will be sarcastic, deploy irony and include obscure cultural references for my own amusement without warning.
    (2) You will gain nothing from complaining, and if you try to argue with me then you will not win. No matter how noble your battle seems, I am still better than you, don't be an hero.
    Reply With Quote
      #3  
    Old 04-06-2007, 02:17 PM
    • MaNiC MoE •'s Avatar
    • MaNiC MoE • • MaNiC MoE • is offline
    Future Freek WebDesigner!
     
    Join Date: Mar 2007
    Location: Jeddah (Currently)
    Posts: 157
    Unhappy Detailed Information

    Yeah, I maybe it ain't clear...Well here's what I mean

    It's a webpage that has two frames ("Navigation.html" & "Start Page.html").

    1. Navigation Page - This page includes two images ("Back Button.bmp" & "Forward Button.bmp").

    2. Start Page - This is just a welcome screen that appears, the user could open other websites through iy.

    HOW IT WORKS??
    That's how it works : The user opens a website throughthe "Start Page.html" frame. Then he clicks on the "Back Button.bmp" on the other frame ("Navigstion.html"). The "Start Page.html" goes back to the previous page. When he clicks on the "Forward Button.bmp" in the "Navigation.html" frame, it goes to the forward page.

    So basically, these images act like the back aand forward buttons in the browser...

    That's what I did but it didn't work. I couldn't find the mistake. Maybe you could

    ----------------------

    Here's the source code


    Navigation.html :
    HTML Code:
    <html>
    <!-- Hyper Text Markup Language --!>
    
    <head><title>Navigation Tools</title></head>
    
    <body background="background.bmp">
    <code> <b><u>Tools</b></u>
    <a href="javascript:history.back();" target="showframe"><p><img src="back button.bmp"></p></a>
    <a href="javascript:history.forward();" target="showframe"><p><img src="forward button.bmp"></p></a>
    
    </code>
    </body>
    </html>
    Start Page.html :
    HTML Code:
    <html>
    <!-- Hyper Text Markup Language --!>
    <head><title>Welcome Screen</title></head>
    
    <body background="background.jpg">
    
    <hr><br><br><br><br>
    
    <h1 style="color:yellow" align="center">Welcome to Soap Super Browser v1.0
    <br>
    This is made by • MaNiC MoE •
    <br>
    For more information, send me at
    <a href="mailto:MaNiC_MoE@HoTMaiL.cOm?subject=Contacting%20You">My E-mail</a>
    
    <br><br><br><br><hr>
    <br><br>
    
    <h2 style="color:white">Please select one of thee following site to visit:
    <a href="http://www.yahoo.com/">Yahoo!</a>
    <a href="http://www.msn.com/">MSN</a>
    
    </body>
    </html>
    Main Page
    HTML Code:
    <html>
    <!-- Hyper Text Markup Language --!>
    <head><title>Soap Super Browser v1.0</title></head>
    
    <frameset cols="110,*">
    <frame noresize="noresize" src="Navigations.html">
    <frame noresize="noresize" src="Start Page.html"
    name="showframe">
    
    </frameset>
    </html>
    thx, n' pleeeeeeeeeze replay!
    Reply With Quote
      #4  
    Old 04-06-2007, 11:12 PM
    sae sae is offline
    Registered User
     
    Join Date: Jan 2005
    Posts: 448
    I got a security warning me about the javascript forward and backwards buttons...something your users to your website will definetly be scared of...so I would suggest you think of a better way of doing the forward and backword linking. Once I accepted the activex control, it worked.
    Reply With Quote
      #5  
    Old 04-07-2007, 04:19 AM
    the tree's Avatar
    the tree the tree is offline
    Hotter than you
     
    Join Date: Jun 2004
    Location: England
    Posts: 3,023
    Quote:
    Originally Posted by • MaNiC MoE •
    <a href="javascript:history.back();" target="showframe">....
    <a href="javascript:history.forward();" target="showframe">....
    I'm not sure which browser it was to blame for that, but that's a relic of times gone by. Use this:
    HTML Code:
    <a href="#" onclick="history.back();return false">...
    <a href="#" onclick="history.forward();return false;">...
    If anything at all. What your doing isn't really what HTML is designed for.

    Quote:
    Originally Posted by • MaNiC MoE •
    ...<img src="back button.bmp">...
    ...<img src="forward button.bmp">...
    Remember, all file systems are case sensitive.

    Quote:
    Originally Posted by sae
    I got a security warning me about the javascript forward and backwards buttons
    Don't worry about this. This is something that IE does when your running anything with Javascript in locally, had it been on the web this security warning wouldn't have come up.
    __________________
    Disclaimer. (1) Whilst I will help you sometimes, if I feel like it, and my advice in relation to your actual question will be of good quality: my posts are to be taken with a pinch of salt. I will be sarcastic, deploy irony and include obscure cultural references for my own amusement without warning.
    (2) You will gain nothing from complaining, and if you try to argue with me then you will not win. No matter how noble your battle seems, I am still better than you, don't be an hero.
    Reply With Quote
      #6  
    Old 04-07-2007, 07:21 AM
    • MaNiC MoE •'s Avatar
    • MaNiC MoE • • MaNiC MoE • is offline
    Future Freek WebDesigner!
     
    Join Date: Mar 2007
    Location: Jeddah (Currently)
    Posts: 157
    Talking thx but...

    Quote:
    Originally Posted by sae
    I got a security warning me about the javascript forward and backwards buttons...something your users to your website will definetly be scared of...so I would suggest you think of a better way of doing the forward and backword linking. Once I accepted the activex control, it worked.
    First of all, I ain't making a website... lol, I'm just practicing HTML Frames. But thanks anyway . Well, if i make a forum, I'll aviod using pop-ups and use frames.
    Reply With Quote
      #7  
    Old 04-07-2007, 07:23 AM
    • MaNiC MoE •'s Avatar
    • MaNiC MoE • • MaNiC MoE • is offline
    Future Freek WebDesigner!
     
    Join Date: Mar 2007
    Location: Jeddah (Currently)
    Posts: 157
    Lightbulb I see...

    thx a lot..
    But I need to understand what the "better" way of writing the code and how it works (as you no that this langauge is new for me)

    And what do you mean by :

    Quote:
    If anything at all. What your doing isn't really what HTML is designed for.
    [b]???B]

    Last edited by • MaNiC MoE •; 04-07-2007 at 07:26 AM. Reason: Made it clearer
    Reply With Quote
      #8  
    Old 04-07-2007, 09:22 AM
    WebJoel's Avatar
    WebJoel WebJoel is offline
    Super Moderator
     
    Join Date: Dec 2005
    Location: American, living in Toronto, ON. CANADA
    Posts: 6,668
    Javascript aside, -unless you are prepared to also write an entire site in non-FRAMEs, better to avoid use of FRAMEs to begin with. Some browsers don't do FRAMEs and they are quite deprecated anyway. I think your HTML is circa version 3.1 or thereabouts. You could do an "iFRAME" which is a bit more supported, or use the <object> tag to insert one HTML page into another.

    A good source of ready-to-use document layouts can be found at www.dynamicdrive.com. They should have something similar to FRAMEs that will allow you to create a 'page that displays inside of another page'. Always seek one that is compatible with "IE, Firefox and Opera" (they have little icons next to the script's name to let you know the compatibility).
    __________________
    Help Save Ana My Portal: I Build WebPages
    Pricing? Read:http://www.webdeveloper.com/forum/pricing_faq.html
    AUP: http://www.jupitermedia.com/corporate/privacy/aup.html
    I test with: Firefox, Mozilla, Opera, Safari-on-XP, Google Chrome, SeaMonkey
    Internet.com freelancers
    Reply With Quote
      #9  
    Old 04-07-2007, 09:49 AM
    • MaNiC MoE •'s Avatar
    • MaNiC MoE • • MaNiC MoE • is offline
    Future Freek WebDesigner!
     
    Join Date: Mar 2007
    Location: Jeddah (Currently)
    Posts: 157
    Arrow humm...

    thx a lot

    Next Wednesday, I'll practice the <iframe> tag and how to use it. But it ain't always visible. In other words, if it's at the top, the visitor should scroll up to see it, unlike a normal frame.

    Plus, I tried using it : http://pic7.piczo.com/MaNiC-MoE/?g=3...7&vsrc=preview

    rhx
    Reply With Quote
      #10  
    Old 04-08-2007, 02:38 PM
    sae sae is offline
    Registered User
     
    Join Date: Jan 2005
    Posts: 448
    take a look at php include (just type "php include" into google)
    Reply With Quote
    Reply

    Bookmarks


    Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
     
    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is Off
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 04:21 PM.



    Acceptable Use Policy


    The Network for Technology Professionals

    Search:

    About Internet.com

    Legal Notices, Licensing, Permissions, Privacy Policy.
    Advertise | Newsletters | E-mail Offers

    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.