What does this do?
(function($) { do some stuff } )(jQuery);
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() {
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
I'm interested in this and found this: http://drupalbin.com/8159
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.
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
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
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!!
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
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
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
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.
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.
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
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
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
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
: 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
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)
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) {
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,
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
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
ction (XMLHttpRequest, textStatus)
{
$("#container_oncomplete").html("@"+Counter+"#"+textStatus);
Counter++;
ScheduleNextAjaxRequest();
}
});
Thanks,
Kris
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
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:
>
>
26 matches
Mail list logo