What steps do I need to take to execute a script that utilizes the mootools library within an asp.net environment

I've been working on a website that includes a mail form. I'm using the Mootools 1.4.3 library along with FormCheck 1.6.js. However, when I click the button, nothing happens except for the page refreshing. I really like this form and want to make it work. Where could I be going wrong? My goal is to have a form similar to [enter link description here][1]

SCRIPTS

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
         <link rel="stylesheet" href="lightbox/css/prettyPhoto.css" type="text/css" media="screen" charset="utf-8" />
         <script src="lightbox/js/jquery.prettyPhoto.js" type="text/javascript" charset="utf-8"></script>         

         <link href="rss/example_ticker.css" rel="stylesheet" type="text/css" />

         <script src="rss/jquery.zrssfeed.min.js" type="text/javascript"></script>
         <script src="rss/jquery.vticker.js" type="text/javascript"></script>

         <script type="text/javascript" src="formcheck/mootools-core-1.4.3.js"></script> 
         <script type="text/javascript" src="formcheck/mootools-more-1.4.0.1.js"></script>
         <script type="text/javascript" src="formcheck/lang/en.js"> </script>
         <script type="text/javascript" src="formcheck/formcheck.js"> </script>
         <script type="text/javascript" src="formcheck/formcheck-yui.js"> </script>
         <link rel="stylesheet" href="formcheck/theme/grey/formcheck.css" type="text/css" media="screen" />

HTML CODE

<div>
        <form id="mailform" method="post" action="#">
<input type="hidden" name="id" value="112" />
<input type="hidden" name="submitted" value="1" />
<input type="hidden" name="L" value="0" />
<div style="width: 480px; margin-left: 60px;">
  <div style="width: 250px; float: left;  padding: 2px;">
  <div style="width: 110px; float: left; font-size: 11px;">FULL NAME *</div>
  <input name="name" type="text" id="name" class="validate['required','nodigit']" style="float: left; position: relative; width: 130px; background: #d1d2d4; border: solid 1px #7f8082;"/>
  </div>

  <!-- more HTML code -->

    window.addEvent('domready', function () {check = new FormCheck('mailform', {
            display: {
                fadeDuration: 500,
                errorsLocation: 1,
                indicateErrors: 1,
                showErrors: 1
            }
        })
    });
</script>
</form>

    </div>

Answer №1

If you want to submit a form without using server controls, consider utilizing the mootool library's Ajax.Form or Form.Request method for the task.

Answer №2

Consider removing jquery from the header section and test to see if it functions properly.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

ASP.NET - Enabling File Upload on PostBack via Trigger

Within my UpdatePanel, I have an upload control and a button for uploading. The button is configured as a trigger, but the event handler does not run on the initial PostBack. This is how my ASPX code looks: <asp:UpdatePanel ID="updPages" runat="server ...

What is the best way to display a child element in the right panel?

Hello, I need help in displaying child elements next to the parent element. My function works fine the first time, but fails the second time. Here are the steps I followed: 1) Clicked the Add button 2 times, generating row2 as well as a submenu of firs ...

Calculating the offset when scrolling to the top of the Foundation accordion upon clicking

I am currently using a Foundation accordion on my website. I have encountered an issue where when I click on one of the accordion anchors, I want it to scroll to the top of the current panel. However, due to variations in panel sizes based on content, the ...

Animations experiencing delays on mobile Chrome

I am currently exploring the world of website animations. I have a version of the jsfiddle code linked below that is similar to what I am working on. The animations function perfectly when viewed on desktop, but when accessed on mobile - specifically on my ...

Storing the state of DevExtreme DataGrid in Angular

Currently, I have integrated the DevExtreme DataGrid widget into my Angular application. Here is a snippet of how my DataGrid is configured: <dx-data-grid id="gridContainer" [dataSource]="employees" [allowColumnReordering]="true" [allo ...

In order to utilize Next.js with pkg, you must enable one of the specified parser plugins: 'flow' or 'typescript'

Utilizing next.js with the pkg in my project, following the steps outlined in this tutorial, I encountered an error when running the pkg command: > Error! This experimental syntax requires enabling one of the following parser plugin(s): 'flow, t ...

Laravel Mix causes errors when running `npm run dev` and breaks the package

My nodejs package is built using ES6 features such as 'let', the spread operator (...) and default values for function arguments. However, when I run npm run production with Laravel Mix, an error message appears: ERROR Failed to compile with ...

Utilizing the Java Script SDK for Facebook API to Publish Actions

I've been encountering difficulties with the Facebook API. I have created an app, an object, and an action, and I'm trying to test publishing in my stream (I understand that public publishing needs authorization from Facebook, but as an administr ...

Using ObjectDataSource with a Parameter

I am currently utilizing an asp GridView on my page. To bind data to the grid, I am using an asp ObjectDataSource. Within this setup, I am calling a method from the data layer to retrieve the necessary data. The method requires a parameter (userid) in orde ...

"Creating multiple circles on an HTML5 canvas using an iPad: A step-by-step guide

My current code is only drawing one circle at a time on an iPad view, but I want to be able to draw multiple circles simultaneously. How can I achieve this? // Setting up touch events for drawing circles var canvas = document.getElementById('pain ...

Cast your vote once for each post within the Angular application

Currently, users are only able to vote up or down once in general. I would like to allow users to vote up or down once per post. <div ng-repeat="post in posts | orderBy:'-upvotes'"> <span class="glyphicon glyphicon-thumbs-up" ...

Error: Issue determining the type of variable. Unable to eliminate type 'any'

I am trying to load some widgets from a template object (possibly JSON in the future). Here's an example: type RectangleTemplate = { name: 'Rectangle'; props: { width: number; height: number; } }; type ButtonTemplate = { nam ...

What is the process for viewing the collections of all databases while logged in as an administrator?

My aim is to display all databases along with their collections, similar to logging in as an admin user into robo3T, for example. Using the two commands below poses no issue. However, when I use the listCollections command, I only get the collections from ...

React UseEffect - Triggering only when data has been updated

In my current situation, I am facing a dilemma with the useEffect hook. I need it to not run on the initial render, but only when specific data is rendered, such as home.matchsPlayed and home.winHome. This is what my code looks like: useEffect(() => ...

Press on a circle to adjust its size to fit the section or division

Is it possible to make a circle expand and fill the section/div when clicked? I want the circle to fill the screen upon clicking, and then have some text appear in its place. Before posting this, I searched on the web and came across this jsfiddle link. ...

What could have caused these errors, since they never made an appearance?

'Link' component cannot be utilized within JSX. The type 'ForwardRefExoticComponent<LinkProps & RefAttributes<HTMLAnchorElement>>' is not a valid element for JSX. The type 'ForwardRefExoticComponent<LinkPro ...

Utilize pivot to manage user roles and permissions in ExpressJS application using Mongoose

My user schema is structured as shown below const userSchema = mongoose.Schema({ username: { type: String, required: true, }, first_name: { type: String, required: true, }, last_name: { type: Stri ...

Minimizing repeated autofocus calls in material-ui's <TextField> component

In the realm of coding with material-ui, when dealing with the <TextField> component, it's important to keep in mind that the solution may actually lie within React itself. Let's paint a scenario where we're crafting a basic login for ...

"Is it possible to make a JSON API call in Node.js before exiting with a SIGINT

In my attempt to configure certain variables and make an API call using the request module before exiting the program, I encountered issues where the function was not being properly executed due to the presence of both SIGINT and exit signals: const reque ...

What is the best method for displaying multiple slices within an SVG circle?

I'm currently working on a project involving a reactJS application. The goal is to display an svg circle that, when clicked, divides into n equal slices. I have successfully generated the individual slices with the following code: renderSlices = () ...