Jump to content

iyeru42

Members
  • Posts

    231
  • Joined

  • Last visited

Posts posted by iyeru42

  1. Most browsers render the tag as a blank HTML element, for example:

    <tagger>Blah</tagger>

    Says to most browsers (IE6, FF and NN all output this way):

    <!-- Nothing Here -->

    Without the comment of course. However, the HTML tag will STILL show in the source.

  2. I'm trying to get the output to be all on one line for each entry. However, currently it is coded to put each part of an entry on a new line.

    Structure Student		Dim firstName As String		Dim lastName As String		Dim phoneNum As String		Dim examAvg As Double		Dim examGrade As String	End Structure	Dim anStudent As Student	Dim studentInfo As New ArrayList	Dim index As Integer	Sub Main()		readFiles()		writeData()		Console.ReadLine()	End Sub	Sub readFiles()		Dim stuFile As New StreamReader("..\student.txt")		Dim tempArray() As String		Do Until stuFile.Peek = -1			tempArray = Split(stuFile.ReadLine, ",")			anStudent.firstName = tempArray(0)			anStudent.lastName = tempArray(1)			anStudent.phoneNum = tempArray(2)			anStudent.examAvg = Convert.ToDouble(tempArray(3))			If (anStudent.examAvg > 89.9) Then				anStudent.examGrade = "A"			ElseIf (anStudent.examAvg > 79.9 AndAlso anStudent.examAvg < 89.9) Then				anStudent.examGrade = "B"			ElseIf (anStudent.examAvg > 69.9 AndAlso anStudent.examAvg < 79.9) Then				anStudent.examGrade = "C"			ElseIf (anStudent.examAvg > 59.9 AndAlso anStudent.examAvg < 69.9) Then				anStudent.examGrade = "D"			ElseIf (anStudent.examAvg < 59.9) Then				anStudent.examGrade = "F"			End If			For index = 0 To tempArray.Length - 1				studentInfo.Add(tempArray(index))			Next			studentInfo.Add(anStudent.examGrade)		Loop	End Sub	Sub writeData()		Console.WriteLine("Student Grade Report: 11/29/2006")		Console.WriteLine("How to read this screen:")		Console.WriteLine("Name  :  Grade Average  :  Grade")		Console.WriteLine("")		For Each student As String In studentInfo			Console.WriteLine(student)		Next	End Sub

    Example of what it outputs currently:

    J.Johnson123-123491.2A

    And an example of how I WANT it to output:

    J.Johnson	   91.2	AB

    I also need the If/Else statement added for AB.

  3. Well, for starters, SQL is a type of language (Structured Query Language) that is used to query databases whereas MySQL is a database management system that allows you to create databases. You would use SQL to run queries against MySQL databases.
    Well, I always thought MySQL was different than SQL because some of the stuff in MySQL can't be used in SQL (for queries.)
  4. Module examscores	Structure Student		Dim firstName As String		Dim lastName As String		Dim phoneNum As String		Dim examAvg As String	End Structure	Dim anStudent As Student	Dim studentInfo As New ArrayList	Sub Main()		readFiles()		writeData()	End Sub	Sub readFiles()		Dim stuFile As New StreamReader("..\student.txt")		Dim tempArray() As String		Do Until stuFile.Peek = -1			tempArray = Split(stuFile.ReadLine, ",")			anStudent.firstName = tempArray(0)			anStudent.lastName = tempArray(1)			anStudent.phoneNum = tempArray(2)			anStudent.examAvg = tempArray(3)		Loop	End Sub	Sub writeData()		Console.WriteLine("Student Grade Report: 11/29/2006")		Console.WriteLine("How to read this screen:")		Console.WriteLine("Name	Grade Average	Grade")		Console.WriteLine(anStudent.firstName & " " & anStudent.lastName & "  :  " & anStudent.examAvg)	End Sub

    Dim stuFile As New StreamReader("..\student.txt") says there's a problem:Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.I found out the problem, network drive issues.

  5. I've been wondering this since I first heard about XHTML a few years back. But what exactly does XHTML allow me to do that HTML cannot? (I can already create custom tags with CSS/HTML, it's not that hard. I also can use PHP on top of that to do preg_replace for any DB information.)

  6. Text needs an invisible background (On the "Enter My Flash Website") so we don't need to hover over and click each individual character. A preloader should invoke after you enter the site. Because it takes a minute or two (believe me, I know) on T1. By the way, your e-mail is safe on flash, unless bots can now read flash files.Check Here for a preloader tutorial of mine. Apparently w3schools.com doesn't allow attachments.

  7. No, because you can't have two onloads on the same page. Unless you set a timeout in a certain manner.

    setimeout(level2)setimeout(level1)

    where the second event would appear before the first rather than in a row.

  8. Well, you could have nested forms if they have different names and there's only one submit button AND if the topmost form doesn't use a method or action.

    <form name="form1">	 <form name="blah" action="submit.php" method="post">		  (..)	 </form></form>

    JavaScript would then do the following:

    document.form1.blah.field
    Or at least it works in terms of:
    <div id="blah1">	 <div id="nested">Content</div></div>

    JavaScript would then do the following:

    document.getElementByID("blah1").getElementByID("nested").object
  9. You can also make actual TDs links themselves.

    <TD onClick="location.href='blah.html'" onMouseOver="this.style.cursor='pointer'">

    Useful for making cells linked in message board software skins.

  10. I was wondering if it was at least OK practice to use custom-made tags in HTML. For example, the below code:

    <TAGGER class="blah">Content</TAGGER>

    I've done this before, and HTML said it was all fine and dandy (without any XML.)

    bcdiv

    PHP always measures in seconds.

    $seconds = 60; // 1 minute$minutes = $seconds / 60; // Convert to Minutes$hour = $minutes / 60; // Convert to Hours.

    You can convert hours back to minutes by timsing hours by 60. For example, 120 minutes is 2 hours.

  11. You also don't have to use JavaScript to swap to hand, I-Bar, Move, Help, etc. You can do that with a CSS style (like below).

    #image {	 cursor:pointer; /* Hand */	 cursor:url(); /* Custom */}

    But that won't do your swap image thing. And Javascript for swapping an image would be:

    <img src="blah.gif" id="swap" onMouseOver="swapImage('blah2.gif');" />

    Where swapImage(); would be:

    function swapImage(newSRC) {	 document.getElementByID("swap").src = newSRC;}

×
×
  • Create New...