Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Form action and XML as source

Reply
Thread Tools

Form action and XML as source

 
 
Yogi_Bear_79
Guest
Posts: n/a
 
      05-16-2005
I need to change the below format from hard coded e-mail addresses to
retrive them from an XML source doc.

Can someone help with the syntax? I have used my XML elsewhere in this
project I am just stuck on this one



<form action="private.php?do=newpm&u=?&cc=email2@public .com&subject=Help
Ticket" method="post" enctype="text/plain" >



 
Reply With Quote
 
 
 
 
Oli Filth
Guest
Posts: n/a
 
      05-16-2005
Yogi_Bear_79 wrote:
> I need to change the below format from hard coded e-mail addresses to
> retrive them from an XML source doc.
>
> Can someone help with the syntax? I have used my XML elsewhere in this
> project I am just stuck on this one
>
>
>
> <form action="private.php?do=newpm&u=?&cc=email2@public .com&subject=Help
> Ticket" method="post" enctype="text/plain" >
>


mailto in forms is a Bad Thing. Use a server-based solution instead.
Google for "mailto form" for why.


--
Oli
 
Reply With Quote
 
 
 
 
Yogi_Bear_79
Guest
Posts: n/a
 
      05-16-2005
I'm building a stand alone (chm) file and this was the only way I could find
to make this work..Being a stand alone, there is no server side. Now another
idea would be a javascript or VBS. I made a simple form that I wish to send
the results via e-mail.

Being stand alone, I know every user will mave Outlook setup



"Oli Filth" <> wrote in message
news:J95ie.7259$...
> Yogi_Bear_79 wrote:
> > I need to change the below format from hard coded e-mail addresses to
> > retrive them from an XML source doc.
> >
> > Can someone help with the syntax? I have used my XML elsewhere in this
> > project I am just stuck on this one
> >
> >
> >
> > <form

action="private.php?do=newpm&u=?&cc=email2@public .com&subject=Help
> > Ticket" method="post" enctype="text/plain" >
> >

>
> mailto in forms is a Bad Thing. Use a server-based solution instead.
> Google for "mailto form" for why.
>
>
> --
> Oli



 
Reply With Quote
 
Gazza
Guest
Posts: n/a
 
      05-17-2005


Yogi_Bear_79 mumbled the following on 16/05/2005 19:11:
> I'm building a stand alone (chm) file and this was the only way I could find
> to make this work..Being a stand alone, there is no server side. Now another
> idea would be a javascript or VBS. I made a simple form that I wish to send
> the results via e-mail.
>
> Being stand alone, I know every user will mave Outlook setup


Assuming you meant Outlook Express, you'd still be grossly wrong.

And don't top-post.

--
Gazza
Mobile Number Network Checker - http://mnnc.net/
Creative writing & Poems - http://garyjones.co.uk/
Leovanna Leonbergers - http://leovanna.co.uk/
 
Reply With Quote
 
Yogi_Bear_79
Guest
Posts: n/a
 
      05-17-2005

"Gazza" <> wrote in message
newsPhie.6362$V%....
>
>
> Yogi_Bear_79 mumbled the following on 16/05/2005 19:11:
> > I'm building a stand alone (chm) file and this was the only way I could

find
> > to make this work..Being a stand alone, there is no server side. Now

another
> > idea would be a javascript or VBS. I made a simple form that I wish to

send
> > the results via e-mail.
> >
> > Being stand alone, I know every user will mave Outlook setup

>
> Assuming you meant Outlook Express, you'd still be grossly wrong.
>
> And don't top-post.
>
> --
> Gazza
> Mobile Number Network Checker - http://mnnc.net/
> Creative writing & Poems - http://garyjones.co.uk/
> Leovanna Leonbergers - http://leovanna.co.uk/



Would it be possible for anyone to give an answer in addition to their
criticism? I don't mind being corrected about "top posting" or being told
that MAILTO might not be the best idea. However I do not se the need to
reply solely to tell me not to top post. Further, although MAILTO might not
be acceptable in most cases, in this one I feel that it is.

Why would you assume Outlook Express? Mailto: works with Outlook as well. I
understand the caveats of using MAILTO: however since this is a stand alone
..chm help file, I really do not see any other alternatives at this point.
This is not a web page on a server, therefore, no server side to support.


The original question is still at hand, what syntax is used to use XML as a
source in place of the hard coded e-mail addresses in a MAILTO statement

<form
action="private.php?do=newpm&u=?&cc=email2@public .com&subject=HelpTicket"
method="post" enctype="text/plain" >


 
Reply With Quote
 
Oli Filth
Guest
Posts: n/a
 
      05-17-2005
Yogi_Bear_79 wrote:
> Why would you assume Outlook Express? Mailto: works with Outlook as well. I
> understand the caveats of using MAILTO: however since this is a stand alone
> .chm help file, I really do not see any other alternatives at this point.
> This is not a web page on a server, therefore, no server side to support.


You can still use a server to do this.

e.g. in a page in your .chm file (assuming .chm format deals with forms,
I don't know anything about it):

<FORM action="http://example.com/your_script.php" method="POST">
<INPUT type="hidden" name="address" value="">
...
</FORM>

Then your_script.php can sit on your server and deal with incoming form
details, sending out e-mails as necessary.

> The original question is still at hand, what syntax is used to use XML as a
> source in place of the hard coded e-mail addresses in a MAILTO statement
>
> <form
> action="private.php?do=newpm&u=?&cc=email2@public .com&subject=HelpTicket"
> method="post" enctype="text/plain" >
>
>

What do you mean by "using XML as a source"? What is this XML source?
There is no HTML syntax to "retrieve" data from somewhere, that's not
something that HTML does. You could probably do this with Javascript.

--
Oli
 
Reply With Quote
 
Gazza
Guest
Posts: n/a
 
      05-17-2005
Yogi_Bear_79 mumbled the following on 17/05/2005 19:59:
> "Gazza" <> wrote in message


>>>Being stand alone, I know every user will mave Outlook setup

>>
>>Assuming you meant Outlook Express, you'd still be grossly wrong.


> I don't mind being ... told
> that MAILTO might not be the best idea. ... Further, although MAILTO might not
> be acceptable in most cases, in this one I feel that it is.


I never questioned your assumption that mailto is the way to proceed in
this case, only your assumption that "every user will [h]ave Outlook
setup". I, for one don't have it, and so have proved your assumption
wrong from the outset.

> Why would you assume Outlook Express? Mailto: works with Outlook as well.


Of course it does, as do many other mail clients. OE is far more likely
to be setup on a general Windows machine however, compared to Outlook.

> I
> understand the caveats of using MAILTO: however since this is a stand alone
> .chm help file, I really do not see any other alternatives at this point.
> This is not a web page on a server, therefore, no server side to support.


I cannot help with your original question, but am I right in thinking
this .chm will be used on your internal network only (for which the
setup of machines could very well be consistent) ? Otherwise, and with
respect, for someone creating .chm's with XML, the assumption regarding
Outlook is somewhat of a "newbie" statement.

--
Gazza
Mobile Number Network Checker - http://mnnc.net/
Creative writing & Poems - http://garyjones.co.uk/
Leovanna Leonbergers - http://leovanna.co.uk/
 
Reply With Quote
 
Yogi_Bear_79
Guest
Posts: n/a
 
      05-17-2005

> What do you mean by "using XML as a source"? What is this XML source?
> There is no HTML syntax to "retrieve" data from somewhere, that's not
> something that HTML does. You could probably do this with Javascript.
> Oli



Inside the <head> tag I reference my XML source

<xml id="Main" src="../../xml/Main.xml"></xml>

Here I call the Office tag I created in the XML source

<table width="90%" cellpadding="5" align="center" datasrc="#Main">
<tr>
<td colspan="2"><h2><span class="celltext"
datafld="Office"></span>&nbsp;Computer Trouble Ticket</h2></td>
</tr>

I'd like to replace the e-mail addresses in the following line of HTML with
references to the XML
<form
action="private.php?do=newpm&u=?&cc=addy2@private .com&subject=Computer Help
Ticket" method="post" enctype="text/plain" >

My users are on stand alone systems on .com broadband connections in 1 man
offices over several states. There is no server for them to use. A stand
alone .chm help file is capable of supporting just about any Web Page
feature. Do a search on your PC (if Windows) and you will find many examples
of .chm files. My users will have my companys .chm file on their desktop,
and one of the options is an HTML form that they use to submit trouble
tickets. The feature works fine, however it has become neccesary to make it
more generic. So we have have moved all direct references to our divison to
an XML file, so that other System Admins only have to edit one file (the
..XML) to customize the CHM to their division. I understand fully that IF i
was hosting a web page then I wouldn't want to use MAILTO, but please that
is not the question. I am looking for help with an XML data island and the
subsequent HTML syntax


 
Reply With Quote
 
Andy Dingley
Guest
Posts: n/a
 
      05-17-2005
On Tue, 17 May 2005 17:23:55 -0400, "Yogi_Bear_79"
<> wrote:

><table width="90%" cellpadding="5" align="center" datasrc="#Main">
><tr>
> <td colspan="2"><h2><span class="celltext"
>datafld="Office"></span>&nbsp;Computer Trouble Ticket</h2></td>
> </tr>


Don't use DSO, it never worked.

If you have to do XML, then use XSLT. Use it client-side if you don't
care about compatibility, or server-side if you do.
 
Reply With Quote
 
Yogi_Bear_79
Guest
Posts: n/a
 
      05-17-2005

"Gazza" <> wrote in message
news:Xatie.4251$...
> Yogi_Bear_79 mumbled the following on 17/05/2005 19:59:
> > "Gazza" <> wrote in message

>
> >>>Being stand alone, I know every user will mave Outlook setup
> >>
> >>Assuming you meant Outlook Express, you'd still be grossly wrong.

>
> > I don't mind being ... told
> > that MAILTO might not be the best idea. ... Further, although MAILTO

might not
> > be acceptable in most cases, in this one I feel that it is.

>
> I never questioned your assumption that mailto is the way to proceed in
> this case, only your assumption that "every user will [h]ave Outlook
> setup". I, for one don't have it, and so have proved your assumption
> wrong from the outset.


You are not my intended audience! This project is for employees of my
company. It is a stand alone help file to answer their FAQ. This is not a
web site.

>
> > Why would you assume Outlook Express? Mailto: works with Outlook as

well.
>
> Of course it does, as do many other mail clients. OE is far more likely
> to be setup on a general Windows machine however, compared to Outlook.
>

Once again, you assumed. I personally built every one of these machines
and maintain them, I am fully aware of their configurations.

> > I
> > understand the caveats of using MAILTO: however since this is a stand

alone
> > .chm help file, I really do not see any other alternatives at this

point.
> > This is not a web page on a server, therefore, no server side to

support.
>
> I cannot help with your original question, but am I right in thinking
> this .chm will be used on your internal network only (for which the
> setup of machines could very well be consistent) ? Otherwise, and with
> respect, for someone creating .chm's with XML, the assumption regarding
> Outlook is somewhat of a "newbie" statement.
>


Since you couldn't help with the original question, you really didn't have a
need to provide any input. I stated clearly several times that these
machines are STAND ALONE.

I quote from your above statement "Otherwise, and with respect, for someone
creating .chm's with XML, the assumption regarding Outlook is somewhat of a
"newbie" statement." Your statement makes no sense. It appears that you are
making two statements, the second about Outlook being configured. I have
already addressed that the previous two times you mentioned it. The first
part of your statement doesn't making any sense, as I belive you are
unfamiler with .CHM files or .XML files.



> --
> Gazza
> Mobile Number Network Checker - http://mnnc.net/
> Creative writing & Poems - http://garyjones.co.uk/
> Leovanna Leonbergers - http://leovanna.co.uk/



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Struts: 1 action, 1 Form, several views handled by 1 only action. Any idea for better design? John Java 0 06-26-2007 11:22 PM
Struts mapping action to action??? runescience Java 3 02-07-2006 04:07 PM
HTML Form Action and XML Syntax Problem Yogi_Bear_79 XML 0 05-17-2005 09:47 PM
Struts Forward to an Action from an to Action and URLs rjweytens Java 6 06-25-2004 01:49 PM
Struts Static Action Form vs Dyanamic Action Form Joe Bloggs Java 1 08-03-2003 02:30 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57