I have the following pipe delimited text file called temp.txt ,
name|date|comment
"John Doe"|"22-Apr-08 10:21"|"This is a text file entry.
This is a new paragraph in the comment field."
I'm trying to query it with the following query,
<cfhttp method="Get"
url="file_path/temp.txt"...
I'm a novice Unix person so please bear with me. I have a text file and I know what line I want to display. Say I've created a variable $line that equal a certain line number. I want to display just the line $line. I've tried the following but kept getting a sed: command garbled:
set file_row...
I want to open a popup window while linking to another page. As follows,
<CFOUTPUT>
<FORM NAME="temp" ACTION="temp2.cfm" method="POST" enablecab="No">
<input type="submit" name="test" value="Next Page" >
</FORM>
</CFOUTPUT>
When the user clicks on the form link, I not only want them to go to...
I'm trying to extract a list of urls from a string, as below. I can use Find, but that only gives me the position of the first occurance. I need some code to grab the whole word/url of all occurances.
Any help would be appretiated
Sample String:
This is an example text file with various...
How can a get the number of lines in a text file? The file may or may not be a queryable file, just any text file. Any suggestions would greatly be appreciated.
Thanks,
Dino
I have a pulldown menu as below,
<Form Name="Top_Page" Action="Next_Page" Method="Post">
<Select name="item_id">
<OPTION Value = "1" >#item_1_name#
<OPTION Value = "2" >#item_2_name#
<OPTION Value = "3" >#item_3_name#
</Select >
</Form>
How can I have the form submit when a user...
I have a text field such as below,
<input type="text" name="email" value="Enter an email" size="40" maxlength="100">
I want the "Enter an email" to disappear when a user begins to type their email address.
Thanks,
Dino
I have multiple text fields in my form like the following,
<Form>
<input type="text" name="text_1"><br>
<input type="text" name="text_2"><br>
<input type="text" name="text_3"><br>
</From>
How can I put a reset button that will reset only that text field? Such as
<Form>
<input type="text"...
Has anyone successfully compiles npasswd for IRIX 6.5? I'm trying but can't quite get it yet. I figured someone else might or should have done it by now.
Thanks
I know this has probably been asked before, but I still can't find the simple answer. I have a input text field that I want to validate to not go over 256 characters. Any suggestions.
Thanks
I've searched, but still haven't found a solution for running a coldfusion file from a unix command line or script. I've read some stuff on cfml and cfexec but no luck yet. When I do run a file using cfexec as in the following;
cfexec myfile.cfm
I get an error saying cfexec is aldready...
I want to run a cron job that runs a coldfusion file at a specific time of day. How can i run a coldfusion file from a unix script/command line?
Thanks
How can I list the contents of a directory that is not on the server I am using. I know I can use CFDIRECTORY to list contents of any directory on the Coldfusion server but what about another server or system?
Thanks
How can I query a text file with no column names, for example:
Fred|Flintstone|Bedrock|
Betty|Rubble|Bedrock|
Barney|Rubble|Bedrock|
Spongebob|Squarpants|Bikini Bottom|
I can do the query with column headers, for example:
fname|lname|location|
Fred|Flintstone|Bedrock|
Betty|Rubble|Bedrock|...
I'm trying to subtract one day from thet current date. My code is as follows:
function howlong(arg) {
if (length(arg)==1) {
arg = "0" + arg;
return arg;
}
else {
arg = arg;
return arg;
}
}
myDate = new Date();
dd = myDate.getDate()-1;
mm = myDate.getMonth();
yy = myDate.getFullYear()...
Is there a way to plot a line in html? For example, I want to generate a line by giving the (x,y)(x,y) and have html draw a simple line between to points.
Thanks
Is there a way to display a text banner either on start up or when it gets to the login window? Instead of showing Mac OSX to show a text message in the login window?
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.