buttons in mojoportal

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
4/15/2011 3:02:41 PM
Gravatar
Total Posts 3

buttons in mojoportal

Hi all,

I am sorry if this is the wrong forum to post in...

mojoPortal Version 2.3.6.2 MSSQL

Operating System Microsoft Windows Server 2008 R2

ASP.NET Info v4.0.30319 Running in Full Trust

I have installed mojoportal and it is working well, still working on last few pages but the issue I have is at the moment I use a 3rd party billing system (WHMCS) that sets up the required hosting and registers domains on my server. The issue I am having is the following:

I have added a html module to http://cmshostingservices.co.uk/mojo/domains.aspx and added the html code for a domain lookup that calls an external php page but when clicking the button it just refreshes the page. I know the application is ASP.NET and when OpenSRS finally release a .NET API I can use that but in the meantime I need to use this. I have checked the source code of the page and the link does show correctly.

<form action="http://cmshosting.co/account/domainchecker.php" method="post">
     <input name="token" type="hidden" value="f48b333161f022d5ccf53259c20f6158a96bfe5f" /> <input name="direct" type="hidden" value="true" /> Domain name: <input name="domain" type="text" /> <select name="ext"><option selected="selected">.co.uk</option><option>.me.uk</option><option>.org.uk</option><option>.com</option><option>.info</option><option>.net</option><option>.biz</option><option>.org</option><option>.co</option><option>.eu</option><option>.me</option><option>.tv</option><option>.mobi</option></select> <input type="submit" value="Go" />&nbsp;<br />
     Buy your domain name in confidence with our low prices and free features. Our domain registration system is highly automated so we register your domain names quickly with no fuss.</form>

There is already a javascript form on the page by default

<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['aspnetForm'];
if (!theForm) {
    theForm = document.aspnetForm;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}
//]]>
</script>

Do I need to disable this to make my form work and if I do how can I disable it just for this one page

Thanks in advance

Klospros

 

4/15/2011 3:12:23 PM
Gravatar
Total Posts 63

Re: buttons in mojoportal

I don't know how to fix it, but I know why it happened. ASP.NET does not allow more than one <form> tag on one page. mojoPortal is written in ASP.NET, so it already has a <form> tag, the code snippet you added also has a <form> tag. It is not allowed.

Maybe Joe has a solution for you.

4/15/2011 3:20:20 PM
Gravatar
Total Posts 3

Re: buttons in mojoportal

Hi codingbeaver and thanks for the reply, that was my guess as to why it did not work but as I'm not a developer I am unsure where/how to modify the page to only use the one form tag and then poss work:)


 

Klospros

4/15/2011 3:20:58 PM
Gravatar
Total Posts 70

Re: buttons in mojoportal

This article about making a PayPal Buy Now button describes the problem and shows a solution. It requires custom development but it is pretty easy and the article has example code you could modify.

4/16/2011 5:15:07 PM
Gravatar
Total Posts 3

Re: buttons in mojoportal

Hi Steve and thank you for the link, I will investigate this now:)

Cheers


 

Klospros

You must sign in to post in the forums. This thread is closed to new posts.