[jQuery] How to know if a string is simply text or a good jQuery expression?
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
try using this jquery plugin ...http://www.mikage.to/jquery/ jquery.history.js On 25 Dic, 20:13, knyttr kny...@gmail.com 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 hoping to achieve the functionality by onBeforeUnload, but it does not react on change of hash value in url – it just reacts on changing url address. Is there any other way? For example I am trying to achieve the functionality like in gmail, when back button pressed.
[jQuery] Re: getScript problem with ie6
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 luca.maggi...@gmail.com wrote: Hi I download asynchronously a js with: $.getScript( mapScript, function(){ initMap(); } ); mapScript is a string that contains the microsoft virtual earth scripts. initMap display the map using the objects defined in mapScript. It works fine in all browsers: when mapScript is downloaded, the function initMap display correctly the map. Only in IE6, there is a problem: if during the download of the script mapScript no others events (for example a window.print()) are raised, everything works fine. If during the 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] getScript problem with ie6
Hi I download asynchronously a js with: $.getScript( mapScript, function(){ initMap(); } ); mapScript is a string that contains the microsoft virtual earth scripts. initMap display the map using the objects defined in mapScript. It works fine in all browsers: when mapScript is downloaded, the function initMap display correctly the map. Only in IE6, there is a problem: if during the download of the script mapScript no others events (for example a window.print()) are raised, everything works fine. If during the 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
On Dec 15, 3:06 am, MareceK ma...@tutoky.com 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=albumalt=json, dataType: 'jsonp', error: function (xhr, ajaxOptions, thrownError) { alert(error triggered); if(xhr.status == 404) { alert(User not found); } } }); It should catch 404, strangely it doesn't do anything. from firebug I could see the 404 returned by picasa yet it doesn't trigger the error function at all.
[jQuery] Can I generate an XML using jQuery, from a text?
Hi all ist. I'm in trouble with a strange MSIE problem that seems present only in IE6 SP3. I've a javascript code using AJAX (not jQuery) that return base XMLHttpRequest operation result. The .responseText is returning an XML in text format. The responseXML seems inusable. I wanna 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