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 8 of 8
  1. #1
    New Coder
    Join Date
    Sep 2002
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Applet Tag in HTML

    Hello: I have used this forum before and you have been very helpfull. I need some help. I have a web page with applets. When I bring the page on the browser I see lot of space in the top. The applets and other stuff shows O.K but the space on the top of the browser about 15 lines is causing a problem. I have the html as an attachment.

    On another note, How can I a make the applet clickable. When the user click on the applet I want to link to another address?

    Can any one see what the problem is and help me. Thanks for your help in advance.
    Attached Files Attached Files
    Last edited by javaspace; 09-13-2002 at 07:03 PM.

  • #2
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts
    Try deleting the first

    <table border="15" cellpadding="0" cellspacing="0" align="center">
    <tr>

  • #3
    New Coder
    Join Date
    Sep 2002
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts
    NO it did not help. I still have 15 lines of blank and then the applets starts.

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Posts
    1,404
    Thanks
    2
    Thanked 32 Times in 32 Posts
    You can't nest a table in a <tr>; rows are designed to hold <td>s, which hold the content - including any nested tables:

    <body marginwidth="0" marginheight="0" leftmargin="0" topmargin="0">


    <table border="15" cellpadding="0" cellspacing="0" align="center">
    <tr><td>

    <table border="15" cellpadding="0" cellspacing="0" align="center">

  • #5
    New Coder
    Join Date
    Sep 2002
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I tried that, I still have 10 to 15 lines blank on the top. I don't understand why this is happening. I have no BR tags or anything. I don't get it?.

  • #6
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    So what does your page look like now? We can't do much by just guessing.

  • #7
    New Coder
    Join Date
    Sep 2002
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I found the problem. The applet was generated by an ASP page. I had a comment line with < BR > tag. The < BR > was outside the comment causing the blank lines.

    Thanks for your help

  • #8
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    A good trick to use when hunting down problems in pages using server side code (ASP, PHP, PERL ...) is to use the view source function in the browser and then select the whole the code and copy and paste it into a text editor (or just use notepad if you did this from IE).

    That way you can examine the actual output page and see if it's exactly what you want. You can also pass it to an html validator and verify that you generated proper html.


  •  

    Posting Permissions

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