Jump to content

crazyswede

Members
  • Posts

    57
  • Joined

  • Last visited

Posts posted by crazyswede

  1. it irritates me that I can't copy and paste my question into here!!!

     

    writing full screen edit. Program reads file (16 records x 20 fields each = hundreds of variables)
    and displays all on screen. works great! All this data & edits are stored in [global] arrays. I'm using the <input type="text" > command to do this. When I click 'submit' button, it reads data from arrays ands writes it back to file.

    .

    Problem is, it tries to pass all this data thru URL window, and overloads. I don't need anything passed, it's all in arrays. Am I using wrong command? Please help me.

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

  2. i'm running a script, i use response.redirect to run another script. Works great! but it runs in the same window. How do i open it in a new window? using href, i would specify "target=_blank." But what about response.redirect ?

  3. Readrecnum=150; //kidswhile(1) //------------------- fill nodes{ //567if( rs("id").Value == Readrecnum ) { //21ReadField( clientfield, rs );var santanode = new Object(); santanode.objectnumber= objectnumber; santanode.santaname = varsanta; santanode.santaclient = varclient; santanode.numgifts = new Number(0); //

  4. Maybe I’m reading these instructions wrong. Below is the way I’ve set up my directory structure.

    c:InetpubwwwrootMyWebtest1.asp

    ...or would it be

    c:InetpubMyWebtest1.asp

  5. OK, MY SCREWUP! Wwwroot does exist. by the way, I am using classic ASP, if that makes any difference.

    ------------------------------------

    Instructions:

    After you have installed IIS or PWS follow these steps:

    1. Look for a new folder called Inetpub on your hard drive

    …………….. Ok, found it ……………….

    2. Open the Inetpub folder, and find a folder named wwwroot

    3. …………….. Ok, found it ……………….

    4.

    5. Create a new folder, like "MyWeb", under wwwroot

    6. …………….. Ok, did it ……………….

    7. Write some ASP code and save the file as "test1.asp" in the new folder

    8. …………….. Ok, did it ……………….

    9. Make sure your Web server is running (see below)

    10. …………….. ok it’s running ……………….

    11. Open your browser and type "http://localhost/MyWeb/test1.asp", to view your first web page

    12. ………… ….. my browser is google chrome

    13. ………… I get ”page not found yahoo error” I don’t quite understand; wouldn’t the address be

    14. C:InetpubwwwrootMyWebtest1.asp (which i tried and doesn't work)

  6. Ok, from the start menu, I go to control panel > programs > turn windows features on/off – and there they are. There’re 2 of them: 1) internet info systems, and 2) internet info systems hosting web core.

    #2) internet info systems hosting web core, is checked.

    #1) internet info systems, is not an actual check – it’s either a solid-colored box, or it’s an empty box. I make it a solid-colored box. I ‘expand’ it, and all the subs are colored, too.

     

    I then click ok. The machine works away for a while. When it finishes, just for good measure I reboot.

    But the damn thing still doesn’t work. I go to PROGRAMS AND FEATURES. I just installed IIS so it should be listed there, but it’s not.

    Now the instructions say: “After you have installed IIS, make sure you install all patches for bugs and security problems. (Run Windows Update). ” How do I Run Windows Update?

    Here’s something else -

    Test Your Web

    After you have installed IIS or PWS follow these steps:

    1. Look for a new folder called Inetpub on your hard drive

    …………….. Ok, found it ……………….

    2. Open the Inetpub folder, and find a folder named wwwroot

    3.

    4. …………….. wwwroot doesn’t exist ……………..

    5.

    6. Create a new folder, like "MyWeb", under wwwroot

    7. Write some ASP code and save the file as "test1.asp" in the new folder

    8. Make sure your Web server is running (see below)

    9. Open your browser and type "http://localhost/MyWeb/test1.asp", to view your first web page

  7. Sorry, I screwed up. It's not href, but img - <IMG ALT= "Yodelin.pdf" SRC= "Yodelin.pdf" BORDER=1 WIDTH=740 HEIGHT=900 > <br> How do I portray this in pdf? It opens fine in jpg.

  8. I’m new to functions. The “return” command was not well explained on your website. What I have found, is variables set in the functionare readily passed back to the program when the function ends, so why would I ever need to use return?

  9. The progress element you sent me would not work at all on “Internet explorer.” It seemed to work on “Google chrome,” although the meter was "dead" It did not progress like I need. You say, “It's pretty easy to set up a function to run on a timer that will add another period or whatever to a meter . . .” How? That’s exactly what I need! But when I tried to write it myself, it wouldn’t work. True, I setup a while loop on a timer to add another period each iteration, but then it wouldn’t print to the screen until it was all done.

  10. My data is in an *.mdb file, the rs object. This PrintTemplate is used many times throughout my program. In the past, I had many prints of the same template, but now I want just one print and let the compiler handle all the others. In the past, using the old way, everything worked great, but using the new, (the function), it doesn’t. Passing the object seems to be the problem. Below is the error message and my code. Microsoft JScript runtime error '800a01b6' Object doesn't support this property or method /books/BooksList.asp, line 260 ------------- I put this near the top of page --------------------------- <p><!--#include file="PrintTemplate.inc"--></p> --------------- here I call it ------------------------------- PrintTemplate.inc(); //call this function ------------- Contents of PrintTemplate.inc ---------------------------<%function PrintTemplate( rs ){if( rs("fforegrnd").Value == "tag" || rs("fforegrnd").Value == "tag " ) //line 96 TableColor = TabColor; // = "#FF8429";else TableColor = "black"; //RegularColor ; %><TD ALIGN=left NOWRAP BGCOLOR= "<% Response.Write( TableColor ) %>" ><input type="radio" name= "RecnumToModify" value= "<% Response.Write( recnum ) %>" > <% Response.Write( recnum ) %>) </TD> <TD ALIGN=left NOWRAP BGCOLOR= "<% Response.Write( TableColor ) %>" ><input type="radio" name= "RecnumToModify" value= "<% Response.Write( recnum ) %>" > <% Response.Write( recnum ) %>) </TD> <TD ALIGN=left NOWRAP BGCOLOR= "<% Response.Write( TableColor ) %>" ><% Response.Write( rs("fyear").Value ); %> </TD> <TD ALIGN=left NOWRAP BGCOLOR= "<% Response.Write( TableColor ) %>" > <% Response.Write( rs("fmonth").Value ); %> </TD> <TD ALIGN=left NOWRAP BGCOLOR= "<% Response.Write( TableColor ) %>" > <% Response.Write( rs("fbank").Value ); %> </TD> <TD ALIGN=left NOWRAP BGCOLOR= "<% Response.Write( TableColor ) %>" > <% Response.Write( rs("finitials").Value ); %> </TD> <TD ALIGN=left NOWRAP BGCOLOR= "<% Response.Write( TableColor ) %>" > <% Response.Write( rs("ftype").Value ); %> </TD> <TD ALIGN=left NOWRAP BGCOLOR= "<% Response.Write( TableColor ) %>" > <% Response.Write( rs("fcheck").Value ); %> </TD> <TD ALIGN=left NOWRAP BGCOLOR= "<% Response.Write( TableColor ) %>" > <% Response.Write( rs("fdate").Value ); %> </TD> <TD ALIGN=left NOWRAP BGCOLOR= "<% Response.Write( TableColor ) %>" > <% Response.Write( rs("fdescription").Value ); %> </TD> <TD ALIGN=right NOWRAP BGCOLOR= "<% Response.Write( TableColor ) %>" > <% Response.Write( fdebit.toFixed(2) ); %> </TD> <TD ALIGN=right NOWRAP BGCOLOR= "<% Response.Write( TableColor ) %>" > <% Response.Write( fcredit.toFixed(2) ); %> </TD> <TD ALIGN=center NOWRAP BGCOLOR= "<% Response.Write( TableColor ) %>" > <% Response.Write( rs("fproject").Value ); %> </TD> <TD ALIGN=left NOWRAP BGCOLOR= "<% Response.Write( TableColor ) %>" > <% Response.Write( rs("fmsc1").Value ); %> </TD> <TD ALIGN=left NOWRAP BGCOLOR= "<% Response.Write( TableColor ) %>" > <% Response.Write( rs("fmsc2").Value ); %> </TD> <TD ALIGN=left NOWRAP BGCOLOR= "<% Response.Write( TableColor ) %>" > <% Response.Write( rs("fmsc3").Value ); %> </TD> <TD ALIGN=left NOWRAP BGCOLOR= "<% Response.Write( TableColor ) %>" > <% Response.Write( rs("fmsc4").Value ); %> </TD> <TD ALIGN=left NOWRAP BGCOLOR= "<% Response.Write( TableColor ) %>" > <% Response.Write( rs("fmsc5").Value ); %> </TD> <TD ALIGN=left NOWRAP BGCOLOR= "<% Response.Write( TableColor ) %>" > <% Response.Write( rs("fmsc6").Value ); %> </TD> <TD ALIGN=left NOWRAP BGCOLOR= "<% Response.Write( TableColor ) %>" > <% Response.Write( rs("fmsc7").Value ); %> </TD> </TR><%}%>

  11. Often times my script grinds away at a problem for several seconds or even minutes before it comes back with an answer. The user gets tired of waiting or simply assumes it isn’t working and gives up. I need a “progress-meter” that will show the user the program is working and how much longer it’ll take. I’ve seen other web pages use it. It’s a little bar or dots or something like that that progress across the screen. I’ve tried to figure it out on my own, but without luck. Can you help me?

  12. Here is my code. I had no trouble doing this in ‘C’. Is it possible in ASP?------------------------- tryfunction1.asp -------------<%@ Language=JavaScript %><HTML><HEAD> <TITLE>tryfunction1.asp</TITLE> </HEAD> <BODY bgColor= yellowleftMargin=5 text= black LINK= white VLINK= navy LINK= palegreen > <FONT size=2 FACE="Times New Roman"><%function myFunction( a, b ){Response.Write( "my function - "+ a + b +" <br>" );}a = "joe ";b = "was here. ";myFunction( a, b )a = "bill ";b = "was here. ";myFunction( a, b )a = "jill ";b = "was here. ";myFunction( a, b ) Response.Redirect( "tryfunction2.asp");//%> </BODY></HTML> ------------------------- tryfunction2.asp -------------<%@ Language=JavaScript %><HTML><HEAD> <TITLE>tryfunction2.asp</TITLE> </HEAD> <BODY bgColor= yellowleftMargin=5 text= black LINK= white VLINK= navy LINK= palegreen > <FONT size=2 FACE="Times New Roman"><%a = "tryfunction2";b = "was here. ";myFunction( a, b )a = "bill ";b = "was here. ";myFunction( a, b )a = "jill ";b = "was here. ";myFunction( a, b ) %> </BODY></HTML> ------------------------- ERROR MESSAGE ------------- Microsoft JScript runtime error '800a138f' Object expected /books/tryfunction2.asp, line 26

×
×
  • Create New...