Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by bct10

  1. bct10

    obj event for loop?

    Hi tsuji here is all of the code Set netcomm1 = CreateObject ("NETCommOCX.NETComm") output="fr0;" rem netcomm1.portopen = false netcomm1.Settings = "9600,N,8,1" netcomm1.commPort= 4 netcomm1.Handshaking= 0 netcomm1.InBufferSize = 1024 netcomm1.InputLen = 0 netcomm1.InputMode= 0...
  2. bct10

    obj event for loop?

    hi all how would i do a for loop for obj event in vbs that dold be the same as this //--> </script> <script for="NETComm1" event="OnComm()" language="JavaScript"> <!-- if(NETComm1.InBufferCount == 0) { // } else { alert(NETComm1.InBufferCount)...
  3. bct10

    convert java to vbscript?

    Hi all i habe this java that run in a web browser id like to makek it a standalone vbscript Use functions ToVariant() and FromVariant(); others serve as helpers only. */ function ToVariant (x) { if (x == null); else if (typeof(x) == "object") { if (x.getDate) { //...
  4. bct10

    usb drive ?

    hi all I would like to known i have a usb key drive after i use the safe to remove is there a command that would scan for drive an remount the usb drive if it has not been unpluged thanks beau
  5. bct10

    is there a way to see if a service is stopped or started

    hi mrmovie what would the line Set COmputer = what should be after the = the pc name or services name thanks for any help
  6. bct10

    is there a way to see if a service is stopped or started

    is there a way in a script to see if a service is ruuning or stopped for example i like to know if alert isrunning or stopped thaks for any help
  7. bct10

    view availabe wireless networks?

    Hi all i need some help I like to know when you click view availabe wireless networks does that call a dll or exe or is there a script that can do this thanks for sny help
  8. bct10

    form change color of text if null?

    thaks spewn one ? about a if you see some writen like this if (n=='Other') { url1="http://iwin.nws.noaa.gov/iwin/textversion/state/"; url2="/.html"; } were it all spaced out an some like this if (n=='Watches') {url2="/watches.html";} do they all work the same no matter how you wrie them...
  9. bct10

    form change color of text if null?

    Hi spewn here is the the code I know how the set url2 can you show me how to set url1 http://iwin.nws.noaa.gov/iwin/textversion/state\ so that url wil only be used win the other button is pushed function buttonX(n){ url1="http://iwin.nws.noaa.gov/iwin/" if (n=='Warnings'||'Advisories')...
  10. bct10

    form change color of text if null?

    Hi spewn I been work with the script i added a button but when the buton is clicked i need to change url1 an url2 how can i do this can i do it in function buttonX(n) or do i need to make another function
  11. bct10

    form change color of text if null?

    hi spewn is this the way you wood write it if you went it to change if sate was naul as it loded function statecheck(){ state=""; if (state== "") { document.getElementById('textX').style.color="red"; return; } with (document.weatherform.stateselter) { for (var i=0;i<options.length;i++) {...
  12. bct10

    form change color of text if null?

    Hi spewn I tryed your code wood there be a way to change your code so it wood turn red if null when the page loaded insted of wating for the user to click a button thanks for any ideas
  13. bct10

    form change color of text if null?

    hi tsuji the error is line 70 char 1 object expected what should i change
  14. bct10

    form change color of text if null?

    Hi tsuji i get a error with this code an it turns red null or not what did i do wrong also how wood i add this to the statecheck()). here is the code <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>myweather form</title> <style type="text/css">...
  15. bct10

    form change color of text if null?

    Hi all I have a from I like to change the color of the text at the top of form if a null is entered here is the code the * is next to text i went red in null <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>myweather form</title> <script...

Part and Inventory Search

Back
Top