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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. sleuth

    2d Array Help

    Ok Folks, Thank you, I'm going to try what you said Pappy, Thanks for the explanation Lim. I suppose I'm just be getting creative now. Tony
  2. sleuth

    %ENV

    Hi Simon, From what I've expirienced so far with the ENV variables is that they differ based on the browser data transfer type. I can't say whether they differ between say ie & netscape or even opera. But if you setup a simple script: foreach $key (keys %ENV){ print "$key -...
  3. sleuth

    HELP!!!! - jk need some help removing line returns in a multiline var

    Hey Daniel, I always open templates or html files like this, open(data,&quot;</path/to/folder/file.html&quot;); while(<data>){ $spy.=$_; } close(data); To remove the line breaks you'll want to do something like, $spy=~tr/\n\r//d; I actually don't use that, but It's a little more practical...
  4. sleuth

    Strcat String &amp; Int Value

    PS. I'm waiting for us to finish this thread so I can give you a tipmaster vote.
  5. sleuth

    Strcat String &amp; Int Value

    Ok, here's where I am: I have an int array of tables, int table_names[10]; table_names[0]=1234567; //.. until table_names[10] Then I randomly select one of the ten tables, For the sake of keeping this as short as possible I'll say the random table number selected = &quot;1234567&quot...
  6. sleuth

    2d Array Help

    I'm still having trouble, I'm always thinking in terms of how I would do it in perl, this is where I think the larger part of the problem is. Would you advise me on how you would access the value of a Letter, from a ten digit number. Or just explain why, const char...
  7. sleuth

    Combining String &amp; int value

    Thank you, I got it working with sprintf, but strcat(text1,text2); also works, I'm keeping it in mind for same type combinations. Tony
  8. sleuth

    2d Array Help

    Hi, I've almost worked through my problem previously posted, now I'm having trouble with a 2d array. char table[10][50]; table[1234567]['A']='Test'; I get a segmentation fault for that. The number is an id number, I have no need to have it positioned in that spot of the array. So how can...
  9. sleuth

    Strcat String &amp; Int Value

    Basically I think you know what I'm trying to do, By the way, I took the code you posted and I'm trying to compile it right now to no avail, I'm getting errors, is it straight c or c++, I named the file test.c and test.cpp, cpp gave less errors though. I have gcc version egcs-2.91.66 19990314...
  10. sleuth

    Strcat String &amp; Int Value

    Great resource, I've been having a hard time finding c help. Cgi-resources has been helpfull to me also, but I couldn't find anything on this particular question. Sorry but I was a little undescriptive in telling you my problem. I was putting little snippets up there. I actually managed to...
  11. sleuth

    Strcat String &amp; Int Value

    Great, it works just great. Thanks a lot mate. Now that I've got them combining, unlike perl, I'm not able to use: table_189061['A']=1; sprintf( TableName,&quot;%s%d&quot;,Table, tableName); printf (&quot;Random Table: %s\n&quot;,TableName['A']); I get null instead, which makes...
  12. sleuth

    Strcat String &amp; Int Value

    How can I combine a char type string with an int value. I have a string with the value of &quot;table_&quot;, which I defined like this: char table[] = &quot;table_&quot;; And I have an int value of a random number, six digits. I tried: strcat(table,number); But I get errors like...
  13. sleuth

    Combining String &amp; int value

    Hello, If I have a string named &quot;table&quot; and an integer value of &quot;55689&quot;, how can I combine them to form table55689 and then access the character array which is named table55689??? Thank You, Tony
  14. sleuth

    Heights??

    Ok, I figured it out!! Whoo Hoo, It was really simple actually, document.body.ScrollHeight I finally stumbled upon it at MSDN, Dhtml center. Thanks, Tony
  15. sleuth

    Heights??

    Hello, I have a cgi that allows people to create bulks of text, and I'm trying to output this text into a table for reading by a javascript. I have the script build a page with the text in the table, then all I want is the javascript to report back how tall the table is after the text...
  16. sleuth

    FastCGI

    Hello, Is there anyone successfully running FastCgi? If so, how did you install the thing!!!! I can't figure out how to install this thing at all, could someone lay it out for me, I've read everything I can get my hands on and they all produce dead ends, I'm running perl 5.6.1 ad of today...
  17. sleuth

    dialog window

    Hello, is there a way to open a modelessDialogWindow without the title bar? Much like opening a fullscreen window then resizing it, except it would be nice to get the same effect with out the flicker of resizing a fullscreen window. Thanks, Tony
  18. sleuth

    Bring-to-front

    Hello, Say you have your browser window open, then you click to focus another window in your bar down there on the bottom you your screen, is there a javascript that will make the browser window focus to the front? Becuse self.focus(); doesn't work unless your try to minimize the window...
  19. sleuth

    All Frames?

    Hello, I want to load an activity timer into the head of a frame set, but the timer is targeted to window.whatever so it's only tracking mousemovement in it's own window. I want it to be effective for all frames, could anyone point me intot he right direction with this. Thanks, Tony
  20. sleuth

    onblur ??

    Hi, is there a way to have a frame set, and in the top frame, which you can't really tell is there, is a simple html page with an onload=&quot;onblur=self.focus();&quot; but checks if the bottom frame (the main frame which you navigate in) is blured, then re-focuses that frame. This is just in...

Part and Inventory Search

Back
Top