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 -...
Hey Daniel,
I always open templates or html files like this,
open(data,"</path/to/folder/file.html");
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...
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 = "1234567"...
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...
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...
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...
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...
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,"%s%d",Table, tableName);
printf ("Random Table: %s\n",TableName['A']);
I get null instead, which makes...
How can I combine a char type string with an int value.
I have a string with the value of "table_", which I defined like this:
char table[] = "table_";
And I have an int value of a random number, six digits.
I tried: strcat(table,number);
But I get errors like...
Hello,
If I have a string named "table" and an integer value of "55689", how can I combine them to form table55689 and then access the character array which is named table55689???
Thank You,
Tony
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
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...
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...
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
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...
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
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="onblur=self.focus();" but checks if the bottom frame (the main frame which you navigate in) is blured, then re-focuses that frame. This is just in...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.