FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » checkbox own set and reload page
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: checkbox own set and reload page [message #170546 is a reply to message #170545] Sun, 07 November 2010 12:53 Go to previous messageGo to previous message
anver is currently offline  anver
Messages: 5
Registered: November 2010
Karma:
Junior Member
> As I understand it, here is what he means -- and anver correct me if I
> am wrong.
>
> On his form he has a checkbox.
> When the user checks this checkbox, he wants something done, namely to
> run function B and do things.

ok run a code B1 inner function B

> When the user unchecks this checkbox, he doesn't want to do things.

ok not more run code B1 inner function B (or run other code B2)



> So, the simplest way is to have a Javascript function which does the
> following:
>
> function newFunction() {
> -- test on whether checked or not.
> -- if not checked then return
> -- if checked then do what he wants done in function B or call
> function B
> }

ok is necessary javascript;
steps are this
when page is loaded check is off (default) and run function B and its code
B;
if a user click on the check, is necessary to reload the page for run
function B and code B2;





> Now I am not sure what he wants as far as written to the PC,


simple:
if php or js achieved the value of check inner a db or server, oneother
user that use the same form will have the set of the first user; this isn't
correct;


thanks
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: 25 Essentials for Exceptional Email Campaigns
Next Topic: Return False on download
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 14 09:30:56 GMT 2024

Total time taken to generate the page: 0.04796 seconds