[jQuery] Re: jquery-1.1.3.1 with interface slider trouble

2007-07-08 Thread philguillard


Thanks a lot.

Phil

Benjamin Sterling wrote:

Phil,
As Terry said, Interface is not supporting 1.1.3+, if there are no real
need to use 1.1.3+, then I would suggest sticking with 1.1.2, if you need a
copy, let me know.

FYI, there will be a new FX library coming on line sometime in the near
future, just not sure when.






[jQuery] jquery-1.1.3.1 with interface slider trouble

2007-07-07 Thread philguillard


Hi all,

When i try jquery-1.1.3.1.pack.js with interface slider last pack on 
IE6, i get a usual Object doesn't support this property or method on 
the $('.sliderPrice').Slider( line,

even if i set no options. Works fine on ffx.

$('.sliderPrice').Slider(
{
accept : '.indicator'
}
);  

Anybody has any idea what i should try?

Regards,

Phil


[jQuery] cookies / consequent data

2007-05-31 Thread philguillard


Hi,

Somebody can tell me which library i could use to compress text at a 
maximum, for setting coookies in javascript. Unfortunately IE6/IE7 has a 
maximum of 4k total for cookies froms 1 site.


Another question: does somebody know what could be the reason when after 
setting cookies and reloading the page i get this:

The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request.
Too much data in the coookie?

Regards,

Phil


[jQuery] Re: cookies / consequent data

2007-05-31 Thread philguillard


This was to avoid having to authenticate users to save some basic 
information aroud 4k and tend to a serverless application.

Thanks
Phil

Jens wrote:

Why do you need so much space?
I normally use cookies as pointers into data stored at the server side
ex. into a SQL server

/Jens

On 31 Maj, 11:54, Mika Tuupola [EMAIL PROTECTED] wrote:


On May 31, 2007, at 7:42 PM, philguillard wrote:



Somebody can tell me which library i could use to compress text at
a maximum, for setting coookies in javascript. Unfortunately IE6/
IE7 has a maximum of 4k total for cookies froms 1 site.



Another question: does somebody know what could be the reason when
after setting cookies and reloading the page i get this:
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request.
Too much data in the coookie?


You are hitting servers max request size. So yes, basically too much
data in cookie.

--
Mika Tuupola  http://www.appelsiini.net/~tuupola/






[jQuery] $.getJSON manipulation

2007-05-30 Thread philguillard


Hi all,

I use $.getJSON with flickr REST API, unfortunately flickr is answering:
jsonFlickrApi({photos:{page:1, pages:10, perpage:100, 
total:938, photo:[{id:


I guess i should remove jsonFlickrApi( header to get the json 
interpreted. So i tried:


$.get(url, function(response){
response = response.split(jsonFlickrApi()[1];
response= response.substr(0,response.length-1);
//var json = JSON.parse(response);
}

but don't knoe how to parse the remaining data as an object

Somebody can help?

Regards,

Phil


[jQuery] Re: $.getJSON manipulation

2007-05-30 Thread philguillard


Ok i see i'm missing json knowledge. Thanks anyway.

Phil

Emil Ivanov wrote:

Hi,

Actually, it very simple:
Flickr gives you something like this:
jsonFlickrApi({
stat: ok,
blogs: {
blog: [
{
id  : 73,
name: Bloxus test,
needspassword   : 0,
url : http://remote.bloxus.com/;
},
{
id  : 74,
name: Manila Test,
needspassword   : 1,
url : 
http://flickrtest1.userland.com/;
}
]
}
});
all you need to do is define the jsonFlickrApi function. For example:
function jsonFlickrApi(data) {
 return data;
}

After you eval the response you'll have this function called and it
will give you the data.
(Note: I haven't tested this, so it might contain errors, but you can
see the point).

Regards,
Emil Ivanov

Then you can just use $.get and have the

On May 31, 1:08 am, philguillard [EMAIL PROTECTED] wrote:


Hi all,

I use $.getJSON with flickr REST API, unfortunately flickr is answering:
jsonFlickrApi({photos:{page:1, pages:10, perpage:100,
total:938, photo:[{id:

I guess i should remove jsonFlickrApi( header to get the json
interpreted. So i tried:

$.get(url, function(response){
   response = response.split(jsonFlickrApi()[1];
   response= response.substr(0,response.length-1);
   //var json = JSON.parse(response);

}

but don't knoe how to parse the remaining data as an object

Somebody can help?

Regards,

Phil






[jQuery] Parse XML with IE

2007-05-15 Thread philguillard


Hi all,

I know IE6 (maybe 7) is known to have limited ability to parse XML but 
it seems it can.

After an ajax call, i'd like to parse the xml file like this :

$.ajax({
type: GET,
url: url,   
complete: function(response){
var rootNode = $(/rootNode, response.responseXML);
}
});

Is there a hack?, is there something specific about the XML file it can 
parse (ex: no node attributes).



Regards,

Phil


[jQuery] Re: Parse XML with IE

2007-05-15 Thread philguillard


Thank you guys.
I still can't manage to parse any XML data with IE6.

True it is cleaner to use dataType : 'xml' and use success, but :

Whith a basic sample, and i checked mime type was really text/xml
?xml version=1.0?
root
jqueryhello/jquery
/root

$.ajax({
type: GET,
url: /test, 
dataType : 'xml',   
success: function(response){
alert(A success=+response);
alert(B +typeof response);
alert(C +$(/root/jquery, response).text());
} ,
error: function(o,e1,e2){
alert(error+e1);
}
});

On [A] i have sucess=
On [B] i have object
Erro is launched on [C]
== i suppose object is empty
Works fine on firefox.

Any idea?

Phil

Ⓙⓐⓚⓔ wrote:

Phil, your code says:

do a get, when it's complete look for rootnode. BUT, what if the response
has no xml, is malformed, or got some other error. You're ignoring all
possible errors!

success callback calls back when you have a good result (or pretty good)
error is called for most errors.
complete needs to check what it got.

I think we need more help for complete coding, I posted a ticket with my
results... IE was not included though!

http://dev.jquery.com/ticket/1145#preview

On 5/15/07, philguillard [EMAIL PROTECTED] wrote:




Hi all,

I know IE6 (maybe 7) is known to have limited ability to parse XML but
it seems it can.
After an ajax call, i'd like to parse the xml file like this :

$.ajax({
type: GET,
url: url,
complete: function(response){
var rootNode = $(/rootNode, response.responseXML);
}
});

Is there a hack?, is there something specific about the XML file it can
parse (ex: no node attributes).


Regards,

Phil







[jQuery] Re: Parse XML with IE

2007-05-15 Thread philguillard


Jake and Benjamin, thanks for help,

No success with ?xml version=1.0
encoding=utf-8? nor $(root/jquery, response).text()

In the complete callback i get my content with response.responseText 
right. I'll try to set something online for tomorrow. Mybe i should try 
with another IE6/another PC.


Anyway i'm happy to hear this can work, i was not sure it could.

Phil



Ⓙⓐⓚⓔ wrote:

the name of the program is 'test' in the root directory of the server... it
sets the header to be text/xml...

inside success, response is the xml tree of the response, not much good for
debugging. If the alert returns '' for the result, I guess there is a
problem. in the complete callback, you can check the 
response.responseXMLand

response.responseText

do you have a live link??
your code looks like it should, assuming it's actually getting the xml
result you expect..

On 5/15/07, philguillard [EMAIL PROTECTED] wrote:




Thank you guys.
I still can't manage to parse any XML data with IE6.

True it is cleaner to use dataType : 'xml' and use success, but :

Whith a basic sample, and i checked mime type was really text/xml
?xml version=1.0?
root
jqueryhello/jquery
/root

$.ajax({
type: GET,
url: /test,
dataType : 'xml',
success: function(response){
alert(A success=+response);
alert(B +typeof response);
alert(C +$(/root/jquery, response).text());
} ,
error: function(o,e1,e2){
alert(error+e1);
}
});

On [A] i have sucess=
On [B] i have object
Erro is launched on [C]
== i suppose object is empty
Works fine on firefox.

Any idea?

Phil

Ⓙⓐⓚⓔ wrote:
 Phil, your code says:

 do a get, when it's complete look for rootnode. BUT, what if the
response
 has no xml, is malformed, or got some other error. You're ignoring all
 possible errors!

 success callback calls back when you have a good result (or pretty 
good)

 error is called for most errors.
 complete needs to check what it got.

 I think we need more help for complete coding, I posted a ticket 
with my

 results... IE was not included though!

 http://dev.jquery.com/ticket/1145#preview

 On 5/15/07, philguillard [EMAIL PROTECTED] wrote:



 Hi all,

 I know IE6 (maybe 7) is known to have limited ability to parse XML but
 it seems it can.
 After an ajax call, i'd like to parse the xml file like this :

 $.ajax({
 type: GET,
 url: url,
 complete: function(response){
 var rootNode = $(/rootNode, response.responseXML);
 }
 });

 Is there a hack?, is there something specific about the XML file it 
can

 parse (ex: no node attributes).


 Regards,

 Phil











[jQuery] Re: Parse XML with IE

2007-05-15 Thread philguillard


I finally found out when preparing a clean sample to put online, that's 
usually the case!

: the presence of the metadata plugin ! Crazy
Just the js inclusion since i was not really using it.
http://fyneworks.blogspot.com/2007/04/fix-for-jquery-bug-in-ie-working-with.html

Thanks
Phil

Ⓙⓐⓚⓔ wrote:

the name of the program is 'test' in the root directory of the server... it
sets the header to be text/xml...

inside success, response is the xml tree of the response, not much good for
debugging. If the alert returns '' for the result, I guess there is a
problem. in the complete callback, you can check the 
response.responseXMLand

response.responseText

do you have a live link??
your code looks like it should, assuming it's actually getting the xml
result you expect..

On 5/15/07, philguillard [EMAIL PROTECTED] wrote:




Thank you guys.
I still can't manage to parse any XML data with IE6.

True it is cleaner to use dataType : 'xml' and use success, but :

Whith a basic sample, and i checked mime type was really text/xml
?xml version=1.0?
root
jqueryhello/jquery
/root

$.ajax({
type: GET,
url: /test,
dataType : 'xml',
success: function(response){
alert(A success=+response);
alert(B +typeof response);
alert(C +$(/root/jquery, response).text());
} ,
error: function(o,e1,e2){
alert(error+e1);
}
});

On [A] i have sucess=
On [B] i have object
Erro is launched on [C]
== i suppose object is empty
Works fine on firefox.

Any idea?

Phil

Ⓙⓐⓚⓔ wrote:
 Phil, your code says:

 do a get, when it's complete look for rootnode. BUT, what if the
response
 has no xml, is malformed, or got some other error. You're ignoring all
 possible errors!

 success callback calls back when you have a good result (or pretty 
good)

 error is called for most errors.
 complete needs to check what it got.

 I think we need more help for complete coding, I posted a ticket 
with my

 results... IE was not included though!

 http://dev.jquery.com/ticket/1145#preview

 On 5/15/07, philguillard [EMAIL PROTECTED] wrote:



 Hi all,

 I know IE6 (maybe 7) is known to have limited ability to parse XML but
 it seems it can.
 After an ajax call, i'd like to parse the xml file like this :

 $.ajax({
 type: GET,
 url: url,
 complete: function(response){
 var rootNode = $(/rootNode, response.responseXML);
 }
 });

 Is there a hack?, is there something specific about the XML file it 
can

 parse (ex: no node attributes).


 Regards,

 Phil