List Info

Thread: Re: Dúvida cruel com arrays...




Re: Dúvida cruel com arrays...
country flaguser name
United States
2008-03-04 12:53:12

I saw a few things wrong with your code.

In the "for" loop, you don't declare i as a var. This could cause the
script to stop working.

You need to specify an action and a method in your form. Leaving them
blank is not an option. "action" is the next page or process in
sequence. "method" is usually either "POST" or "GET" - read up on
these to decide which to use.

--Tim Sabin

> Sorry for incovenience, i'd posted the same in portuguese list of
> javascript, but none of these members help me.
>
> Ok, i will describe my question now
>
> I have some grups of radio buttons:
>
> <script type=";text/javascript";>
>; function check_all(chks){
&gt; for(var t = chks.value.length, i=0; i < t; i++) chks[i].checked =
true;
> }
> </script>
>;
> <form name=";dados"; action=&quot;" method=&quot;"&gt;
>
> <input type=";radio"; name=";presence[1]" value=&quot;Present&quot; />
&gt; <input type=";radio"; name=";presence[1]" value=&quot;HalfTime&quot; />
&gt; <input type=";radio"; name=";presence[1]" value=&quot;Saturday&quot; />
&gt; <input type=";radio"; name=";presence[1]" value=&quot;Absent&quot; />
&gt;
> <input type=";radio"; name=";presence[2]" value=&quot;Present&quot; />
&gt; <input type=";radio"; name=";presence[2]" value=&quot;HalfTime&quot; />
&gt; <input type=";radio"; name=";presence[2]" value=&quot;Saturday&quot; />
&gt; <input type=";radio"; name=";presence[2]" value=&quot;Absent&quot; />
&gt;
> <input type=";radio"; name=";presence[3]" value=&quot;Present&quot; />
&gt; <input type=";radio"; name=";presence[3]" value=&quot;HalfTime&quot; />
&gt; <input type=";radio"; name=";presence[3]" value=&quot;Saturday&quot; />
&gt; <input type=";radio"; name=";presence[3]" value=&quot;Absent&quot; />
&gt;
> //I want here one button to select all "Present"
> //Another to all "HalfTime"
> //One another to all "Saturday"
> //And finally another to "Absent"
> //The function on top don't work, how can I do this ?
>
> // Best Regards For All Friends !!! =D
>
> <input type=";button&quot; value=&quot;Mark all"
> onclick=&quot;javascript:check_all(document.dados.elements
['Present']);" />
&gt; <input type=";button&quot; value=&quot;Mark all ½"
> onclick=&quot;javascript:check_all(document.dados.elements
['HalfTime']);" />
&gt; <input type=";button&quot; value=&quot;Mark All Saturday&quot;
> onclick=&quot;javascript:check_all(document.dados.elements
['Saturday']);" />
&gt; <input type=";button&quot; value=&quot;Mark All Absent&quot;
> onclick=&quot;javascript:check_all(document.dados.elements['Absent']);&quot; />
&gt;
> <input type=";submit&quot; value=&quot;Submit&quot; />
&gt;
> </form&gt;
>
>
>
>
>
> Visit http://aiaiai.com for more groups to join
> Yahoo! Groups Links
&gt;
>
>
>
>

--Tim Sabin

__._,_.___
.

__,_._,___
Re: Dúvida cruel com arrays...
country flaguser name
United Kingdom
2008-03-04 18:26:31

I made another test with this...but with radio buttons just one is
selected.

I changed to checkbox and i can select all.

But i'd wanted in radio because just one of options have to be selected.

Maybe anyone can help now with my new try ?

<;html>
<head&gt;
<title>Test</title>
<script type=";text/javascript";>
function selectAll(name, value) {
var formblock;
var forminputs;
formblock= document.getElementById('dados');
forminputs = formblock.getElementsByTagName('input');

for (i = 0; i < forminputs.length; i++) {
var regex = new RegExp(name, "i&quot;);
if (regex.test(forminputs[i].getAttribute('name'))) {
if (value == '1') {
forminputs[i].checked = true;
} else {
forminputs[i].checked = false;
}
}
}
}
&lt;/script&gt;
</head>
&lt;body>
<form id="dados" name=";dados"; action=&quot;" method=&quot;post&quot;>
&lt;table align=&quot;center&quot;>
<tr>
<td>;Present<;/td>
<td>HalfTime<;/td>
<td>Saturday<;/td>
<td>Present</td>
</tr>
<tr&gt;
<td><input type=";checkbox&quot; name=";presence[Present]&quot; value=&quot;1" /></td>
&lt;td><;input type=";checkbox&quot; name=";presence[HalfTime]&quot; value=&quot;1" /></td>
&lt;td><;input type=";checkbox&quot; name=";presence[Saturday]&quot; value=&quot;1" /></td>
&lt;td><;input type=";checkbox&quot; name=";presence[Absent]&quot; value=&quot;1" /></td>
&lt;/tr>
<tr>
<td&gt;<input type=";checkbox&quot; name=";presence[Present]&quot; value=&quot;2" /></td>
&lt;td><;input type=";checkbox&quot; name=";presence[HalfTime]&quot; value=&quot;2" /></td>
&lt;td><;input type=";checkbox&quot; name=";presence[Saturday]&quot; value=&quot;2" /></td>
&lt;td><;input type=";checkbox&quot; name=";presence[Absent]&quot; value=&quot;2" /></td>
&lt;/tr>
<tr>
<td&gt;<input type=";checkbox&quot; name=";presence[Present]&quot; value=&quot;3" /></td>
&lt;td><;input type=";checkbox&quot; name=";presence[HalfTime]&quot; value=&quot;3" /></td>
&lt;td><;input type=";checkbox&quot; name=";presence[Saturday]&quot; value=&quot;3" /></td>
&lt;td><;input type=";checkbox&quot; name=";presence[Absent]&quot; value=&quot;3" /></td>
&lt;/tr>
</table>
<p align=&quot;center&quot;>
<input type=";button&quot; value=&quot;Mark all"
onclick="javascript:selectAll('Present', '1');"; />
&lt;input type=";button&quot; value=&quot;Mark all ½"
onclick="javascript:selectAll('HalfTime', '1');"; />
&lt;input type=";button&quot; value=&quot;Mark All Saturday&quot;
onclick="javascript:selectAll('Saturday', '1');"; />
&lt;input type=";button&quot; value=&quot;Mark All Absent&quot;
onclick="javascript:selectAll('Absent', '1');"; />
&lt;br /><br />
&lt;input type=";button&quot; value=&quot;Unmark all"
onclick="javascript:selectAll('Present', '0');"; />
&lt;input type=";button&quot; value=&quot;Unmark all ½"
onclick="javascript:selectAll('HalfTime', '0');"; />
&lt;input type=";button&quot; value=&quot;Unmark All Saturday&quot;
onclick="javascript:selectAll('Saturday', '0');"; />
&lt;input type=";button&quot; value=&quot;Unmark All Absent&quot;
onclick="javascript:selectAll('Absent', '0');"; /><br />
&lt;br />
&lt;input type=";submit&quot; value=&quot;Submit&quot; />
&lt;/p>
</form&gt;
</body>
&lt;/html>;

Tim Sabin wrote:
&gt;
> I saw a few things wrong with your code.
&gt;
> In the "for&quot; loop, you don't declare i as a var. This could cause the
> script to stop working.
>
>; You need to specify an action and a method in your form. Leaving them
>; blank is not an option. "action" is the next page or process in
> sequence. "method" is usually either "POST" or "GET&quot; - read up on
> these to decide which to use.
>;
> --Tim Sabin
&gt;

__._,_.___
.

__,_._,___
Re: Buttons not appearing when fields made editable.
country flaguser name
United States
2008-03-04 22:29:09

For some reason my buttons are not showing up. When I click a button
edit profile it makes my fields editable and should give me a cancel and
save button. (I'm copying code from a working site) and for some reason
it isn't occurring here. Wondering for ideas why this isn't
happening. What areas should I look at?

Code snippets follow

<table width=&quot;100%"; border=&quot;0" cellpadding="5&quot; cellspacing="0&quot; >
<form name=";editProfile" id="editProfile&quot;>
<tr bgcolor=&quot;#E4E9ED" >
<td bgcolor=&quot;#E4E9ED" ><div align=&quot;left";><strong>
<?=$first_name.&quot; ".$last_name?&gt;
</strong></div></td>
<td align=&quot;right&quot; bgcolor=&quot;#E4E9ED" ><strong>
<span id="editProfLink" style=&quot;cursor:pointer;cursor:hand ;
font-weight:bold&quot; onclick=&quot;makeEditableProfile()">Edit profile<;/span>
<span id="savingProfile" style=&quot;display:none"&gt;Saving...</span> </strong>
<span id="editProfileBut" style=&quot;display:none"&gt;
<input name=";save" type=";button&quot;
onclick="editProfileProc()" id="save" value=&quot;Save"; class=&quot;bodyText&quot; />
<input name=";cancel&quot; type=";button&quot; id="cancel"
value=&quot;Cancel" onclick=&quot;makeReadonlyProfile()" class=&quot;bodyText&quot; />
</span&gt; </td>;

function makeEditableProfile() {
var ob = document.editProfile;
for (i = 0; i < ob.elements.length; i++) {
if (ob.elements[i].type == "text") {
ob.elements[i].className = 'bodyText';
ob.elements[i].readOnly = false;

}
}
$('editProfLink').style.display='none';
$('editProfileBut').style.display = '';
}
>
>

[Non-text portions of this message have been removed]

__._,_.___
.

__,_._,___
Re: Dúvida cruel com arrays...
country flaguser name
United States
2008-03-05 11:16:49

Once again:
1) i is not declared as a var in your for loop. This is a syntax error,
and will stop the script from running.
2) The "action" attribute of the "form"tag is blank. This is
unacceptable. You need to specify what action is to be taken when the
form is submitted. This is for HTML.

--Tim Sabin

nickmarinho%40yahoo.com.br">nickmarinhoyahoo.com.br wrote:
&gt; I made another test with this...but with radio buttons just one is
> selected.
>
&gt; I changed to checkbox and i can select all.
>;
> But i'd wanted in radio because just one of options have to be selected.
>
&gt; Maybe anyone can help now with my new try ?
>
> <html&gt;
> <head&gt;
> <title&gt;Test</title>
> <script type=";text/javascript";>
>; function selectAll(name, value) {
> var formblock;
> var forminputs;
> formblock= document.getElementById('dados');
> forminputs = formblock.getElementsByTagName('input');
>
&gt; for (i = 0; i < forminputs.length; i++) {
> var regex = new RegExp(name, "i&quot;);
>; if (regex.test(forminputs[i].getAttribute('name'))) {
> if (value == '1') {
> forminputs[i].checked = true;
&gt; } else {
> forminputs[i].checked = false;
&gt; }
> }
> }
> }
> </script>
>; </head&gt;
> <body&gt;
> <form id="dados" name=";dados"; action=&quot;" method=&quot;post&quot;>
&gt; <table align=&quot;center&quot;>
> <tr>
> <td>Present</td>
> <td>HalfTime<;/td>
> <td>Saturday<;/td>
> <td>Present</td>
> </tr>;
> <tr>
> <td><input type=";checkbox&quot; name=";presence[Present]&quot; value=&quot;1" /></td>
&gt; <td><input type=";checkbox&quot; name=";presence[HalfTime]&quot; value=&quot;1" /></td>
&gt; <td><input type=";checkbox&quot; name=";presence[Saturday]&quot; value=&quot;1" /></td>
&gt; <td><input type=";checkbox&quot; name=";presence[Absent]&quot; value=&quot;1" /></td>
&gt; </tr>;
> <tr>
> <td><input type=";checkbox&quot; name=";presence[Present]&quot; value=&quot;2" /></td>
&gt; <td><input type=";checkbox&quot; name=";presence[HalfTime]&quot; value=&quot;2" /></td>
&gt; <td><input type=";checkbox&quot; name=";presence[Saturday]&quot; value=&quot;2" /></td>
&gt; <td><input type=";checkbox&quot; name=";presence[Absent]&quot; value=&quot;2" /></td>
&gt; </tr>;
> <tr>
> <td><input type=";checkbox&quot; name=";presence[Present]&quot; value=&quot;3" /></td>
&gt; <td><input type=";checkbox&quot; name=";presence[HalfTime]&quot; value=&quot;3" /></td>
&gt; <td><input type=";checkbox&quot; name=";presence[Saturday]&quot; value=&quot;3" /></td>
&gt; <td><input type=";checkbox&quot; name=";presence[Absent]&quot; value=&quot;3" /></td>
&gt; </tr>;
> </table>
> <p align=&quot;center&quot;>
> <input type=";button&quot; value=&quot;Mark all"
> onclick=&quot;javascript:selectAll('Present', '1');"; />
&gt; <input type=";button&quot; value=&quot;Mark all ½"
> onclick=&quot;javascript:selectAll('HalfTime', '1');"; />
&gt; <input type=";button&quot; value=&quot;Mark All Saturday&quot;
> onclick=&quot;javascript:selectAll('Saturday', '1');"; />
&gt; <input type=";button&quot; value=&quot;Mark All Absent&quot;
> onclick=&quot;javascript:selectAll('Absent', '1');"; />
&gt; <br /><br />
&gt; <input type=";button&quot; value=&quot;Unmark all"
> onclick=&quot;javascript:selectAll('Present', '0');"; />
&gt; <input type=";button&quot; value=&quot;Unmark all ½"
> onclick=&quot;javascript:selectAll('HalfTime', '0');"; />
&gt; <input type=";button&quot; value=&quot;Unmark All Saturday&quot;
> onclick=&quot;javascript:selectAll('Saturday', '0');"; />
&gt; <input type=";button&quot; value=&quot;Unmark All Absent&quot;
> onclick=&quot;javascript:selectAll('Absent', '0');"; /><br />
&gt; <br />
&gt; <input type=";submit&quot; value=&quot;Submit&quot; />
&gt; </p>
> </form&gt;
> </body&gt;
> </html&gt;
>
>
&gt; Tim Sabin wrote:
&gt;
>>; I saw a few things wrong with your code.
&gt;>
&gt;> In the "for&quot; loop, you don't declare i as a var. This could cause the
>> script to stop working.
>>
>> You need to specify an action and a method in your form. Leaving them
>;> blank is not an option. "action" is the next page or process in
>&gt; sequence. "method" is usually either "POST" or "GET&quot; - read up on
>&gt; these to decide which to use.
>;>
>;> --Tim Sabin
&gt;>
&gt;>
>
>
>
>
&gt;
> Visit http://aiaiai.com for more groups to join
> Yahoo! Groups Links
&gt;
>
>
>;
>
>

__._,_.___
.

__,_._,___
Re: Re: Buttons not appearing when fields made editable.
country flaguser name
United States
2008-03-05 11:38:36

It's because your declaration for your "save" and "cancel" buttons is
inside the "editProfileBut&quot; span. The style of this span is
"display:none", which tells the browser not to display the contents. If
you want the buttons to always be visible, take away the span. If you
want them to be visible only part of the time, make sure you have
JavaScript that, at some point, sets style=&quot;display:visible&quot;.

--Tim Sabin

Michael Horowitz wrote:
&gt; For some reason my buttons are not showing up. When I click a button
> edit profile it makes my fields editable and should give me a cancel and
> save button. (I'm copying code from a working site) and for some reason
> it isn't occurring here. Wondering for ideas why this isn't
> happening. What areas should I look at?
>
> Code snippets follow
&gt;
> <table width=&quot;100%"; border=&quot;0" cellpadding="5&quot; cellspacing="0&quot; >
>; <form name=";editProfile" id="editProfile&quot;>
> <tr bgcolor=&quot;#E4E9ED" >
>; <td bgcolor=&quot;#E4E9ED" ><div align=&quot;left";><strong>
> <?=$first_name.&quot; ".$last_name?&gt;
> </strong></div></td>
&gt; <td align=&quot;right&quot; bgcolor=&quot;#E4E9ED" ><strong>
> <span id="editProfLink" style=&quot;cursor:pointer;cursor:hand ;
> font-weight:bold&quot; onclick=&quot;makeEditableProfile()">Edit profile<;/span>
> <span id="savingProfile" style=&quot;display:none"&gt;Saving...</span> </strong>
> <span id="editProfileBut" style=&quot;display:none"&gt;
> <input name=";save" type=";button&quot;
> onclick=&quot;editProfileProc()" id="save" value=&quot;Save"; class=&quot;bodyText&quot; />
&gt; <input name=";cancel&quot; type=";button&quot; id="cancel"
> value=&quot;Cancel&quot; onclick=&quot;makeReadonlyProfile()" class=&quot;bodyText&quot; />
&gt; </span&gt; </td>;
>
> function makeEditableProfile() {
> var ob = document.editProfile;
> for (i = 0; i < ob.elements.length; i++) {
> if (ob.elements[i].type == "text") {
> ob.elements[i].className = 'bodyText';
> ob.elements[i].readOnly = false;
&gt;
> }
> }
> $('editProfLink').style.display='none';
> $('editProfileBut').style.display = '';
> }
>
>>;
>>;
>
>
>
> [Non-text portions of this message have been removed]
>
>;
>
> Visit http://aiaiai.com for more groups to join
> Yahoo! Groups Links
&gt;
>
>
>;
>
>

__._,_.___
.

__,_._,___
Re: Re: Buttons not appearing when fields made editable.
country flaguser name
United States
2008-03-05 11:47:43

Thanks that let me know where to look in the Javascript to see where the
code is failing on the move to the new site.

Tim Sabin wrote:
&gt;
> It's because your declaration for your "save" and "cancel" buttons is
> inside the "editProfileBut&quot; span. The style of this span is
> "display:none&quot;, which tells the browser not to display the contents. If
> you want the buttons to always be visible, take away the span. If you
> want them to be visible only part of the time, make sure you have
>; JavaScript that, at some point, sets style=&quot;display:visible&quot;.
>
> --Tim Sabin
&gt;
> Michael Horowitz wrote:
&gt; > For some reason my buttons are not showing up. When I click a button
&gt; > edit profile it makes my fields editable and should give me a cancel
> and
> > save button. (I'm copying code from a working site) and for some reason
&gt; > it isn't occurring here. Wondering for ideas why this isn't
&gt; > happening. What areas should I look at?
> >
>; > Code snippets follow
&gt; >
>; > <table width=&quot;100%"; border=&quot;0" cellpadding="5&quot; cellspacing="0&quot; >
>; > <form name=";editProfile" id="editProfile&quot;>
> > <tr bgcolor=&quot;#E4E9ED" >
>; > <td bgcolor=&quot;#E4E9ED" ><div align=&quot;left";><strong>
> > <?=$first_name.&quot; ".$last_name?&gt;
> > </strong></div></td>
&gt; > <td align=&quot;right&quot; bgcolor=&quot;#E4E9ED" ><strong>
> > <span id="editProfLink" style=&quot;cursor:pointer;cursor:hand ;
> > font-weight:bold&quot; onclick=&quot;makeEditableProfile()">Edit profile<;/span>
> > <span id="savingProfile" style=&quot;display:none"&gt;Saving...</span>
> </strong>
>; > <span id="editProfileBut" style=&quot;display:none"&gt;
> > <input name=";save" type=";button&quot;
> > onclick=&quot;editProfileProc()" id="save" value=&quot;Save"; class=&quot;bodyText&quot; />
&gt; > <input name=";cancel&quot; type=";button&quot; id="cancel"
> > value=&quot;Cancel&quot; onclick=&quot;makeReadonlyProfile()" class=&quot;bodyText&quot; />
&gt; > </span&gt; </td>;
> >
>; > function makeEditableProfile() {
> > var ob = document.editProfile;
> > for (i = 0; i < ob.elements.length; i++) {
> > if (ob.elements[i].type == "text") {
> > ob.elements[i].className = 'bodyText';
> > ob.elements[i].readOnly = false;
&gt; >
>; > }
> > }
> > $('editProfLink').style.display='none';
> > $('editProfileBut').style.display = '';
> > }
> >
>; >>
> >>
> >
>; >
>; >
>; > [Non-text portions of this message have been removed]
> >
>; >
>; >
>; > Visit http://aiaiai.com <http://aiaiai.com&gt; for more groups to join
>; > Yahoo! Groups Links
&gt; >
>; >
>; >
>; >
>; >
>; >
>;
>

__._,_.___
.

__,_._,___
Re: Dúvida cruel com arrays...
country flaguser name
United States
2008-03-05 20:02:49

Ok, I understood.

But about my function in javascript ?

How can i do this work ?

What modifications i have to do in this function ?

I know that is not html error but i'm crazy about the script...
:(

Best Regards !!!

Tim Sabin wrote:
&gt;
> Once again:
&gt; 1) i is not declared as a var in your for loop. This is a syntax error,
&gt; and will stop the script from running.
> 2) The "action" attribute of the "form"tag is blank. This is
> unacceptable. You need to specify what action is to be taken when the
> form is submitted. This is for HTML.
&gt;
> --Tim Sabin
&gt;
> nickmarinho%40yahoo.com.br">nickmarinhoyahoo.com.br <mailto:nickmarinho%40yahoo.com.br> wrote:
&gt; > I made another test with this...but with radio buttons just one is
> > selected.
> >
>; > I changed to checkbox and i can select all.
>; >
>; > But i'd wanted in radio because just one of options have to be selected.
> >
>; > Maybe anyone can help now with my new try ?
> >
>; > <html&gt;
> > <head&gt;
> > <title&gt;Test</title>
> > <script type=";text/javascript";>
>; > function selectAll(name, value) {
> > var formblock;
> > var forminputs;
> > formblock= document.getElementById('dados');
> > forminputs = formblock.getElementsByTagName('input');
> >
>; > for (i = 0; i < forminputs.length; i++) {
> > var regex = new RegExp(name, "i&quot;);
>; > if (regex.test(forminputs[i].getAttribute('name'))) {
> > if (value == '1') {
> > forminputs[i].checked = true;
&gt; > } else {
> > forminputs[i].checked = false;
&gt; > }
> > }
> > }
> > }
> > </script>
>; > </head&gt;
> > <body&gt;
> > <form id="dados" name=";dados"; action=&quot;" method=&quot;post&quot;>
&gt; > <table align=&quot;center&quot;>
> > <tr>
> > <td>Present</td>
> > <td>HalfTime<;/td>
> > <td>Saturday<;/td>
> > <td>Present</td>
> > </tr>;
> > <tr>
> > <td><input type=";checkbox&quot; name=";presence[Present]&quot; value=&quot;1" /></td>
&gt; > <td><input type=";checkbox&quot; name=";presence[HalfTime]&quot; value=&quot;1" /></td>
&gt; > <td><input type=";checkbox&quot; name=";presence[Saturday]&quot; value=&quot;1" /></td>
&gt; > <td><input type=";checkbox&quot; name=";presence[Absent]&quot; value=&quot;1" /></td>
&gt; > </tr>;
> > <tr>
> > <td><input type=";checkbox&quot; name=";presence[Present]&quot; value=&quot;2" /></td>
&gt; > <td><input type=";checkbox&quot; name=";presence[HalfTime]&quot; value=&quot;2" /></td>
&gt; > <td><input type=";checkbox&quot; name=";presence[Saturday]&quot; value=&quot;2" /></td>
&gt; > <td><input type=";checkbox&quot; name=";presence[Absent]&quot; value=&quot;2" /></td>
&gt; > </tr>;
> > <tr>
> > <td><input type=";checkbox&quot; name=";presence[Present]&quot; value=&quot;3" /></td>
&gt; > <td><input type=";checkbox&quot; name=";presence[HalfTime]&quot; value=&quot;3" /></td>
&gt; > <td><input type=";checkbox&quot; name=";presence[Saturday]&quot; value=&quot;3" /></td>
&gt; > <td><input type=";checkbox&quot; name=";presence[Absent]&quot; value=&quot;3" /></td>
&gt; > </tr>;
> > </table>
> > <p align=&quot;center&quot;>
> > <input type=";button&quot; value=&quot;Mark all"
> > onclick=&quot;javascript:selectAll('Present', '1');"; />
&gt; > <input type=";button&quot; value=&quot;Mark all ½"
> > onclick=&quot;javascript:selectAll('HalfTime', '1');"; />
&gt; > <input type=";button&quot; value=&quot;Mark All Saturday&quot;
> > onclick=&quot;javascript:selectAll('Saturday', '1');"; />
&gt; > <input type=";button&quot; value=&quot;Mark All Absent&quot;
> > onclick=&quot;javascript:selectAll('Absent', '1');"; />
&gt; > <br /><br />
&gt; > <input type=";button&quot; value=&quot;Unmark all"
> > onclick=&quot;javascript:selectAll('Present', '0');"; />
&gt; > <input type=";button&quot; value=&quot;Unmark all ½"
> > onclick=&quot;javascript:selectAll('HalfTime', '0');"; />
&gt; > <input type=";button&quot; value=&quot;Unmark All Saturday&quot;
> > onclick=&quot;javascript:selectAll('Saturday', '0');"; />
&gt; > <input type=";button&quot; value=&quot;Unmark All Absent&quot;
> > onclick=&quot;javascript:selectAll('Absent', '0');"; /><br />
&gt; > <br />
&gt; > <input type=";submit&quot; value=&quot;Submit&quot; />
&gt; > </p>
> > </form&gt;
> > </body&gt;
> > </html&gt;
> >
>; >
>; > Tim Sabin wrote:
&gt; >
>; >> I saw a few things wrong with your code.
&gt; >>
> >> In the "for&quot; loop, you don't declare i as a var. This could cause the
> >> script to stop working.
> >>
> >> You need to specify an action and a method in your form. Leaving them
>; >> blank is not an option. "action" is the next page or process in
> >> sequence. "method" is usually either "POST" or "GET&quot; - read up on
> >> these to decide which to use.
>; >>
> >> --Tim Sabin
&gt; >>
> >>
> >
>; >
>; >
>; >
>; >
>; > Visit http://aiaiai.com <http://aiaiai.com&gt; for more groups to join
>; > Yahoo! Groups Links
&gt; >
>; >
>; >
>; >
>; >
>; >
>;
>

--

__._,_.___
.

__,_._,___
[1-7]

about | contact  Other archives ( Real Estate discussion Medical topics )