[jQuery] Get the previous element matching a class

2010-03-02 Thread debussy007

Hi, 

I would like to have the previous TD element with class time. 

I tried : $(this).closest('td').prev('td.time').html()   (where this is a
div element inside a TD) 
But it only works for a div inside a TD that is *directly* following the
td.time element. 

See the code below: my jquery selector above is only working for the div's
inside td class=lun01032010 (where the latter is directly following
td.time element), 
not for the div's inside td class=mar02032010 

td class=time 
8am 
/td 
td class=lun01032010 
div class=quarter daylun /div 
div class=quarter daylun /div 
div class=quarter daylun /div 
div class=quarter daylun /div 
/td 
td class=mar02032010 
div class=quarter daymar /div 
div class=quarter daymar /div 
div class=quarter daymar /div 
div class=quarter daymar /div 
/td 

Thank you for any help. 
мэтт
-- 
View this message in context: 
http://old.nabble.com/Get-the-previous-element-matching-a-class-tp27757091s27240p27757091.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Check if elements have any attribute ?

2010-02-09 Thread debussy007

Hi,

I need to check if a textarea has any other element than
p,br,b,i,strong,em,ul,li,a and img.
If it has, add the class customMarkup on the textarea EXCEPT IF any of the
above elements contain ANY attributes.

I have only the first part of the requirement, I still don't check for
attributes ...

if( 
$(contentTextArea).find(':not(p,br,b,i,strong,em,u,a,img,ul,li)').length  0 
) {

 $(this).addClass(customMarkup);

}

This is getting too advanced for me ... I could use some tips !

Thank you,
мэтт
-- 
View this message in context: 
http://old.nabble.com/Check-if-elements-have-any-attribute---tp27515207s27240p27515207.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] When async:false in ajax function, Firebug shows blank Response

2010-01-31 Thread debussy007

Hi,

Have spoiled a whole day on this issue.
So ... For your information, when you set async to false in your ajax
function, the Response will be blank in Firebug.
Seemed to work before, but don't know if it's related to Firefox, Firebug or
jQuery.

Using :
Firebug 1.5.0
Firefox 3.6
jQuery 1.4
-- 
View this message in context: 
http://old.nabble.com/When-async%3Afalse-in-ajax-function%2C-Firebug-shows-blank-Response-tp27391308s27240p27391308.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Long running AJax request blocking the other ajax requests

2009-08-20 Thread debussy007


Hi,

I execute a long task by an Ajax request, and at the same time I would like
to display the percentage of this task every second. The problem is that the
percentage will not display as the first request is slowing down the others.
Though ... they say Ajax is synchronous ... 
The code is quite easy to get:

refreshPercentage();

[...]
$.ajax({
type: GET, 
dataType: json, 
url: ?php echo $this-baseUrl; ?/admin/link-checker, // long task,
synchronous
success: function(data) {
if(data.success) ;
else alert(data.msg);
}, 
error: function(xhr, status, ex) {alert('Request failed.');}
});
[...]
function refreshPercentage() { // every second, get the percentage done and
display it
$.ajax({
type: GET, 
dataType: json, 
async: false, 
url: ?php echo $this-baseUrl; 
?/admin/link-checker/get-percentage, 
success: function(data) {
if(data.success) $('span#percentage').html(data.nb);
else alert(data.msg);
}, 
error: function(xhr, status, ex) {alert('Request failed.');}
});
setTimeout(refreshPercentage(),1000);
}
[...]

What's the problem ? What's the workaround, if any ?

Thank you for your help!
-- 
View this message in context: 
http://www.nabble.com/Long-running-AJax-request-blocking-the-other-ajax-requests-tp25072487s27240p25072487.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Get the value of the option elements

2009-07-20 Thread debussy007


Hello,

The following code below doesn't seem to give the expected result:

$('#aUsers option:selected').each(function() {
 console.log('user: ' + $(this).val());
});

It will display the empty string.
-- 
View this message in context: 
http://www.nabble.com/Get-the-value-of-the-option-elements-tp24566521s27240p24566521.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Get the value of the option elements

2009-07-20 Thread debussy007



Uhm ... for some obscure reason I got it working now ...



debussy007 wrote:
 
 Hello,
 
 The following code below doesn't seem to give the expected result:
 
 $('#aUsers option:selected').each(function() {
  console.log('user: ' + $(this).val());
 });
 
 It will display the empty string.
 

-- 
View this message in context: 
http://www.nabble.com/Get-the-value-of-the-option-elements-tp24566521s27240p24566693.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] How do I add parameters dynamically, right before the form submit ?

2009-07-18 Thread debussy007


Hi,

When the user clicks on the submit button,
I would like to add some parameters to the form before submitting it
(standard post submit, no ajax)

How may I achieve this ?

Thank you for any help.
-- 
View this message in context: 
http://www.nabble.com/How-do-I-add-parameters-dynamically%2C-right-before-the-form-submit---tp24548550s27240p24548550.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] jQuery Form plugin with Yahoo UI

2009-07-17 Thread debussy007


Hi,

When I add the jquery.form.js plugin from malsup, my Yahoo UI TreeView won't
render anymore ...
There seems to be some conflict.
Is there any workaround for that ?

Thank you for any help.
-- 
View this message in context: 
http://www.nabble.com/jQuery-Form-plugin-with-Yahoo-UI-tp24530556s27240p24530556.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: jQuery Form plugin with Yahoo UI

2009-07-17 Thread debussy007


The problem has been solved ... I forgot to close the script tag of the
plugin js inclusion ...




debussy007 wrote:
 
 Hi,
 
 When I add the jquery.form.js plugin from malsup, my Yahoo UI TreeView
 won't render anymore ...
 There seems to be some conflict.
 Is there any workaround for that ?
 
 Thank you for any help.
 

-- 
View this message in context: 
http://www.nabble.com/jQuery-Form-plugin-with-Yahoo-UI-tp24530556s27240p24533072.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Submit form with serialize() question

2009-06-17 Thread debussy007


Hello,

I submit my form with the $.ajax method and passing it the serialized form.
But what about the images inside the form ?

Thank you for any help.
-- 
View this message in context: 
http://www.nabble.com/Submit-form-with-serialize%28%29-question-tp24078650s27240p24078650.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Form plugin - success callback not executed ?

2009-06-17 Thread debussy007


Hi,

it seems that my success callback is not getting executed, however, the Ajax
post seems to be ok (200) with the correct text output ...
The other params have effect, e.g. the ajax calls will be synchronous
(option async to false)

$('td[id^=order]').each(function(i) {
var tdId = $(this).attr('id').substring(5, $(this).attr('id').length);
var options = { 
target:'#dummy',
beforeSubmit:  function(formData, jqForm, options) { return 
true; },
success:   
function(responseText, statusText)  {
alert('test');  // not executed
},
type:  'post',
timeout: 3,
async: false,
error: function(xhr, status, ex) {}
};
$(this).find('form:first').ajaxSubmit(options);
});

Anyone has an idea ?
Thank you for any help !
-- 
View this message in context: 
http://www.nabble.com/Form-plugin---success-callback-not-executed---tp24082230s27240p24082230.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Form plugin - success callback not executed ?

2009-06-17 Thread debussy007


I found out it's because I need an existing element for option target.
I didn't want any element to be updated by the result, that's why I put this
#dummy pointing to nowhere.
Well, I added an element display:none in my Html and point it to that one
...



debussy007 wrote:
 
 Hi,
 
 it seems that my success callback is not getting executed, however, the
 Ajax post seems to be ok (200) with the correct text output ...
 The other params have effect, e.g. the ajax calls will be synchronous
 (option async to false)
 
 $('td[id^=order]').each(function(i) {
   var tdId = $(this).attr('id').substring(5, $(this).attr('id').length);
   var options = { 
   target:'#dummy',
   beforeSubmit:  function(formData, jqForm, options) { return 
 true; },
   success:   
   function(responseText, statusText)  {
   alert('test');  // not executed
   },
   type:  'post',
   timeout: 3,
   async: false,
   error: function(xhr, status, ex) {}
   };
   $(this).find('form:first').ajaxSubmit(options);
 });
 
 Anyone has an idea ?
 Thank you for any help !
 

-- 
View this message in context: 
http://www.nabble.com/Form-plugin---success-callback-not-executed---tp24082230s27240p24082718.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



re[jQuery] -ordering elements

2009-06-15 Thread debussy007


Hi,

I have a set of td which have id's like:
td id=order1[...]
td id=order3[...]
td id=order2[...]
td id=order4[...]

I would like to re-order them to have consecutive numbers,
what is the best way to achieve this ?

So far I have the code below, which iterates through all td's:
$('td[id^=order]').each(function(i) {
tdId = $(this).attr('id').substring(5, $(this).attr('id').length);
alert(tdId + ' - ' + (i+1)); 
// ..
});

Thank you for any help!
-- 
View this message in context: 
http://www.nabble.com/re-ordering-elements-tp24045411s27240p24045411.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Connecting on YouTube using $.ajax ?

2009-05-12 Thread debussy007


Hi,

I try to connect on Youtube using the script below.
But I get the error message:

Access to restricted URI denied code: 1012

Is there any way to bypass this issue ?

function login() {
var u = 'xyz';
var p = 'xyz';
$.ajax({
type: 'POST',
dataType:'json',
url: 
'https://www.google.com/accounts/ServiceLoginAuth?service=youtube',
beforeSend: function(r) {
r.setRequestHeader('Content-type', 
'application/x-www-form-urlencoded');
r.setRequestHeader('Accept',
'application/atom+xml,application/xml,text/xml,text/html');
},
data:
encodeURI('service=youtubeuilel=3ltmpl=ssohl=en_USEmail='+u+'Passwd='+p),
success: function(r) {
alert(r.responseText);
if(r.responseText.indexOf('The username or password you 
entered is
incorrect')!=-1) {
alert('Invalid username or password.');
var user = 
prompt('Username:').replace(/[^A-Za-z0-9-_]+/, ''),
pass = 
prompt('Password:').replace(/[^A-Za-z0-9-_]+/, '');
if(user  pass  user!=''  pass!='') 
login(user, pass);
}
else if(r.responseText.indexOf('Sign Out')!=-1) 
alert('You are now logged
into YouTube');
}
});
}

Thank you for any help.
.
-- 
View this message in context: 
http://www.nabble.com/Connecting-on-YouTube-using-%24.ajax---tp23471637s27240p23471637.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: submit() question

2009-04-07 Thread debussy007


I understood that in my submit callback funtion, i call a asynchronous
function of google where I set the post values once I have a response. But I
didn't wait for the google function to terminate.

This issue is solved,

Thank you.



debussy007 wrote:
 
 I need something like that, but it is not ajax.
 In the submit callback I need to add additional post parameters.
 
 Concretely, a user may specify a country and a town in my form.
 in the submit callback, I will make a request to Goole Maps API to have
 the longitude and lattitude.
 If google cannot find it, I'll warn the user and return false.
 If google finds the coordinates, I'll add them in the form, but this last
 point, I don't know how to do.
 
 $('#myForm').submit(function() {
 [...]
 var geocoder = new GClientGeocoder();
 geocoder.getLatLng(address,
   function(point) {
   if (!point) {
   alert('La ville de départ n\'a pas été trouvée');
   return false;
   }
   else {
   /*
   set additional params, it does not work
   longDepIntId and lattDepIntId are hidden input
   */
   $('#longDepIntId').val(point.lng());
   $('#lattDepIntId').val(point.lat());
   }
   } // end func
 ); // end geocoder
 [...]
 });
 
 
 
 
 Sean McKenna wrote:
 
 
 I'm not sure I understand what you are trying to do, but if the
 requirement is to pass the values to the server, you can include them
 in the data parameter of the ajax routine.
 
  data: $(this).serialize() + add_item=1,
 
 
 On Apr 5, 3:10 pm, debussy007 debussy...@gmail.com wrote:
 What do you mean by wrap 'submit()' that is built in 'form object' ?
 Sorry I didn't understand )



 kcis...@hotmail.com wrote:

  I guess you'd better wrap 'submit()' that is built in 'form object'.
  before the submit() is called,  you should set the values.

  On 4월5일, 오후1시48분, debussy007 debussy...@gmail.com wrote:
  Hi,

  In my submit() callback function, I want to set two new values in
 some
  hidden input fields right before the post data is submitted, based on
 the
  values the user inputs in some input fields.
  However it seems already too late, the server will never have those
  values
  unfortunately.

  So I wonder if there is any way to achieve this.

  Thank you for any kind help.
  --
  View this message in
 
 context:http://www.nabble.com/submit%28%29-question-tp22896425s27240p22896425...
  Sent from the jQuery General Discussion mailing list archive at
  Nabble.com.

 --
 View this message in
 context:http://www.nabble.com/submit%28%29-question-tp22896425s27240p22899380...
 Sent from the jQuery General Discussion mailing list archive at
 Nabble.com.
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/submit%28%29-question-tp22896425s27240p22922674.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: submit() question

2009-04-06 Thread debussy007


I need something like that, but it is not ajax.
In the submit callback I need to add additional post parameters.

Concretely, a user may specify a country and a town in my form.
in the submit callback, I will make a request to Goole Maps API to have the
longitude and lattitude.
If google cannot find it, I'll warn the user and return false.
If google finds the coordinates, I'll add them in the form, but this last
point, I don't know how to do.

$('#myForm').submit(function() {
[...]
var geocoder = new GClientGeocoder();
geocoder.getLatLng(address,
function(point) {
if (!point) {
alert('La ville de départ n\'a pas été trouvée');
return false;
}
else {
/*
set additional params, it does not work
longDepIntId and lattDepIntId are hidden input
*/
$('#longDepIntId').val(point.lng());
$('#lattDepIntId').val(point.lat());
}
} // end func
); // end geocoder
[...]
});




Sean McKenna wrote:
 
 
 I'm not sure I understand what you are trying to do, but if the
 requirement is to pass the values to the server, you can include them
 in the data parameter of the ajax routine.
 
  data: $(this).serialize() + add_item=1,
 
 
 On Apr 5, 3:10 pm, debussy007 debussy...@gmail.com wrote:
 What do you mean by wrap 'submit()' that is built in 'form object' ?
 Sorry I didn't understand )



 kcis...@hotmail.com wrote:

  I guess you'd better wrap 'submit()' that is built in 'form object'.
  before the submit() is called,  you should set the values.

  On 4월5일, 오후1시48분, debussy007 debussy...@gmail.com wrote:
  Hi,

  In my submit() callback function, I want to set two new values in some
  hidden input fields right before the post data is submitted, based on
 the
  values the user inputs in some input fields.
  However it seems already too late, the server will never have those
  values
  unfortunately.

  So I wonder if there is any way to achieve this.

  Thank you for any kind help.
  --
  View this message in
 
 context:http://www.nabble.com/submit%28%29-question-tp22896425s27240p22896425...
  Sent from the jQuery General Discussion mailing list archive at
  Nabble.com.

 --
 View this message in
 context:http://www.nabble.com/submit%28%29-question-tp22896425s27240p22899380...
 Sent from the jQuery General Discussion mailing list archive at
 Nabble.com.
 
 

-- 
View this message in context: 
http://www.nabble.com/submit%28%29-question-tp22896425s27240p22917308.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] submit() question

2009-04-05 Thread debussy007


Hi,

In my submit() callback function, I want to set two new values in some
hidden input fields right before the post data is submitted, based on the
values the user inputs in some input fields.
However it seems already too late, the server will never have those values
unfortunately.

So I wonder if there is any way to achieve this.

Thank you for any kind help.
-- 
View this message in context: 
http://www.nabble.com/submit%28%29-question-tp22896425s27240p22896425.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: submit() question

2009-04-05 Thread debussy007


What do you mean by wrap 'submit()' that is built in 'form object' ?
Sorry I didn't understand )



kcis...@hotmail.com wrote:
 
 
 I guess you'd better wrap 'submit()' that is built in 'form object'.
 before the submit() is called,  you should set the values.
 
 
 
 On 4월5일, 오후1시48분, debussy007 debussy...@gmail.com wrote:
 Hi,

 In my submit() callback function, I want to set two new values in some
 hidden input fields right before the post data is submitted, based on the
 values the user inputs in some input fields.
 However it seems already too late, the server will never have those
 values
 unfortunately.

 So I wonder if there is any way to achieve this.

 Thank you for any kind help.
 --
 View this message in
 context:http://www.nabble.com/submit%28%29-question-tp22896425s27240p22896425...
 Sent from the jQuery General Discussion mailing list archive at
 Nabble.com.
 
 

-- 
View this message in context: 
http://www.nabble.com/submit%28%29-question-tp22896425s27240p22899380.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] load() My param is splitted

2008-11-19 Thread debussy007


Hi, 

When I want to send a param with line below:

jQuery('#details').load('?php echo $this-baseUrl
?/myController/myAction/myParam/' + param, {}, function()
{jQuery('#details').show();});

And if my param contains spaces, the param will contain the first word.
E.g.
param = 'hello world'
URL will be [...]/myController/myAction/myParam/hello

Can anyone help ??
Thank you.
-- 
View this message in context: 
http://www.nabble.com/load%28%29-My-param-is-splitted-tp20576771s27240p20576771.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: load() My param is splitted

2008-11-19 Thread debussy007


I could fix it using:
param = encodeURIComponent(param);



debussy007 wrote:
 
 Hi, 
 
 When I want to send a param with line below:
 
 jQuery('#details').load('?php echo $this-baseUrl
 ?/myController/myAction/myParam/' + param, {}, function()
 {jQuery('#details').show();});
 
 And if my param contains spaces, the param will contain the first word.
 E.g.
 param = 'hello world'
 URL will be [...]/myController/myAction/myParam/hello
 
 Can anyone help ??
 Thank you.
 

-- 
View this message in context: 
http://www.nabble.com/load%28%29-My-param-is-splitted-tp20576771s27240p20577172.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Get the content of an option element

2008-11-18 Thread debussy007


Hi,

to get the selection option value, I use 
$('#select').val(); 
But how do I get the content of the option ?

In other words:
select id=select
option value=hello selectedworld/option
/select

$('#select').val();  will return hello, but how do I get world  ?

Thank you !
-- 
View this message in context: 
http://www.nabble.com/Get-the-content-of-an-option-element-tp20563344s27240p20563344.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] get the class that starts with ...

2008-11-11 Thread debussy007


Hi,

How is it possible to get the class that starts with 'rate' of an element ?

the class could be rate1, rate5, rateXYZ.
I don't know what follows the substring 'rate'.
I need to get the number that follows rate.

Thank you for any help !
-- 
View this message in context: 
http://www.nabble.com/get-the-class-that-starts-with-...-tp20450061s27240p20450061.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Problem with events

2008-10-30 Thread debussy007


Hi Mike !

Thank you for the effort you bring in each of your answers!
I tought at first this example was not at all similar to my situation, but
actually it is !
I had an anonym callback function, but I can rather make it a standard
function and just call this function.
I was just confused because it was a callback but I can actually just call
this callback, don't need to fire the associate event...

Thank you very much !




Michael Geary-3 wrote:
 
 
 Let's forget jQuery for a moment and reword the question slightly...
 
 I've written a couple of functions named one and two:
 
 function one() {
 alert( 'one!' );
 }
 
 function two() {
 alert( 'two!' );
 }
 
 Somewhere else there is code that calls function one. I don't know
 anything
 about that code and can't change it. But I want function two to be called
 automatically every time function one is called, after function one has
 displayed its alert. How would I do that?
 
 If you answer that, you'll know the answer to your question.
 
 -Mike
 
 From: debussy007
 
 I would like to execute instructions after an event has been fired and
 processed:
 
 $('#int').click(); // I fire click event, callback function 
 will be executed // Execute other instructions after the 
 callback fct of the click event has been processed
 
 The problem is, how do I know when the callback function has 
 been processed ?
 
 Thank you for any tips !
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Problem-with-events-tp20238073s27240p20244234.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Block UI bugs in IE/Safari when used in .ready()

2008-10-30 Thread debussy007


Hi,

I want to use Block UI in the (document).ready(...)  function.

In Mozilla, the page is displayed and the message is appearing and block UI
blocks the page, everything is fine.
In IE and Safari, the page is only changed when the page has been unblocked
(the message is appearing for 1 second though then disappearing).

I tried to use a setTimeout, so in IE and Safari the page is displayed, but,
I can just see the page is in loading statement until page has been
unblocked. Message is appearing for 1 second again.

Real example here:
Need to login first, sorry: http://r12  121.ovh.net/~covoitur/auth/login
username mathi and empty password

Then go to this url: http://r12 
121.ovh.net/~covoitur/members/annonces/modifier-trajet/annonce/1

Remove the spaces in the URL.

Thank you for any help !!
-- 
View this message in context: 
http://www.nabble.com/Block-UI-bugs-in-IE-Safari-when-used-in-.ready%28%29-tp20247387s27240p20247387.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Block UI bugs in IE/Safari when used in .ready()

2008-10-30 Thread debussy007


These functions take a specific amount of time to be executed:
searchLocDep(  )
searchLocArr(   )
searchLocInt(  ... ) 
You can see it in Firefox, the message will appear for like 5 seconds, I
don't want the user to interact with the website in between this interval.




MorningZ wrote:
 
 
 i don't understand
 
 you have:
 
 $.blockUI({ message: 'h2 style=margin-top:10px;Veuillez
 patienter.../h2' });
 searchLocDep(  )
 searchLocArr(   )
 searchLocInt(  ... )
 $.unblockUI();
 
 
 Why are you expecting to see the block?   you call block then
 unblock and it's happening almost immediately
 
 
 
 
 
 
 On Oct 30, 9:49 am, debussy007 [EMAIL PROTECTED] wrote:
 Hi,

 I want to use Block UI in the (document).ready(...)  function.

 In Mozilla, the page is displayed and the message is appearing and block
 UI
 blocks the page, everything is fine.
 In IE and Safari, the page is only changed when the page has been
 unblocked
 (the message is appearing for 1 second though then disappearing).

 I tried to use a setTimeout, so in IE and Safari the page is displayed,
 but,
 I can just see the page is in loading statement until page has been
 unblocked. Message is appearing for 1 second again.

 Real example here:
 Need to login first, sorry:http://r12 121.ovh.net/~covoitur/auth/login
 username mathi and empty password

 Then go to this url:http://r12
 121.ovh.net/~covoitur/members/annonces/modifier-trajet/annonce/1

 Remove the spaces in the URL.

 Thank you for any help !!
 --
 View this message in
 context:http://www.nabble.com/Block-UI-bugs-in-IE-Safari-when-used-in-.ready%...
 Sent from the jQuery General Discussion mailing list archive at
 Nabble.com.
 
 

-- 
View this message in context: 
http://www.nabble.com/Block-UI-bugs-in-IE-Safari-when-used-in-.ready%28%29-tp20247387s27240p20250592.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Block UI bugs in IE/Safari when used in .ready()

2008-10-30 Thread debussy007


Thank you !!

I tried the following :

setTimeout(function() {
$.blockUI();
searchLocDep(  )
searchLocArr(   )
searchLocInt(  ... )
$.unblockUI();
}, 200); 

but it didn't help,
but your suggestion:

$.blockUI();
setTimeout(function() {
searchLocDep(  )
searchLocArr(   )
searchLocInt(  ... )
$.unblockUI();
}, 200); 

works very good !!

What was wrong actually ? Why my version with setTimeout didn't work ?
Seems pretty basic, block UI, execute some isntructions, unblock.





malsup wrote:
 
 
 On Oct 30, 12:47 pm, debussy007 [EMAIL PROTECTED] wrote:
 These functions take a specific amount of time to be executed:
 searchLocDep(  )
 searchLocArr(   )
 searchLocInt(  ... )
 You can see it in Firefox, the message will appear for like 5 seconds, I
 don't want the user to interact with the website in between this
 interval.
 
 
 You must use setTimout for something like this to work x-browser.  Did
 you try something like this?
 
 $.blockUI();
 setTimeout(function() {
 searchLocDep(  )
 searchLocArr(   )
 searchLocInt(  ... )
 $.unblockUI();
 }, 200);
 
 

-- 
View this message in context: 
http://www.nabble.com/Block-UI-bugs-in-IE-Safari-when-used-in-.ready%28%29-tp20247387s27240p20256839.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Problem with events

2008-10-29 Thread debussy007


Hi,

I would like to execute instructions after an event has been fired and
processed:

$('#int').click(); // I fire click event, callback function will be executed
// Execute other instructions after the callback fct of the click event has
been processed

The problem is, how do I know when the callback function has been processed
?

Thank you for any tips !
-- 
View this message in context: 
http://www.nabble.com/Problem-with-events-tp20238073s27240p20238073.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] startsWith / endsWith

2008-10-15 Thread debussy007


Hi,

it would be nice to find these two functionalities in the jQuery
Utilities/String operations, beside trim().

No ?
-- 
View this message in context: 
http://www.nabble.com/startsWith---endsWith-tp19997960s27240p19997960.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Ajax update on visible viewport of my div

2008-10-13 Thread debussy007


Hi,

I have a scrollable div containing a table that can have like 100 thousands
of lines from my database. I want to have an ajax update every 5 seconds on
this data. So I tought I could update only the records which are visible in
the area of the div that the user scrolled to.

How would you achieve this ?
Is there any way to bind an event on a scroll event ?

Thank you for any advice.
-- 
View this message in context: 
http://www.nabble.com/Ajax-update-on-visible-viewport-of-my-div-tp19959477s27240p19959477.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Ajax request Error - please help

2008-10-09 Thread debussy007


Hi,

In localhost, all of my ajax request work perfectly,
but on the prod server, whenever I try to make an ajax request, the
following error appear:

(This is the code used to display the error:
error: function(xhr, status, ex) {
var msg = Error ajax edit profile :\n\n;
msg += RESPONSE TEXT :\n;
msg += xhr.responseText + \n\n;
msg += STATUS :\n;
msg += status + \n;
msg += xhr.status + \n\n;
msg += EXCEPTION :\n;
msg += ex;
alert(msg);
},
)

Error ajax edit profile :

RESPONSE TEXT :
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
http://www.w3.org/TR/html4/loose.dtd;
HTMLHEADMETA HTTP-EQUIV=Content-Type CONTENT=text/html;
charset=iso-8859-1
TITLEERROR: The requested URL could not be retrieved/TITLE
STYLE
type=text/css!--BODY{background-color:#ff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--/STYLE
/HEADBODY
H1ERROR/H1
H2The requested URL could not be retrieved/H2
HR noshade size=1px
P
While trying to process the request:
PRE
POST /public/xxx/tree/get-computer-by-a/a/A782 HTTP/1.0
Host: xyz.belfla.be

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.0.3)
Gecko/2008092417 Firefox/3.0.3

Accept: application/json, text/javascript, */*

Accept-Language: fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3

Accept-Encoding: identity,gzip,deflate

Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7

Keep-Alive: 300

Connection: keep-alive

X-Requested-With: XMLHttpRequest

Referer: http://xyz.belfla.be/public/xxx/auth/login

Cookie: PHPSESSID=sjaj2sb252kcqm3th88iivg5ke

Authorization: Basic ahlbQ==

Pragma: no-cache

Cache-Control: no-cache


/PRE
P
The following error was encountered:
UL
LI
STRONG
Invalid Request
/STRONG
/UL

P
Some aspect of the HTTP Request is invalid.  Possible problems:
UL
LIMissing or unknown request method
LIMissing URL
LIMissing HTTP Identifier (HTTP/1.0)
LIRequest is too large
LIContent-Length missing for POST or PUT requests
LIIllegal character in hostname; underscores are not allowed
/UL
PYour cache administrator is  mailto:webmaster webmaster . 

BR clear=all
HR noshade size=1px
ADDRESS
Generated Thu, 09 Oct 2008 17:09:09 GMT by netgate.xyz (squid/2.6.STABLE14)
/ADDRESS
/BODY/HTML


STATUS :
error
411

EXCEPTION :
undefined



In Firebug, the following appear under tab Heading:
Response
Server  squid/2.6.STABLE14
DateThu, 09 Oct 2008 17:09:09 GMT
Content-Typetext/html
Content-Length  1854
Expires Thu, 09 Oct 2008 17:09:09 GMT
X-Squid-Error   ERR_INVALID_REQ 0
X-Cache MISS from netgate.xyz
X-Cache-Lookup  NONE from netgate.xyz:4138
Via 1.0 netgate.xyz:4138(squid/2.6.STABLE14)
Proxy-Connectionclose
Request
Hostxyz.belfla.be
User-Agent  Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.0.3)
Gecko/2008092417 Firefox/3.0.3
Accept  application/json, text/javascript, */*
Accept-Language fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding gzip,deflate
Accept-Charset  ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive  300
Connection  keep-alive
X-Requested-WithXMLHttpRequest
Referer http://xyz.belfla.be/public/xxx/auth/login
Cookie  PHPSESSID=sjaj2sb2kcqm3th88iivg5ke

Under tab Response:


!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
http://www.w3.org/TR/html4/loose.dtd;



HTMLHEADMETA HTTP-EQUIV=Content-Type CONTENT=text/html;
charset=iso-8859-1

TITLEERROR: The requested URL could not be retrieved/TITLE

STYLE
type=text/css!--BODY{background-color:#ff;font-family:verdana,sans-serif}PRE{font-family

:sans-serif}--/STYLE

/HEADBODY

H1ERROR/H1

H2The requested URL could not be retrieved/H2

HR noshade size=1px

P

While trying to process the request:

PRE

POST /public/xxx/tree/get-computer-by-a/a/A782 HTTP/1.0

Host: xyz.belfla.be

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.0.3)
Gecko/2008092417 Firefox/3.0.3

Accept: application/json, text/javascript, */*

Accept-Language: fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3

Accept-Encoding: identity,gzip,deflate

Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7

Keep-Alive: 300

Connection: keep-alive

X-Requested-With: XMLHttpRequest

Referer: http://xyz.belfla.be/public/xxx/auth/login

Cookie: PHPSESSID=sjaj2sb252ogm3th88iivg5ke

Authorization: Basic aGhlbQ==

Pragma: no-cache

Cache-Control: no-cache

/PRE

P

The following error was encountered:

UL

LI

STRONG

Invalid Request

/STRONG

/UL

P

Some aspect of the HTTP Request is invalid.  Possible problems:

UL

LIMissing or unknown request method

LIMissing URL

LIMissing HTTP Identifier (HTTP/1.0)

LIRequest is too large

LIContent-Length missing for POST or PUT requests

LIIllegal character in hostname; underscores are not allowed

/UL

PYour cache administrator is  mailto:webmaster webmaster . 

BR clear=all

HR noshade size=1px

ADDRESS

Generated Thu, 09 Oct 2008 17:09:09 GMT by netgate.xyz (squid/2.6.STABLE14)

/ADDRESS

/BODY/HTML


Can anyone help ?

Thank you.
-- 
View this message in context: 

[jQuery] Re: Ajax request Error - please help

2008-10-09 Thread debussy007


I have some new information,
if I change the ajax request's type from POST to GET,
it works perfectly ...

When I use POST type, in firebug's console the url is red and next to it I
can see the number 411,
by looking on the net, the error must be related to Content-Length ...

Anyway I am fine with GET, but if anyone has encountered this error, I would
like to have some input if possible ...
Because when i'll need to use POST I'll have the same problem again.

Thank you!



debussy007 wrote:
 
 Hi,
 
 In localhost, all of my ajax request work perfectly,
 but on the prod server, whenever I try to make an ajax request, the
 following error appear:
 
 (This is the code used to display the error:
 error: function(xhr, status, ex) {
   var msg = Error ajax edit profile :\n\n;
   msg += RESPONSE TEXT :\n;
   msg += xhr.responseText + \n\n;
   msg += STATUS :\n;
   msg += status + \n;
   msg += xhr.status + \n\n;
   msg += EXCEPTION :\n;
   msg += ex;
   alert(msg);
 },
 )
 
 Error ajax edit profile :
 
 RESPONSE TEXT :
 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
 http://www.w3.org/TR/html4/loose.dtd;
 HTMLHEADMETA HTTP-EQUIV=Content-Type CONTENT=text/html;
 charset=iso-8859-1
 TITLEERROR: The requested URL could not be retrieved/TITLE
 STYLE
 type=text/css!--BODY{background-color:#ff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--/STYLE
 /HEADBODY
 H1ERROR/H1
 H2The requested URL could not be retrieved/H2
 HR noshade size=1px
 P
 While trying to process the request:
 PRE
 POST /public/xxx/tree/get-computer-by-a/a/A782 HTTP/1.0
 Host: xyz.belfla.be
 
 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.0.3)
 Gecko/2008092417 Firefox/3.0.3
 
 Accept: application/json, text/javascript, */*
 
 Accept-Language: fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3
 
 Accept-Encoding: identity,gzip,deflate
 
 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
 
 Keep-Alive: 300
 
 Connection: keep-alive
 
 X-Requested-With: XMLHttpRequest
 
 Referer: http://xyz.belfla.be/public/xxx/auth/login
 
 Cookie: PHPSESSID=sjaj2sb252kcqm3th88iivg5ke
 
 Authorization: Basic ahlbQ==
 
 Pragma: no-cache
 
 Cache-Control: no-cache
 
 
 /PRE
 P
 The following error was encountered:
 UL
 LI
 STRONG
 Invalid Request
 /STRONG
 /UL
 
 P
 Some aspect of the HTTP Request is invalid.  Possible problems:
 UL
 LIMissing or unknown request method
 LIMissing URL
 LIMissing HTTP Identifier (HTTP/1.0)
 LIRequest is too large
 LIContent-Length missing for POST or PUT requests
 LIIllegal character in hostname; underscores are not allowed
 /UL
 PYour cache administrator is  mailto:webmaster webmaster . 
 
 BR clear=all
 HR noshade size=1px
 ADDRESS
 Generated Thu, 09 Oct 2008 17:09:09 GMT by netgate.xyz
 (squid/2.6.STABLE14)
 /ADDRESS
 /BODY/HTML
 
 
 STATUS :
 error
 411
 
 EXCEPTION :
 undefined
 
 
 
 In Firebug, the following appear under tab Heading:
 Response
 Serversquid/2.6.STABLE14
 Date  Thu, 09 Oct 2008 17:09:09 GMT
 Content-Type  text/html
 Content-Length1854
 Expires   Thu, 09 Oct 2008 17:09:09 GMT
 X-Squid-Error ERR_INVALID_REQ 0
 X-Cache   MISS from netgate.xyz
 X-Cache-LookupNONE from netgate.xyz:4138
 Via   1.0 netgate.xyz:4138(squid/2.6.STABLE14)
 Proxy-Connection  close
 Request
 Host  xyz.belfla.be
 User-AgentMozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.0.3)
 Gecko/2008092417 Firefox/3.0.3
 Acceptapplication/json, text/javascript, */*
 Accept-Language   fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3
 Accept-Encoding   gzip,deflate
 Accept-CharsetISO-8859-1,utf-8;q=0.7,*;q=0.7
 Keep-Alive300
 Connectionkeep-alive
 X-Requested-With  XMLHttpRequest
 Referer   http://xyz.belfla.be/public/xxx/auth/login
 CookiePHPSESSID=sjaj2sb2kcqm3th88iivg5ke
 
 Under tab Response:
 
 
 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
 http://www.w3.org/TR/html4/loose.dtd;
 

 
 HTMLHEADMETA HTTP-EQUIV=Content-Type CONTENT=text/html;
 charset=iso-8859-1
 
 TITLEERROR: The requested URL could not be retrieved/TITLE
 
 STYLE
 type=text/css!--BODY{background-color:#ff;font-family:verdana,sans-serif}PRE{font-family
 
 :sans-serif}--/STYLE
 
 /HEADBODY
 
 H1ERROR/H1
 
 H2The requested URL could not be retrieved/H2
 
 HR noshade size=1px
 
 P
 
 While trying to process the request:
 
 PRE
 
 POST /public/xxx/tree/get-computer-by-a/a/A782 HTTP/1.0
 
 Host: xyz.belfla.be
 
 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.0.3)
 Gecko/2008092417 Firefox/3.0.3
 
 Accept: application/json, text/javascript, */*
 
 Accept-Language: fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3
 
 Accept-Encoding: identity,gzip,deflate
 
 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
 
 Keep-Alive: 300
 
 Connection: keep-alive
 
 X-Requested-With: XMLHttpRequest
 
 Referer: http://xyz.belfla.be/public/xxx/auth/login
 
 Cookie: PHPSESSID=sjaj2sb252ogm3th88iivg5ke
 
 Authorization: Basic aGhlbQ==
 
 Pragma

[jQuery] Re: Completion callback after events

2008-09-27 Thread debussy007


This is the concrete situation for which I cannot find a solution:

I have several 'select' elements which contain information like: country,
state, town.
select size=1 name=country[...]/select
select size=1 name=state[...]/select
select size=1 name=town[...]/select
When a country is selected, I populate all the states of the country in the
state 'select' 
by an ajax request, then when a state is selected, I populate all the towns
of the selected state in the town 'select' 

A user can also select a town by typing in an input field with
auto-completion.
If he chooses a town among the auto-completion item list,
I want to select automatically the appropiate country/state/town in the
above select elements.
(When he chooses an item in the autocompletion list, I have the country,
state and town)

function selectTown(country, state, town) {
$('#country').val(country);
$('#country').change(); // - this will load the states in the select
// once the country has been selected 
// and select element containing states has been populated, then do
// $('#state').val(state);
// $('#state').change();
}






Richard D. Worth-2 wrote:
 
 On Sat, Sep 27, 2008 at 3:35 AM, debussy007 [EMAIL PROTECTED] wrote:
 


 Hi,

 For a lot of asynschronous calls, like the effects, jQuery provides
 completion callbacks which are very useful.
 Unfortunately it doesn't provide completion callbacks for events.

 How am I able to know when an event has been completely processed ?
 Once a specific event has been processed, I would like to perform other
 instructions.
 
 
 Can you describe what you mean by when an event has been completely
 processed? Maybe provide a concrete example? Events occur or fire, they
 don't process. So you can be notified when events occur/are triggered
 using:
 
 $(#myEl).bind(keydown, function() { ... })
 //or
 $(#myEl).keydown(function() { ... })
 
 and same for any events (click, mousedown, mousemove, mouseup, change,
 etc).
 At what other time would you want to be notified? keyup and keypress are
 separate events (to complete this example).
 
 - Richard
 
 

-- 
View this message in context: 
http://www.nabble.com/Completion-callback-after-events-tp19700454s27240p19702806.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] My scripts executes two times a controller

2008-09-27 Thread debussy007


Hi,

All my controllers which are located in the default module extends
'MyZend_Default_Controller_Action' which extends
'MyZend_Default_Common_Action' which finally extends Zend_Action_Controller

When I do a request for the main page (IndexController/indexAction), the
scripts executes once the 'MyZend_Default_Controller_Action',
but when I try to execute another controller,
'MyZend_Default_Controller_Action' gets executed twice !

I can't understand why ...
I do not even know how to debug this behaviour,

can anyone help me with this ?

Thank you.
-- 
View this message in context: 
http://www.nabble.com/My-scripts-executes-two-times-a-controller-tp19707241s27240p19707241.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] [TreeView] Lazy-load

2008-08-28 Thread debussy007


Hello,

I use the Tree plusgin of Bassassistance but I noticed the files in the
lazy-load demo was not the same as the files to download.

For example there is no image ajax-loader.gif in the files. I tried to add
it and add in the CSS the code that's missing:
.treeview .placeholder {
background: url(images/ajax-loader.gif) 0 0 no-repeat;
height: 16px;
width: 16px;
display: block;
}


But it has no effect.

Thank you for any help.
-- 
View this message in context: 
http://www.nabble.com/-TreeView--Lazy-load-tp19200398s27240p19200398.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] [form][ajaxSubmit] How to send a parameter in error callback ?

2008-07-02 Thread debussy007


Hi,

I would like to send a parameter in the error callback :

var optionsPrcPic = { 
beforeSubmit:  showRequestPic,  // pre-submit callback 
success:   showResponsePic,  // post-submit callback 
dataType: 'json',
url:   ?php echo $this-baseUrl;
?/members/profile/add-photo/pic/+pic,
error: errorPic,   //error callback
timeout:   60
};
function errorPic(xhr, status, ex) {
  [...]
}

I want to give to the error callback the 'pic' variable to know which pic
caused error.

Anyone has an idea ? 

Thanks !
-- 
View this message in context: 
http://www.nabble.com/-form--ajaxSubmit--How-to-send-a-parameter-in-error-callback---tp18233801s27240p18233801.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] [validate] Manual submit with submitHandler question

2008-06-25 Thread debussy007


Hi,

Whenever a form is correctly validated, I want to change my submit button
into an ajax-like image.

$(#form_register).validate({
  submitHandler: function(form) {
$(#button).html(
 '?php echo $this- baseUrl; 
?/public/images/ajax/ajax-loader-32.gif' 
+
class='no-border' Registration in progress...
);
  },

The problem is that the form isn't submitted,
I tried also to add return true, it has no effect
and if I add $(form).submit() I have in firebug an error 'too much
recursion' (I guess it tries to validate again and again)

Thank you for any help.
-- 
View this message in context: 
http://www.nabble.com/-validate--Manual-submit-with-submitHandler-question-tp18109452s27240p18109452.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: [validate] Manual submit with submitHandler question

2008-06-25 Thread debussy007


Thank you, it works this way !



Jörn Zaefferer-2 wrote:
 
 
 Try to add form.submit(). The calls the native submit method and
 avoids triggering the validation again.
 
 Jörn
 
 On Wed, Jun 25, 2008 at 12:44 PM, debussy007 [EMAIL PROTECTED] wrote:


 Hi,

 Whenever a form is correctly validated, I want to change my submit button
 into an ajax-like image.

 $(#form_register).validate({
  submitHandler: function(form) {
$(#button).html(
 '?php echo $this- baseUrl;
 ?/public/images/ajax/ajax-loader-32.gif' 
 +
class='no-border' Registration in progress...
);
  },

 The problem is that the form isn't submitted,
 I tried also to add return true, it has no effect
 and if I add $(form).submit() I have in firebug an error 'too much
 recursion' (I guess it tries to validate again and again)

 Thank you for any help.
 --
 View this message in context:
 http://www.nabble.com/-validate--Manual-submit-with-submitHandler-question-tp18109452s27240p18109452.html
 Sent from the jQuery General Discussion mailing list archive at
 Nabble.com.


 
 

-- 
View this message in context: 
http://www.nabble.com/-validate--Manual-submit-with-submitHandler-question-tp18109452s27240p18116015.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] iFixPng issue in IE6 - red cross on image

2008-05-14 Thread debussy007


Hi,

I am using iFixPng for IE6 but I have a strange effect ont he image, it
displays but there is a red cross on it,
sample:

http://r12121.ovh.net/~a6aresra/reining-merida.php

Instruction:  $('img[src$=.png]').ifixpng();

Thank you for any kind help !!
-- 
View this message in context: 
http://www.nabble.com/iFixPng-issue-in-IE6---red-cross-on-image-tp17226936s27240p17226936.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Form Plugin: files not supported ?

2008-03-04 Thread debussy007


Hi,

I try to submit my form with the Form plugin using ajax, 

but it seems that when I add a file in the form, I get a JS error. 

Aren't files supported by the plugin ?

Thank you for any info !
-- 
View this message in context: 
http://www.nabble.com/Form-Plugin%3A-files-not-supported---tp15825190s27240p15825190.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Form Plugin: files not supported ?

2008-03-04 Thread debussy007


I have the following error (on firebug console):

line 304
form.submit();
form.submit is not a function

The thrid parameter of the error callback says SyntaxError: syntax error

I can't see what I'm doing wrong,
a submit without picture of the same form is working, but once I add a
picture in the form I have this error.



malsup wrote:
 
 
 Yes, they are supported.  What kind of error are you getting?
 
 
  I try to submit my form with the Form plugin using ajax,

  but it seems that when I add a file in the form, I get a JS error.

  Aren't files supported by the plugin ?

  Thank you for any info !
 
 

-- 
View this message in context: 
http://www.nabble.com/Form-Plugin%3A-files-not-supported---tp15825190s27240p15826152.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Form Plugin: files not supported ?

2008-03-04 Thread debussy007


Thank you ! 
Indeed the submit button had has as name attribute submit, what is wrong
with that ?
Since I renamed it, it works !

I have also a last related question, if you do not mind.
I submit my form 11 times, once for the member registration data, 
then for each member's picture (10 in total)

That way, I am able to show the progression, it looks like this:

Submitting Data - Completed
Uploading Pic 1 - Completed
Uploading Pic 2 - Processing
Uploading Pic 3 - Pending
Uploading Pic 4 - Pending
Uploading Pic 5 - Pending
[...]
Uploading Pic 10 - Pending

I display this in a thickbox modal pop-up.

But Mozilla Firefox is getting very slow and sometimes it says not
responding for some seconds, very annoying for the users.
Also the ventilation of my computer is working hard.

(Notice I submit each time the whole form with all the images, 11 in total:
data + 10 pics,
Maybe it is the fact that I upload 11 times 10 pictures from the form ?)

Can you help me ?



malsup wrote:
 
 
 Do you have an input with the name submit.  Try renaming that element.
 
 Mike
 
 
 On Tue, Mar 4, 2008 at 7:30 AM, debussy007 [EMAIL PROTECTED] wrote:


  I have the following error (on firebug console):

  line 304
  form.submit();
  form.submit is not a function

  The thrid parameter of the error callback says SyntaxError: syntax
 error
 
 

-- 
View this message in context: 
http://www.nabble.com/Form-Plugin%3A-files-not-supported---tp15825190s27240p15834346.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Determine if mouse is over a specific element

2008-02-12 Thread debussy007


Hi,

is it possible to know wether the mouse is over a specific element or not ?

Thank you for any help ! 

:thinking:
-- 
View this message in context: 
http://www.nabble.com/Determine-if-mouse-is-over-a-specific-element-tp15445464s27240p15445464.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] check if an id exists

2007-12-24 Thread debussy007


Hi,

what is the best way in jquery to check wether an id exists ?

Thank you for any kind help !!
-- 
View this message in context: 
http://www.nabble.com/check-if-an-id-exists-tp14488007s27240p14488007.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: check if an id exists

2007-12-24 Thread debussy007


I tried :
if( ! $('#tooltip') ) {
...
}

it gives me a javascript error if I add this :(





Eridius wrote:
 
 not sure, this is untested but might work(not sure what jQuery return if
 nothing is found)
 
 if($('#id'))
 {
 //it exists
 }
 else
 {
 //it does not
 }
 
 debussy007 wrote:
 
 Hi,
 
 what is the best way in jquery to check wether an id exists ?
 
 Thank you for any kind help !!
 
 
 

-- 
View this message in context: 
http://www.nabble.com/check-if-an-id-exists-tp14488007s27240p14488142.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: check if an id exists

2007-12-24 Thread debussy007


(the error is elem has no properties in the jquery js)


debussy007 wrote:
 
 I tried :
 if( ! $('#tooltip') ) {
 ...
 }
 
 it gives me a javascript error if I add this :(
 
 
 
 
 
 Eridius wrote:
 
 not sure, this is untested but might work(not sure what jQuery return if
 nothing is found)
 
 if($('#id'))
 {
 //it exists
 }
 else
 {
 //it does not
 }
 
 debussy007 wrote:
 
 Hi,
 
 what is the best way in jquery to check wether an id exists ?
 
 Thank you for any kind help !!
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/check-if-an-id-exists-tp14488007s27240p14488143.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: check if an id exists

2007-12-24 Thread debussy007


Thanks this works great !!


Richard D. Worth-2 wrote:
 
 From:
 
 http://docs.jquery.com/Frequently_Asked_Questions#How_do_I_test_whether_an_element_exists.3F
 
 if ( $('#theId').length ) {
   // exists
 } else {
   // doesn't exist
 }
 
 - Richard
 
 On Dec 24, 2007 9:11 AM, debussy007 [EMAIL PROTECTED] wrote:
 


 Hi,

 what is the best way in jquery to check wether an id exists ?

 Thank you for any kind help !!
 --
 View this message in context:
 http://www.nabble.com/check-if-an-id-exists-tp14488007s27240p14488007.html
 Sent from the jQuery General Discussion mailing list archive at
 Nabble.com
 .


 
 

-- 
View this message in context: 
http://www.nabble.com/check-if-an-id-exists-tp14488007s27240p14488585.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Check/Uncheck a radiobutton

2007-12-14 Thread debussy007


Hello,

I always used to uncheck a radio button this way :
$('#radio_shuttle_1_4')[0].checked=false;

The problem is that when using a selector that matches more than one
element, it will not work.
e.g. : $('[EMAIL PROTECTED]')[0].checked=false;  
will not work.

Thank you for any help !!
-- 
View this message in context: 
http://www.nabble.com/Check-Uncheck-a-radiobutton-tp14337468s27240p14337468.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Ajax IE issue

2007-11-06 Thread debussy007


Hello !

The following code works in Mozilla FF but not IE :

$.ajax({
type: GET, 
url: path,// path to JPG
success: function(data){
alert('success ' + path);
$('#currentImage').attr('src', path);
},
error: function(xhr, status, ex) {
var msg = ;
msg += status + \n;
msg += xhr.status + \n\n;
msg += ex;
alert('PATH: ' + path);
alert('REPORT: ' + msg);
}
});

What I'm doing is loading an image in ajax way, that way I can display a
loading image in the meanwhile.

In Mozilla FF the process enters the success callback-function,
In IE it enters the error callback-function and get the message 'parse
error' with code '200'.

Thank you for any help !!
-- 
View this message in context: 
http://www.nabble.com/Ajax-IE-issue-tf4757688s27240.html#a13605392
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: slideUp/slideDown - Bug in IE with images

2007-10-22 Thread debussy007


I had to set it as relative since I have (in the real page) absolute elements
in it - which also disappear smoothly in FF but not in IE !! -

So in my script I set background as '' and hide absolute elements if IE
browser is used.

Thank you.


Wizzud wrote:
 
 
 Remove 'position:relative;' from your #headerphoto css.
 
 On Oct 21, 10:05 pm, MichaelEvangelista [EMAIL PROTECTED] wrote:
 just a thought, probably better ways -
 but could you use the same css() to set 'background:none' at the same
 time
 you trigger the slideup?

 --

 --
 Michael Evangelista, Evangelista Design
 Web :www.mredesign.com
 Newsgroups: news://forums.mredesign.com
 Blog :www.miuaiga.com

 debussy007 [EMAIL PROTECTED] wrote in message

 news:[EMAIL PROTECTED]



  Hi,

  slideUp()  slideDown() is not working well when there are images in
 IE.
  I made a sample page about this issue :

 http://matthew16.free.fr/temp/test.html

  Click on Click Here to animate (slideUp / slideDown).
  In Mozilla FF it is very smooth, but you will notice the difference in
 IE.
  Thank you for any workaround, any code !
  --
  View this message in context:
 http://www.nabble.com/slideUp-slideDown---Bug-in-IE-with-images-tf466...
  Sent from the jQuery General Discussion mailing list archive at
  Nabble.com.
 
 
 

-- 
View this message in context: 
http://www.nabble.com/slideUp-slideDown---Bug-in-IE-with-images-tf4666127s27240.html#a13343202
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Changing a background image with .css() function

2007-10-21 Thread debussy007


Hello !

I am trying to change the background image of a div when clicking on an
element.
This is my code :

[...]
$('#accordion').css('background-image', 
'/public/images/icons/slideDown.jpg');

alert($('#accordion').css('background-image'));
[...]

But the alert box will never show me the right url, it will only give me the
initial url when the page was loaded, so the image is not changing.

Can anyone help me with this ?

Thank you for any help !  :-)

-- 
View this message in context: 
http://www.nabble.com/Changing-a-background-image-with-.css%28%29-function-tf4665937s27240.html#a13328642
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Changing a background image with .css() function

2007-10-21 Thread debussy007



Ok, I found out thanks to the jquery IRC channel.

It had to be url('/public/images/icons/slideDown.jpg')

Thank you.





debussy007 wrote:
 
 Hello !
 
 I am trying to change the background image of a div when clicking on an
 element.
 This is my code :
 
 [...]
   $('#accordion').css('background-image', 
 '/public/images/icons/slideDown.jpg');
 
   alert($('#accordion').css('background-image'));
 [...]
 
 But the alert box will never show me the right url, it will only give me
 the initial url when the page was loaded, so the image is not changing.
 
 Can anyone help me with this ?
 
 Thank you for any help !  :-)
 
 

-- 
View this message in context: 
http://www.nabble.com/Changing-a-background-image-with-.css%28%29-function-tf4665937s27240.html#a13328945
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] slideUp/slideDown - Bug in IE with images

2007-10-21 Thread debussy007


Hi,

slideUp()  slideDown() is not working well when there are images in IE.
I made a sample page about this issue : 

http://matthew16.free.fr/temp/test.html

Click on Click Here to animate (slideUp / slideDown).
In Mozilla FF it is very smooth, but you will notice the difference in IE.
Thank you for any workaround, any code !
-- 
View this message in context: 
http://www.nabble.com/slideUp-slideDown---Bug-in-IE-with-images-tf4666127s27240.html#a13329189
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Get the value of a radio button ?

2007-10-16 Thread debussy007


Hello,

I have a radio button like this one:

input type=radio name=othersTransLink value=familiale
class=radionbsp;Lien familiale
input type=radio name=othersTransLink value=étroit
class=radionbsp;Lien étroit
input type=radio name=othersTransLink value=Intérêt direct ou
indirect class=radionbsp;Intérêt direct ou indirect

How can I have the value of the checked radio button ?
Is this possible ?

I know how to get the value with the idea like $('myInput').val() but in
this case I have no idea.

Thank you for any help !
-- 
View this message in context: 
http://www.nabble.com/Get-the-value-of-a-radio-button---tf4634279s27240.html#a13233838
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Get the value of a radio button ?

2007-10-16 Thread debussy007



I integrated the form plugin.

I tried the following :
$('[name=othersTransLink]').fieldValue()

But it return me an empty string.
I do not have to specify the form or something ? 
Something is missing.



malsup wrote:
 
 One option would be to use the form plugin:
 
 var value = $('[name=othersTransLInk]').fieldValue();
 
 This will return the value of the selected radio.
 
 Mike
 
 
 I have a radio button like this one:

 input type=radio name=othersTransLink value=familiale
 class=radionbsp;Lien familiale
 input type=radio name=othersTransLink value=étroit
 class=radionbsp;Lien étroit
 input type=radio name=othersTransLink value=Intérêt direct ou
 indirect class=radionbsp;Intérêt direct ou indirect

 How can I have the value of the checked radio button ?
 Is this possible ?
 
 

-- 
View this message in context: 
http://www.nabble.com/Get-the-value-of-a-radio-button---tf4634279s27240.html#a13234756
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Get the value of a radio button ?

2007-10-16 Thread debussy007



Thank you both of you !!!   :-)) 



Dan G. Switzer, II wrote:
 
 
I integrated the form plugin.

I tried the following :
$('[name=othersTransLink]').fieldValue()

But it return me an empty string.
I do not have to specify the form or something ?
Something is missing.
 
 If you're using a version of jQuery earlier than v1.2, use:
 
 $('[EMAIL PROTECTED]').fieldValue()
 
 -Dan
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Get-the-value-of-a-radio-button---tf4634279s27240.html#a13235369
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Get the value of a radio button ?

2007-10-16 Thread debussy007


The solution with the Form plugin works now,
but I tried without the form plugin with your code but it returns null



Karl Swedberg-2 wrote:
 
 You could also get the value without the Form plugin with this:
 
   $('input[name=othersTransLink]:checked').val()
 
 
 --Karl
 _
 Karl Swedberg
 www.englishrules.com
 www.learningjquery.com
 
 
 
 On Oct 16, 2007, at 10:32 AM, debussy007 wrote:
 



 I integrated the form plugin.

 I tried the following :
 $('[name=othersTransLink]').fieldValue()

 But it return me an empty string.
 I do not have to specify the form or something ?
 Something is missing.



 malsup wrote:

 One option would be to use the form plugin:

 var value = $('[name=othersTransLInk]').fieldValue();

 This will return the value of the selected radio.

 Mike


 I have a radio button like this one:

 input type=radio name=othersTransLink value=familiale
 class=radionbsp;Lien familiale
 input type=radio name=othersTransLink value=étroit
 class=radionbsp;Lien étroit
 input type=radio name=othersTransLink value=Intérêt direct ou
 indirect class=radionbsp;Intérêt direct ou indirect

 How can I have the value of the checked radio button ?
 Is this possible ?



 --  
 View this message in context: http://www.nabble.com/Get-the-value- 
 of-a-radio-button---tf4634279s27240.html#a13234756
 Sent from the jQuery General Discussion mailing list archive at  
 Nabble.com.

 
 
 

-- 
View this message in context: 
http://www.nabble.com/Get-the-value-of-a-radio-button---tf4634279s27240.html#a13235410
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Get the value of a radio button ?

2007-10-16 Thread debussy007



Oh ok,
for some reason I have to add @ before name, because I use a version below
1.2.

Thank you !


debussy007 wrote:
 
 The solution with the Form plugin works now,
 but I tried without the form plugin with your code but it returns null
 
 
 
 Karl Swedberg-2 wrote:
 
 You could also get the value without the Form plugin with this:
 
  $('input[name=othersTransLink]:checked').val()
 
 
 --Karl
 _
 Karl Swedberg
 www.englishrules.com
 www.learningjquery.com
 
 
 
 On Oct 16, 2007, at 10:32 AM, debussy007 wrote:
 



 I integrated the form plugin.

 I tried the following :
 $('[name=othersTransLink]').fieldValue()

 But it return me an empty string.
 I do not have to specify the form or something ?
 Something is missing.



 malsup wrote:

 One option would be to use the form plugin:

 var value = $('[name=othersTransLInk]').fieldValue();

 This will return the value of the selected radio.

 Mike


 I have a radio button like this one:

 input type=radio name=othersTransLink value=familiale
 class=radionbsp;Lien familiale
 input type=radio name=othersTransLink value=étroit
 class=radionbsp;Lien étroit
 input type=radio name=othersTransLink value=Intérêt direct ou
 indirect class=radionbsp;Intérêt direct ou indirect

 How can I have the value of the checked radio button ?
 Is this possible ?



 --  
 View this message in context: http://www.nabble.com/Get-the-value- 
 of-a-radio-button---tf4634279s27240.html#a13234756
 Sent from the jQuery General Discussion mailing list archive at  
 Nabble.com.

 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Get-the-value-of-a-radio-button---tf4634279s27240.html#a13235546
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Permission denied to set property XULElement.selectedIndex

2007-10-12 Thread debussy007


Hello,
whenever I try to display an alert box with some debugging information in my
keyup function,
I have the following errir in Firebug :

[Exception... 'Permission denied to set property XULElement.selectedIndex'
when calling method: [nsIAutoCompletePopup::selectedIndex] nsresult:
0x8057001e (NS_ERROR_XPC_JS_THREW_STRING) location: JS frame ::
http://localhost.lu.fortis.bank:9080/OwebInteractiveTools-PL-Web/InitPersonalTransaction.do
:: anonymous :: line 115 data: no]
[Break on this error] alert(resp);


Anyone has any idea what causes this kind of error ?

Thank you !
-- 
View this message in context: 
http://www.nabble.com/Permission-denied-to-set-property-XULElement.selectedIndex-tf4614186s27240.html#a13177031
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Help for Form plugin

2007-09-16 Thread debussy007


Hello,

I have put a timeout for the ajax request when submitting my form :

var options = { 
beforeSubmit:  showRequest,  // pre-submit callback 
success:   showResponse,  // post-submit callback 
dataType: 'json',
timeout:   1 
}; 

But the problem is that I don't know in my code if there has been a timeout
or not.
I expected to go in method showResponse and have statusText to false.

Can anyone help me ?
Thank you.
-- 
View this message in context: 
http://www.nabble.com/Help-for-Form-plugin-tf4450785s15494.html#a12698312
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: Prev and Next problem

2007-09-15 Thread debussy007


Thank you for your reply Jan!

So I was getting headache for nothing :-)

Anyway I seem to have some undesired effects with older jquery, I'll wait
1.2.1 though and will be back on this subject.



Jan Sorgalla wrote:
 
 Hi,
 
 that happens due to a bug in jQuery 1.2. You either have to wait for 1.2.1
 (which is scheduled for this weekend) or use the older version delivered
 with jCarousel.
 
 
 debussy007 wrote:
 
 Hello,
 
 I have a problem to make this plugin running correctly for my web site.
 
 I have been trying for 2 days now, and I'm hopeless, that's why I am
 looking for a kind soul here who can eventually help me!
 
 Here is a demo I made :
 http://matthew16.free.fr/jcarousel/jcarousel.html
 
 These are my settings :
  scroll: 1,
  auto:7,
  visible:7,
  animation: 'slow',
  wrap:'last'
 
 But as you can see in the demo, it is scrolling 1 picture only the first
 time, then it is scrolling two pictures, then it is scrolling more
 pictures. Also if you try to go to the previous image after it scrolled
 two times, it is not going to the previous image but is going forward.
 
 I think I must change something here :
 .jcarousel-item {
 float: left;
 list-style: none;
 /* We set the width/height explicitly. No width/height causes
 infinite loops. */
 width: 94px;
 height: 180px;
 }
 
 I tried but I have no correct results.
 
 Please! It is my dream to have this running now (yes I am so desperate:))
 ! 
 
 Any help ??
 
 Thank you !!
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Prev-and-Next-problem-tf4442898.html#a12688058
Sent from the jCarousel mailing list archive at Nabble.com.



[jQuery] Prev and Next problem

2007-09-14 Thread debussy007


Hello,

I have a problem to make this plugin running correctly for my web site.

I have been trying for 2 days now, and I'm hopeless, that's why I am looking
for a kind soul here who can eventually help me!

Here is a demo I made :
http://matthew16.free.fr/jcarousel/jcarousel.html

These are my settings :
scroll: 1,
auto:7,
visible:7,
animation: 'slow',
wrap:'last'

But as you can see in the demo, it is scrolling 1 picture only the first
time, then it is scrolling two pictures, then it is scrolling more pictures.
Also if you try to go to the previous image after it scrolled two times, it
is not going to the previous image but is going forward.

I think I must change something here :
.jcarousel-item {
float: left;
list-style: none;
/* We set the width/height explicitly. No width/height causes infinite
loops. */
width: 94px;
height: 180px;
}

I tried but I have no correct results.

Please! It is my dream to have this running now (yes I am so desperate:)) ! 

Any help ??

Thank you !!
-- 
View this message in context: 
http://www.nabble.com/Prev-and-Next-problem-tf4442898.html#a12676474
Sent from the jCarousel mailing list archive at Nabble.com.



[jQuery] Re: Error with Ajax Submit with Form plugin in IE

2007-08-26 Thread debussy007


Hi,

I finally could debug my error.

It's the packed version of the validate plugin which generates me two
errors.
The js file which is not compressed is working fine in ie6 

Thank you for your assistance malsup.



malsup wrote:
 
 
 in IE6, a new page is opened, like the ajax is not working.
 I also noticed in IE6 that my javascript generates an error.
 
 
 I think you answered your own question there.  You need to fix that
 error, whatever it is.  That's why IE opens a new page when you
 submit.
 
 Mike
 
 

-- 
View this message in context: 
http://www.nabble.com/Error-with-Ajax-Submit-with-Form-plugin-in-IE-tf4328848s15494.html#a12333132
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Error with Ajax Submit with Form plugin in IE

2007-08-25 Thread debussy007


Hi all,

In my web application, the user is able to fill in a contact form, which
will send an e-mail on submit.
I am using the official Form plugin.

The form plugin is working perfectly in Mozilla, but not in IE6.

Check the foillowing example :
http://matthew16.free.fr/temp/contact-form.php

When I submit the form in Mozilla, the content div is replaced by the string
returned by the php code.
in IE6, a new page is opened, like the ajax is not working. 
I also noticed in IE6 that my javascript generates an error.

Thank you for any help !

$(document).ready(function(){

var options = { 
target:'#contentwide',   // target 
element(s) to be updated
with server response 
beforeSubmit:  showRequest,  // pre-submit callback 
success:   showResponse  // post-submit 
callback 
}; 
  
  $(#form_contact).validate({
 submitHandler: function(form) {
$(form).ajaxSubmit(options);
 },
 event: blur,
 rules: {
lastname: required,
address: required,
city: required,
phone: required,
email: {
required: true,
email: true
},
emailbis: {
required: true,
email: true,
equalTo: #email
}
 },
 messages: {
lastname: {
required: brIndiquez 
votre nom de famille.
},
address: {
required: brIndiquez 
votre adresse.
},
city: {
required: brIndiquez 
votre ville.
},
phone: {
required: brIndiquez 
votre numéro de téléphone.
},
email: {
required: brIndiquez 
votre e-mail.,
email: brIndiquez 
une e-mail valide.
},
emailbis: {
required: 
brConfirmer votre e-mail.,
email: brIndiquez 
une e-mail valide.,
equalTo: brEntrez le 
même e-mail.
}
 }
  });
});
// pre-submit callback 
function showRequest(formData, jqForm, options) { 
var queryString = $.param(formData); 
return true; 
} 
 
// post-submit callback 
function showResponse(responseText, statusText)  { 
} 
-- 
View this message in context: 
http://www.nabble.com/Error-with-Ajax-Submit-with-Form-plugin-in-IE-tf4328848s15494.html#a12328680
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Validation Form problem

2007-08-11 Thread debussy007


Hi, I am trying to use the Validation plug-in but I have the following error
:

missing } after property list
[Break on this error] rules: {\n



Here is the simple code :

$(#form_contact).validate({
 event: keyup
 rules: {
lastname: required
 },
 messages: {
lastname: {
required: function(element, validator) {
return Indiquez votre nom de famille.
}
}
 }
});


Thank you for any help !
-- 
View this message in context: 
http://www.nabble.com/Validation-Form-problem-tf4253929s15494.html#a12106733
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: Validation Form problem

2007-08-11 Thread debussy007


Oh ! Thank you !

This comma was not in the first example of the plugin's author !




spinnach wrote:
 
 
 you're missing a comma after 'event: keyup', it should be ' event: 
 keyup,'
 
 dennis.
 
 debussy007 wrote:
 
 Hi, I am trying to use the Validation plug-in but I have the following
 error
 :
 
 missing } after property list
 [Break on this error] rules: {\n
 
 
 
 Here is the simple code :
 
 $(#form_contact).validate({
   event: keyup
   rules: {
  lastname: required
   },
   messages: {
  lastname: {
  required: function(element, validator) {
  return Indiquez votre nom de famille.
  }
  }
   }
 });
 
 
 Thank you for any help !
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Validation-Form-problem-tf4253929s15494.html#a12106844
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] [Interface] ScrollTo

2007-07-21 Thread debussy007


Hi,

I am using the ScrollTo function of interface but I can notice that it is
not very fluid scrolling...

I use it to scroll my header on all the pages except the main page.
So I have put it in the jQuery(document).ready   function,
so that when the user clicks on the page, it automatically scroll header and
go on content.

If anyone has any tips to improve the scrolling, let me know! Thank you !
-- 
View this message in context: 
http://www.nabble.com/-Interface--ScrollTo-tf4122985s15494.html#a11725473
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Effect - Slide Up/Down

2007-07-20 Thread debussy007


Hi,

I try to apply effect on a very basic example,
But I can't have it working.

Can anyone help me with this ?

Thank you !!

!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en
head
script type=text/javascript src=js/jquery-1.1.3.1.pack.js/script
style type=text/css#level2 {background-color:#DFEBFF;}/style
script type=text/javascript
$(document).ready(function(){
$(input.buttonBslidedown).click(function(){
$(#level2:hidden).slideDown(slow);
});
$(input.buttonBslideup).click(function(){
$(#level2:visible).slideUp(slow);
});
});
/script
title/title/head
body
input type=button value=Slide Out class=buttonBslideup /
input type=button value=Slide In class=buttonBslidedown /
br/br/
table border=1
tr
tdrow 1, cell 1/td
tdrow 1, cell 2/td
/tr
tr id=level2
tdrow 2, cell 1/td
tdrow 2, cell 2/td
/tr
/table/body/html
-- 
View this message in context: 
http://www.nabble.com/Effect---Slide-Up-Down-tf4119902s15494.html#a11717084
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: Effect - Slide Up/Down

2007-07-20 Thread debussy007
 first starting

 working jQuery, one of the first things I tried to do was slide a  
 table row.



 As you said, Glen, it’s not a pretty sight.  I tried something a  
 little more

 radical.  I use separate *tables* for each row with each table  
 wrapped in a div.

 In other words, each row was a table in a div.



 I code ColdFusion, so I was outputting a query and looping it and  
 would

 have one table as a row of general info, and the second table right  
 below

 it (initially hidden) would hold details.



 A whole table would slide much more smoothly.



 Go to this link and click on any row in the church calendar and  
 you’ll see what

 I mean…



 http://ha2.whitestonemedia.com/cfm/calendar.cfm



 Rick



 From: jquery-en@googlegroups.com [mailto:jquery- 
 [EMAIL PROTECTED] On Behalf Of Glen Lipka
 Sent: Friday, July 20, 2007 6:59 PM
 To: jquery-en@googlegroups.com
 Subject: [jQuery] Re: Effect - Slide Up/Down



 Couple of issues.
 1. You can use SlideToggle to reduce complexity alot.
 $(input.oneButton).click(function(){
   $(#level2).slideToggle(slow);
 });

 However, you may WANT two buttons.

 2. You can't really slideup a TR.  Its not that flexible in that.
 I whipped up a demo to show a possible solution.
 http://www.commadot.com/jquery/selectors/slidingRow.htm

 There probably is an easier way, but this was my first thought.

 Glen


 On 7/20/07, debussy007 [EMAIL PROTECTED] wrote:



 Hi,

 I try to apply effect on a very basic example,
 But I can't have it working.

 Can anyone help me with this ?

 Thank you !!

 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
 http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd 
 html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en
 head
 script type=text/javascript src=js/jquery- 1.1.3.1.pack.js/ 
 script
 style type=text/css#level2 {background-color:#DFEBFF;}/style
 script type=text/javascript
 $(document).ready(function(){
 $(input.buttonBslidedown).click(function(){
 $(#level2:hidden).slideDown(slow);
 });
 $(input.buttonBslideup ).click(function(){
 $(#level2:visible).slideUp(slow);
 });
 });
 /script
 title/title/head
 body
 input type=button value=Slide Out class=buttonBslideup /
 input type=button value=Slide In class=buttonBslidedown /
 br/br/
 table border=1
 tr
 tdrow 1, cell 1/td
 tdrow 1, cell 2/td
 /tr
 tr id=level2
 tdrow 2, cell 1/td
 tdrow 2, cell 2/td
 /tr
 /table/body/html
 --
 View this message in context: http://www.nabble.com/Effect---Slide- 
 Up-Down-tf4119902s15494.html#a11717084
 Sent from the JQuery mailing list archive at Nabble.com.




 
 
 

-- 
View this message in context: 
http://www.nabble.com/Effect---Slide-Up-Down-tf4119902s15494.html#a11719085
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] jQuery - form plugin

2007-07-17 Thread debussy007


Hi,

I am trying to understand the difference between AjaxForm and AjaxSubmit.

There are some examples Here : http://www.malsup.com/jquery/form/#sample1

With some forms.

But for each form, when I click Submit, I get on a dummy.php page with some
text on it.

It doesn't look like an Ajax call. Has the website some problems or maybe I
didn't understand the way it works ?

Thank you for any help.
-- 
View this message in context: 
http://www.nabble.com/jQuery---form-plugin-tf4096402s15494.html#a11647890
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: jQuery - form plugin

2007-07-17 Thread debussy007


Thank you,
if I understood correctly AjaxForm bind callback function with the submit
button,
and I can do some validations in this function.

No, I don't see any alert, nothing, I am just forwarded to the dummy.php
page,
But now that I write these lines, I think it is probably the secured
connection in my company that breaks the script !

Thank you for your support.



debussy007 wrote:
 
 Hi,
 
 I am trying to understand the difference between AjaxForm and AjaxSubmit.
 
 There are some examples Here : http://www.malsup.com/jquery/form/#sample1
 
 With some forms.
 
 But for each form, when I click Submit, I get on a dummy.php page with
 some text on it.
 
 It doesn't look like an Ajax call. Has the website some problems or maybe
 I didn't understand the way it works ?
 
 Thank you for any help.
 

-- 
View this message in context: 
http://www.nabble.com/jQuery---form-plugin-tf4096402s15494.html#a11648778
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] JTicker Plugin problem

2007-07-15 Thread debussy007


Hi,

I try to use JTicker, RSS feed,
But I can't display my RSS feed.

I can notice by adding some alerts debuging that the javascript stops here :

FillSlide: function() {
var Item, TickerHTML, Title, URL, Desc;
$(# + options.TickerID).empty();
options.contentcounter++;
alert(options.contentcounter);
alert(options.dataXML);
var nb = $(item, options.dataXML).length;  --- 
javascript stops
here
alert(nb);
if (options.contentcounter == $(item, 
options.dataXML).length) {
 [...]

Can anyone help me ?

Thank you.
-- 
View this message in context: 
http://www.nabble.com/JTicker-Plugin-problem-tf4083651s15494.html#a11606688
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] blur() problem

2007-07-08 Thread debussy007


Hi,

I have an arrow on my website on which the user can click.
The problem is that when the user clicks, in Mozilla I have the selection
border on the arrow.
The arrow has id buttonNext

I tried this :

$(#buttonNext).click(function(){
alert(test);
$(#buttonNext).blur();
});

I tried this but it doesn't work, I can see the test getting displayed
though.
Can anyone help ?

Thank u.
-- 
View this message in context: 
http://www.nabble.com/blur%28%29---problem-tf4044064s15494.html#a11487534
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] $(elem) question

2007-07-02 Thread debussy007


Hi,

I am trying to access my SELECT element with jQuery but I can't make it
working :

This works :
 alert(document.getElementById('aller')); //  [object]
 var sel = document.getElementById('aller');
 alert(sel.selectedIndex);   // 0
This not working :
 alert($(document.aller));   // [object Object]
 alert($(document.aller).selectedIndex);   // undefined

Could anyone help me ?

Thank u for any comment.


-- 
View this message in context: 
http://www.nabble.com/%24%28elem%29--question-tf4011702s15494.html#a11392465
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] ajax request error

2007-05-30 Thread debussy007


Hi,

I am calling an Ajax request to the server (J2ee, Struts Action) to get a
number :

*
alert(date);
alert(flight);

var html = $.ajax({
url: ATBAjaxHandler.do,
data: service-name=nb_places_availabledate=+date+flight=+flight
}).responseText;

alert(HTML = +html);
document.getElementById('nbPlacesAller').innerHtml = html;
*

in IE the last alert is never shown, in Mozilla it shows HTML =  followed
by an empty string


I am returning the number like this in the server :

response.getWriter().println(+nbActiveBooks);



Is there any way to know what is the actual error ?
I am really clueless on what to do.
Do you have any debugging tips ?

Thank you very much.
-- 
View this message in context: 
http://www.nabble.com/ajax-request-error-tf3840045s15494.html#a10872627
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Problem with show() and hide() in IE

2007-04-01 Thread debussy007

Hi,

I have a website with header, menu, content.

To change the content according to the menu clicked,
I use show() and hide() functions of jquery.

In Mozilla I got everything working,
but in IE6, the height won't adapt according to the content's length.

U can check it here :

http://matthew16.free.fr/portfolio/

With Mozilla, if u click on the menu's, everything is ok,
but with IE6 try to click on menu Services followed by Projects
for example.

I can't find a solution to this so I am asking here ...

I set the height like this, to get the footer at the bottom of the
viewport if content is less high then viewport :

body, html {...height:100%;...}
#container {...min-height:100%;...}
!--[if IE 6]
style type=text/css#container{height:100%;}/style
![endif]--
!--[if lt IE 6]
style type=text/css#container{height:100%;}/style
![endif]--


Thank u for any help !!



[jQuery] Re: Problem with show() and hide() in IE

2007-04-01 Thread debussy007

It's not working :(