Hi All,
Hope someone can help here!!
I'm putting a standard mail page together, that will allow my users to
sent templete emails out to people. The files are stored in text
files. I have come up with a script to produce the names into a
Select list, but know i'm wanting them to be read into a textarea box,
to allow me to submit them into from the form into the sendmail.asp
page! but the only way i can pass them out, is into a iframe, which
doesn't seem to allow me to then pass them into the sendmail.asp page
for sending.
Anyone help?
Cheers
Shaiboy sh**************@NOSPAMyahoo.co.uk 11 5558
Are the files on the server?
Here's a simple method where the page posts back to itself, and there are
two files in the same directory on the server named file1.txt and file2.txt.
<%
Dim sFile
sFile = Request.Form("cboFile")
%>
<body>
<form method="post" action="self.asp">
<select name="cboFile" onchange="this.form.submit();">
<option value="file1.txt"<% If sFile = "file1.txt" Then Response.Write "
selected=""selected"""%>>File 1</option>
<option value="file2.txt"<% If sFile = "file2.txt" Then Response.Write "
selected=""selected"""%>>File 2</option>
</select>
<textarea><%If sFile <> "" Then Server.Execute sFile%></textarea>
<input type="submit" />
</form>
Ray at work
"Shaiboy_UK" <sh********@yahoo.co.uk> wrote in message
news:2d**************************@posting.google.c om... Hi All,
Hope someone can help here!!
I'm putting a standard mail page together, that will allow my users to sent templete emails out to people. The files are stored in text files. I have come up with a script to produce the names into a Select list, but know i'm wanting them to be read into a textarea box, to allow me to submit them into from the form into the sendmail.asp page! but the only way i can pass them out, is into a iframe, which doesn't seem to allow me to then pass them into the sendmail.asp page for sending.
Anyone help?
Cheers Shaiboy sh**************@NOSPAMyahoo.co.uk
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:Ol****************@TK2MSFTNGP09.phx.gbl... Are the files on the server?
Here's a simple method where the page posts back to itself, and there are two files in the same directory on the server named file1.txt and file2.txt.
<% Dim sFile sFile = Request.Form("cboFile") %>
<body> <form method="post" action="self.asp"> <select name="cboFile" onchange="this.form.submit();"> <option value="file1.txt"<% If sFile = "file1.txt" Then Response.Write " selected=""selected"""%>>File 1</option> <option value="file2.txt"<% If sFile = "file2.txt" Then Response.Write " selected=""selected"""%>>File 2</option> </select> <textarea><%If sFile <> "" Then Server.Execute sFile%></textarea> <input type="submit" /> </form>
Ray at work
Hi Ray,
Tried and doesn't work, script at: http://www.theukserver.net/testscript/test2.asp
files all listed at http://www.theukserver.net/testscript/
Let me know
Cheers
Shaiboy sh**************@NOSPAMyahoo.co.uk
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:uf**************@TK2MSFTNGP14.phx.gbl... What "doesn't work" about it? You don't have any file names listed in the dropdown for one thing. Also, the form does not post back to itself.
Ray at work
Hi
I used the script that you gave!!!
Cheers
Shaiboy sh**************@NOSPAMyahoo.co.uk
No, not quite. View your source and you'll see that you're missing a " and
a space.
Ray at home
"Shaiboy_UK" <sh**************@yahoo.co.uk> wrote in message
news:32*************@individual.net... "Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in message news:uf**************@TK2MSFTNGP14.phx.gbl... What "doesn't work" about it? You don't have any file names listed in the dropdown for one thing. Also, the form does not post back to itself.
Ray at work
Hi
I used the script that you gave!!!
Cheers Shaiboy sh**************@NOSPAMyahoo.co.uk
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:e$**************@TK2MSFTNGP14.phx.gbl... No, not quite. View your source and you'll see that you're missing a " and a space.
Ray at home
Missing a " and a space? where? checked the code and was missing a >
You code wouldn't work with the extra " in it!!!
Cheers
Shaiboy sh**************@NOSPAMyahoo.co.uk
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:e$**************@TK2MSFTNGP14.phx.gbl... No, not quite. View your source and you'll see that you're missing a " and a space.
Ray at home
Even with this, working, it isn't doing what i want, i want to be able to
submit this to the sendmail.asp page, but this will just submit it to
self.asp
Cheers
Shaiboy sh**************@NOSPAMyahoo.co.uk
Shaiboy,
This is a STARTING point. Yes, this will submit back to itself and load the
selected file into a textbox. From there, you can write code that handles
the e-mailing portion if the user submits the form by clicking submit,
pressing enter, or pressing Ctrl+M.
Ray at home
"Shaiboy_UK" <sh**************@NOSPAMyahoo.co.uk> wrote in message
news:32*************@individual.net... "Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in message news:e$**************@TK2MSFTNGP14.phx.gbl... No, not quite. View your source and you'll see that you're missing a " and a space.
Ray at home
Even with this, working, it isn't doing what i want, i want to be able to submit this to the sendmail.asp page, but this will just submit it to self.asp
Cheers Shaiboy sh**************@NOSPAMyahoo.co.uk
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:Ov**************@TK2MSFTNGP10.phx.gbl... Shaiboy,
This is a STARTING point. Yes, this will submit back to itself and load the selected file into a textbox. From there, you can write code that handles the e-mailing portion if the user submits the form by clicking submit, pressing enter, or pressing Ctrl+M.
Ray at home
Ray,
Can you email me directly?
Cheers
Shaiboy sh**************@NOSPAMyahoo.co.uk
"Shaiboy_UK" <sh**************@NOSPAMyahoo.co.uk> wrote in message
news:32*************@individual.net... Ray,
Can you email me directly?
Like, if you want to go hang out and drink beers or something, then sure,
let's go! But as far as this topic, usenetiquette mandates the conversation
remains here. Regardless, my e-mail address is discernable from my bogus
address when I post.
Ray at work
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:%2****************@TK2MSFTNGP11.phx.gbl...
Like, if you want to go hang out and drink beers or something, then sure, let's go! But as far as this topic, usenetiquette mandates the conversation remains here. Regardless, my e-mail address is discernable from my bogus address when I post.
Ray at work
Don't matter, all sorted now, just iframe, textarea and read commands.
Cheers anyway.
Shaiboy sh**************@NOSPAMyahoo.co.uk This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Doug van Vianen |
last post by:
Hi,
I am working on an Applet which provides some mouse practice for
new computer users in our local seniors' computer club. The applet
contains several cards, in a card layout, which are...
|
by: Andrew V. Romero |
last post by:
At work we have an excel file that contains the list of medications and
their corresponding strengths. I would like to save the excel file as a
text list and paste this list into a javascript...
|
by: Dannyboyo |
last post by:
I have what I hope is a simple request. I can't really code in javascript, but I am pretty good at cusomizing it with
slight modifications. I code in ASP and HTML.
I am trying to capture customer...
|
by: Razzbar |
last post by:
I have a textarea and some buttons. The buttons apply functions to
the text the user selects, i.e. the good old "wrap with a tag"
thing we all have seen in 100 different editors.
Trouble is,...
|
by: dmiller23462 |
last post by:
Hi guys....I have absolutely NO IDEA what I'm doing with Javascript
but my end result is I need two text boxes to stay hidden until a
particular option is selected....I've cobbled together the...
|
by: Junoon |
last post by:
hi all,
I am trying to get the values of the item selected in a select list box
into a textarea, but the code is not working....Where am i going
wrong????
whenever i click on any item in the...
|
by: devine |
last post by:
Hi All,
I am VERY new to Javascript.
I have been provided with some code, which will enable me to hide/show a text area and change a submit button dependant on a check box.
<!DOCTYPE html...
|
by: jschlosser |
last post by:
I can enable a text box with an onChange if ANY option is selected
from a select list, but how do I do this for a specific selection?
Even better would be if the field didn't appear until after the...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| | |