redho home | products | services

Programming Forums


Community for Java, PHP, Perl C, ASP and Python programmers

Ask your IT question here

each row contrain a separate form


Goto page 1, 2  Next
 
Post new topic   Reply to topic    Programming Forums -> JavaScript forum
View previous topic :: View next topic  
Author Message
Klimapol
Enthusiastic Coder


Joined: 27 May 2006
Posts: 134
That won't help me.
I wanted each row to contain a separate form.
Actually, that's what i've been doing until i ran into a javascript problem. went to validate and found out why :)

Reply with quote
 
montanarry
Enthusiastic Coder


Joined: 13 May 2006
Posts: 175
is this to edit the data row by row ?
Reply with quote
 
Klimapol
Enthusiastic Coder


Joined: 27 May 2006
Posts: 134
yes.
Reply with quote
 
montanarry
Enthusiastic Coder


Joined: 13 May 2006
Posts: 175
Klimapol, wrap the whole <table> in a <form> and have a submit button per row ... and detect which button is clicked to work out which row is to be editted
A little ugly ... but it iwll work

Reply with quote
 
Klimapol
Enthusiastic Coder


Joined: 27 May 2006
Posts: 134
i thikn i'm going to bind an event to each field and use an xmlhttp request instead.
Get rid of submit all together.
It's the proper way anyhow, i just haven't done it before so i was avoiding it.

Reply with quote
 
montanarry
Enthusiastic Coder


Joined: 13 May 2006
Posts: 175
that will work if you know that all clients will have js enabled
Reply with quote
 
Klimapol
Enthusiastic Coder


Joined: 27 May 2006
Posts: 134
They will
Reply with quote
 
montanarry
Enthusiastic Coder


Joined: 13 May 2006
Posts: 175
Onblur is your friend Smile
Reply with quote
 
Klimapol
Enthusiastic Coder


Joined: 27 May 2006
Posts: 134
Sure is!
Although it through me for a loop, i'm pretty new to js, and i was using addevent "onblur" and couldn't figure out why it wasn't working. lo and behold i had to use just "blur"
Oh well
Live and learn!

Reply with quote
 
montanarry
Enthusiastic Coder


Joined: 13 May 2006
Posts: 175
Lol
Reply with quote
 
Page 1 of 2 Goto page 1, 2  Next
Post new topic   Reply to topic    Programming Forums -> JavaScript forum


Dubai Forums - Expat Help | Vegan Chat | Java Programming | Free 3D tutorials and 3d textures | Paris Forum | EU Forum
Free Dubai Classifieds | Free London Classifieds | Jobs in London

High Quality, Custom 3d animation and Web Design solutions Royal Quality Web Hosting Services Vegetarian and Animal Rights news

Powered by phpBB © 2001, 2005 phpBB Group