Jump to content

Reg Edit

Members
  • Posts

    411
  • Joined

  • Last visited

Posts posted by Reg Edit

  1. Hello people! Just thought I'd introduce myself, after being here for a bit in 2006, and back again now for the past month or so. I work as an independent consultant in the UK, developing web and Windows software for clients using mainly MS technologies. Whenever I get the chance I like to lurk in the W3Schools forums to pick up new tricks and to help out where I can. Sadly there can be long periods when I'm not around due to work pressures, but I always enjoy returning here!

  2. What the tutorial is saying is that the html document is either one with a frameset, or one with a body - not both. If you use frames, put the body in each of the frame source documents, not the frameset document.

  3. As things stand, not all your divs are controlled with css, so it probably just happened to line up OK before. I think you are going to need to look more closely at css for divs, such as positioning: http://www.w3schools.com/css/css_positioning.aspI suggest you take a copy of your page and rip out everything except your basic left, centre, right divs, till it will line up correctly using the various aspects of css that you can read about at the above link or elsewhere on the web. Then gradually re-add your content so you can see what changes are needed. Hope this helps.

  4. theres that line on the side and I don't want it there.
    Oh, I see what you mean.It seems to be because the image is 705px wide but the wrapper div is only 704, leaving 1px of background sticking out on the right. The change below fixes it for me in IE7 and FF:
    #wrapper {	width:/*704*/705px;	margin:0;	margin:auto;	background-color:white;}

  5. The prob is that i am unable to display ....System.out.println(" " + ref);....
    This actually looks more like a Java problem, so you may not get an answer here in the SQL forum. Suggest you post your problem to a Java forum, including what "unable to display" means. For instance do you see a blank line, or does an error occur, etc. Hope this helps.
  6. Strange, yes. I tried with IE7 and FF and it seems to be not just inputs but a more general problem of how an outer div is rendered when an inner object is wider than it. Using the example below, I found that both IE7 and FF rendered the inner div to its full width; however, IE7 also extended the outer div's background colour, whereas FF did not.

    <html><head><title>Input Width</title></head><body><div style="height:200px; width:100px; background-color:#8cc; color:#000;">	<div style="width:800px">1234567890 2234567890 3234567890 4234567890 5234567890 6234567890	</div></div></body></html>

  7. I have it set to repeat-y; but on the right side of the page it appears.
    It seems OK to me! In IE7 and FF, I see a 1px line repeated vertically to make a thick black footer at the bottom.What browser are you using?
  8. to add scroll bars to every page regardless of length
    From a user's perspective, this does not seem an attractive idea. What is the real requirement? I assume it is a workaround for some layout problem?
  9. What browser are you using? I got pretty strange and wildly different layouts between FF and IE7. Stuff shooting off to the right, footer at the top. So couldn't really be sure what it was meant to be like.Coupla points to try and help along the way: (a) Add missing number to padding-right: px; in div#body(:) Try height:auto in div#text.

  10. I think this is what you're looking for:

    select c.cid as cid, c.title, u.uid as uid, u.fname, u.lname, s.total_score, s.completed from (users u left outer join content_session s on u.uid=s.uid) left join content c  on  c.cid=s.cid where u.active=1

  11. Hmm... not really an HTML question, but LOTS of basic computing questions... where to start with an answer...? :) I think you will just need to keep looking things up via Google etc, and find out what you can, bit by bit. Don't expect immediate enlightenment as there are lots of pieces that make up the jigsaw puzzle.The computer uses ones and zeros as you say, and there are different coding rules that people have defined to say what a particular collection of ones and zeros mean. The 7-bit ASCII you quoted is one such set of rules. For instance, the 7 bits 0010000 can represent a binary number (32), but can alternatively represent a character such as a space, if that is the scheme being used. So for the computer to read any given file of data, the computer has to be told one way or another what the data is, so as to know what rules to apply when interpreting those ones and zeros.

  12. Well, in your body style you have margin: 5, so that is making your space.You can set the left, top, right, bottom margin separately - margin is an abbreviation for setting them all to the same value. For instance:

    body {	background-image: url('http://www.tsrealms.com/forum/templates/AcidTech/images/body.gif');/*	margin: 5;  */		margin-left 5;  	margin-right: 5;	margin-bottom: 5;	margin-top: 0;	color: #D0D0D0;	font-family: serif, times;}

  13. If you want to include a variable value in the HTML, you can use document.write() to output that HTML instead. So I would think your param can be set as follows:

    <script language="javascript">	document.write('<param name="abc" value="filename.swf?id=' + X + '">');</script>

  14. Okie thanhk you! But my problem is : With each level i want scan how many logout in that space time!
    Well, still assuming this is MS SQL Server or Access, and depending on what you want to do with the result, you can say something like (Access syntax this time):
    SELECT  [Level], COUNT(*) AS NumUsersAtLevel FROM User WHERE ([Level] BETWEEN 1 AND n) AND (Lastlogout BETWEEN #18 Aug 2006# AND #20 Aug 2006#)GROUP BY [Level]ORDER BY [Level]

  15. Sir plz tell me "how to delete duplicate row from a table". thanks.bye.....
    Hmmm... there's no general answer to that I'm afraid! Can you be more specific? If you can describe your data, and state the rules that identify the row to be deleted, someone can probably help with the SQL statement. Also is this MS SQL Server, MySQL, MS Access or what?
  16. The images are 200*40px. Any ideas to how i could solve this?
    Using your original code, adding width and height to this style solves it:
    .menulvl_0 {	height: 40px;	width: 200px;	border: 0px;	padding: 0px;	margin: 0px;	display: block;	text-decoration: none;}

  17. tried a choice between 2 definitions of the parent element which does not work since a type definition must be unique. :) any ideas.. anyone?my thx in advance!
    Can you post your XML? Your example fragment of <parent> etc is a bit abstract which makes it a tad difficult to tell exactly what you want to do.Below is something which may help anyway. It's an example of a schema that permits a choice within a complex type, where one of the choices is a plain string. But you do have to give the XML elements different names. Schema fragment:
      <xs:complexType name="Person">	<xs:sequence maxOccurs='unbounded'>		<xs:choice>			<xs:element name="Name" type='xs:string'/>			<xs:element name="FormattedName" type="FormattedName" />		</xs:choice>	</xs:sequence>  </xs:complexType>	<xs:complexType name='FormattedName'>		<xs:sequence>			<xs:element name="FirstName" type='xs:string'/>			<xs:element name="LastName" type='xs:string'/>		</xs:sequence>	</xs:complexType>

    And the XML fragment to go with it:

      <Name>Waldo Pepper</Name>  <Name>Red Pepper</Name>  <FormattedName>	<FirstName>Green</FirstName>	<LastName>Pepper</LastName>  </FormattedName>

    Hope this helps but if not, as I said, post your XML and it may shed more light on what's needed.

×
×
  • Create New...