Yes.
Two options.
1. to remove function from the DOM:
window.functionname=null;
2. To create "one-time" functions, like:
(function (){
function a() {alert('a')}
function b() {alert('b')}
function c() {a();b();}
})();
the function a,b,c are relase after they run.
OR
(function (){
a=function() {al
try to change the paramater name inside the success function, to
something like "xhr",
for example:
...
success:function (data,xhr) {}
complele:function (xhr) {}
..
You uses XMLHttpRequest. Maybe the browser think about the native
object.
On Jan 13, 9:16 pm, bryan wrote:
> Read ajax response hea
I get an answer from John:
http://groups.google.com/group/jquery-dev/msg/9345d498c4a1d5f5
On Dec 23, 5:05 pm, Ami wrote:
> One solution is to use the data property like:
>
> function myObj()
> {
> document.bind('scroll',this,this.myScroll);
>
Yes.
try that:
$('select').focus(
function (){$(this).attr('size',5)}
).blur( function (){$(this).attr('size',0)} )
If it.. rate me please.
On Dec 23, 9:47 pm, Jake Moon wrote:
> Is it possible to open the select list on focus?
>
> Best regards,
>
> Jake Moon
function slide() {
if ($(slide_img).attr("src")!="images/1.jpg"){
$(slide_img).fadeOut(200,function() {
$(slide_img).attr({src:"images/1.jpg"});
$(slide_img).fadeIn(200);
});}
}
OR
use can use "this" like:
functio
Try that:
$(document).keydown (function (e) {
if (e.ctrlKey && e.which==13) {
$('#myform').trigger('submit')
})
Let me know if it's work.
On Dec 27, 6:59 pm, Andre Polykanine wrote:
> Hello everyone,
>
> I'm trying to sumbit the form normally as well as by pressing
> Ctrl+Enter. Yepp, the same ta
I recommend to use "change" event and not "click" event, becuase users
can change the checkbox without clicking (by using the keyboard).
On Dec 28, 1:17 am, Charlie Griefer wrote:
> You just want the value of the one that's checked?
>
> $(':checkbox[name=number]').click(function() {
> if ($(
$('.active').prev()
$('.active').next()
Rate me please if I helped.
On Dec 28, 2:30 am, Toaster wrote:
> Hello.
>
> Example:
>
>
>
>
>
>
>
> How would I be able to get find the next or previous in relation
> to the ?
>
> I'd appreciate it if anybody could help me out with
c 23, 5:03 pm, Ami wrote:
> I am suggestion for new small feaute in jQuery.
> add a new proeprty to "bind" function. a Scope property.
>
> sometimes I am binding a function inside object. So I need a solution
> to change the scope of this function.
> something like:
&
I am suggestion for new small feaute in jQuery.
add a new proeprty to "bind" function. a Scope property.
sometimes I am binding a function inside object. So I need a solution
to change the scope of this function.
something like:
$().bind('click',data,scope,function)
For Examp
This is my Html:
I am trying to get the element that I binded to live(), but always i
am getting it's children.
For example, this is my code:
Hye
Hello
Hello World
$('.theClass').live('click', function () { alert('I am trying to get
the parent div id' + this.id + ', but i am always get the
If it's not on the same domain you must use JSONP.
On Mar 2, 7:27 am, mkmanning wrote:
> I'll go ahead and ask this here as well: is 'http://test.com/
> remote.html' in the same domain?
>
> On Mar 1, 8:55 pm, Ami wrote:
>
>
&g
There is no way to load images in AJAX. AJAX is only for text (Like JS/
CSS/JSON/XML,...)
You can use AJAX to load the image source, and put it in ,
or
On Mar 2, 5:53 am, Nic Hubbard wrote:
> I have been searching for a jQuery slideshow plugin that can load in
> images using ajax. But I am hav
Try to put between and #myelemnt
Aminadav
On Mar 2, 4:15 am, joshm wrote:
> Can someone explain how to do this, I'm trying to load the parent of
> an element (which will be a cell) and then load the with the
> html from a remote file kind of like so:
>
> var parent = $('#myelement').par
var divFocus=false,textareaFocus=false
$('div').focus(function () {divFocus=true}).blur(function()
{divFocus=false;doSomething()};
$('textarea').focus(function () {textareafocus=true}).blur(function()
{textareaFocus=false;doSomething()}
function doSomthing()
{
if (!divFocus && !textAreaFocus) ale
Hello.
Some times we need to make toggle not only to click events.
So I change the jQuery Code at line 2993-2954 to:
toggle: function( fn ) {
// Save reference to arguments for access in closure
var args = arguments, i = 1;
//I added This
e + (types || "") );
Thank you
On Feb 26, 5:19 am, Ami wrote:
> Suggestion: .unbind('.event-title")
>
> $('div').bind('click.mybind',func1).bind('focus.mybind',func2).bind
> ('click",func3)
>
> Now I am trying to un
Suggestion: .unbind('.event-title")
$('div').bind('click.mybind',func1).bind('focus.mybind',func2).bind
('click",func3)
Now I am trying to unbind func1& func2 like:
$('div').unbind('click.mybind').unbind('focus.mybind');
My suggestion is that jQuery will support this:
$('div').unbind('.mybind
//logs true
> console.log( $('#pops').childOf( $('#pops') ) ); //logs false
>
> On Feb 11, 1:45 pm, Ricardo Tomasi wrote:
>
>
>
> > 'return true' inside the each callback works like a 'c
});
> return p;
>
> };
>
> cheers,
> - ricardo
>
> On Feb 11, 1:56 pm, Ami wrote:
>
> > The Best solution:
>
> > I have writed a very small plugin (1 line) for that, by using the code
> > of Richard
>
> > jQuery.fn.childOf=function(a){va
The Best solution:
I have writed a very small plugin (1 line) for that, by using the code
of Richard
jQuery.fn.childOf=function(a){var b=this;return ($(b).parents().filter
(function() { return this === $(a)[0]; }).length )}
For Example:
$("div").childOf(document.body)
$("div").childOf($(documen
Thank you.
You write that I need to wait until the iframe has been loaded.
So I can do this?
var frame=$("#iframe")[0].contentdocument;
$(frame).ready(function () {
alert('Iframe has been loaded!');
});
Am I right?
and Thank you again.
On Feb 8, 6:07 pm, Stephan Veigl wro
Can I use jQuery to work with elements in other frames?
For Example:
$("#frame1 document")
OR
$(document, $("#frame1"))
Jquery History plugin can help you.
The problem is that no event trigger when the user change the hash
value.
On Jan 28, 4:45 am, MorningZ wrote:
> You can read the "hash" value by location.hash
>
> http://www.devguru.com/Technologies/ecmascript/quickref/location_hash...
>
> Not really sure whe
It's is a bug.
I copy&paste you code, and I see an alert "123".
You can simple try it, buy paste this code in FireBug console in any
website that support jQuery (like jQuery.com)
On Jan 23, 5:14 pm, nk wrote:
> Hi Ami,
>
> Thanks for your response.
> I
Read all about it at the docs:http://docs.jquery.com/Events/live
>
> On Jan 23, 3:13 am, Ami wrote:
>
> > Hello.
> > Sorry about my grammar, English isn't my tang.
>
> > I want to understand how the "$(selector).live()" works.
>
> > I have a DOM with a l
You can't do it by using $.load.
You can do it by using $.ajax, and set the dataType to 'script'
For example:
Hello.
Sorry about my grammar, English isn't my tang.
I want to understand how the "$(selector).live()" works.
I have a DOM with a lot of elements.
So if I write:
$('span[attr=value]').live('click')..
When jQuery search for this SPAN?
jQuery search immediately for all span[attr=value], or ev
Thank you.
On Jan 23, 5:53 am, Mike Alsup wrote:
> > Do you think that there is a way to get a return code, when uploading
> > file?
>
> >
> >
> >
>
> > $("form").ajaxSubmit ( {error: function () {alert('error')} );
>
> > Now because the upload is by using invisible iframe and not by XHR, I
Hello.
Do you think that there is a way to get a return code, when uploading
file?
$("form").ajaxSubmit ( {error: function () {alert('error')} );
Now because the upload is by using invisible iframe and not by XHR, I
think that I cannot get the error function to work.
Am I right?
I am us
dataType: 'json',
success: function () {process();bindButtons
()}
});
function process(json) {
blah blah blah irrelevant
}
bindButtons()
});
});
On Jan 23,
You can try this.
1. Create this function:
function bindButtons () {
$('#bold,#italic,#underline').unbind().click(function() {
$('#body').append($(this).val());
}
2. change the ready function:
$(document).ready(function() {
$('#journalForm').ajaxF
My javascript syntax is better than my English syntax, So i hope that
you can understand it
$(document.body).prepend("abcdefghi");
var result='';
$.each ( $("#theUl").children(),
function () {result+=($(this).attr('id'))}
);
alert(result);
Good luck,
A
Please give as a simple HTML of your table. so we can try help you
On Jan 22, 12:21 am, shinobi wrote:
> Hi everybody.
> I have an html table with a fixed number columns (or headers) and a
> variable number of columns, that may vary in numbers depending on data
> in the DB.
>
> I want to make so
I think that this what R U searching for:
var theList={"list":[
{"id":"15","name":"Testing","description":"test","owner":"1","active":"1","featured":"0","machinename":"testing"},
{"id":"16","name":"Testing","description":"test","owner":"1","active":"1","featured":"0","machinename":"testing"},
{"i
Sorry about my grammar,
English isn't my tang.
What is the different betwen:
$(document).ajaxSucess(function () {})
$('div').ajaxSucess(function () {})
$.ajaxSetup (success: function () {} )
*When I am execute*
$.ajax(url);
Also, how I can change the data before it's send to the server by
us
.
>
> (expr ? 'a' : 'a')();
>
> However, since your function 'a' is global it is a method of the window. You
> could use bracket notation to reference the method like this.
>
> window[ (expr ? 'a' : 'a') ]()
>
> --
>
27;a' : 'a']()
but it's didn't work. why?
On Jan 19, 5:15 am, Brandon Aaron wrote:
> I believe you are looking for the following syntax:
> $(selector)[ (expr ? 'next' : 'before') ]().show();
>
> --
> Brandon Aaron
>
> On Sun, Jan 1
Sorry about my grammar, English isn't my lang.
I am trying to write code like that:
var expr=true,selector='div';
$(selector) (expr ? .next() : .before() ). show();
But it's not JS syntax. So how can I do it?
I know,that I can do it like that:
if (expr) $(selector)..befo
You can short it to:
$(function() {
var divcount = $("div").length;
alert("start=" + divcount);
});
On Jan 19, 4:55 am, Karl Rudd wrote:
> The code is being run before the DIVs actually exist. You need to
> "wrap" the code in a "ready" event handler, like so:
>
> $(document).ready( functi
Thank you.
This is exactly what I search.
10 Points :)
On Jan 19, 4:45 am, Ricardo Tomasi wrote:
> The only alternative is
>
> $(selector).next().andSelf()
>
> On Jan 19, 12:08 am, Ami wrote:
>
> > Hello,
>
> > Sorry about my grammar, English isn't
Hello,
Sorry about my grammar, English isn't my tang.
How I add to $ the next elmement.
Some think Like
I can do:
$(selector).add( $(selector).next)
But I think that there is a better solution.
Thank you.
;
>
> > Try it and see what Internet Explorer 6 does.
>
> > Karl Rudd
>
> > On Thu, Jan 15, 2009 at 3:53 PM, Ami wrote:
>
> > > So you for you fast answer.
> > > 5 point
> > > (:
>
> > > Do I must to change all my pages from Transitional t
TML. You
> could use HTML Strict:
>
> "http://www.w3.org/TR/html4/strict.dtd";>
>
> More information here:
> http://en.wikipedia.org/wiki/Quirksmode
>
> Karl Rudd
>
>
>
> On Thu, Jan 15, 2009 at 3:08 PM, Ami wrote:
>
> > Hello,
> > S
Thank you.
Do you know also about the standards model?
that I asked before?
Link to the question:
http://groups.google.com/group/jquery-en/browse_thread/thread/6545a6ced519de33#
On 15 ינואר, 06:36, Karl Rudd wrote:
> Yes.
>
> Karl Rudd
>
>
>
> On Thu, Jan 15, 2009 a
The new core LIVE.
Hello.
Can I use a namespace with live?
$.live('click.fuc1',function1 };
$.live('click.fun2');
$.die('click.func1');
Hello,
Sorry about my grammar, English isn't my tang.
I read in the Jquery 1.3:release notes, that I must use W3c standards
mode.
I tried to understand what it's mean.
Now my HTML start like that:
DO I need to replace it to this: (Like in Jquery website)
http://www.w3.org/TR/xhtml1/DTD/xhtml
Sorry about my grammar, English isn't my tango
$("#elment").click ( function () { alert('ok') } );
Now, when I move the element:
$("#element").insertAfter( otherElement);
The click event is automatically unbind. How Can I fix it?
48 matches
Mail list logo