close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Javascript errors, so annoying....help!

Thread began 7/14/2010 7:02 am by dave260615 | Last modified 7/15/2010 12:56 pm by dave260615 | 2400 views | 8 replies |

dave260615

Javascript errors, so annoying....help!

I'm using the latest version, with DW CS5. There is no cache file to delete, so I'm stuck.

When I'm done creating the UE parameters in the dialog box, I click OK and get:

"While executing applyServerBehavior in WA Universal Email.htm, a JacaScript error occurred."

I can't even open it from the Server Behaviors tab, because I get the same error.

If I close DW CS5 altogether and open it again, I can then Edit the UE behavior again (from the server behavior tab), but again, click OK to update it, and the error re-occurrs.

What do I do if there is no cache file to delete?

Thanks!

Sign in to reply to this post

Jason ByrnesWebAssist

please send a copy of the page you are applying universal email to so I can examine the code.

Sign in to reply to this post

dave260615

Code

Jason - the code is below - there is no body text yet, since it will not allow me to save it. (I get the error)...so you know, I removed the entire code and tried to use UE again. It allowed me to complete the UE dialog, but if I try to edit it again, I get the same JS error.

<!--#include file="../../WA_Universal_Email/AspEmail_VB.asp" -->
<!--#include file="../../WA_Universal_Email/MailFormatting_VB.asp" -->
<%
function WA_Universal_Email_1_SendMail(RecipientEmail)
dim MailObject, MailAttachments, MailBCC, MailCC, MailTo, MailBodyFormat, MailBody, MailImportance, MailFrom, MailSubject
MailAttachments = ""
MailBCC = ""
MailCC = ""
MailTo = ""
MailBodyFormat = ""
MailBody = ""
MailImportance = ""
MailFrom = "noreply@mydomain.org|WA|noreply@mydomain.org"
MailSubject = "Employee Change of Information"

'Global Variables
gBodyFormat = ""

set WA_MailObject = WAUE_Definition("172.xx.1.xx","25","","")

if (RecipientEmail <> "") then
set WA_MailObject = WAUE_AddRecipient(WA_MailObject,RecipientEmail)
else
'To Entries
end if

'Attachment Entries

'BCC Entries

'CC Entries

'Character Set

'Body Format
set WA_MailObject = WAUE_BodyFormat(WA_MailObject,0)
MailBodyFormat = gBodyFormat

'Set Importance
set WA_MailObject = WAUE_SetImportance(WA_MailObject,"3")

'Start Mail Body
'End Mail Body

set WA_MailObject = WAUE_SendMail(WA_MailObject,MailAttachments,MailBCC,MailCC,MailTo,MailImportance,MailFrom,MailSubject,MailBody)

set WA_MailObject = nothing
end function
%>
<%
if ((Request.ServerVariables("Request_Method") = "POST")) then
'WA Universal Email object="AspEmail"
'Send Loop Once Per Entry
WA_Universal_Email_1_SendMail("dstoltz@mydomain.org")

'Send Mail All Entries
if ("sent.asp"<>"") then
Response.Redirect("sent.asp")
end if
end if
%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Change of Information Sheet</title>
<link href="../../styles/form_dark.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div id="container">
<form class="dark">
<ol>
<li>
<fieldset>
<legend>Current Employee Information</legend>
<ol>
<li>
<label for="ename">Employee Name</label>
<input type="text" id="ename" name="ename" value="" />
</li>
<li>
<label for="ssn">Last 4 SSN</label>
<input type="text" id="ssn" name="ssn" value="" />
</li>
<li>
<label for="nick">Nickname</label>
<input type="text" id="nick" name="nick" value="" />
</li>
<li>
<label for="edate">Employment Date</label>
<input type="text" id="edate" name="edate" value="" />
</li>
<li>
<label for="status">Status</label>
<select id="status" name="status">
<option value="Full Time">Full Time</option>
<option value="Full Time">Full Time</option>
<option value="Per Diem">Per Diem</option>
</select>
</li>
<li>
<label for="title">Job Title</label>
<input type="text" id="title" name="title" value="" />
</li>
<li>
<label for="dept">Department</label>
<input type="text" id="dept" name="dept" value="" />
</li>
</ol>
</fieldset>
</li>
<li>
<fieldset>
<legend>Change of Address/Phone Number</legend>
<ol>
<li>
<label for="address">New Address (Number, Street, City, State, Zip)</label>
<input type="text" id="address" name="address" value="" />
</li>
<li style="">
<label for="township">Township</label>
<input type="text" id="township" name="township" value="" />
</li>
<li>
<label for="country">County</label>
<input type="text" id="country" name="country" value="" />
</li>
<li>
<label for="school">School District</label>
<input type="text" id="school" name="school" value="" />
</li>
<li>
<label for="phone">Home/Contact Phone</label>
<input type="text" id="phone" name="phone" value="" />
</li>
</ol>
</fieldset>
</li>
<li>
<fieldset>
<legend>Change of Marital Status/Name *</legend>
<ol>
<li>
<label for="reason">Reason</label>
<div>
<label>
<input type="radio" name="reason" value="Married" />
Married</label>
<label>
<input type="radio" name="reason" value="Divorced" />
Divorced</label>
<label>
<input type="radio" name="reason" value="Widowed" />
Widowed</label>
</div>
</li>
<li>
<label for="fname">Employee Full Name</label>
<input type="text" id="fname" name="fname" value="" />
</li>
<li>
<label for="spouse">Name of Spouse</label>
<input type="text" id="spouse" name="spouse" value="" />
</li>
<li>
<label for="dob">Spouse BirthDate</label>
<input type="text" id="dob" name="dob" value="" />
</li>
<li>
<label for="sssn">Spouse SSN</label>
<input type="text" id="sssn" name="sssn" value="" />
</li>
</ol>
</fieldset>
</li>
<li>
<fieldset>
<legend>Change of Emergency Contact</legend>
<ol>
<li>
<label for="cname">Name</label>
<input type="text" id="cname" name="cname" value="" />
</li>
<li>
<label for="caddress">Address</label>
<input type="text" id="caddress" name="caddress" value="" />
</li>
<li>
<label for="relationship">Relationship</label>
<input type="text" id="relationship" name="relationship" value="" />
</li>
<li style="">
<label for="ephone">Phone</label>
<input type="text" id="ephone" name="ephone" value="" />
</li>
</ol>
</fieldset>
</li>
<li style="">
<fieldset>
<legend>Employee Signature Authorization</legend>
<ol>
<li>
<label for="auth">Full Name</label>
<input type="text" id="auth" name="auth" value="" />
</li>
<li>
<label for="dateauth">Effective Date</label>
<input type="text" id="dateauth" name="dateauth" value="" />
</li>
</ol>
</fieldset>
</li>
</ol>
<p style="text-align:center">
<input type="submit" value="SUBMIT CHANGES" />
</p>
</form>
</div>
</body>
</html>

Sign in to reply to this post

Jason ByrnesWebAssist

one issue I can see is that the form tag is not properly formatted:
<form class="dark">

you are missing the name, id and method attributes:
<form class="dark" name="form1" id="form1" method="post">

What version of universal email are you using?

What is your OS?

What version of Dreamweaver?

Sign in to reply to this post

dave260615

Form tag

You are right, I missed that.... but I updated it to:
<form class="dark" name="form1" method="post" id="form1" action="sent.asp">

And I still get the error.

I'm using DW CS5, and UE 3.0.7 and my OS is Windows XP Pro.

Sign in to reply to this post

Jason ByrnesWebAssist

Universal Email Version 3 is not compatible with Dreamweaver CS5.

You will need to upgrade to Universal Email 4 in order to use it in Dreamweaver CS5.

NOTE: Universal Email 4 is not compatible with ASP Pages, it only supports PHP.

Sign in to reply to this post

dave260615

Not surprised

Wow...more disappointing news from WebAssist....

WebAssist's decision to not support Classic ASP in future development is a poor business choice for two reasons...

Not only can I not upgrade (and pay you money) because you don't support ASP, but you are essentially hurting developers who have already bought your ASP products, with no warning of "this won't be supported in the future", which will certainly leave a bad taste in some people mouths....

I know it does mine. Most of the products I purchased are for ASP, so I guess it's all a waste of money since it's not being developed anymore.

Sad, Sad news....but based on previous business conduct, I'm not surprised.

Sign in to reply to this post

Jason ByrnesWebAssist

the decision to discontinue ASP support was announced over a year ago. An email message was sent out to all of our customers alerting this change.

You can still use Universal Email 3 in Dreamweaver CS4 and CS3 to develop in ASP.

Sign in to reply to this post

dave260615

continued use

Jason.

Yes, I realize it was annouced a while back. But that doesn't change the fact that if I want to use the latest and greatest version of Adobe software, I essentially lose the use of all my WebAssist tools that I invested in.

I also realize PHP is a growing technology, of which I am currently using as well - but many developers, such as myself, need to maintain existing sites with ASP technology. That's not going away anytime soon.

In any case, thanks for replying with the above info.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...