I was reading about the set function and its properties and have found
this
$('myImage').setProperty('src', 'mootools.png');
Note
* Whenever using Element:setProperty to set an attribute, pass in the
lowercase, simplified form of the property. For example:
o use 'for', not 'htmlFor',
o use 'class', not 'className'
o use 'frameborder', not 'frameBorder'
o etc.
Do i need to use iframe here? because i am not showing any image. so
do i need to create different page(something.html) and put that into
iframes and called its id on refresh? Could you please tell me.
On Nov 4, 12:16 pm, Sanford Whiteman <[email protected]>
wrote:
> > NO, container is not an url, its containing a vidows i am fetching
> > from the flicks. so i just want to refresh this div on the click
>
> load() takes a URL -- so you need to reread the docs for load().
>
> > I am not sure what to put here
> > "set('html',...)."
>
> Did you read the docs and examples for set()?
>
> You will find that there are a number of different convenience methods
> to go about an XHR update of the (inner) HTML of an element, all of
> them wrapping the same underlying method. You should first know how to
> do it manually, that is, not from a remote server but from a local
> string.
>
> -- Sandy