Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...HTML Form SubmissionHTML Form Submission
Previous
 
Next
New Post
11/15/2010 3:24 PM
 
It's been a while since I tried this, and last I tried it had worked but now I'm running into a bit of a problem.

Simply, I have a service that's requesting I add Form code to the site, in the past I'd used the method outlined by John Mitchell (http://blogs.snapsis.com/PermaLink,guid,94277650-bd4c-445f-badf-b84646ecc8eb.aspx) . However, in trying that lately on a 5.1.1 site, it's been causing page errors and hangups.  When I look into the rendered source, it seems to be having issues with the following script that's loaded on each page:

var theForm = document.forms['Form'];
if (!theForm) {
    theForm = document.Form;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}

I only get errors on the page where I've entered the form code, and it's usually when I'm trying to Edit Content or do anything with the module containing my form code. For reference, this is what I'm dealing with:

Original Form code provided by 3rd Party Payment Processing system (not PayPal):
(domains redacted for security/privacy)
<form action="https://secure.REDACTEDDOMAIN.com/car..." method="POST">
<input type="text" size="6" name="amount" />
<input type="hidden" name="key_id" value="1234567" />
<input type="hidden" name="action" value="process_variable" />
<input type="hidden" name="order_description" value="Online Payment" />
<input type="hidden" name="language" value="en" />
<input type="hidden" name="url_finish" value="http://www.REDACTEDDOMAIN2.com/Paymen..." />
<input type="hidden" name="customer_receipt" value="true" />
<input type="hidden" name="hash" value="action|order_description|REDACTEDHASH" />
<input type="submit" name="submit" value="Pay Online Now!" />
form>

After I modified per John's instructions:
<input type="text" size="6" name="amount" />
<input type="hidden" name="key_id" value="1234567" />
<input type="hidden" name="action" value="process_variable" />
<input type="hidden" name="order_description" value="Online Payment" />
<input type="hidden" name="language" value="en" />
<input type="hidden" name="url_finish" value="http://www.REDACTEDDOMAIN.com/Payment..." />
<input type="hidden" name="customer_receipt" value="true" />
<input type="hidden" name="hash" value="action|order_description|REDACTEDHASH" />
<input type="submit" name="submit" value="Pay Online Now!" onClick="this.form.action='https://secure.REDACTEDDOMAIN.com/car...';this.form.submit();" />


Help?  Has something changed between 4.x and 5.x that would interfere with this method of handling HTML Post code inside DNN? I'd prefer NOT to do this in an iFrame if at all possible.

Wells Doty Jr
Online Content Development
 
New Post
11/15/2010 4:08 PM
 
This process should still be working, as I've used it on a number of sites before.  Can you link to the page that is having the issue?

-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...HTML Form SubmissionHTML Form Submission


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out