hi there, Javinto,
I checked and my code swapped some <p> for <div>. Tested and still no good
with IE8.
diff --git a/app/views/parts/_form.html.erb b/app/views/parts/_form.html.erb
index c5cd780..eae7407 100644
--- a/app/views/parts/_form.html.erb
+++ b/app/views/parts/_form.html.erb
@@ -16,13 +16,13 @@
<%= render :partial => 'sub_categories/select', :locals => { :part =>
@part } %>
</div>
- <p>
+ <div>
<%= observe_field :part_category_id,
:url => { :action => :get_subcategories },
:update => :subcategory_div,
:with => 'category'
%>
- </p>
+ </div>
<p>
<%= image_tag('required_attribute.gif', :alt => "image for required
attribute") %>
diff --git a/app/views/parts/get_subcategories.erb
b/app/views/parts/get_subcategories.erb
index 9737bad..498001d 100644
--- a/app/views/parts/get_subcategories.erb
+++ b/app/views/parts/get_subcategories.erb
<% if (!...@sub_categories.nil? and @sub_categories.length > 0) %>
-<p>
+<div>
Sub category:<br />
<%= collection_select(
:part,
{:include_blank => true}
)
%>
-</p>
+</div>
<% end %>
Any ideas?
On 5 June 2010 19:39, javinto <[email protected]> wrote:
> Hi,
>
> As I have to guess your code, I can just share my experience with Ajax
> and IE.
>
> I recently had a similar problem with the Ajax :update=>'<#id>' call.
> I updated a <p> element which went perfect in Firefox, but not in IE.
> After changing the <p> element into a <div> my code fired in IE as
> well. So, you might check the HTML you're using.
>
> Jan
>
>
> On Jun 5, 2:20 am, ct9a <[email protected]> wrote:
> > Hi, Colin,
> >
> > Every page I make has to pass by W3C's validation.
> >
> > It's a pity why IE8 doesn't really support prototype and rails' JS
> > helpers are made out of prototype...
> >
> > Any more ideas guys?
> >
> > Gordon
> >
> > On Jun 5, 1:17 am, Colin Law <[email protected]> wrote:
> >
> > > Just a thought, have you checked that your html is valid by pasting
> > > the complete page source into the w3c html validator? Differences
> > > between browsers is often down to invalid html.
> >
> > > Colin
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<rubyonrails-talk%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" 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-talk?hl=en.