hi aaron, i'm having the same issues with my robot too.. please update me when you find something interesting regarding this topic
thanks On Aug 28, 11:58 am, Aaron <[email protected]> wrote: > Hello! > > I'm having a few issues that spawn from simply trying to replace E- > mail addresses with mailto hyperlinks while someone is typing in a > blip (prior to submit, i.e. during BLIP_TIMESTAMP_CHANGED events). I > may be going about this the wrong way, so please assist if you know > better. For instance, as someone is typing (and I have this working): > > [email protected][cursor] > > It is immediately replaced with: > > <a href="mailto:[email protected]">[email protected]</a>[CURSOR] > > ... > > This is performed in an OnBlipTimestampChanged procedure in Python > that has a regular expression checking for valid E-mail addresses, > when one is found, the hyperlink text is added to the matched start > location of the original E-mail address text in the blip using > InsertText, and DeleteRange is used to remove the original E-mail > address from the end of the text. This does two things, preserves > cursor position, does not interrupt live user input. > > Here are my 3 issues: > 1) If I use AppendText, and then DeleteRange: > * Good: Linky recognizes the appended text and converts E-mail > address to a hyperlink. > * Bad: The final cursor position is to the left of the Appended > text so cursor preservation is lost. > > - Example: [cursor][email protected]_ <---- hyperlink > > 2) If I use InsertText, and then DeleteRange: > * Good: Cursor position is saved! User's input is uninterrupted. > * Bad: Linky does not recognize the hyperlink, and leaves the > html text as the actual text, not a link. > > - Example: <a href="[email protected]">[email protected]</a> > [CURSOR] > > 3) Overall, linky tinyurls all links killing mailto links (notice > your system cannot decipher this and fire yoru default mail client): > > - Example: The resultant HREF is > likehttp://www.google.com/url?sa=D&q=http%3A%2F%2Fwww.google.com > > I have 2 questions: > > * My BIGGEST question is, how do I move the cursor to the end with > the AppendText method (#1 above) so Linky correctly recognizes and > converts the blip context? > > * Where the heck is the DocumentMutationobjects, I'm happy to > research this, just need some pointers. > > Thanks in advance! > Aaron Elliott --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Wave API" 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/google-wave-api?hl=en -~----------~----~----~----~------~----~------~--~---
