Re: [jQuery] Response converted to entities after file upload

2010-02-17 Thread Lay András
Hello! On Wed, Feb 17, 2010 at 5:56 PM, Randall Morgan wrote: > Are you using a Php framework? If so, does it do output filtering? If > not, can you show me your Php code? It's a simple PHP code, without any framework. The source code visible, you can simply copy, and check it on your server. N

[jQuery] Response converted to entities after file upload

2010-02-17 Thread Lay András
Hi! If i have a file upload input in my form, after submit the html codes in the response data converted to their entities: http://bogex.hu/jquery_upload_test.php How can I prevent this? Thank you! Lay

[jQuery] Response type is Form Plugin success callback

2009-09-02 Thread Lay András
Hello! How can I determine the response type (text/html, text/javascript, etc.) in the Form Plugin's success callback? The callback recognize 3 parameters, the first is the data, second is the status, and third is an object with lots of properties. I mean the response type can be in this object,

[jQuery] Re: Form Plugin issue

2009-08-26 Thread Lay András
Hello! On Wed, Aug 26, 2009 at 9:04 PM, Mike Alsup wrote: > Kostya is correct.  Try embedding the response in a textarea element - > the plugin will automatically extract if for you and no escaping is > needed. This don't works, because response embedding in a textarea only needs, if the respon

[jQuery] Re: Form Plugin issue

2009-08-24 Thread Lay András
Hello! On Mon, Aug 24, 2009 at 9:46 AM, kostjazz wrote: > Hi All, > > I also experience the very same problem. > > I also found that when it happens it submits the form twice. For me not need to submit twice the form, only one submit enough to produce the error. > I haven't tried upgrading the

[jQuery] Form Plugin issue

2009-08-21 Thread Lay András
Hello! I'm using jQuery Form Plugin to upload files, and i discovered a strange issue. If the response data contains jQuery code, a "$ is not defined" javascript error occured, but the jquery code which produce this error message, is executed. This only happens when file is selected. If the file

[jQuery] Replace script tag

2009-08-11 Thread Lay András
Hello! I used this little code to replace some content with jquery: function Csere() { $('#lufi').replaceWith('Duma'); } 11Csere()22 This works fine, but i'd like to eliminate the id attribute from script tag. I tried $(this).replaceWith('Duma'), and $(this).parent().replaceW

[jQuery] Always escape with two backslashes?

2009-07-06 Thread Lay András
Hello! I read in the documentation, the special characters like ':', we must escape with TWO backslashes. But not always: function Nyom() { if ($('#pipa\\:x').is(':checked')) { $(':checkbox[id^=pipa\:x\:]').attr('checked','checked'); } else { $(':

[jQuery] Re: Attribute selector

2009-03-26 Thread Lay András
Hello! On Wed, Mar 25, 2009 at 6:00 PM, Karl Swedberg wrote: > Hi Lay, > You could do it like this: > $('table').filter(function() { >    return this.style.tableLayout == 'fixed'; > }); > Not sure what happens when you try it in a browser that doesn't support the > tableLayout property, though.

[jQuery] Attribute selector

2009-03-25 Thread Lay András
Hello! I'd like to set a css property on every table, that have style="table-layout: fixed" attribute. I tried this, but don't works: $('table[style="table-layout: fixed"]').css('background-color','#DD'); With id attribute works: $('table[id="mytable"]').css('background-color','#DD');

[jQuery] Re: JSONP

2009-01-17 Thread Lay András
Hello! On Sat, Jan 17, 2009 at 7:04 PM, jQuery Lover wrote: > > I am not 100% sure, but I remember reading somewhere that jQuery looks > for "=?" to replace the "?" part of the pattern. > > Try querying > > http://example.com/xxx/yyy/=? Yes, this works! But need some trick, because jquery repla

[jQuery] JSONP

2009-01-17 Thread Lay András
Hello! I'd like to use $.getJSON with JSONP support, but i used http://example.com/xxx/yyy URL sheme instead of http://example.com/index.php?a=xxx&b=yyy. I read in documentation, in the 'myurl?callback=?' syntax the ? replaces to the callback name. I tried this: http://example.com/xxx/yyy/? but d

[jQuery] Re: Select inputs

2009-01-08 Thread Lay András
Hello! On Fri, Jan 9, 2009 at 12:51 AM, Karl Rudd wrote: > $('input[name^=xxx]') > > http://docs.jquery.com/Selectors/attributeStartsWith#attributevalue Oh, I don't see this before... Thank You!

[jQuery] Select inputs

2009-01-08 Thread Lay András
Hello! How can I select all checkbox inputs which names/ids starting with "xxx"? I tried this, but not working: $('input[name=xxx*]')

[jQuery] Re: .ajaxSend fires six times

2008-12-28 Thread Lay András
Hello! On Sun, Dec 28, 2008 at 5:42 AM, Daniel wrote: > should be $(document).ajaxSend(function(){...}) It's works, the callback fires only once. Thank you! Lay

[jQuery] Re: .ajaxSend fires six times

2008-12-27 Thread Lay András
Hello! On Sat, Dec 27, 2008 at 8:27 PM, Michael Geary wrote: > Well, that's odd that it didn't work. Try a single element by ID then: > > $('#someExistingID').ajaxSend(...); Trying, don't works. Here's my test page: http://bogex.hu/jquerytest.php

[jQuery] Re: .ajaxSend fires six times

2008-12-27 Thread Lay András
Hello! On Sat, Dec 27, 2008 at 7:48 PM, Michael Geary wrote: > Try something like $('body').ajaxSend(...) if you want just a single > callback. I tried your suggestion, but never fires the callback. >$.ajaxStart(function(){ >$("#loading").show(); >}); First i tried this too..

[jQuery] .ajaxSend fires six times

2008-12-27 Thread Lay András
Hello! I need a callback to be executed, when any ajax request begins. I used this code: var cnt=0; $('*').ajaxSend(function() { cnt++; }); function Teszt() { $.post('jquerytest.php'); alert(cnt); } When i call function Teszt(), the alert shows '6'. Why?

[jQuery] Re: Blank input value testing

2008-12-21 Thread Lay András
Hello! On Sun, Dec 21, 2008 at 3:09 PM, Kean wrote: > Well blank() was not created in jQuery. > > You can create a new function for jQuery like this. > > (function($){ > $.fn.blank = function(){ >return $.trim(this[0]).length == 0; > } > })(jQuery) > > > > > $('#one').blank(); // return

[jQuery] Blank input value testing

2008-12-21 Thread Lay András
Hello! Is there any way in jQuery to test if a input value is blank? I mean similar like: if ($F('szoveg').blank()) { ... } in prototype. With jQuery now i'm using this: if ($('#szoveg').val()=='') { ... } but this not test if a input contains only whitespaces. Bye! Lay