On 4/18/07, cirpo <[EMAIL PROTECTED]> wrote:
>
> <form id="add_category" method="post" action=#>
> <table id="prodotti">
>
> <tr>
> <td>name</td>
> <td colspan="2"><INPUT class="required" type="text"
> id="name_category" name="category"
> onfocus="Form.reset('add_category');" /></td>
> </tr>
> <tr>
> <td>Category</td>
> <td id="select_GROUP"></td><------THIS IS CREATE WITH
> AJAX.UPDATER
> <select id="sel_gr" class="validate-selection"
> name="GROUP" onchange="$('error_gr').update('');">
> <option value="0">Select Group</option>
>
> <option value="1">group1</option>
> <option value="2">group2</option>
> <option value="9">group3</option>
> <option value="8">group4</option>
> </select></td>
>
> </tr>----->END AJAX>UPDATER
> <tr>
> <td><a href=# onclick="add_art();">Aggiungi</a></td>
> </tr>
> </table>
> </form>
>
> In firefox if a do an alert(gr) i get the right output but in IE i
> get Undefined or an error...
> I think that the problem is that the created select via ajax.updater
> is the problem.
The updation of select options is broken in IE and opera, you are
better of updating the entire select element.
Try that and see how it works.
HTH. Good luck.
--
Surendra Singhi
http://ssinghi.kreeti.com, http://www.kreeti.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---