Thanks Max,

The above javascript snippet was the only thing I could get to work in
Safari on the desktop.

I don't have anything publicly available for you to look at but I
checked out the latest code locally and serverside and removed just
that line of css from iui.css.
After doing this I tried this demo: 
http://iui.googlecode.com/svn/trunk/samples/music.html#_home
When I click "Search" and try to paste in text into the text field
nothing happens, after adding the above line of javascript pasting
works.

If you have some time could you please double check this and let me
know the results.

Cheers,
Isaac

On Jul 28, 8:30 pm, Isaac <isaackea...@gmail.com> wrote:
> Here is how I enabled paste for text fields:
>
> "addEventListener("paste",function(e)
> {e.target.value=e.clipboardData.getData('text/plain')},true);"
>
> On Jul 28, 6:30 pm, Isaac <isaackea...@gmail.com> wrote:
>
>
>
> > Sorry I got this wrong, copy and paste IS working on the iphone but
> > not in Safari on the desktop.
> > Still trying to figure out why this is happening,
>
> > On Jul 28, 5:19 pm, Isaac <isaackea...@gmail.com> wrote:
>
> > > Hi Sean,
>
> > > I'm not having much luck pasting anything into the input fields in
> > > iUI.
> > > I tried disabling -webkit-user-select also but this didn't make any
> > > difference.
> > > I've tried this in safari, webkit and iphone with the same result.
>
> > > I'm particularly interested in getting the search-style dialog form to
> > > work with pasting text.
>
> > > Do you have any ideas?
>
> > > Cheers,
> > > Isaac
>
> > > On Jun 19, 7:53 am, Sean Gilligan <msgilli...@gmail.com> wrote:
>
> > > > pierre wrote:
> > > > > I can't copy and paste from my iUi-based web page in iPhone OS 3.0. Is
> > > > > this a known limitation or am I doing something wrong?
>
> > > > One webdev's "limitation" is another's "feature" :)  Copy/paste is
> > > > working inside input fields in iUI.  Where do you want copy/paste to
> > > > work that it isn't working currently?
>
> > > > In iui.css <body> tags are given the property: -webkit-user-select: 
> > > > none;
> > > > This has some beneficial effects  but also disables copy/paste
> > > > (everywhere but in input fields, it seems).  Try commenting out this
> > > > line and see what happens.  A better suggestion would be to use CSS to
> > > > override the 'none' setting in the specific places where you want to
> > > > enable copy/paste.
>
> > > > I'm not sure what the correct setting should be for each element in iUI
> > > > apps now that copy/paste is supported on the phone.
> > > > I created Issue #45 (http://code.google.com/p/iui/issues/detail?id=145)
> > > > to at least keep track of the discussion.
>
> > > > Anyone else have any suggestions as to what the "correct" behavior
> > > > should be?
>
> > > > -- Sean

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"iPhoneWebDev" group.
To post to this group, send email to iphonewebdev@googlegroups.com
To unsubscribe from this group, send email to 
iphonewebdev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/iphonewebdev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to