[jQuery] Re: image refresh problem due to browser cache

2009-11-29 Thread Kris
I'm interested in this and found this: http://drupalbin.com/8159

[jQuery] Unable to detect Ajax cross domain error (Firefox)

2009-10-07 Thread Kris Schoofs
ction (XMLHttpRequest, textStatus)     {         $("#container_oncomplete").html("@"+Counter+"#"+textStatus);         Counter++;         ScheduleNextAjaxRequest();     } }); Thanks, Kris

[jQuery] Click event not working?

2009-08-27 Thread Kris S
I'm trying to execute a function "animate_next()" when a "div" element is clicked, but it isn't working. Here is what it looks like.. $('#playground').click(function(){animate_next();}); If I put.. $('#playground').ready(function(){animate_next();}); ..then it will work fine. Here is the "div

[jQuery] newbie question.

2009-07-25 Thread Kris
What does this do? (function($) { do some stuff } )(jQuery);

[jQuery] Re: Text manipulation : retrieve tag

2009-07-23 Thread Kris-I
In fact all the text/code is in a variable, it's not display on the screen. The page is more like this : *strong text* MyMessage body {font-family:"Verdana";font-weight:normal;font-size: . 7em;color:black;} Server Error in '/' Application. My

[jQuery] Text manipulation : retrieve tag

2009-07-23 Thread Kris-I
Hello, I have an HTML text with text and tags I'd like to get only the text between the tags Then I have this: start text Text to get end text i'd like to have this result ONLY: "Text to get" How can I do this ? Thanks,

[jQuery] Catch Exception

2009-07-22 Thread Kris-I
Hello, In my code (ASP.NET MVC using Nhibernate) , I do this : $(document).ready(function() { $('.DOFFDelete').click(function() { var id = $(this).attr("id"); $.post("/Customer/DayOffDelete", { customerid: getCustomerId(), doffId: id }, function(data) {

[jQuery] keypress, keydown + backspace : Firefox, Chrome, IE

2009-07-21 Thread Kris-I
Hello, I check the keycode, for all input (text) of the page, like this : $(document).ready(function() { $("input[type=text]").bind('keypress', function(e) { var code = (e.keyCode ? e.keyCode : e.which); if (code != 0 && code != 9 && code != 45 && code != 99)

[jQuery] no intellisense ...

2009-06-01 Thread Kris-I
Hello, I'm running Visual Studio 2008 SP1 on Windows 7 RC, I installed the KB958502, get the files jquery-1.3.2-vsdoc2.js and jquery-1.3.2.js placed in the root (but I tried other places) with the code below ... no intelisense . Do you have an idea why ? Thanks, <%@ Page Language="C#" AutoEve

[jQuery] Re: mod_python and ajax - no Hello world examples exist

2009-05-28 Thread kris
To see how to do it with Javascript: http://vandermerwe.co.nz/?p=9 (figured it out myself) Regards Kris On May 24, 6:20 pm, kris wrote: > Im trying to implement Ajax under mod_python. > Mod_python works fine for normal pages, but i cant get a Ajax > response. > > Does som

[jQuery] mod_python and ajax - no Hello world examples exist

2009-05-24 Thread kris
Im trying to implement Ajax under mod_python. Mod_python works fine for normal pages, but i cant get a Ajax response. Does somebody know of a "hello world" example for Ajax and mod_python and jQuery? My test is something like this, HTML client: $("#test_form").submit(function() {

[jQuery] combined url

2009-03-10 Thread Kris
Hi I'm new to jquery i can't understand what the followng means. var combinedIncludeURL = "combine.php?type=javascript&files="; can i modified that ? my requirement is can i call jsp instead of this? plz help me

[jQuery] Re: Little help please?

2009-02-16 Thread Kris
Michael, Thanks very much for your reply. It has cleared many things up for me and can see now why I was having trouble. I will take your advice and make an object rather than a jquery plugin. Thanks very much. Kris.

[jQuery] Little help please?

2009-02-15 Thread Kris
ton").click(function(){ $("#map").pan(37.3, -122.2, 0); $("#map2").infoWindow(37.4419, -122.1419, "Hello"); }); The pan and infoWindow only act on the last . I'm sure this is only because of a rookie javascript mistake, any help is much appreciated. Many thanks, Kris.

[jQuery] Re: validation remote

2009-02-08 Thread Kris
Another figure out the solution for this? I am having a similar problem. Thanks guys, Kris On Dec 15 2008, 4:17 am, Jet wrote: > Hi, > > Sounds like we are having the same problem. > > I have posted about the problem in this thread. > > http://groups.google.com/group/jq

[jQuery] Re: Prefixing all href attributes (or how to get .attr('href') to return a string)

2008-12-11 Thread Kris
Own workaround: if(document.domain=='localhost') { var root_url = 'http://localhost/ project/'; } else { var root_url = 'http://www.mydomain.com/inprog/ project'; } $("#content_main a:not(.external)").attr('href', function() { orig_url = $(this).attr('href'); if(orig_url.substring(0,4)=='htt

[jQuery] Re: Prefixing all href attributes (or how to get .attr('href') to return a string)

2008-12-11 Thread Kris
Okay the only issue I'm facing now and its not strictly a JQuery one, its more an IE one... HREF's like 'images/trucks.jpg' should be prefixed with 'cms/' giving 'cms/images/trucks.jpg'. Firefox and Safari are okay, I get URLs like: http://www.mydomain.com/inprog/cvs/cms/images/trucks.jpg But

[jQuery] Re: Setting background image does not work...

2008-12-11 Thread Kris
I see, the path is not relative to the css file (../images/banner/ default.gif) that first set background, its relative to root (images/ banner/custom.gif). Many thanks for confirming I had correct syntax, one of those where you can bang your head aginst the walls for days!!

[jQuery] Re: Prefixing all href attributes (or how to get .attr('href') to return a string)

2008-12-11 Thread Kris
Many thanks Karl, I never would have got there without help. On Dec 10, 5:10 pm, Karl Swedberg <[EMAIL PROTECTED]> wrote: > Hi Kris, > > The problem is that $(this) is referencing something other than the   > link at that point -- either some enclosing method or the window  

[jQuery] Prefixing all href attributes (or how to get .attr('href') to return a string)

2008-12-10 Thread Kris
I'm trying to use the below code to prefix all href's with 'cms/'... [code] $("#content_main a").attr('href', 'cms/' + $(this).attr('href')); [/code] I end up with href's which look like this "cms/undefined". I guess I need to get $(this).attr('href') to return a string instead of a JQuery objec

[jQuery] Setting background image does not work...

2008-12-10 Thread Kris
I have tried both the following but neither seem to work. [code] $('#content-top').css('backgroundImage', "url(" + src + ")"); $('#content-top').css("background-image", "url(" + src + ")"); [/code] Any ideas would be welcome, thanks.

[jQuery] infinite jQuery

2008-09-27 Thread Kris
Hi all, I'm really excited about jQuery, just as all the rest here. I've found out that it is really easy to create an animation. However, one day I stumbled upon the following question: is it possible to run one animation infinitely (repeat one statement the whole time, in my case). Is that even

[jQuery] selecting div's with dynamic id's

2008-07-04 Thread Kris
Whats the best way to provide functionality (eg. toggle an 'additional information' div) when dealing with records with unique id's. For example lets say we are dealing with product records each one has a unique id which is a number, so the HTML might look something like this: Name: Red

[jQuery] ajax sending back redirect breaks history

2008-01-19 Thread Kris
ld expect keeping history intact, so i assume something specific is being done in the jquery module either on purpose or by accident. Any ideas or comments welcome. kris

[jQuery] Re: Jquery Location.href or load --problem

2007-09-30 Thread Kris Kowal
You might consider:: window.location.href = fullyQualifiedUrl; ``href`` is not a function, although the notion (arguably a jQuery idiom) that assignment could be implied by application on a non-function is fun. Kris Kowal On 9/29/07, voltron <[EMAIL PROTECTED]> wrote: > >

[jQuery] Re: using load cross site

2007-09-10 Thread Kris Zyp
: http://www.xucia.com/page/CrossSafe Kris On Aug 13, 11:06 pm, Hector Santos <[EMAIL PROTECTED]> wrote: > But Michael, please excuse my ignorance. I'm curious. I have to ask > because I still do not see this "JSONP XSS loophole." > > Isn't this flickr example you