[jQuery] Re: Shadowbox and JQuery

2009-03-10 Thread BB
Hi Jon, you have to load the skin of the shadowbox wich seems not to be included automatically if you build your shadowbox... So go to http://www.mjijackson.com/shadowbox/doc/download.html Download Code and go to shadowbox-2.0-code/src/skin and copy the classic folder to your server. Then modify

[jQuery] Re: making variable in [tooltip] plugin available to Shadowbox

2009-03-10 Thread BB
Hi roryreiff, maybe you store the title-attribut from the current element in a variable and add it when the tooltip hides. If this doesn't work try to set the title in the rel-attribut: rel=shadowbox;title='Hallo' On 10 Mrz., 18:25, roryreiff roryre...@gmail.com wrote: Hi there, I am using

[jQuery] Re: Problems with Multiple File Upload

2008-11-10 Thread BB
Maybe you should first learn how to upload one file with PHP: http://de2.php.net/manual/en/features.file-upload.php and the the multiple way: http://de2.php.net/manual/en/features.file-upload.multiple.php Instead of $_POST use $_FILES On 9 Nov., 23:32, dmackerman [EMAIL PROTECTED] wrote: I am

[jQuery] Re: ajax async:false timeout

2008-10-30 Thread BB
The timeout option is to set the time you are waiting for the response not for a delayed ajax call! On Oct 30, 8:29 am, wesca [EMAIL PROTECTED] wrote: Is jQuery possibility to use $.ajax post webservice and return some data with both Properties timeout and async:false ? I try to set

[jQuery] Re: JQuery selector

2008-10-28 Thread BB
Try: $(.u:last li:last).addClass(last); On 28 Okt., 13:07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi everyone, I have a question on JQuery selector. I want to add a class, last, into li elements where have !-- This is the one -- comment next to it under different ul but have the same

[jQuery] Re: Plugin, passing user defined default selector not working

2008-10-27 Thread BB
You have to extend the defaults before you are doing something with these: $.fn.testFrame = function(options) { var defaults = { urlSuffix: '', iframe: 'body' }; options = $.extend(defaults, options); On 27 Oct, 07:57, Nic Hubbard [EMAIL PROTECTED] wrote: I

[jQuery] Re: Redirect browser to separate page after animation

2008-10-20 Thread BB
Try: $(.blah).click(function () { $(.block).fadeIn(slow, function() { window.location.href = foo.html; }); }); On 20 Okt., 11:03, Awesome [EMAIL PROTECTED] wrote: Is it possible to redirect the browser to a separate page after a jQuery function? For example:

[jQuery] Re: Jquery change event

2008-10-19 Thread BB
Try: $('input').bind(change keyup, function() { alert('you changed or typed something'); alert('Input ID:' + this.id); // or $(this).attr(id) }); On 19 Okt., 21:26, Ronn Ross [EMAIL PROTECTED] wrote: Dave, Thank you that worked great. Is there away to find out what specific element is

[jQuery] Re: Unhook already hooked function to click

2008-10-11 Thread BB
Yes, you can unhook/unbind all events with .unbind() or just remove the .click() with .unbind(click). See here: http://docs.jquery.com/Events/unbind#typedata On 11 Okt., 14:41, XeroXer [EMAIL PROTECTED] wrote: Hi! I am making a effect that when you click a image the large image is opened in

[jQuery] Re: How we can get an element html code?

2008-10-09 Thread BB
Maybe you want to do this with plain Javascript: $(#mydiv)[0].firstChild or: $(#mydiv).contents()[0]; but .contents() get all childNodes from every element: $(.myclass).contents() would get the contents of every matched element (not like .html() wich only returns the innerHTML of the first

[jQuery] Re: Select all for multiple sections

2008-10-09 Thread BB
I would do it like that: div a href=javascript:; class=selectAllSelect All/a a href=javascript:; class=deselectAllDeselect All/a labelinput type=checkbox /Item 1/labelbr/ labelinput type=checkbox /Item 2/labelbr/ labelinput type=checkbox /Item 3/labelbr/

[jQuery] Re: Drag/Drop works, but not after loading via a menu into my content div?

2008-10-09 Thread BB
Read this: http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_AJAX_request.3F I think that is your problem. On 9 Okt., 19:44, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi all, i am a beginner with javascript and finally found out how to drag the content

[jQuery] Re: just started using jQuery today

2008-10-08 Thread BB
Yes, because it is not in the $(document).ready(function() { ... });, so it would be executed before the dom is ready. so just write the $(a).click(function(){ ... }); in the $ (document).ready(function() { ... });. $(document).ready(function() { $(a).click(function(){ alert(clicked!);

[jQuery] Re: If no error execute click function

2008-10-08 Thread BB
I think this should be the right method: http://docs.jquery.com/Plugins/Validation/valid $(#support).click(function(){ if($(#myform).valid()) { alert(123); } }); On 8 Okt., 09:31, IDEO [EMAIL PROTECTED] wrote: Here I have a form... the validation works great on keyup and submit. But

[jQuery] Re: Tabs - select tab when creating a new remote tab

2008-10-08 Thread BB
Try: $(#tabs ul).tabs( add, url/index.htm, label ).tabs(select, $(#tabs ul).tabs(length)); On 8 Okt., 11:06, fleabo [EMAIL PROTECTED] wrote: I'm using the UI Tabs (very nice). I need to create a new remote tab and then select it, however the only way I can see  reading the documents is to

[jQuery] Re: Find all a elements not within a div

2008-10-08 Thread BB
Hi, this would be the right selector for you: $(a).filter(function() { return !$ (this).parent(div.pages).length; }); gets all As and then filter the As out wich have a DIV with the class pages as parents. On 8 Okt., 09:18, -LsV- [EMAIL PROTECTED] wrote: Hi.. Im trying to find all A

[jQuery] Re: Disable globals for jQuery.get()?

2008-10-06 Thread BB
All AJAX shortcuts, such as: .get() .post() .getScript() .getJSON() all uses the .ajax() function. But the most settings of these functions are allready defined. Look at the jQuery code: return jQuery.ajax({ type: GET, url: url, data: data, success: callback, dataType: type }); so if

[jQuery] Re: $().each() only iterates through first item

2008-10-06 Thread BB
Try: $j(.is_preferred_email).each( function(i) { this.checked = false; } ); or as the posts before: $j(.is_preferred_email).attr(checked, false); On 6 Okt., 16:04, sydneyos [EMAIL PROTECTED] wrote: Thanks for your input.  Here is the

[jQuery] Re: Alert message in jquery

2008-10-03 Thread BB
but it is of no use. The code i had written above is used for oscommerce admin panel customers. I tried all possible ways. But the error is coming. Can you please help me out in solving this problem? On Oct 2, 5:44 pm, BB [EMAIL PROTECTED] wrote: Why do you include jQuery twice? script

[jQuery] Re: Choose the best Selector

2008-10-02 Thread BB
$(#c).val(); would be the best and fastest! On 2 Okt., 10:38, Pedram [EMAIL PROTECTED] wrote: Dear folk consider the Below HTML Code div id=a   p id=b     input type=text id=c /   /p /div I would like to have Input selecter there are some ways which one has more speed and it is

[jQuery] Re: Choose the best Selector

2008-10-02 Thread BB
could we say this cause the Engine must search all the Document to Find the #C On Oct 2, 12:24 pm, BB [EMAIL PROTECTED] wrote: $(#c).val(); would be the best and fastest! On 2 Okt., 10:38, Pedram [EMAIL PROTECTED] wrote: Dear folk consider the Below HTML Code div id

[jQuery] Re: looking for a slider

2008-10-02 Thread BB
Look at this: http://ui.jquery.com/repository/latest/demos/functional/#ui.slider this demo is really simple. here are the docs: http://docs.jquery.com/UI/Slider On 2 Okt., 11:48, hcvitto [EMAIL PROTECTED] wrote: hi i've searched around fot a while but couldn't find any slider that suits my

[jQuery] Re: Alert message in jquery

2008-10-02 Thread BB
I'm sure that: alert(); should work! Maybe the error is before the alert() and so it maybe won't be executed. Another way to debug is to use Firefox, download firebug-extension (https://addons.mozilla.org/de/firefox/addon/1843) an then wirte some console.log() functions in your code. Now you

[jQuery] Re: selecting all element with a given class but not another one.

2008-10-02 Thread BB
$(.RepeatedItem:not(.RepeatedItemSelected)) On 2 Okt., 11:57, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I can't figure out what the syntax is to select all the elements which have a given class but not another given class. Example : I want all the elements with class .RepeatedItem but

[jQuery] Re: jquery image highlighter?

2008-10-02 Thread BB
Try this: $(.overlay-div).hover(function() { $(this).fadeTo(fast, 0); }, function() { $(this).fadeTo(fast, 0.6); }); On 2 Okt., 09:13, christianslater [EMAIL PROTECTED] wrote: hi there, I`m really new to Javascript and looking for a solution to highlight images. So there are small thumbs

[jQuery] Re: image highlighter?

2008-10-02 Thread BB
Dublicate: http://groups.google.com/group/jquery-en/browse_thread/thread/59f9004ca99cab3b On 2 Okt., 11:33, christianslater [EMAIL PROTECTED] wrote: hi there, I`m really new to Javascript and looking for a solution to highlight images. So there are small thumbs on the page with an black

[jQuery] Re: how do I fix the position of an element?

2008-10-02 Thread BB
Why not use CSS? position:absolute; On 2 Okt., 10:16, Flavio333 [EMAIL PROTECTED] wrote: Hello, I am a first time JQuery user, and was wondering how would I go about getting an element, say a php page that I loaded into a small block on my html page... now when I scroll up, down, left or

[jQuery] Re: equivalent of document.createElement in jQuery

2008-10-01 Thread BB
You can do that with $( html )! var $table = $(tabletr id='1'/tr/table).append(tr id='2'/ tr); now you can do other things with the virtuall table $table.find(tr#2).append(tdHello World/td); On 1 Okt., 11:46, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, What is the equivalent of

[jQuery] Re: jquery anchor

2008-09-30 Thread BB
Here is a nice plugin: http://demos.flesler.com/jquery/scrollTo/ On 30 Sep., 09:05, elvisparsley [EMAIL PROTECTED] wrote: I am wondering how can I do like this,   http://davidwalsh.name/dw-content/smooth-scroll.php, with jquery. What I want to do is that a smooth move when I click an anchor

[jQuery] Re: querying an array

2008-09-30 Thread BB
An ID has to be uniq so you can just do that: $(#headline).html(); On 30 Sep., 15:40, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I've build the following array using all the element in this.parent which have a class '.RepeatedItemElement' : this.elements = $(.RepeatedItemElement,

[jQuery] Re: Insert content in row

2008-09-30 Thread BB
Try this: $('.rowContent').click(function(){ var row = this; $.get(getCountryContent.cfm, { u: row.id }, function(data){ // this == the options for this ajax request var $conteudo = trim12( data ); alert(Data Loaded: + $conteudo); $( '#' + row.id ).append( $conteudo ); });

[jQuery] Re: Selector Problem with complicated element id

2008-09-29 Thread BB
Hi, look here at the bottom: http://docs.jquery.com/Selectors you may try something like this: var id = 'sec_ruler_widget_seclevel\\[' + checkElementId + '\\]'; var pic = $('#' + id)[0]; On 29 Sep., 15:03, Misha [EMAIL PROTECTED] wrote: Hi, I am a newbie here so maybe my problem is not

[jQuery] Re: Content Loading Question

2008-09-29 Thread BB
Try this: $(#query).load('content.cgi', {storeselect: store, deptselect:dept, invoiceselect: invoice}, function() { $(#loading).toggle(); }); On 29 Sep., 23:03, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I know what your saying, but my javascript skills are not that great. I've changed my

[jQuery] Re: Resize issue

2008-09-28 Thread BB
http://nettuts.com/javascript-ajax/learn-how-to-create-a-jquery-plugin/ On 28 Sep., 08:51, sabrinax [EMAIL PROTECTED] wrote: I'm trying to build a site that allows the elements on a page to be perfectly centered (horizontally/vertically).  When the user resizes the window, I want the elements

[jQuery] Re: form select...

2008-09-28 Thread BB
$(#fruits option:selected).get(0).index On 28 Sep., 08:33, GARIL [EMAIL PROTECTED] wrote: Thank you. What's the code if I want the index of the selected item? On Sep 28, 12:53 am, Alex Weber [EMAIL PROTECTED] wrote: $('#fruits').val() On Sep 28, 2:12 am, GARIL [EMAIL PROTECTED] wrote:

[jQuery] Re: Find all li tags without an a tag inside

2008-09-28 Thread BB
$(li:not(:has(a))).click( ... ); would be the shortest! On 28 Sep., 05:06, Dave Methvin [EMAIL PROTECTED] wrote: Attach a click event to: liList item without link/li Do not attach click event to: lia href=Link 1/a/li How about this? $(li).not($(li:has(a))).click( ... )

[jQuery] Re: click function

2008-09-28 Thread BB
You don't need .val() just: $(this).attr(alt) Please write some more code, because at the moment I think it is all right. On 28 Sep., 17:21, SeanJA [EMAIL PROTECTED] wrote: $(.status_actions img).click(function(){         console.log(clicked!);         console.log($(this).attr(alt).val());

[jQuery] Re: igoogle like portal in jquery, see this prototype flavor

2008-09-28 Thread BB
Yeah, jQuery UI has something similar. Look at this: http://ui.jquery.com/repository/real-world/layout/ On 28 Sep., 15:40, uncle [EMAIL PROTECTED] wrote: I am using this script that is based on prototype for some portal capability -http://blog.xilinus.com/2007/8/26/prototype-portal-class   

[jQuery] Re: Find all li tags without an a tag inside

2008-09-28 Thread BB
No, he wants to get all LIs WITHOUT an A as child. On 28 Sep., 16:14, k3liutZu [EMAIL PROTECTED] wrote: Or  $(#LHNav a).parent('li').click(...); On Sep 28, 3:38 pm, BB [EMAIL PROTECTED] wrote: $(li:not(:has(a))).click( ... ); would be the shortest! On 28 Sep., 05:06, Dave Methvin

[jQuery] Re: select data in a p ignoring the span

2008-09-28 Thread BB
Hmm... maybe you should use some plain Javascript: $(p)[0].firstChild; A bit extended: $(p).each(function() { console.log( this.firstChild ); }); would log all the texts from the Ps but not the texts inside the SPAN. Maybe this helps... On 28 Sep., 21:51, [EMAIL PROTECTED] wrote: Dear

[jQuery] Re: select data in a p ignoring the span

2008-09-28 Thread BB
Ah I have found something: $(p).contents(); I would prefer the useage of this like the following: $(p).each(function() { console.log( $(this).contents()[0] ); // with plain javascript: console.log( this.firstChild ); }); On 28 Sep., 21:56, MorningZ [EMAIL PROTECTED] wrote: that

[jQuery] Re: ajax post to ruby script

2008-09-25 Thread BB
I can't see any problems with that script. What do you think is wrong with it? On 25 Sep., 06:02, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello! Sorry for the n00b post, but i've come to a dead end. I'm trying to write an ajax callback to a Ruby script that does a simple database

[jQuery] Re: autosuggest help

2008-09-24 Thread BB
Here just a little example how you can do this: // index.htm ... script $(#autocomplete).autocomplete(search.php); /script ... // search.php ?php mysql_connect(localhost, user, pass); mysql_select_db(mySearchTable); $query = mysql_query(SELECT * FROM T_Search WHERE name LIKE ' . $_REQUEST[q] .

[jQuery] Re: first plugin review

2008-09-23 Thread BB
href=#aA/a a href=#bB/a  ...  span class=no_linkZ/span        dl id=a          dtA word/dt          ddA word meaning/dd          dtA word/dt          ddA word meaning/dd        /dl        dl id=b         dtB word/dt          ddB word meaning/dd          dtB word/dt

[jQuery] Re: regex in selector

2008-09-23 Thread BB
why did you opened a new thread? http://groups.google.com/group/jquery-en/browse_thread/thread/19990a95620ccf3a On 23 Sep., 13:55, MorningZ [EMAIL PROTECTED] wrote: There is no RegEx in selectors, they are CSS-selector based as for your particular selection, you can use the StartsWith or the

[jQuery] Re: Get parent url and add to a textarea

2008-09-23 Thread BB
The smallest thing would be: $(#message)[0].value += window.opener.location.href; On 23 Sep., 15:09, Stinhambo [EMAIL PROTECTED] wrote: I managed to achieve what I wanted with this - document.getElementById('message').value += window.opener.location.href; in the jquery file but I can't

[jQuery] Re: Replace html class with rel attribute into an anchor

2008-09-21 Thread BB
Hmm.. maybe you should read the documentation of jQuery.. Do you mean something like this? $(.iframe).attr({ rel: highslide-iframe, href: my-new- url.html }).removeClass(iframe); http://docs.jquery.com/Attributes/attr On 21 Sep., 19:12, Andrea - Aosta [EMAIL PROTECTED] wrote: I need to

[jQuery] Re: Toggle Only the dd below the dt on click

2008-09-19 Thread BB
$(.stripes dt).click(function(){ $(this).find(dd).toggle(slow); }); On 19 Sep., 05:24, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: This is probably a noob question but... I have a bunch of definition lists on a page with the same class so that I can stripe every other dd in the list. What I

[jQuery] Re: Find elements

2008-09-17 Thread BB
$(.myClass).each(function() { // this = DOM Element = $(this) = jQuery Object }); On 17 Sep., 13:55, shapper [EMAIL PROTECTED] wrote: Hello, How can I find all elements in a page given a class and pass to a function? Or maybe better, how to I create a function that acts like a plugin,

[jQuery] Re: error in jQuery?!

2008-09-14 Thread BB
You have to include mootools at first and jquery at least: http://docs.jquery.com/Using_jQuery_with_Other_Libraries On 14 Sep., 20:41, Lukas Polak [EMAIL PROTECTED] wrote: Hi guys, I have a question. I'm using jquery on my pages and js files are linked like this:   script

[jQuery] Re: Detecting Ctrl + click

2008-09-12 Thread BB
Just something I would like to add: if you now say: e.altKey doesn't work!! it is right... but will be fixed in the next release of jQuery, see: http://dev.jquery.com/ticket/2947 On 11 Sep., 22:10, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Just do something like this:

[jQuery] Re: Newbie question on positioning images

2008-09-12 Thread BB
Is the gif visible when you try to get it's height? If not try this: var height = $('#wait_also').css(visibility, visible).height(); $('#wait_also').css(visibility, hidden); On 12 Sep., 12:23, Kevin Thorpe [EMAIL PROTECTED] wrote: Sorry, this is very simple I think but I can't fathom it out.