Tyrone.Wilson 0 Light Poster

The problems are not non-sensical, but perhaps a bit cryptical :) Chrome apparently is very good in trying to figure out what you meant.
For that error you mentioned, if you fix the first error (line 7) it will go away. If you check "Clean up Markup with HTML-Tidy", you'll get some help fixing everything.

OK, so I have fixed the errors which were essentially the fact that I used the same id tags with the same reference more than one instead of having it as a CSS class

the problem still exists even though the HTML is 100%. so I guess next step is - here is my (butchered no doubt) css

body
{
background-color:#FFFFFF;
background-position:center top;
text-align:center;
}
input
{
margin:5px;
}
h1
{
color:#000066;
text-align:center;
font-size:25px;
font-style:bold;
font-family:"Arial"
}
.shadow
{
box-shadow: rgba(0,0,12,0.25)9px 9px 8px;width:900;
}
.instruct
{
color:red;
font-style:bold;
}
.outline
{
border-style:double;
border-width:2px;
border-collapse:collapse;
}
h2
{
color:#000066;
text-align:center;
font-size:20px;
font-family:"Arial";	
}
div
{
text-align:left;
font-size:20px;
}

div.newsFeed
{
height:400px;
width:250px;

}
div.nextWeek
{
height:400px;
width:250px;
}

p.list_element
{
text-align:left;
font-family:"Arial";
font-size:15px;
margin-top:15px;
margin-left:10px;
margin-right:10px;
padding:4px;
border-radius:10px;
background-color:rgba(0,120,255,0.2);
}

p
{
text-align:center;
font-family:"Arial";
font-size:20px;
border-radius:10px;
}
tr 
{
margin:auto;
font-family:"Arial";
vertical-align:top;
}
td
{
background-color:rgba(0,102,255,0.2);
border-radius:15px;
}
table,th
{
margin:auto;
font-family:"Arial";
border-radius:10px;
}

img
{
margin:10px;
}

.clear
{
background-color:#FFFFFF;
}

.claim
{
color:grey
}
#banner
{
color:aqua
}

#backteal
{
background-color:rgba(0,128,128,0.8);
box-shadow: rgba(0,0,12,0.25)9px 9px 8px;
color:#FFFFFF;
}

.shadow_img{box-shadow: rgba(0,0,12,0.25)9px 9px 8px;}

#w_250{
width:250;}

#spaceAge{
padding-left:20px;
font-family:"courier";
font-size:40px;
color:#FFFFFF;
background-color:rgba(0,128,128,0.8);
border-radius:10px;
}
Tyrone.Wilson 0 Light Poster

Check the code with the w3c validator. There are quite some problems with it.

Well, I've now tried that and the problems seem nonsensical to me.
For example the first error says:

</head>

The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem.

however I can't seem to see any additional unclosed tags:

<head>

<title>ISO Manager Home</title>	

<link rel="stylesheet" href="Style1.css" type="text/css" media="all"/>

</head>

why does it work perfectly in Chrome but not in IE? I am really confused about this. if there were serious problems with my syntax I would have expected that Chrome would also act strange. perhaps I am mixing versions of CSS and HTML since I have learned what I know from a few online tuts, blogs and sites such as this one??

Tyrone.Wilson 0 Light Poster

Well, in any case, we can't just guess problems.
You can post the code here, or a link, but both would be best.

Well here is the code for the document. like I say, everything works in Chrome and FF but the CSS doesn't load in IE

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<title>ISO Manager Home</title>	

<link rel="stylesheet" href="Style1.css" type="text/css" media="all"/>

</head>
<body>
<!--Custom Content Here-->

<div id="spaceAge" ><b>CMS</b> project.

<img id="shadow_img" src="united_logo.jpg" align="right"/>

<br>
<br>
<br>
</div>
<p>

<!--Custom Content Here-->

<!--This is the top of the table-->
<br>
<!--Outter table start-->
<table>
	<!--This table will have only one row-->
	<tr>
	<!--Column 1-->
	<td style="width:200px;">

		<table>
		<tr>
			<td><img id="shadow_img" src="myPhoto.jpg" align="left"/>
			</td>
		</tr>
		<tr>
			<td><a href="Tyrone_Profile.html">Profile</a>
			</td>
		</tr>
		<tr>
			<td><a href="Tyrone_Projects.html">Projects</a>
			</td>
		</tr>
		</table>
	</td>
	<!--Column 2-->
	<td style="width:600px;">
	</td>
	<!--Column 3-->
	<td>
		<table>
		<tr>
			<!--News feed header-->
			<td><div>Your news feed</div></td>
		</tr>
		<tr>
			<!--news feed body-->
			<td id="clear">
			<div class="newsFeed">
			<!--first item-->
			<p class="list_element"> You have been asked by 

			<a href="admin profile.html">Mr Admin</a> to read the <a href="ISO_help.html"> help<a> section.
			</p>
			<!--second item-->
			<p class="list_element"> <a href="BigBoss.html">Big Boss</a> requested that you review the 
			<a href="JobNumber32.html">nice project</a> meeting <a href="example_minutes.html">minutes</a></p></div></td>
		</tr>
		<tr>
			<!--The heads up header-->
			<td style="width:250px"><div>Coming up this week</div></td>
		</tr>
		<tr>
			<td id="clear">
			<div class="nextWeek">
			<br>
			<p class="list_element" style="display:none">Casting level 4 slab on <a href="C2088.html">OVD 919</a></p>
			<p class="list_element"> <a href="C2088/drawings.html">Generator Tender Drawings</a>, Check requested by 
			<a href="MusaS.html">Musa Solomon</a>
			</p>
			</div>
			</td>
		</tr>
		</table>
	</tr></td>
	<!--This is the end of the …
Tyrone.Wilson 0 Light Poster

Well, start with posting a link to that page.

Hi there, the page is just a static html page hosted on a network drive which I have set up as a Demo before spending time doing the backend. So it is not a bonfide site. I am using the page for presentation purposes to communicate the vision of what would essentially be an intranet site. I can send the files if need be. I have tried messing around with the <!DOCTYPE> declaration but that has not worked either.

Tyrone.Wilson 0 Light Poster

I am very new to CSS and HTML. I have built a static demo version of a site that I want to build. my site looks great in Chrome, not as great in firefox and absolutely terrible in IE8. I thought I was using standard CSS styling but it seems that IE is not applying any of my CSS. I have tried searching for an answer on google but I think my problem is probably a simpler fundamental flaw than the discussions that seem to be online. Anyone willing help a noob out?

Thanks

Tyrone.Wilson 0 Light Poster

Thanks NormR1. I did try this as the first port of call but it throws an exception stating that the application is not a valid Win32 application. like I said before, I know it is not Java programming but who better to ask how to make a Java Program do something than Java Programmers who might have had occasion to do so before.

if I find the solution I will post it here.

Tyrone.Wilson 0 Light Poster

Thank you, I am looking into that now :) was just venting about some of the responses one tends to get in anti-java forums. no offence intended. your help is appreciated!

Tyrone.Wilson 0 Light Poster

So I take it from your response that there is no standard way that Java programmers get around this? I will try a MS forum but usually you get stupid answers like "That's why I use C#" which is not helpful.

Thanks anyway.

Tyrone.Wilson 0 Light Poster

I have a program in which I have used a .myFileType file. obviously windows does not recognise the file type and so I have to browse for the file in the application.

how do I make it so that windows knows .myFiletype's native application and launch the application on double clicking the file?

Any direction or help would be appreciated!

Thanks

Tyrone.Wilson 0 Light Poster

I want to develop a landscape design layout tool. it would be a CAD program of sorts but would need to look more aesthetic. at the end of it, it would need to look almost hand drawn. trouble is I am a bit of a noob having only developed a handful of GUIs in my life.

anyone got any tips on what to look at in terms of vector graphics, images,etc.

do I go for images for the symbols or draw from scratch like with vector graphics?

I would also want to add functionality similar to a "leader" in CAD so that the symbols could be labeled.

I would also want to add a costing section to draw up a bill of quantities and cost etc.

ANY tips for the noob to give early direction would be appreciated.

Thanks people

Tyrone.Wilson 0 Light Poster

Thanks.... I actually managed to get it sorted by opening in notpad and moving the tags "//GEN - END methodName" around and that fixed the problem. thanks for the help though, much appreciated.

Tyrone.Wilson 0 Light Poster

I have a DataManager Class. this is how I do it (maybe there is a better way I don't know)

In my DataManager Class I have these methods (among others)

public ArrayList readAsStrings(File filename) throws FileNotFoundException, IOException {
        /**returns all of the data in a file as Strings given the File object*/
        ArrayList data = new ArrayList();
        BufferedReader reader = new BufferedReader(new FileReader(filename));
        String nextLine = reader.readLine();
        if (filename.exists() && filename.canRead()) {
            while (nextLine != null) {
                data.add(nextLine);
                nextLine = reader.readLine();
            }
            reader.close();//just a good idea aparently
        }
        return data;
    }


public ArrayList extractFromCommas(String dataLine) {
        //Gives back the data that is found between commas in a String
        ArrayList data = new ArrayList();
        String theString = "";
        for (int i = 0; i < dataLine.length(); i++) {//go down the whole string
            if (dataLine.charAt(i) == ',') {
                if (i == 0) {
                //do nothing
                } else {
                    data.add(theString);//this means that the next comma has been reached
                    theString = "";//reset theString Variable
                }
            } else {
                theString = theString + dataLine.charAt(i);//otherwise, just keep piling the chars onto the cumulative string
            }
        }
        if (!theString.equalsIgnoreCase(""))//only if the last position is not occupied with nothing then add the end on
        {
            data.add(theString);
        }
        return data;
    }

public ArrayList findString(ArrayList data, String searchString) {
        //Finds a string in an arraylist of strings
        ArrayList foundStrings = new ArrayList();

        for (int i = 0; i < data.size(); i++) {
            if (data.get(i).toString().contains(searchString)) {
                foundStrings.add(data.get(i).toString());
            }
        }
        return foundStrings;//returns null if the string is not found.
    }
Tyrone.Wilson 0 Light Poster

nevermind. thanks.

Tyrone.Wilson 0 Light Poster

what is the weird error?

Tyrone.Wilson 0 Light Poster

The protection on code generated in NetBeans is great. untill it gets it wrong and you have an arbitrary line protected and it totally stuffs up your code and you can not longer work on your project!!

Anyone know how to temporarily remove the protection, edit what you want and then put it on again?

I am so frustrated right now.

private void HVAC_NoBOQFinItemStateChanged(java.awt.event.ItemEvent evt) {                                               
        try {
            if (HVAC_NoBOQFin.isSelected()) {
                HVAC_NoBOQ.setSelected(false);
            }
//this block is Guarded!!!! arrgh.
      refreshHVAC();                                         
        } catch (FileNotFoundException ex) {
            Logger.getLogger(FeeCalcView.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IOException ex) {
            Logger.getLogger(FeeCalcView.class.getName()).log(Level.SEVERE, null, ex);
        }
}
Tyrone.Wilson 0 Light Poster

hmmm.... just noticed that it is not your post at the top Rogenie, perhaps you should start your own thread. but my answer above makes some sense in any case.

Tyrone.Wilson 0 Light Poster

Agreed. the problem seems to be that you are going into the loop with no chance of coming out. I see in the code you gave in the first post you only read once with:

strComAmount = Me.txtCommission.Text
decComAmount = Convert.ToDecimal(strComAmount)

after this you go into the loop. thus I don't see what you are trying to average.

The message box would work well but perhaps with an add amount button to add the number and a finish button to finish reading new numbers.

Otherwise if you really wanted to do the textbox idea then perhaps you should do something like the following (in psudo code)

1.user puts in data

2. if the user hits enter key (i.e. in the textbox_enter routine) the following is done:
-convert the entry to your decimal
-add the entry to an arraylist
-incriment the number of entries
-clear the text box
-re-select the textbox 'This is cos it will loose focus when the enter key is pressed
when the user is done then they can press a "Calculate" button. ' this way you will know when to get ready for another entry and when to calculate.

when you hit "Calculate" you will then do something like:

dim thetotal as decimal

for i=0 to myArraylist.count-1
thetotal = theTotal+myArraylist.item(i).todecimal
next

average = thetotal/(myArraylist.count-1)

again this is probably not that syntactically correct as I am writing this on the fly but the …

Tyrone.Wilson 0 Light Poster

is there any way of having a portable database packaged with a project and if so how would I refer to it without having to mention the specific directory which would not be true for someone elses computer?

Do you think that I would have to set up an installation file that sets up the directory and everything when the program is installed.

Is it perhaps easier to just make the person browse for the actual database file with a browser and simply get it set up that way? this would also help if I wanted the program to be installed on many computers but just one database being used

Any ideas? I am not looking for code here but rather some broad stroke advice to point me in the direction of best practice.

Tyrone.Wilson 0 Light Poster

how are you handling your click event? I would put a clause in there to say that if it is a user generated click then check the box again esentially undoing their uncheck immediately. perhaps someone has a more elegant way of doing it.

so:

Private Sub CheckBox1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles CheckBox1.Click
If CheckBox1.Checked = False Then
CheckBox1.Checked = True
End If
End Sub

This might help but it will also depend on whatever else you are doing in your event handlers

hope this helps. let me know how it goes

Tyrone.Wilson 0 Light Poster

I think hisheeraz has hit the button. the problem is that you have a test condition which remains true forever and thus sends your program into an infinite loop. this would explain the "crash" as a rule you should always ensure that your test condition has a modification statement within the loop and will have a definite end. otherwise another way to do it is to add a safety net like so:

'Initiate the loop
While decComAmount > 0 And decComAmount < 100(for example)
Me.lstTally.Items.Add(decComAmount)
intNumberOfEntry += 1
decTotalOfAllCom += decComAmount
End While

Tyrone.Wilson 0 Light Poster

k well I am guessing that I am off the wall in this regard and mark it down as impossible/ uninteresting and conjure up something else.

Tyrone.Wilson 0 Light Poster

Hi,

I have read a similar thread where it was indeed possible to embed an excel spreadsheet into a vb.net application. I am wondering if this is possible with vb express 2008. the best that I have been able to find is

toolbar>context menu>choose items>COM>FlexiGrid version 6.0.

I would like to have a fully fledged excel spreadsheet control for ease of use for the user. is this possible? also is it possible to have other arbitrary spreadsheets working in the background so that I could harness their power without having to write my own calculation routines? would I be able to add such spreadsheets to the my.resources sort of scene?

Thanks to anyone who is able to help.

Tyrone.Wilson 0 Light Poster

Well thanks anyway guys. I appreciate the answers even if I didn't post it in the right forum.

cheers

Tyrone.Wilson 0 Light Poster

Hi people,

A really noob question but I thought that I should find the answer to it in any case.

There was always much noise made about JAVA's inherent speed and some of that speed being attributed to the inbuilt so called garbage collection. Having learned first to program in JAVA at uni I am now developing a program in VB 6. I saw somewhere in my wonderings through the web (might have even been in this forum) that you should set your objects to nothing when you are done "otherwise you will really hate yourself".

This is like wiping the counter after making a sandwich I guess. I would like to know if that is really true of VB and in what circumstances it would apply.

Should it only be objects as a sort of de-constructor or should one for instance have each sub setting all the local variables it created to "nothing" before the sub/function ends?

Thanks to anyone who doesn't mind pointing me in the right direction with regard to this.

Cheers.

Tyrone.Wilson 0 Light Poster

Awesome tut. I had no idea how to do all of this stuff. I found a bit of a gem with this one. One thing I did notice though was that all of the microsoft links didn't work (content not found)

Thanks for the lesson.