OK, just did another test... and I think you're right about 'title' 
being a reserved name in IE.

I updated script by adding a button next to the url field, and when 
clicked, gets the value from the title, makes it SEO-friendly, and then 
places it in the url field.

The script works if I pull the value from another field (such as "tags") 
but not from the input with the id of "title".

I will choose a different name for this input field. Thanks for the tip!

-Hector

Ken Snyder wrote:
> Hector Virgen wrote:
>   
>> Hello,
>>
>> I'm having some trouble observing a text input element with Prototype 
>> 1.6. My script works in FireFox but not in IE7. I'm using the XHTML1.0 
>> strict doctype and the HTML validates (so there are no duplicate IDs, 
>> etc).
>>
>> Any ideas why this is not working in IE7? I'm not receiving any JS 
>> errors, and I have JS debugging turned on.
>>
>> ...        alert('title: ' + $('title').getAttribute('value')); // 
>> alerts "title: null" ...
>>
>> As you can see, I've tried various event types and none of them are 
>> triggered in IE7.
>>
>> The additional alerts are for testing, and the first alert "Found 
>> required elements" is displayed in IE but that's as far as it gets.
>>
>> Any help would be greatly appreciated. Thanks!
>>     
> "title" may be one of those ids that IE doesn't like.  ("length" was 
> mentioned on the list just recently).  Does it happen with another id name?
>
> - Ken Snyder
>
> >
>
>   

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to