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
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
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
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
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
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
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,
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 {
$(':
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
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
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?
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..
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
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
Hello!
How can I select all checkbox inputs which names/ids starting with
"xxx"? I tried this, but not working:
$('input[name=xxx*]')
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!
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
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
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');
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.
20 matches
Mail list logo