/    Sign up×
Community /Pin to ProfileBookmark

submit form

I am trying to submit a form via email. There is no validation required.
I have used the following code. Where am I going wrong?.
Thanks

function XDocument:?nSubmitRequest(eventObj)
{
try
{
var submitDestination = thisXDocument.DOM.selectSingleNode”[email protected]”).value

var emailSubmit = thisXDocument.DataAdapters[“EmailSubmit”].value
emailSubmit.Submit()

thisXDocument.UI.Alert(“The form has been successfully submitted to ” + submitDestination + “.”)
eventObj.ReturnStatus = true

}

catch (e)
{
thisXDocument.UI.Alert(“Could not submit ” + ex.Message)
eventObj.ReturnStatus = false
}
}

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@so_is_thisDec 03.2006 — I see at least one seemingly obvious syntax error in the posted code. But, besides that, I have never seen some of that syntax in client-side JavaScript. Are you sure you're in the correct forum?
×

Success!

Help @Hetal spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.8,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...