473,785 Members | 2,298 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

dynamic button not working

I am generating a form dynamically through AJAX. The form and the data
come in very nicely, but my reset button doesn't do anything. There are
3 other buttons that call javascript functions - they work fine. Just
the reset button seems to be dead. The form is inserted into a Div
using AJAX. Here are my form details:

<form id="clientform " name="clientfor m">
<table>
<tr>
<td>Name:</td>
<td>
<input id="txtCompany " type="text" value="Company
Name" size="65" name="txtCompan y"/>
</td>
</tr>

.... some more labels and input text boxes.....

<input id="add" type="button" onclick="addThi sClient(1,4);" value="Add" name="add"/>
<input id="update" type="button" onclick="update ThisClient(1,4) ;" value="Update" name="update"/>
<input id="delete" type="button" onclick="delete ThisClient(1,4) ;" value="Delete" name="delete"/>
<input type="reset" value="Clear"/>
</table>
</form>

Can you see any reason why the reset button would be dead?

Tom
Jul 25 '07 #1
22 1887
On Jul 25, 2:31 pm, tomb <t...@technetce nter.comwrote:
I am generating a form dynamically through AJAX. The form and the data
come in very nicely, but my reset button doesn't do anything. There are
3 other buttons that call javascript functions - they work fine. Just
the reset button seems to be dead. The form is inserted into a Div
using AJAX. Here are my form details:

<form id="clientform " name="clientfor m">
<table>
<tr>
<td>Name:</td>
<td>
<input id="txtCompany " type="text" value="Company
Name" size="65" name="txtCompan y"/>
</td>
</tr>

... some more labels and input text boxes.....

<input id="add" type="button" onclick="addThi sClient(1,4);" value="Add" name="add"/>
<input id="update" type="button" onclick="update ThisClient(1,4) ;" value="Update" name="update"/>
<input id="delete" type="button" onclick="delete ThisClient(1,4) ;" value="Delete" name="delete"/>
<input type="reset" value="Clear"/>
</table>
</form>

Can you see any reason why the reset button would be dead?

Tom
What does this have to do with PHP? And if you're planning to say
something like, "I'm using PHP to generate the HTML and Javascript"
don't even bother -- that's not the right answer.

Jul 25 '07 #2
On 25 jul, 20:23, ZeldorBlat <zeldorb...@gma il.comwrote:
On Jul 25, 2:31 pm, tomb <t...@technetce nter.comwrote:
I am generating a form dynamically through AJAX. The form and the data
come in very nicely, but my reset button doesn't do anything. There are
3 other buttons that call javascript functions - they work fine. Just
the reset button seems to be dead. The form is inserted into a Div
using AJAX. Here are my form details:
<form id="clientform " name="clientfor m">
<table>
<tr>
<td>Name:</td>
<td>
<input id="txtCompany " type="text" value="Company
Name" size="65" name="txtCompan y"/>
</td>
</tr>
... some more labels and input text boxes.....
<input id="add" type="button" onclick="addThi sClient(1,4);" value="Add" name="add"/>
<input id="update" type="button" onclick="update ThisClient(1,4) ;" value="Update" name="update"/>
<input id="delete" type="button" onclick="delete ThisClient(1,4) ;" value="Delete" name="delete"/>
<input type="reset" value="Clear"/>
</table>
</form>
Can you see any reason why the reset button would be dead?
Tom

What does this have to do with PHP? And if you're planning to say
something like, "I'm using PHP to generate the HTML and Javascript"
don't even bother -- that's not the right answer.
Tomb is looking for answers, not for more questions... If you do not
propose one, why do you bother?

Jul 25 '07 #3
Webrickco wrote:
Tomb is looking for answers, not for more questions... If you do not
propose one, why do you bother?
Because he's looking for answers in the wrong place.

Tomb: please ask again, but in a javascript newsgroup.

--
----------------------------------
Iván Sánchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-

http://acm.asoc.fi.upm.es/~mr/
Proudly running Debian Linux with 2.6.20-1-amd64 kernel, KDE 3.5.7, and PHP
5.2.3-1+b1 generating this signature.
Uptime: 22:10:04 up 40 days, 5:45, 5 users, load average: 0.84, 0.68,
0.89

Jul 25 '07 #4
ZeldorBlat wrote:
On Jul 25, 2:31 pm, tomb <t...@technetce nter.comwrote:
>I am generating a form dynamically through AJAX. The form and the data
come in very nicely, but my reset button doesn't do anything. There are
3 other buttons that call javascript functions - they work fine. Just
the reset button seems to be dead. The form is inserted into a Div
using AJAX. Here are my form details:

<form id="clientform " name="clientfor m">
<table>
<tr>
<td>Name:</td>
<td>
<input id="txtCompany " type="text" value="Company
Name" size="65" name="txtCompan y"/>
</td>
</tr>

... some more labels and input text boxes.....

<input id="add" type="button" onclick="addThi sClient(1,4);" value="Add" name="add"/>
<input id="update" type="button" onclick="update ThisClient(1,4) ;" value="Update" name="update"/>
<input id="delete" type="button" onclick="delete ThisClient(1,4) ;" value="Delete" name="delete"/>
<input type="reset" value="Clear"/>
</table>
</form>

Can you see any reason why the reset button would be dead?

Tom

What does this have to do with PHP? And if you're planning to say
something like, "I'm using PHP to generate the HTML and Javascript"
don't even bother -- that's not the right answer.

It must be difficult being so knowledgeable that you have no tolerance
for someone who is not. What I was looking for was if my PHP code is
not putting something that it should be putting. My thanks to Iván and
Webrickco for steering me in the right direction. They were both very
helpful, whereas your was just snotty.

Tom

Jul 25 '07 #5
My thanks to Iván and Webrickco for steering me in the right direction.
They were both very helpful.

Tom

tomb wrote:
I am generating a form dynamically through AJAX. The form and the
data come in very nicely, but my reset button doesn't do anything.
There are 3 other buttons that call javascript functions - they work
fine. Just the reset button seems to be dead. The form is inserted
into a Div using AJAX. Here are my form details:

<form id="clientform " name="clientfor m">
<table>
<tr>
<td>Name:</td>
<td>
<input id="txtCompany " type="text" value="Company Name" size="65"
name="txtCompan y"/>
</td>
</tr>

... some more labels and input text boxes.....

<input id="add" type="button" onclick="addThi sClient(1,4);"
value="Add" name="add"/>
<input id="update" type="button" onclick="update ThisClient(1,4) ;"
value="Update" name="update"/>
<input id="delete" type="button" onclick="delete ThisClient(1,4) ;"
value="Delete" name="delete"/>
<input type="reset" value="Clear"/>
</table>
</form>

Can you see any reason why the reset button would be dead?

Tom
Jul 25 '07 #6
On 25 jul, 21:32, tomb <t...@technetce nter.comwrote:
My thanks to Iván and Webrickco for steering me in the right direction.
They were both very helpful.

Tom

tomb wrote:
I am generating a form dynamically through AJAX. The form and the
data come in very nicely, but my reset button doesn't do anything.
There are 3 other buttons that call javascript functions - they work
fine. Just the reset button seems to be dead. The form is inserted
into a Div using AJAX. Here are my form details:
<form id="clientform " name="clientfor m">
<table>
<tr>
<td>Name:</td>
<td>
<input id="txtCompany " type="text" value="Company Name" size="65"
name="txtCompan y"/>
</td>
</tr>
... some more labels and input text boxes.....
<input id="add" type="button" onclick="addThi sClient(1,4);"
value="Add" name="add"/>
<input id="update" type="button" onclick="update ThisClient(1,4) ;"
value="Update" name="update"/>
<input id="delete" type="button" onclick="delete ThisClient(1,4) ;"
value="Delete" name="delete"/>
<input type="reset" value="Clear"/>
</table>
</form>
Can you see any reason why the reset button would be dead?
Tom
Tom, it seems groups are like most forums: ruled by arrogance!

Jul 25 '07 #7
Rik
On Wed, 25 Jul 2007 22:32:19 +0200, tomb <to**@technetce nter.comwrote:
It must be difficult being so knowledgeable that you have no tolerance
for someone who is not.
There was nothing intolerant about his remark, He stated you'd better find
the correct group, and being a regular visitor he quickly added that the
main excuse for posting here a lot of newbies use is not valid, saving him
time to answer that.

This was pure HTML with a little bit of javascript, so validate the html
and if that doesn't work ask in one of the many groups dedicated to it.
This is not rude, this is to keep groups clear and organized. You wouldn't
walk into a butcher's shop en demand he sells you bread, would you?
--
Rik Wasmus
Jul 26 '07 #8
On 25 Jul, 21:32, tomb <t...@technetce nter.comwrote:
| What I was looking for was if my PHP code is
| not putting something that it should be putting.

You might as well ask in a "notepad" forum (or whatever other editor
you use to write the code)!

Regardless of what you are using to output the html, the problem is in
the HTML and NOT in the php, just as the problem in php is not to do
with the editor.
Jul 26 '07 #9
Rik
Tom, it seems groups are like most forums: ruled by arrogance!

Well excuse us for trying to keep this group a little bit tidy, so people
with actual PHP questions have a place were those can be asked and
answered without to much noise.

Damn, now I've polluted the group the group with an off topic, non-PHP
post. See what you made me do? The irritation! I should not let you get to
me like that....

I think I'll take a break an go out and ask a farmer how to make
cheesecake. He has cows, so he should know, that's what you people seem to
teach me today.
--
Rik Wasmus
Jul 26 '07 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
17673
by: Nathan Bloomfield | last post by:
Does anyone know if there is any documentation which relates to Access2k + ? or can anyone help adjust the code? I am having trouble converting the DAO references. TITLE :INF: How to Create a Dynamic Crosstab Report PRODUCT :Microsoft Access PROD/VER:1.00 1.10 OPER/SYS:WINDOWS
3
6831
by: MikeY | last post by:
Hi Everyone, I am working in C#, windows forms.My question is this. All my button dynamic controls properties are present and accounted for except for the"FlatStyle" properties. I can't seem to figure out, if there is a way of using polymorphic way (if that is a word) of doing this particular property. A sample of my code is as follows: DynamicControls.ButtonControl(this,btnSearchByName, new Point(5, 75), new Size(95, 20),...
1
7588
by: Shourie | last post by:
I've noticed that none of the child controls events are firing for the first time from the dynamic user control. Here is the event cycle. 1) MainPage_load 2) User control1_Load user clicks a dropdown in UC1 _________________________ 1) MainPage_Load 2) User Control_1 Load
4
3312
by: Venus | last post by:
Hello, Thanks for your reply. I understand that a control can be created dynamically in several ways: 1) using StringBuilder 2) using Controls.Add 3) using ASP PlaceHolder But this is just for the controls and not for the form itself. What I am trying to achieve is to create an entire form (including controls)
0
1492
by: Venus | last post by:
Hello, After trying some ways to do it I wanted to use something like the code below but for some reason is not working (I have to generate the entire form dynamically (not only the controls)): Can anyone make any suggestions on how to do it ? Thanks
3
13754
by: NateDawg | last post by:
I'm reposting this. I'm kinda in a bind untill i get this figured out, so if anyone has some input it would sure help me out. Ok, I’ve noticed a few gridview problems floating around the forum. Everyone wants to do a java confirmation box when a user clicks the delete button. Fair enough, basic user design rules state that you should always confirm a delete action. There is also a consensus that the best way to do this is a template...
3
5400
polymorphic
by: polymorphic | last post by:
I have succeeded in embedding PDF files in a dynamic iframe. The problem is that I need the PDF to cache. If the PDF remains the same from page load to page load then the pdf is somehow cached with the html page. But if I try to navigate to another pdf in the IFRAME then no caching occurs. Is the problem in the IFRAME reloading instead of just refreshing the pdf? <SCRIPT type="text/javascript"> var pageNo; var nav; var iframe; var...
3
18718
by: creative1 | last post by:
Here is how you create a complex data report that involves parent and child commands and you can update information at runtime. Its pretty straight forward to work with simple queries; however, working with complex reports is tricky Assumption: Reader of this article have basic knowledge of creating data reports. Creating a Parent-Child Command and create a DataReport Suppose we have a database called company with two tables ...
1
4660
by: MaryamSh | last post by:
Hi, I am creating a Dynamic Search in my application. I create a user control and in Page_load event I create a dynamic dropdownlist and 2 dynamic button (Add,Remove) By pressing Add button ,another row will be created with the same control (I mean another dropdown and 2 button) and so on. and by pressing Remove button the selecetd row will be removed. I used viewstate to keep my value for postback, I want by changing selectedvalue of...
0
3501
by: MaryamSh | last post by:
Create Dynamic Dropdownlist Controls and related event -------------------------------------------------------------------------------- Hi, I am creating a Dynamic Search in my application. I create a user control and in Page_load event I create a dynamic dropdownlist and 2 dynamic button (Add,Remove) By pressing Add button ,another row will be created with the same control (I mean another dropdown and 2 button) and so on. and by...
0
9645
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10341
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10155
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9954
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8979
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7502
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5383
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5513
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4054
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 we have to send another system

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.