Hi Remi
thanks for the reply.
Yes, I want it to replace the element (an href in this case) with the new
text. It replaces fine but only at the bottom of the document. There was
originally a work around for this, is there such a thing you know of for
the new release?
Sorry if I have not quite understood correctly, I take the DOM object to be
the <a href tag, is that correct?
cheers
Alan
On Monday, November 18, 2013 10:42:39 PM UTC, Remi Grumeau wrote:
>
> Hi Alan,
>
> _replace was designed to expand a list content, but since it replaces a
> DOM element by an external HTML content, that might do the trick.
> Note that this replace thing does replace the element, so you can't redo
> or do it twice. The element you clicked on is removed.
>
> If you want to avoid an ajax call for that, you might write up your own
> small function to do this.
>
>
> Remi
>
> Le 18 nov. 2013 à 22:30, Alan Mathers <[email protected] <javascript:>>
> a écrit :
>
> > Hi All
> >
> > I am trying to get the latest version of iui to add a bit of html in the
> middle of an existing form when a link is manually clicked. I had this
> working in an old release by implementing a patch (ie issue 74 / 104)
> >
> > I have noticed the code has now changed since then and
> replaceElementWithFrag seems to suggest to me there is a better way of
> doing this?!
> >
> > What is the accepted way of doing this now (before I start messing
> around with the new code :) )
> >
> > So far I have used the target _replace but that only appends..
> >
> > cheers
> >
> > Alan
> >
> > --
> > You received this message because you are subscribed to the Google
> Groups "iPhoneWebDev" group.
> > To unsubscribe from this group and stop receiving emails from it, send
> an email to [email protected] <javascript:>.
> > To post to this group, send email to
> > [email protected]<javascript:>.
>
> > Visit this group at http://groups.google.com/group/iphonewebdev.
> > For more options, visit https://groups.google.com/groups/opt_out.
>
>
--
You received this message because you are subscribed to the Google Groups
"iPhoneWebDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/iphonewebdev.
For more options, visit https://groups.google.com/groups/opt_out.