Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About jwermont

  • Rank
  1. Thanks again. I was reading about this on other sites, and most of them did give suggestions about javascript code. A few claimed that it could be done with css only, but in the comments people were mostly saying these ideas didn't work. I don't want it that badly. Mostly I just don't want the scroll bar. I made it bigger, and that problem was solved, at least!
  2. Ingolme - Thank you, that solved it! I would like the iframe's height to conform to the content that is in it, so depending on what is loaded there, the box will have a different height. (I don't intend to load any content there that's too long.) I looked around and discovered the css overflow attribute. But I don't understand the difference between the "scroll" and "auto" values. As far as I can see, both of them result in a scrollbar when the content overflows the box. Is there no attribute that will give the element more height if needed? (The element being an iframe in this case.
  3. I created an iframe to display some text. I set the background color of the iframe to white. The iframe is inside a div element called "content." The colors work fine as long as I keep the height a certain number. (It's not clear what the exact number is, and it's probably dependent on other factors which I haven't figured out yet.) If I increase the height of the iframe beyond that, the background color of the area below the "cutoff" height takes on the same color as the enclosing div element. Here's the definition for div.content: div.content { position: absolute; top: 0;
  4. Thanks - I think the problem was caused by an error in my JS code, which caused the whole script to be thrown out. Fixed that, it works now.Joyce
  5. Hello,I have the following code inside the <head> section of my HTML file. The style definitions in these CSS files are not being recognized. Does anyone know what's wrong? <script language="Javascript" type="text/javascript">switch (navigator.appName) { case "Netscape": document.write('<link rel="stylesheet" href="stylemoz.css" type="text/css" media="all">') break case "Microsoft Internet Explorer": document.write('<link rel="stylesheet" href="styleie.css" type="text/css" media="all">') break default: break}</script> Thank you,Joyc
  6. I recently registered a domain at godaddy.com. I set up the forwarding so that when my domain name is entered at a browser, my porfolio page at sonic.net comes up. So when you type http://www.joycewermont.com in the address bar, it loads my web developer portfolio from sonic.net. (actually located here:http://home.sonic.net/~jwermont/portfolio/...ev/samples.html ). But when you look at the address bar, it says www.joycewermont.com. Hooray! The forwarding and masking works great - so far.However, if you click on one of the links in the portfolio section, the correct page will come up, but it st
  7. I have an HTML form with a checkbox type input. When I analyze the input on the server side, I notice that the checkbox element is only sent back to the server if it is checked. Otherwise, that element is not returned to the server at all.I'm using the POST method in the form, and the input element looks like this: <input type=checkbox name=gifted> If the user checks the checkbox, the "gifted" element will contain the value "on".If the user does not check it, there is no "gifted" element in the data sent to the server.Is there a way to force the POST to send a value of "0" (or somethin
  8. I didn't realize that! (Obviously. )It works fine, as far as the appearance of the page is concerned.I can change it to a <div>, though, no problem there. Can you have nested <div>'s?Thanks,Joyce
  9. Hi,I validated a CSS file and it reported a parse error in the first line, where I had the <style> tag. When I removed the tag (and just started the file with my style declarations), the file validated completely. The same thing happened when I validated the CSS file directly, and via the HTML file that links to it.Are the <style> and </style> tags no longer allowed in a CSS file?The files are here:http://home.sonic.net/~jwermont/portfolio/...ev/oldstyle.css - with <style> taghttp://home.sonic.net/~jwermont/portfolio/webdev/style.css - without tagThanks,Joyce
  10. I have a simple file that almost passes HTML 4.01 Strict validation, except for two errors: two closing paragraph tags that are flagged as 'end tag for element "P" which is not open.'The tags are like so: <p class="outer paragraph"> <p class="inner"> Stuff.... </p> <p class="inner"> More stuff.... </p> </p> It's the final </p> that's caught as an error. (I got two errors because there was another piece of the code similarly structured.)The close tags for the inner paragraphs were not flagged as erro
  11. Hello,I would like to know whether Javascript allows a variable name (either as a string, or as the actual address of the variable) to be stored in another variable, and then referenced through the second variable.Say I have a bunch of variables: var0, var1, var2, and so on. I don't know until run-time how many of these variables there will be. That number is stored in "somenum", which could be different each time the page is loaded. I want to be able to indirectly access the contents of each of these variables.Here's a piece of code that might do this, if I had an indirect-reference operator
  12. Hello,In a .CGI file, I'd like to include some Javascript code (which will bewritten to the output file sent to the client's browser), which willaccess Perl variables that were set in the same CGI file.It seems to work in some cases. For example, I have a CGI file thatincludes this code: #!/usr/local/bin/perl ... Perl code ... $loopcount = 4; ... more Perl code ... print << "ENDOFPAGE"; ... HTML code ... <script language="Javascript" type="text/javascript"> for (i=0; i<$loopcount; i++) { document.write ("Hello world<br>") } <
  13. Blue wrote: > Take the javascript out of the CSS file, and create a new .JS file, with: > > switch (navigator.appName) { > case "Microsoft Internet Explorer": > document.write(...) > > ...etc... > > > In. Upload that to your host, and use: > > <script src='http://link/myfile.js'></script>OK, I tried this - created a file called style.js, into which I put only the style definitions that are different for each browser. I took those out of my main style.css file, but kept style.css for all the other definitions.Then, in the H
  • Create New...