Comatose 290 Taboo Programmer Team Colleague

Yeah, I said cookies....

But beyond, the code that you have in both what you posted, and the site in the link..... when you click the radio button, it executes an onclick event.... right? That function is called "check", and it gets called when you click an option button. The check box's don't call any kind of function at all, but the option buttons do. Why the checkbox's retain their value, and the option buttons do not, is beyond me.... but I'll bet if you call the check function within the refresh_window function, it should work just fine.... Look carefully at this line:

<input type="radio" name="chartType" id="chartType" value="column" 	onclick="check(this.value)"  > column

onclick, it calls check(this.value), when you hit refresh, the first time, it works if you change the option button, because you clicked the option button, and it called this function... when you click it the second time, it never calls "check".... ever. Not once... it needs to. So, somewhere in the refresh_window function, you need to have it call the check function.

function refresh_window()
	{	
	var type = document.getElementById("chartType").value
        check(type);
	window.location=("radio2.php?type=" + type)
	}

Or something along those lines...

Comatose 290 Taboo Programmer Team Colleague

The answer is simple. You have the onclick events launched when you click a radio button. That function (check) sets a document item to the value of the clicked option. Then when you execute a refresh_window, that value is still valid in that page element, when you read the value in order to pass it to window.location, which is good, but when the page refreshes, so does the page element that normally gets set by the check function. So, since the check function isn't executed again, it resorts to it's default value. You can illustrate this, by going to the page, choosing an option, and click refresh, then click the same option, and click refresh again..... as long as you click an option, it remains checked on the refresh... it's only when you do a refresh, and then another refresh (because you aren't calling the check function on the second refresh) that it loses it's value. Now, I'm no programmer, but I'd suggest trying to add a call to the check function inside the refresh_window function....


As a very last resort, assuming the above doesn't solve the issue.... you could have the page write a cookie, and then read the cookie for the value that was previously set.... a tacky fix, but one that would probably work.

Comatose 290 Taboo Programmer Team Colleague

You are certain the fonts are not removed? (start, settings, control panel, appearance and themes, fonts [under XP]).

You can also try opening internet options (tools, internet options), then click on the colors button, and make sure that "use windows colors" is checked..

Comatose 290 Taboo Programmer Team Colleague

*Nods in agreement*

Comatose 290 Taboo Programmer Team Colleague

Something nuts like this?

<html>
<head>
      <script type="text/javascript">
      function startTime()
      {
	       /* Paths To The Pictures To Load */
               var picpath1 = "http://www.someurl.com/pics/djlady.jpg";
               var picpath2 = "http://www.someurl.com/pics/djdude.jpg";
               var picpath3 = "http://www.someurl.com/pics/djnewguy.jpg";


		/* Times of Triggers */
		var hour1 = 5;
		var hour2 = 8;
		var hour2 = 11;
		var min1 = 0;
		var min2 = 0;
		var min3 = 0;
		var sec1 = 0;
		var sec2 = 0;
		var sec3 = 0;
 
                var today=new Date();
                var h=today.getHours();
                var m=today.getMinutes();
                var s=today.getSeconds();

		if (h == hour1) && (m == min1) && (s == sec3) { 
			document.write('<IMG SRC="' + picpath1 + '>');
		} else if (h == hour2) && (m == min2) && (s == sec3) {
			document.write('<IMG SRC="' + picpath2 + '>');
		} else if (h == hour3) && (m == min3) && (s == sec3)  {
			document.write('<IMG SRC="' + picpath3 + '>');
		}
      }
      </script>
</head>

<BODY>
	<SCRIPT LANGUAGE="Javascript">
		startTime();
	</SCRIPT>
</body>
</html>
Comatose 290 Taboo Programmer Team Colleague

sorry about that, server upgrade, it's back.

Comatose 290 Taboo Programmer Team Colleague

You could use a combobox.... for the supplier list instead of a textbox... make it drop down only, or you could leave it so they can type in it, but do a select case, or an if statement and make sure it's a valid supplier.

Comatose 290 Taboo Programmer Team Colleague

Absolutely, if you have CGI ability, I can build a small page, and every 4 hours I can make the app on their system (guessing it's windows, right?) navigate to the small CGI, and pass it their IP. Then you could either log in and get the file, or if you set permissions, could surf to it, and get their IP. This simplifies having to sift through time stamped e-mails too. So, the IP would always be updated... let me know.

Comatose 290 Taboo Programmer Team Colleague

You're Awesome!

You should be able to add it in a tutorial...
http://www.daniweb.com/techtalkforums/newthread.php?f=40

Comatose 290 Taboo Programmer Team Colleague

Standby... Working on it.

You don't by chance have a server that hosts web sites or anything do you? (so that you could have the IP uploaded to your server instead of by e-mail?)

Comatose 290 Taboo Programmer Team Colleague

You put the CD in the drive, then you shut off the computer, and then you turn the computer on..... it should start to the CD. If not, then you might have to go into the BIOS (that silly, press del to enter setup thing) and tell it to boot to the CD-Rom drive.... then, it should (in theory) load the setup.

Comatose 290 Taboo Programmer Team Colleague

I never advise calling them.... you have tried /booting/ to the CD?

Comatose 290 Taboo Programmer Team Colleague

I'm pretty sure the first thing, is to boot to the CD, or disks. Once you boot to it (unless it's an upgrade) then it should launch setup. The setup process is pretty much self-explainatory... you might find this page useful: http://www.windowsreinstall.com/install/winme/installme/page1.htm

Comatose 290 Taboo Programmer Team Colleague

Lol, I didn't mean to sound sarcastic, and before Dani split Vb and VB.net, I had the ability to move thread.... since the split, I'm stuck in legacy VB :)

Comatose 290 Taboo Programmer Team Colleague

ReFormatting requires either a restore disk, or a windows disk.... formatting is the processes of removing everything, period. So, if you remove everything (format) and don't have the CD to put the stuff that you took off back on (windows) then you are left with a hard-drive that has nothing on it.

Comatose 290 Taboo Programmer Team Colleague

I'm not sure when this became a vb.net programming issue, so let me move this to the hardware help forum.

ps: wait, I don't moderate .net.... someone else will have to.

Comatose 290 Taboo Programmer Team Colleague

You could build a program that automatically sends you the IP as the subject and or content of the e-mail... this saves you the hassle of having to parse the header....

do you have an e-mail account on an SMTP server of some kind (not a web based)?

Comatose 290 Taboo Programmer Team Colleague

I think the option isn't keeping 1 post wonders out, but I think a time limit of inactivity of people with an extremely low post count would work. Hotmail, for example, will discontinue your account if it's not been logged into in a certain amount of time.... now while I don't agree with this behavior for people who have shown significant time investment into Daniweb, (I know that I have had to take a lengthy leave of absence, with all intention of return), but I think someone who has a post count of 1, and hasn't logged back in for 30 days.... well, I think scraping the account should be justified.

Comatose 290 Taboo Programmer Team Colleague

Not sure how to power them back on, but there a couple way to power off... you can build a program that accepts a network connection from the server, and behaves accordingly... probably not the most efficient method.... the best method, in my opinion, is the shutdown command, available with XP. Here is a link: http://www.computerhope.com/shutdown.htm.

So it would look something like: shutdown -i

you could put this in a task scheduler, or build a program that checks the time, and runs the shutdown command at the given time. As for powering on..... I'll let you know if I find anything.

Comatose 290 Taboo Programmer Team Colleague

I'm guessing you have to setup the system as if there are 2 monitors. I'm guessing that windows thinks the TV is a secondary monitor, perhaps an extention of the desktop, and you could essentially DRAG windows from your laptop monitor to your TV (monitor).

Comatose 290 Taboo Programmer Team Colleague
<?php
$dir = ".";

$dh = opendir($dir);

while (($file = readdir($dh)) !== false) {
        echo "<A HREF=\"$file\">$file</A><BR>\n";
}

closedir($dh);
?>
karthik_ppts commented: useful post +6
Comatose 290 Taboo Programmer Team Colleague

hmn, startx, perhaps..... or maybe X &

Comatose 290 Taboo Programmer Team Colleague

I prefer nvidia, and the benchmarks that I've run on comprable models of each card, seems to have nvidia out-performing ATI. Also I found that SLI seems to be more reliable, and give a better performance increase than crossfire, which is a double thumbs up to nvidia. There will always be the coke vs pepsi of the video card industry, but my money lands on nvidia.

Comatose 290 Taboo Programmer Team Colleague

where is the file saved on your hard-drive? Right click on the file, go to properties, and where does "location" say it's it?

Another alternative, is to simply unzip this attachment, and put the quickren.exe file in the c:\windows folder. Then double click on quickren.exe. Now, right click on your html file, and choose quickren. Then, make sure that the filename is java.html, and not java.html.doc, or java.html.txt

Comatose 290 Taboo Programmer Team Colleague

I bet the filename is actually named: java.html.doc, unless you have specifically gone into windows and told it to show you filename extentions. you can open up internet explorer, and go to file open, and it might open it that way, but being it's probably in word format, it might get really upset. If you want to fix it, you can go to my computer, then tools, and folder options. Then click on the view tab, and in the listbox find hidden files and folders, and put the dot in show hidden files and folders, Then hit ok. You should be able to rename the file properly now.

Comatose 290 Taboo Programmer Team Colleague

I'm a moderator, and unless it's blatently rude, or complete spam, I don't touch people's posts, unless it's to add code tags.

Comatose 290 Taboo Programmer Team Colleague
Comatose 290 Taboo Programmer Team Colleague

There seems to be a serious number of posts regarding the use of VB with an Access Database... Due To The High Volume of questions about access, I'm posting this link. Please, Go through the tutorial, and if you have questions regarding access with VB still (after reading through the tutorial) Post your question, and I will try to help you.

Link To Tutorial:
http://www.timesheetsmts.com/adotutorial.htm

jonc commented: Excellent tutorial you've linked to... +2
Comatose 290 Taboo Programmer Team Colleague

*Mumbles something about under-rated satire appreciation*

Comatose 290 Taboo Programmer Team Colleague

Remove The Len = Len(story).... see if that helps.

Comatose 290 Taboo Programmer Team Colleague

Split.

' /* Specifically For Yomet ;) */
dim str as string
dim parts() as string
dim part1 as string
dim part2 as string

str = "12345/abc123"
parts = split(str, "/")
part1 = parts(0)
part2 = parts(1)

Now the variable part1, will be 12345, and the variable part2 will be abc123.

Comatose 290 Taboo Programmer Team Colleague

Well, in windows you can make a network drive.... which is like, a folder on computer A, is actually a drive on computer B. So when you open up the networked drive, you are actually opening up the folder on the other computer.... so you store the file on the networked drive, and you map the drive for all the workstations, and make the program access the file which is stored on the networked drive.

Comatose 290 Taboo Programmer Team Colleague

Sockets.... or a file on a shared drive.

Comatose 290 Taboo Programmer Team Colleague

In the defination above, you will have a variable (ErrorStatus&), which is global to the entire project. So any form, module, control, or anything within your project will have access to the variable. It should also be noted, that the variable in your example, is of type LONG, and the reason it's a LONG is because of the &. If, however, you left off the &, and just left the variable as ErrorStatus, then the type would be defined as a variant by default... as far as I know, no other language recognizes the variant data type, but I'm not 100% on that.
Variants are crappy types of variables, and should only be used in rare instances, however, your example above is Not a variant, but a LONG....

Comatose 290 Taboo Programmer Team Colleague

I knew that, I was just checking to see if you knew :lol:

Have you tried using percentages instead of px? I don't know if it will make a difference or not, but you could try that.

Comatose 290 Taboo Programmer Team Colleague

the only thing that seems off to me (in firefox) is the bar with general info, abous us, etc.... it's a little short. I Also can't see the navigation class, which is inside of layout.css, I presume.

Comatose 290 Taboo Programmer Team Colleague

Wow.

Comatose 290 Taboo Programmer Team Colleague

Welcome To Daniweb.

Comatose 290 Taboo Programmer Team Colleague

You're Darn Tootin'!

Comatose 290 Taboo Programmer Team Colleague

you could use a picture box, and then load the picture with:

picture1.Picture = LoadPicture("c:\scans\101.tiff")

Then you have to get a little more complicated, and do something with the printer... so you can say:

const twipfactor = 1440
picture1.autoredraw = false
printer.paintpicture picture1.picture, 1400, 2040

Ok, paintpicture accepts the picture, and the upper left coordinate of where on the page to start printing.... you can also specify other options, such as hight and width of the picture, but for now, that should work.

Comatose 290 Taboo Programmer Team Colleague

In VB6? Or in VB.NET, or in another language altogether?

Comatose 290 Taboo Programmer Team Colleague

Sort of. If you are talking about a real dialog no. But you can make a form, and you can alter the properties of the form enough to make it work just like a modal dialog, and you can put whatever you want in it.

Comatose 290 Taboo Programmer Team Colleague

why not use hidefoldersxp?

Comatose 290 Taboo Programmer Team Colleague

Cool. I didn't suspect that they would, but I figured so long as they had source they would be happy..... *shrugs* no biggy.

Comatose 290 Taboo Programmer Team Colleague

Hmpf, I'll give ya 2..... happy birthday!

Comatose 290 Taboo Programmer Team Colleague

Happy BirthDay Dani's Mom!

Comatose 290 Taboo Programmer Team Colleague

Is cell 1, 1 empty?

Comatose 290 Taboo Programmer Team Colleague

or simply build a program that monitors for the existance of that window (the asking window) and then closes it. Attached is the source code (in VB6) should you want it... and you can download the program itself (setup and all) from here:
http://www.aftermath.net/~coma/daniweb/asknot.zip

enjoy.

Comatose 290 Taboo Programmer Team Colleague

Post for me a snippit of the .txt file that you generated...

Comatose 290 Taboo Programmer Team Colleague

varname=xlsheet.Cells(1, 1).value?