469,323 Members | 1,575 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,323 developers. It's quick & easy.

function with onchange event

Hi.

I have an array with mysqls data. I have used this array with several text
box in a formulary.

My question is: How could i use the event onchange to make a function which
update the data of array when i would have change data in a text box.?

Thank you.

Regards.
Jose.
Jul 23 '05 #1
1 1456
Jos Carlos wrote:
Hi.

I have an array with mysqls data. I have used this array with several text
box in a formulary.

My question is: How could i use the event onchange to make a function which
update the data of array when i would have change data in a text box.?

Thank you.

Regards.
Jose.


Short answer: You can't. Javascript is client side - it has no library
or facility to talk with MySQL or any other database that would exist on
a server.

Also: I do not believe you can communicate with a server without the
screen refreshing - an alternative would be a copy of your data held in
a seperate window/frame which gets submitted while out of focus... this
would allow you to do the onchange event, but you'd have to have
something server side like PHP or Perl to take your data and write it to
the database.

Drop a byte in the comp.lang.php group for more info.

randelld
Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by R.G. Vervoort | last post: by
3 posts views Thread by ppcguy | last post: by
4 posts views Thread by mantrid | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by Gurmeet2796 | last post: by
reply views Thread by harlem98 | last post: by
reply views Thread by listenups61195 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.