[jQuery] Re: add to

2009-03-12 Thread Elmar
You were right. The standard code works but not the jQuery one. It works fine in a standard operation but if it is called within an Event- Handler, it doesn´t whereas the standard DOM-Manipulation works just fine. Not sure where that leaves us but at least we have narrowed the issue down. Thanks

[jQuery] Re: add to

2009-03-11 Thread mkmanning
Not sure if this might be related to your problem: http://groups.google.com/group/jquery-dev/browse_thread/thread/6d3de70e6f2c6ebe/908edb7729c03a3c?lnk=raot I'd suggest trying to add a LI to the UL using standard DOM methods: var li = document.createElement('li'); li.appendChild(document.createTe

[jQuery] Re: add to

2009-03-11 Thread Elmar
Sure. There is a small difficulty in that this code is supposed to run an iPhone/Webkit and some API´s don´t make sense in a standard web enviroment. But basically you can just strip all that exra bits and pieces and just run it in a browser. I should actually do this myself and see if it is an is

[jQuery] Re: add to

2009-03-10 Thread mkmanning
@Elmar, there's nothing wrong with your jQuery; there is with Joseph's: creating a closing LI won't work :( Could you show where in your script you're trying to append the LI? On Mar 10, 4:03 pm, Joseph Le Brech wrote: > $("").appendTo("#myList").html("Please show up"); > > the one you used tho

[jQuery] Re: add to

2009-03-10 Thread Joseph Le Brech
$("").appendTo("#myList").html("Please show up"); the one you used those should also work tho. > Date: Tue, 10 Mar 2009 14:18:57 -0700 > Subject: [jQuery] add to > From: elsch...@googlemail.com > To: jquery-en@googlegroups.com > > > Hi there, > I am probably trying the most basic example and