That's it!

On Jul 9, 2007, at 8:58 AM, [EMAIL PROTECTED] wrote:

>
> Hey there, one thing I would like to ask is that you have as the
> observed element as 'iframe1', to clarify this isn't an  iframe right,
> which might cause problems.
>
> The alert works because it is simply a string, and doesn't return an
> object, so you need to use alert($(imageShow1));
>
> if it cannot find it may be because your script is located before the
> element, and the script needs placing further down your document, so
> it can use these elements
>
> Mr Parry.
>
> On Jul 8, 9:39 pm, BeeRich <[EMAIL PROTECTED]> wrote:
>> Hi folks.
>>
>> I'm getting an error here:
>>
>> $("imageShow1") has no properties
>> $('imageShow1').update('Fred');
>>
>> Not too sure what that means.  I can get an alert to work in its  
>> place
>> just fine, so it's being called properly from my Event.observe.
>>
>> So the issue comes with the element.update.  The div is there:
>>
>> <div id="imageShow1"></div>
>>
>> And it's inside a table cell, but I don't think that means anything.
>>
>> Event.observe('iframe1', 'load', showPic());
>>
>> function showPic() {
>>                 alert('imageShow1');
>>                 $('imageShow1').update('Fred');
>>
>> So the trigger is working, the event.observe is working, and the
>> function is being called, but the $('imageShow1').update('Fred');
>> isn't taking.
>>
>> Any ideas?
>>
>> Cheers
>
>
> >


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