[jQuery] [Autocomplete] modify URL at runtime

2009-10-13 Thread graphicsxp
Hi, I'm using the autocomplete plugin like that in the ready() event : $("#ctl00_body_txtSearch").autocomplete("Autocomplete_GetArts.ashx") .setOptions({ width: "220px" }); However I need to be able to change the URL (to add a bunch of query parameters) based on the values of s

[jQuery] Re: modify URL at runtime

2009-10-13 Thread graphicsxp
I should have searched a little bit more, sorry. Answer is in that post : http://groups.google.com/group/jquery-en/browse_thread/thread/f5668aa46f07014a/cd60970334579d93?lnk=gst&q=autocomplete#cd60970334579d93 On Oct 13, 5:31 pm, graphicsxp wrote: > Hi, > > I'm using the a

[jQuery] weird issue with ready event

2009-01-16 Thread graphicsxp
Hello, I'm trying to set the html content of a DIV (id='list') which sits in a page opened with window.open : var pop = window.open("PrintList.aspx"); $(pop.document).ready(function() { $("#list", pop.document).html("hello"); }); As you can see, the string 'hello' should be writt

[jQuery] Re: weird issue with ready event

2009-01-19 Thread graphicsxp
is before, it seems the 'ready' doesn't fire on opened > windows or frames, you have to use $(pop).load(fn) instead. > > On Jan 16, 1:11 pm, graphicsxp wrote: > > > Hello, > > > I'm trying to set the html content of a DIV (id='list'

[jQuery] Re: weird issue with ready event

2009-01-19 Thread graphicsxp
actually it does work in Firefox ! The problem is in IE (7.0). Any idea ? On 19 jan, 10:46, graphicsxp wrote: > Thanks for the tip. That didn't do anything though. I've tried >  $(pop).load(fn)  and  $(pop)._load(fn)  as there seems to be two > functions called load (

[jQuery] Re: weird issue with ready event

2009-01-19 Thread graphicsxp
t then works after that. This is really strange, if someone has an answer to this issue, please shed some light on this ! Thanks On 19 jan, 10:54, graphicsxp wrote: > actually it does work in Firefox !  The problem is in IE (7.0). Any > idea ? > > On 19 jan, 10:46, graphicsxp wro

[jQuery] Re: weird issue with ready event

2009-01-19 Thread graphicsxp
lem today in MSIE7 with > 1.3:http://groups.google.com/group/jquery-en/browse_thread/thread/e4d9128... > > Look into this:http://dev.jquery.com/changeset/6120 > > It solved my problem. > > On Jan 19, 7:21 pm, graphicsxp wrote: > > > Here's exactly the c

[jQuery] issue with ajax function

2009-01-29 Thread graphicsxp
Hi, I'm trying to send a string to my webservice. The method I call expects a string parameter and returns a string of JSON data. I've tried this way : $.ajax({ url: "Publication.asmx/GetPublication", data: "pText=some text", type: "POST", contentType: "

[jQuery] Re: issue with ajax function

2009-01-29 Thread graphicsxp
ith that pointed out, try > > $.ajax({ >           url: "Publication.asmx/GetPublication", >           data: { pText: "some text" }, >           type: "POST", >           contentType: "application/json; charset=utf-8", >           dataType: "json&

[jQuery] Re: issue with ajax function

2009-01-30 Thread graphicsxp
ified? > > contentType: "application/json; charset=utf-8", > > This should only be set if your webservice expects the input parameter > in JSON format as well, and not only the response is JSON. > Is this the case? > > How does the code of your webservice

[jQuery] Re: issue with ajax function

2009-01-30 Thread graphicsxp
vice returns. Since dataType of my jquery ajax method is set to 'json', this should be interpreted as json data. On 30 jan, 11:14, Beres Botond wrote: > So the AJAX call actually returns some result now? > > If you alert() the result, before trying to do anything with it, what &g