I am wondering what is the safest way to test if a variable is a
jQuery object. I am building a function where I want to be able to
pass in either the id of the form or the form object itself. The
current way I am doing this is
var $form = (form instanceof jQuery ? form : $('#' + form));
Is th
I say that friday that IE8 was released so I downloaded it to check it out.
I am happy that they did seemed to do at least a few right right and it seem
very easy to test for IE8 and IE7 in the IE8 browser (which is very nice).
However, after i installed IE8, Multiple IE stopped render correctl
Anyone?
Eridius wrote:
>
> Is the following syntax the proper way to bind and unbind event in plugin
> so that you minimize the chance you will unbind and event that you did not
> set?
>
> $(selector).bind('event.custom_tag', function);
>
Is the following syntax the proper way to bind and unbind event in plugin so
that you minimize the chance you will unbind and event that you did not set?
$(selector).bind('event.custom_tag', function);
so if you take the following:
$('#binding_test').bind('click.part1', function()
{
al
I remember reading somewhere and hear at the conference about how you can add
some to the event string in the bind method like:
$(this).bind('click:my_plugin', function(){});
And then if you wanted to just remove that binding event, while leaving all
the other events still there, you could do:
I have the following code:
//add the ability to drag columns
if(options.draggable === true)
{
$('#' + options.element_id + ' table.cr_data_grid tbody tr th
span').bind('mousemove', function(event)
{
if(self.resize === true)
{
var change = e
element on a mousedown+mousemove but if so i will use the jquery UI
draggable code.
Eridius wrote:
>
> I know i can do mouseup/mousedown to track where the mouse was clicked
> down and where the mouse was clicked up but it there a simple way to track
> the dragging from those 2 point wit
I know i can do mouseup/mousedown to track where the mouse was clicked down
and where the mouse was clicked up but it there a simple way to track the
dragging from those 2 point without inlcude 25K mined js from jquery
ui(which is 9X+ the size of my current plugin).
--
View this message in conte
opened fine. anyon else expereince these weird things with safari 3.1.1?
Eridius wrote:
>
> When i am loading content from an ajax request in safari, the javascript
> loads fine but the css does not load, is this a problem in safari 3.1.1?
> It seem like the thickbox plugin does i
$(window).resize(function(){
> alert('You resized the window!');
> });
> });
>
>
>
> hi
>
>
>
>
> This has some pretty bizarre
Is there a way to trigger an event when the use resize the window with jquery
or vanilla javascript?
--
View this message in context:
http://www.nabble.com/trigger-event-on-resize-of-window-tp17262754s27240p17262754.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com
When i am loading content from an ajax request in safari, the javascript
loads fine but the css does not load, is this a problem in safari 3.1.1? It
seem like the thickbox plugin does it fine but i don't see what they are
doing different from my plugin.
--
View this message in context:
http://
This is the thing i need to be able to do trying to use the Validation 1.2
plug. Basically i want to be able to undisabled a button if the validation
fails. Now i just disable the button on click which works fine but i don't
see anything in the documentation on being able to trigger a function
i have this code
/index.php/destinations/index Destinations
/index.php/hotels/index Hotels
/index.php/party_packages/index Party Packages
/index.php/meal_plans/index Meal Plans
/index.php/clubs/index Clubs
I have tried to create a link with target _blank and do a .trigger('click')
and that does nothing(not even try to open new window, i mean nothing, there
is another post about that). I have also tried to do the same thing by
creating this a form like:
and do .submit() but that get blocked by p
anyone?
Eridius wrote:
>
> i know i bind a function to the event focus of an element but is there a
> way i can see if a element is focused like?
>
> if(element.focus())
> {
> //true
> }
> else
> {
> //false
> }
>
--
View this message in con
www.quirksmode.org/viewport/compatibility.html
> http://developer.mozilla.org/en/docs/DOM:element.scrollTop
> http://www.learningjquery.com/2007/09/animated-scrolling-with-jquery-12
>
> Also these sites are great general references for any future issues,
> too.
>
> Charles
&
i have this code
alert($('body').scrollTop());
in opera and safari, I get the correct number however IE 6/7 and FF give me
0, anyone no why this would happen? My HTML is valid so that is not an
issue, not sure what else tho would case IE and FF to me up.
--
View this message in context:
http
Not sure how hard it would be but it would be a big project to do.
bmsterling wrote:
>
> I don't know if it would be hard to do, but there is a little more you
> need
> then just a js framework to achieve. You will need some backend
> programming, ie. asp, asp.net, php, ruby, coldfusion, etc.
tion not allow
scroll, that how it looks like thickbox reloaded does it.
Matt-70 wrote:
>
> You could just set the css "overflow" property to hidden.
>
> body {
> overflow:hidden;
> }
>
> this should hide scrollbars, so no scroling possible
>
> Matt
>
Why on earth do you think you know hat my plugin is and needs. I have my
reason for wanting to disable scrolling just like thickbox does.
[EMAIL PROTECTED] wrote:
>
>
> Why on earth would you want to? Your visitors may think your page
> broke their computer!
>
> Eridiu
I have
$(window).bind('scroll', function(){return false;});
but the wheel scroll still scrolls the window, how to i disable it.
--
View this message in context:
http://www.nabble.com/how-to-disable-wheel-scroll--tp15471899s27240p15471899.html
Sent from the jQuery General Discussion mailing l
I have a plugin that creates a click event on $(document). I want to be able
to remove just that event and if something else has added an click event to
the $(document) I still want it. $(document).unbind('click') will remove
all event, even ones i did not create. is there a way to do this?
--
7;s IE7 js lib.
> http://dean.edwards.name/IE7/
>
> On Feb 14, 4:08 am, Eridius <[EMAIL PROTECTED]> wrote:
>> I want to create the same effect the thickbox/thickbox reloaded does so
>> if
>> someone tries to scroll down manually with the mouse and browser side
>&
I want to create the same effect the thickbox/thickbox reloaded does so if
someone tries to scroll down manually with the mouse and browser side scroll
bar my content remain in the same place not matter where they scroll, how is
this possible? I search the thickbox reloaded code and can't seem t
k for IE6 with the alert. it is like when
it try to apply the mouseenter, the element is not there and for the click
it is. anyone seea nything wrong with this code?
Eridius wrote:
>
> my mouseover event is not taken effect in IE 6
>
--
View this message in context:
http://www.nabble
my mouseover event is not taken effect in IE 6
--
View this message in context:
http://www.nabble.com/mouseover-and-IE-6-tp15421402s27240p15421402.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.
Anyone look at my example because it does not work in IE 6 and it is getting
to the point where i really need something to work very soon.
Eridius wrote:
>
> You can see for yourself at: http://dev.kaizendigital.com/js_test/
>
> if you click on the statically created under thick
now lets say the i have this
var element = $('#input_element');
is there a way i get get what type of html element this element is(in the
case it would be a input tag)?
--
View this message in context:
http://www.nabble.com/getting-elements-tag-type-tp15371435s27240p15371435.html
Sent from th
Now I saw the jHeartBeat plug-in and it was nice and simple but I though t
there were a few were things from looking at the code. First of all it
looks like you can only have the url ajax call load in the div create by the
plug-in were all i think you really need is a way to call a function ever
i know i bind a function to the event focus of an element but is there a way
i can see if a element is focused like?
if(element.focus())
{
//true
}
else
{
//false
}
--
View this message in context:
http://www.nabble.com/finding-if-element-is-focused-tp15357587s27240p15357587.html
Sent
the the bottom part of the page in white(not faded).
Klaus Hartl-4 wrote:
>
>
> Yes it has. I'm using it on plazes.com and haven't faced any problems
> yet... What issues exactly? Mayb the CSS isn't up-to-date in the
> repository.
>
> --Klaus
>
>
>
i have this
self.element.children('.cr_tab_content').append(self.element.children('#' +
id).clone(true));
and this does nothing but
self.element.children('.cr_tab_content').html(self.element.children('#' +
id).html());
still works just does not copy trigger, is there anything wrong with that
Is there a common way getting around the z-index IE6 issue? I am talking
about how select boxes appear infront of element with higher z-index.
--
View this message in context:
http://www.nabble.com/ie-6-z-index-workaround--tp15312083s27240p15312083.html
Sent from the jQuery General Discussion
is there a way to prevent someone from closing the thickbox
Eridius wrote:
>
> This is the deal. I have a form and based on the information they enter
> in this form, when they click to submit it, it take the form data and
> turns it into the url query and they create a link
I just tested the index.hmtl from the jquery svn repository for thickbox
realoaded in IE 6 and there are quite a few issues with it. has thickbox
reloaded been tested in IE 6 yet?
--
View this message in context:
http://www.nabble.com/thickbox-reloaded-and-IE6-not-good-tp15306762s27240p1530676
This is the deal. I have a form and based on the information they enter in
this form, when they click to submit it, it take the form data and turns it
into the url query and they create a link with the url, adds thickbox to the
newly created link and then triggers the link to bring up the thickb
I am getting some weird behavior from thickbox reloaded. for some reason
when i trigger a thickbox, it reloads the page with the thickbox by default
showing. I am going to debug this but does anyone know what might cause
this? it might might be my code plug-ins are overwriting a event on
somet
Yea, i just thought about the .each thing about 15mins ago and it worked
perfect. Thanks for the replies.
Bohdan Ganicky wrote:
>
>
> Hi Eridius,
>
> I guess this could do it:
>
> $('#' + self.options.auto_complete_id + ' li').each(function(i)
http://sidekick.com/
I am basically looking for a plug-in that does what the bottom does. I
thought i already saw one but can't seem to find anything and that plug-in
uses mootools and i really don't want to use mootools and jquery.
--
View this message in context:
http://www.nabble.com/looki
$('#' + self.options.auto_complete_id + ' li').bind('mouseover', function()
{
//code
});
now is there a way i can get the element number of the one my mouse is
currently over? I mean lets say there is 10 li's in that list and my mouse
is over the 4th one, is there a easy way to get the numb
I think I found a bug in the validation 1.2 or ui datepicker plug-in. I also
have the ui datepicker attacked to two of the form elements. Now when I try
to validation a form and the fields that are calendars are not fielded in,
the calendar popped up for the first calendar element. Now I am no
> autocomplete or input box, you close the autocomplete box. Is that
> what you're looking for?
>
>
> --Karl
> _________
> Karl Swedberg
> www.englishrules.com
> www.learningjquery.com
>
>
>
> On Feb 3, 2008, at 10:43 AM, Eridius wrote:
>
>>
>
I have create an auto complete plug-in the it almost prefect for what I need,
just one small problem. The problem is that I can't get the auto complete
box to disappear when i click click outside of the input box and outside the
auto complete box. now my first try was to do a blur event on the
I am dont see what metadata has to do with this(at far as i know metadata in
html is what you use inside the head tags, and also don't know what the
rules-option is.
Jörn Zaefferer wrote:
>
>
> Eridius schrieb:
>> um those is a little bit of an issue you you need
er the thickbox but not sure if that is the best way to do
it.
Klaus Hartl-4 wrote:
>
>
> Yes, it is also possible with Thickbox Reloaded and pretty easy and
> straight forward:
>
> var $thickbox = $('a.thickbox').thickbox();
> $thickbox.trigger('click');
&g
um those is a little bit of an issue you you need you code to me valid. For
example required in not a valid attribute for an input so adding these
webform attribute will make my code invalid.
Jörn Zaefferer wrote:
>
>
> Eridius schrieb:
>> Another thing is there a reason why
stom code
> return false;
> });
>
>
> ----- Original Message -
> From: "Eridius" <[EMAIL PROTECTED]>
> To:
> Sent: Friday, February 01, 2008 1:17 PM
> Subject: [jQuery] stopping a link to redirecting
>
>
>>
>>
>> I
I thought this would stop the link from redirecting:
$('a.some_link').click(function(event)
{
event.preventDefault();
//custom code
});
however this does not work. is thier a way is jQuery (or plain javascript)
to not have the link redirect on an onclick event?
--
View this message in
I am wanting to trigger a thickbox after I validate a form. Basically I can
trigger a function when the form is fully validated and I want to trigger a
thickbox event to open the thickbox. This this possible with thickbox
reload?
--
View this message in context:
http://www.nabble.com/thickbox
a big
deal, just whenever you upgrade the plug-in I will need to change all those
names again, no big deal, just annoying.
Eridius wrote:
>
> I have a slight issue and maybe it is because I don't know enough about
> this plugin but is seems like the validation is based off of the
I have a slight issue and maybe it is because I don't know enough about this
plugin but is seems like the validation is based off of the name of the form
field so if I wanted to have a email validation on 2 imputs I would have to
put 2 input both have the name "email" but that would then only sen
it seems to work with jquery 1.2.2
Eridius wrote:
>
> http://brandonaaron.net/docs/dimensions/#sample-2
>
> if you click on the run for height() or width() you will see the screen
> flicker(tested on FF) and I am getting that same error on my page and it
> only t=seems to
Maybe this is a issue with jquery itself. http://docs.jquery.com/CSS/height
that example for getting the height is not working. I am also using
javascript 1.2.1.
Eridius wrote:
>
> http://brandonaaron.net/docs/dimensions/#sample-2
>
> if you click on the run for height() or
http://brandonaaron.net/docs/dimensions/#sample-2
if you click on the run for height() or width() you will see the screen
flicker(tested on FF) and I am getting that same error on my page and it
only t=seems to happen for those 2 function(like offset which I am also
using works fine. anyone kno
) i tried to clone a div with a google map, and
> although clone successfully copied all the elements, the behaviors
> were lost. append did the job for a workaround. should clone(true) be
> able to also grab all the associated behavior from child elements?
>
> On Jan 29, 10:13 am
my code:
var append_to = self.element.children('.cr_tab_content');
var clone_element = self.element.children('#' + id).clone(true)
$(clone_element).appendTo(append_to);
When I do this my element is still empty but should be filled with the
cloned element
var append_to = self.element.children('
--
View this message in context:
http://www.nabble.com/.clone-not-work-in-FF-or-IE%2C-please-help-tp15160494s27240p15160494.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.
Is there any validation script that does allow it?
Eridius wrote:
>
> I am trying to find a way to use validation aide for this form but having
> issues. Basically this form is not going to post to another page, I need
> it to do a .load to another page and then replace the f
I am trying to find a way to use validation aide for this form but having
issues. Basically this form is not going to post to another page, I need it
to do a .load to another page and then replace the form with the return text
but it seems like it validationaide passes, it automatically send the
I actually think that using a UL with divs for content is more "natural" than
using a div with a clas for the tabs itself. The reason is because the tabs
end up being in a list is the end, why not use a tab. I never learn your
way which is also why I like this way a lot better.
emelendez wrot
nvm, trigger seems to work now, must has had a type of some sort
Eridius wrote:
>
> is there a way to trigger thickbox to popup without any clicking. I tried
>
> $(#id').trigger('click') but that did not work.
>
--
View this message in context:
http://ww
is there a way to trigger thickbox to popup without any clicking. I tried
$(#id').trigger('click') but that did not work.
--
View this message in context:
http://www.nabble.com/thickbox-question-tp14695419s27240p14695419.html
Sent from the jQuery General Discussion mailing list archive at Nab
for instance
$('[EMAIL PROTECTED]')
would select based on name being gender but is there a way to select based
on name being gender and checked being checked in one select of chained
select?
--
View this message in context:
http://www.nabble.com/selecting-element-question-tp14677219s27240p146
is there any update on when new versions of jQuery and/or jQuery UI are
coming out? I know I heard the last dates of 17/18 of December last month.
I am mainly interested in the jQuery UI.
--
View this message in context:
http://www.nabble.com/any-update-on-new-versions-of-jQuery-or-jQuery-UI-
Well not sure if thier will be an complications I would recommend using
Codeigniter.
rics wrote:
>
>
> Hello,
>
> I wish to start usign some PHP framework soon and was wondering wich
> one works better with JQuery. I will use Zend Framework or CakePHP.
> Not decided yet.
>
> Do you have any
I am using the following method of creating classes
(function($)
{
//function to perform on element
//function the relate to the object
//the class itself
})(jQuery)
Now if there a common or perferred way to have one class inherit all the
methods/member from a "base" class?
--
Vi
I would never in a million years choose to develop in IE first and then FF,
there are just so many tools in FF that increases my reproductivity it would
be slower for me to try to debug first in IE for the issue that FF would let
me catch easier and faster.
Andy Matthews-4 wrote:
>
>
> Larry.
found that issue, .clone()(both .clone() and .clone(true)) seems to be a lot
slower in IE, is this a know issue? Lucky I don't need to use clone,
.html() will work fine. Just want to let people know the .colne is very
slow in IE or it just might be me(please let me know if it is).
Er
here is the code is question:
for(var x = 0; x < array_length; x++)
{
var search_text = order_new[x];
for(var i = 0; i < array_length; i++)
{
if(search_text === order_old[i])
{
Thanks, fixed the bug in the tabs plugin
Glen Lipka wrote:
>
> I got a JS error in IE7/Vista. :(
>
> Glen
>
> On Jan 1, 2008 7:08 AM, Eridius <[EMAIL PROTECTED]> wrote:
>
>>
>>
>> I was using that one and on a page I was using it, I was basicall
my
own tabs becuase these tabs work with the code I have written.
KnoxBaby wrote:
>
>
> what's the advantage of your tabs plugin to this one:
>
> http://stilbuero.de/jquery/tabs_3/ (styling, loading from divs/ajax
> etc)???
>
> On 1 Jan., 01:35, Eridius <[EMAIL
This might or might not be what your looking for but if you want to keep
pushing new content to a page you could use the JHeartbeat plugin
http://www.jasons-toolbox.com/JHeartbeat/
coughlinsmyalias wrote:
>
>
> Hey all, I am wondering is it possible with jQuery or any other plugin
> to have
Here is a demo of them
http://www.kaizendigital.com/test/codereck_javascript.php
Current these are the features:
Tabs:
load tab from content on page
load content from remote page(ajax) with loading animation(going to be
optional)
add callback before and after tab loaded.
Paginator:
Basic, loa
Here is a demo of them
http://www.kaizendigital.com/test/codereck_javascript.php
Current these are the features:
Tabs:
load tab from content on page
load content from remote page(ajax) with loading animation(going to be
optional)
add callback before and after tab loaded.
Paginator:
Basic, loa
not sure what "ajax tech" is unless you mean "ajax technology". if you mean
ajax technology then well jQuery provide a few functions to make ajax a lot
easier but jQuery also has a lot of other things to do with javascript like
animation, dom selections, styling, and other things.
Mohd Daslim
I am all set, using $.ajax instead.
Eridius wrote:
>
> I have this code:
>
> self.element.children('.cr_tab_content').load(id.substring(5), {},
> self.options.after_load());
>
> however the after_load function is being called before the ajax request,
> not
> 'load_page': this_class.options.new_page
> },
> success: function(msg){
> alert( "Data Saved: " + msg );
> }
> });
>
> Rey...
>
> Eridius wrote:
>>
>> var response = new $.ajax(
>>
var response = new $.ajax(
{
'type': 'post',
'url': this_class.options.url,
'data':
{
'total_items': this_class.options.total_items,
'items_per_page': this_class.options.items_per_page,
'current_page': this_class.opti
I have this code:
self.element.children('.cr_tab_content').load(id.substring(5), {},
self.options.after_load());
however the after_load function is being called before the ajax request, not
after this(I tested in firebug and request is not sent until I close that
alert generated by that after_l
I have this code:
$('#' + this.options.tab_set_id + ' a').livequery('click', function()
{
var id = $(this).attr('rel');
self.element.children('.cr_tab_content').html(self.element.children('#'
+
id).html());
});
and when i do a trigger('click') on on one of the those links, noth
I did a really quick test building a base tab system myself(only took about
30 mins, it is functional, just not styling) and it works fine in IE and FF,
anyone know why the existing tabs does not work(from UI)?
Eridius wrote:
>
> Would this be the correct way of cloning events?
>
&g
Would this be the correct way of cloning events?
for(var i = 0; i < array_length; i++)
$new_dom[x] = $('#hotel_information div#hotel_selection' +
table_id).clone(true);
}
for(var x = 0; x < array_length; x++)
{
var new_element = new_dom[x];
$(new_element).appendTo('#hotel_informatio
not sure, this is untested but might work(not sure what jQuery return if
nothing is found)
if($('#id'))
{
//it exists
}
else
{
//it does not
}
debussy007 wrote:
>
> Hi,
>
> what is the best way in jquery to check wether an id exists ?
>
> Thank you for any kind help !!
>
--
View t
I have it working, forget the new keyword
Eridius wrote:
>
> I am working on an ajaxified paginator plugin using jquery. here is my
> code:
>
> $.paginator = function(options)
> {
> this.options =
> {
> 'url': nul
I am working on an ajaxified paginator plugin using jquery. here is my code:
$.paginator = function(options)
{
this.options =
{
'url': null,
'replace_id': null,
'total_items': 0,
'items_per_page': 10,
't
livequery to
fix it in IE(I swear that is the best plugin ever) but it all works now.
Eridius wrote:
>
> The empty does not take effect or anything after it which is the first
> first that should happen. I am about to start just commenting code and
> start alerting stuf
The empty does not take effect or anything after it which is the first first
that should happen. I am about to start just commenting code and start
alerting stuff and see what happens.
Karl Swedberg-2 wrote:
>
>
> Hi Eridius,
>
> I don't see anything obviously wrong wi
can anyone tell me if they see anything wrong with this code?
Eridius wrote:
>
> This particular code in not work IE 6/7 but works in firefox. Can't get a
> demo up right now but any suggestions are welcomed.
>
>
> function ie_fix()
>
This particular code in not work IE 6/7 but works in firefox. Can't get a
demo up right now but any suggestions are welcomed.
function ie_fix()
{
//update filters
$('#select_destination_filter').change(function()
{
//select values
var destina
Yea, i guess your right. jQuery has grown on me the past few month and know
I would why I wanted to use mootools instead.
Dan G. Switzer, II wrote:
>
>
>>> guess) it a pain. the javascript class code structure it also very
>>akword
>>> to be coming from a C++ background.
>>
>>Amen, and i ha
I figured it out.
Eridius wrote:
>
> I am getting this follow error and not sure what it means
>
> [Exception... "'Dimensions: jQuery collection is empty' when calling
> method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e
> (NS_ERROR_
I am getting this follow error and not sure what it means
[Exception... "'Dimensions: jQuery collection is empty' when calling method:
[nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e
(NS_ERROR_XPC_JS_THREW_STRING)" location: "" data: no]
--
View this message in context:
http://www.na
allowing json would be good but the support for XML still needs to be there.
json instead of XML is no good. json AND XML is good.
Web Specialist wrote:
>
> Nice. May be this plugin creator could be allow json instead xml.
>
> Cheers
>
>
> 2007/12/9, Erid
Yea it is pretty nice, has most of the ExtJS grid functionality. I know
there was another grid for jQuery but this one looks a little better.
Rey Bango-2 wrote:
>
>
> Haven't seen this once announced anywhere but I'm really impressed by
> the looks and functionality:
>
> http://creamarketi
umber)
{
this.option.new_page = number;
this.reload_content();
}
});
or something else?
John Resig wrote:
>
>
> Do $.extend instead of $.fn.extend to get the result that you want.
>
> --John
>
> On Dec 6, 2007 4:02 PM, Eridius <[EMAIL PROTECTED]> w
7;,
'total_pages':
''
});
});
But this code tells me there is an error that paginator is not a function,
what is wrong here?
Eridius wrote:
>
> I can't seem to remember since it
I can't seem to remember since it has been ahile since I want to do this, how
do i make a jQuery plug that i can access like
var paginator = $.paginator({/*data*/});
paginator.next_page();
//etc...
currently my code is like this:
(function($)
{
initialize= function(options)
{
Do you know what they are changing in the new release(is it 1.2.2 or a 1.3
release)
Andy Matthews-4 wrote:
>
>
> They're planning on releasing an updated version of jQuery UI on december
> 18th, one day after the next release of jQuery.
>
> -Original Message-
> From: jquery-en@googl
Another reason why jQuery is for me and a better choice in my opinion is the
license. Believe released under the MIT license allow me to include this in
my PHP Framework I am building which will allow me to bring some very nice
built-in feature to it.
Kaare Rasmussen-3 wrote:
>
>
> Inspired
1 - 100 of 202 matches
Mail list logo