473,466 Members | 1,538 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

HTML & Ajax not working as expected

6 New Member
Please tell me why the following html does not call the javascript submit_click() function.
Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE html>
  2. <html>
  3.     <head>
  4.     <title>Page Title</title>
  5.     <meta name="viewport" content="width=device-width,initial-scale=1">
  6.     <link rel="stylesheet" type="text/css" href="style/style.css"/>
  7.     <script language="JavaScript" type="text/javascript" src="js/Diva.js"></script>
  8.     <style type="text/css">a {text-decoration: none}</style>
  9.     <script language=javascript>
  10.     function submit_click()
  11.         {
  12.         alert("Button Pressed");
  13.         progExe("logon.php?"uname="+uname+"&Passwrd="+passwrd);
  14.         }
  15.     </script>
  16.     </head>
  17.  
  18.     <body>
  19. <!--- <form name="logon" ID="logon" action="logon.php" method="post"> -->
  20. <table align="center" border="3" cellspacing="0" cellpadding="3">
  21. <tr><td>Username:</td><td>
  22. <input type="text" name="uname" id=uname maxlength="40" placeholder="Enter your UserName" autofocus required>
  23. </td></tr>
  24. <tr><td>Password:</td>
  25. <td>
  26. <input type="password" name="passwrd" id=passwrd maxlength="50" placeholder="Password" required>
  27. </td></tr>
  28. <tr><td colspan="3" align="center">
  29. <button type="button" onclick="submit_click()">Logon</button>
  30. <a href="register.html"><input type=submit value="RegisterSelf">
  31. <a href="client.html"><input type=submit value="RegisterClient">
  32. </td></tr>
  33. </table>
  34. <center>
  35. <div id="loadingNode";></div>
  36. </center>
  37. </body>
  38. </html>
  39.  
Oct 30 '12 #1
1 1815
Dormilich
8,658 Recognized Expert Moderator Expert
so I don’t have to repeat myself: http://www.dreamincode.net/forums/to...&#entry1733957
Oct 30 '12 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

21
by: javainfo | last post by:
How can i refresh IFRAME and load data through AJAX?
13
by: Sharon | last post by:
Hi all, I was wondering if anyone had experience using ajax with asp.net controls. What i'm looking for, are ways to implement and possible problems. A way to implement could be rendering the...
1
by: eunever32 | last post by:
Hi I have a struts (1.1) form <html:form <html:text <html:text ...
2
by: =?Utf-8?B?RG90TmV0RGV2?= | last post by:
Hi, We are still using .net 1.1 and I am working on a problem that I thought could be 'probably' done easily through 'AJAX'. I visited the ajax.asp.net site and I got an impression that its only...
1
by: Yansky | last post by:
Hi, I'm having some problems getting this code to work in IE. http://pastebin.ca/454033 It's giving me an error of "Object Expected" in IE. The first...
2
by: codecln | last post by:
How do i dynamically create a label in html using ajax ? please help me out in this basic issues...
2
by: =?Utf-8?B?RGF2ZQ==?= | last post by:
I'm using an async page to kick off a couple of asynchronous web services using the PageAsyncTask class. I'm also testing a progress bar that uses an Ajax UpdatePanel and Timer control to...
4
by: KDawg44 | last post by:
Hi, I have a feeling this is a dumb question, but I am exploring AJAX and PHP. I would like to write my PHP in an Object Oriented approach. What is the limitation on what I can return in AJAX? ...
4
by: DanWeaver | last post by:
I am dumbfounded at the apparent lack of an obvious mechanism that prevents finding a shared host being the absolute nightmare it is: due to the nature of the business (ie techies who know about...
2
by: sateeshchandrasanga | last post by:
Hi All, My HTML code is working fine in Firefox.But its not displaying any thing in IE.Can you help me in this problem.And in Google crown its displaying but not properly. ...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.