|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
How to pass URL using javascript into email
I am using asp and javascript. I want to be able to pass the whole of a url into outlook express using javascript. The problem is is only takes the url to the first & and then ignores the other parameters.
eg. the url is URL but in the email message on the following appears : URL I think I know why this is happening as javascript uses the & operator itself, but I have no idea for a solution Pleas Help |
|
#2
|
|||
|
|||
|
Basically, this works for me but obviously I do not know the code you're using...
<input type="button" value="Submit" onclick="passURL();"> <script> function passURL(){ window.location ="http://www.spam.com/test.asp?qA=1&qB=2&qC=3"; } </script> BTW, javascript uses the operator itselft but not for concatenation, which is the + sign but for the conditional AND. So I assume the error in your script comes from somewhere else. |
|
#3
|
|||
|
|||
|
I have the same problem ( my submit botton dosent work) when you press submit it will give script error, and never goes to my email, any one please help (I am using Microsoft Publisher
|
|
#4
|
|||
|
|||
|
There are many ways of sending name-value pairs from a form to a script that will handle it.
It can be done via the POST or the GET method (query string) If ou're using both the POST method like this <form action="/cgi/gdform.cgi" method="post"> AND query strings (which is basically the GET method) the script will obviously crash. As you could see in my example, I used query strings and not post. Last edited by lillu : November 23rd, 2003 at 02:39 AM. |
|
#5
|
|||
|
|||
|
I want to pass the ASP variable value[Dim x] or a HTML Variable value (ie) <select id=test name=test><option value="kumar">kumar</option> as a values to the URL.
I tried case1 and case2 it is not working but case3 is working. <% Dim x x="Kumar" %> <script> switch(document.frmReportSetup.radMerReportType(i) .value) { case '1':{ document.frmReportSetup.action = "..\\online\\HOLR1Setup.asp?Name=<%=x%>"; break; } case '2':{ document.frmReportSetup.action = "..\\online\\ResponseCodeSummary.asp?Name=<%=test%>"; break;} case '3':{ document.frmReportSetup.action = "..\\online\\HOLR1Setup.asp?Name=kumar; break; } } <script> Any Explanation regarding this. |
|
#6
|
|||
|
|||
|
I want to pass the ASP variable value[Dim x] or a HTML Variable value (ie) <select id=test name=test><option value="kumar">kumar</option> as a values to the URL.
I tried case1 and case2 it is not working but case3 is working. <% Dim x x="Kumar" %> <script> switch(document.frmReportSetup.radMerReportType(i) .value) { case '1':{ document.frmSetup.action = "..\\online\\testSetup.asp?Name=<%=x%>"; break; } case '2':{ document.frmSetup.action = "..\\online\\testCSummary.asp?Name=<%=test%>"; break;} case '3':{ document.frmSetup.action = "..\\online\\testsetup.asp?Name=kumar; break; } } <script> Any Explanation regarding this. |
![]() |
| Viewing: ASP Free Forums > Programming > HTML, JavaScript And CSS Help > How to pass URL using javascript into email |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|