[jQuery] How to know if a string is simply text or a good jQuery expression?

2010-07-09 Thread Luca
Hi all. I need some suggestion for performing this task: a user using a function common provide to the function a string, however sometimes he must be able to provide a jQuery selector expression and I need to perform different action is this case. How can I do this? -- -- luca

[jQuery] Re: Handling BACK button depending on hash value in URL

2009-12-26 Thread Luca
try using this jquery plugin ...http://www.mikage.to/jquery/ jquery.history.js On 25 Dic, 20:13, knyttr wrote: > Hello, > > I am trying to handle back button on my page so a function would be > called whenever I press the button. I dynamically set the > "location.hash" value on the page. I was ho

[jQuery] Re: getScript problem with ie6

2009-07-08 Thread Luca Maggioni
Obivously, I think that the problem is not microsoft virtual earth scripts. I thing that the problem is the fact that I raise an event before the download is finished... it could be any type of scripts On 7 Lug, 10:56, Luca Maggioni wrote: > Hi > > I download asynchronously

[jQuery] getScript problem with ie6

2009-07-07 Thread Luca Maggioni
download of the script mapScript a window.print() or other javascript function are triggered, the download of the script aborts (in Fiddler I get the html code 200, but it tells me: SESSION STATE: Aborted). Any ideas to fix it? Thanks in advance for your help. Regards Luca

[jQuery] Re: ajax error handling troubles

2008-12-16 Thread Luca Barbato
On Dec 15, 3:06 am, MareceK wrote: > Solution: > > error: function (xhr, ajaxOptions, thrownError) { > if(xhr.status == 404) { > // 404 error > } jQuery.ajax({ type: 'GET', url: "http://picasaweb.google.com/data/feed/base/user/ picasa_non_esistent_user?kind=album&alt=jso

[jQuery] Can I generate an XML using jQuery, from a text?

2008-09-04 Thread Luca
try to fix this using jQuery, but I'm not able to generate a jQuery object from a plain text XML. All the $("...").html("...") works only for HTML source as I read in documentation. There's a way to do this? Thanks in advance -- -- luca