[jQuery] HOW TO UNSUBSCRIBE?
HOW TO UNSCRIPBE??? I DON'T FOUND INSTRUCTIONS. My account was created one or two months ago, when the discussion system wasn't from Google Groups and now i'm receiving messages and can't cancel my subscribe! Sux >:-(
[jQuery] HOW TO UNSUBSCRIBE?
HOW TO UNSUBSCRIBE??? I DON'T FOUND INSTRUCTIONS. My account was created one or two months ago, when the discussion system wasn't from Google Groups and now i'm receiving messages and can't cancel my subscribe! How to cancel my signature? Sux >:-(
[jQuery] (validate) Show Element instead of js
Hello, I didn't found the same problem ine the groupes: I would like to show error msg already in the page Exemple: This textfield cannont be empty if error the span will become showed. and not show error with the js Thanks you Bri
[jQuery] ajax submit
$('form').submit(function(){ var flage; $.post('test.php',function(data){ if(data.length){ $('#message').html(data); flage = true; } else{ flage = false; } }); return flage; }); I'm using this code to submit the form. if test.php has some data then it should be go to that page, if not it should be stay in same page. How do i implement feature like Ajax when i want to check user in registered without being refreshed the page. if he is then page should be redirected otherwise not. Please send me some tip on it. if you can send me some useful link then i would be delightful?
[jQuery] facebox(Using Jquery) with select box in IE6
when i open a facebox, in the background, if there s a selectbox, that selectbox shown above the face box. i need to hide all the select boxes when i open the face box, after closing the facebox, that select boxes need to show.
[jQuery] jquery.autocomplete.js -- IE unresponsive bug?
All of a sudden getting users on IE complaining of an "unresponsive script" message. It's a simple autocomplete using jquery.autocomplete.js. Are there any known issues here?
[jQuery] superfish menu - would like top nav to retain hover color as you mouse over subnav
Is it possible to have the top navigation to retain it's hover color as you mouse over the subnav items in the list below? I have a lot of menu items and I got rid of the pointer arrow because it didn't work with the design. I would just like the top nav to retain the hover color instead. Also, I only want the subnav that you're hovering over to have the hover color.
[jQuery] BlockUI: unblocking when clicking in the darkend area?
I want the darkened area that when clicked, it restores the UI (unblocks it), what's the best approach? It seems like something like this would work, but doesn't... $('.blockUI').click(function() { $.unblockUI(); }); Thanks for any help...
[jQuery] Learning JQuery Chapter 6 XML parsing
I could see the content of the d.xml file (alert('data: ' + data), but I could not see the alert('inside each function'). I think jquery did not recognize d.xml is an xml file. Any idea? Thanks $(document).ready(function() { $('#letter-d .button').click(function() { $.get('d.xml', function(data) { alert('data: ' + data); $('#dictionary').empty(); $(data).find('[EMAIL PROTECTED]').each(function() { var $entry = $(this); alert('inside each function'); var html = ''; html += '' + $entry.attr('term') + ''; html += '' + $entry.attr('part') + ''; html += '' html += $entry.find('definition').text(); var $quote = $entry.find('quote'); if ($quote.length) { html += ''; $quote.find('line').each(function() { html += '' + $(this).text() + ''; }); if ($quote.attr('author')) { html += '' + $quote.attr('author') + ''; } html += ''; } html += ''; html += ''; $('#dictionary').append($(html)); }); }); }); }); Content of d.xml file To leap about to the sound of tittering music, preferably with arms about your neighbor's wife or daughter. There are many kinds of dances, but all those requiring the participation of the two sexes have two characteristics in common: they are conspicuously innocent, and warmly loved by the vicious. A period of twenty-four hours, mostly misspent. This period is divided into two parts, the day proper and the night, or day improper the former devoted to sins of business, the latter consecrated to the other sort. These two kinds of social activity overlap. An ingenious substitute for the chain and whip of the slave- driver. As, pent in an aquarium, the troutlet Swims round and round his tank to find an outlet, Pressing his nose against the glass that holds him, Nor ever sees the prison that enfolds him; So the poor debtor, seeing naught around him, Yet feels the narrow limits that impound him, Grieves at his debt and studies to evade it, And finds at last he might as well have paid it. To lie about another. To tell the truth about another. Unable to attack. The act of examining one's bread to determine which side it is buttered on. The father of a most respectable family, comprising Enthusiasm, Affection, Self-denial, Faith, Hope, Charity and many other goodly sons and daughters. All hail, Delusion! Were it not for thee The world turned topsy-turvy we should see; For Vice, respectable with cleanly fancies, Would fly abandoned Virtue's gross advances. A prestidigitator who, putting metal into your mouth, pulls coins out of your pocket. The singular of "dice." We seldom hear the word, because there is a prohibitory proverb, "Never say die." At long intervals, however, some one says: "The die is cast," which is not true, for it is cut. The word is found in an immortal couplet by that eminent poet and domestic economist, Senator Depew: A cube of cheese no larger than a die May bait the trap to catch a nibbling mie. The patriotic art of lying for one's country. The only thing that the rich are willing for the poor to call theirs, and keep.
[jQuery] Re: Learning JQuery Chapter 6 XML parsing
I tried to get around that by $(data).ready(function(){ }); but still could not access the xml data. On May 12, 10:58 am, JQuery <[EMAIL PROTECTED]> wrote: > I could see the content of the d.xml file (alert('data: ' + data), but > I could not see the alert('inside each function'). I think jquery did > not recognize d.xml is an xml file. > > Any idea? > Thanks > > $(document).ready(function() { > $('#letter-d .button').click(function() { > $.get('d.xml', function(data) { > alert('data: ' + data); > $('#dictionary').empty(); > $(data).find('[EMAIL PROTECTED]').each(function() { > var $entry = $(this); > > alert('inside each function'); > > var html = ''; > html += '' + $entry.attr('term') + ''; > html += '' + $entry.attr('part') + ''; > html += '' > html += $entry.find('definition').text(); > var $quote = $entry.find('quote'); > if ($quote.length) { > html += ''; > $quote.find('line').each(function() { > html += '' + $(this).text() + ' div>'; > }); > if ($quote.attr('author')) { > html += '' + > $quote.attr('author') + ''; > } > html += ''; > } > html += ''; > html += ''; > $('#dictionary').append($(html)); > }); > }); > }); > > }); > > Content of d.xml file > > > > > To leap about to the sound of tittering music, preferably with > arms about your neighbor's wife or daughter. There are many kinds of > dances, but all those requiring the participation of the two sexes > have two characteristics in common: they are conspicuously innocent, > and warmly loved by the vicious. > > > > > A period of twenty-four hours, mostly misspent. This period is > divided into two parts, the day proper and the night, or day improper > the former devoted to sins of business, the latter > consecrated to the other sort. These two kinds of social activity > overlap. > > > > > An ingenious substitute for the chain and whip of the slave- > driver. > > > As, pent in an aquarium, the troutlet > Swims round and round his tank to find an outlet, > Pressing his nose against the glass that holds him, > Nor ever sees the prison that enfolds him; > So the poor debtor, seeing naught around him, > Yet feels the narrow limits that impound him, > Grieves at his debt and studies to evade it, > And finds at last he might as well have paid it. > > > > > To lie about another. To tell the truth about another. > > > > > Unable to attack. > > > > > The act of examining one's bread to determine which side it is > buttered on. > > > > > The father of a most respectable family, comprising Enthusiasm, > Affection, Self-denial, Faith, Hope, Charity and many other goodly > sons and daughters. > > > All hail, Delusion! Were it not for thee > The world turned topsy-turvy we should see; > For Vice, respectable with cleanly fancies, > Would fly abandoned Virtue's gross advances. > > > > > A prestidigitator who, putting metal into your mouth, pulls > coins out of your pocket. > > > > > The singular of "dice." We seldom hear the word, because there > is a prohibitory proverb, "Never say die." At long intervals, > however, some one says: "The die is cast," which is not true, for it > is cut. The word is found in an immortal couplet by that eminent poet > and domestic economist, Senator Depew: > > > A cube of cheese no larger than a die > May bait the trap to catch a nibbling mie. > > > > > The patriotic art of lying for one's country. > > > > > The only thing that the rich are willing for the poor to call > theirs, and keep. > > >
[jQuery] Re: Learning JQuery Chapter 6 XML parsing
Karl, I downloaded the code from http://book.learningjquery.com/2509_06_code/ but still nothing displayed when I clicked button D. I noticed that the code was referenced to . I googled "query. 1.1.3.js" but couldn't find any result. I downloaded query-1.1.3.js (noted the dash, query-1 not query.1) but could not see data after clicking the button. Since I just begin to learn jquery, could you point out what the issue is? Could you send me jquery.1.1.3.js? Thanks for your help. On May 12, 10:58 am, JQuery <[EMAIL PROTECTED]> wrote: > I could see the content of the d.xml file (alert('data: ' + data), but > I could not see the alert('inside each function'). I think jquery did > not recognize d.xml is an xml file. > > Any idea? > Thanks > > $(document).ready(function() { > $('#letter-d .button').click(function() { > $.get('d.xml', function(data) { > alert('data: ' + data); > $('#dictionary').empty(); > $(data).find('[EMAIL PROTECTED]').each(function() { > var $entry = $(this); > > alert('inside each function'); > > var html = ''; > html += '' + $entry.attr('term') + ''; > html += '' + $entry.attr('part') + ''; > html += '' > html += $entry.find('definition').text(); > var $quote = $entry.find('quote'); > if ($quote.length) { > html += ''; > $quote.find('line').each(function() { > html += '' + $(this).text() + ' div>'; > }); > if ($quote.attr('author')) { > html += '' + > $quote.attr('author') + ''; > } > html += ''; > } > html += ''; > html += ''; > $('#dictionary').append($(html)); > }); > }); > }); > > }); > > Content of d.xml file > > > > > To leap about to the sound of tittering music, preferably with > arms about your neighbor's wife or daughter. There are many kinds of > dances, but all those requiring the participation of the two sexes > have two characteristics in common: they are conspicuously innocent, > and warmly loved by the vicious. > > > > > A period of twenty-four hours, mostly misspent. This period is > divided into two parts, the day proper and the night, or day improper > the former devoted to sins of business, the latter > consecrated to the other sort. These two kinds of social activity > overlap. > > > > > An ingenious substitute for the chain and whip of the slave- > driver. > > > As, pent in an aquarium, the troutlet > Swims round and round his tank to find an outlet, > Pressing his nose against the glass that holds him, > Nor ever sees the prison that enfolds him; > So the poor debtor, seeing naught around him, > Yet feels the narrow limits that impound him, > Grieves at his debt and studies to evade it, > And finds at last he might as well have paid it. > > > > > To lie about another. To tell the truth about another. > > > > > Unable to attack. > > > > > The act of examining one's bread to determine which side it is > buttered on. > > > > > The father of a most respectable family, comprising Enthusiasm, > Affection, Self-denial, Faith, Hope, Charity and many other goodly > sons and daughters. > > > All hail, Delusion! Were it not for thee > The world turned topsy-turvy we should see; > For Vice, respectable with cleanly fancies, > Would fly abandoned Virtue's gross advances. > > > > > A prestidigitator who, putting metal into your mouth, pulls > coins out of your pocket. > > > > > The singular of "dice." We seldom hear the word, because there > is a prohibitory proverb, "Never say die." At long intervals, > however, some one says: "The die is cast," which is not true, for it > is cut. The word is found in an immortal couplet by that eminent poet > and domestic economist, Senator Depew: > > > A cube of cheese no larger than a die > May bait the trap to catch a nibbling mie. > > > > > The patriotic art of lying for one's country. > > > > > The only thing that the rich are willing for the poor to call > theirs, and keep. > > >
[jQuery] How to check TD background image has been loaded.
Hi there, I am trying to update the attr of background in . ==>> is that possibly to use jQuery to check if the background image has been loaded? something like this.. $('#mytd background').load(function(){ alert('the background image has been loaded'); }); Thank you for you help! -Ace
[jQuery] How to move the DIV?
Hi there, I am trying to move the div object, but it seems doesn't work. any ideas? Thanks $(document).ready(function () { $("" ) .attr( "id", "myDiv") .addClass( "header" ) .html( "hello world") .appendTo( $( "body" ) ); $( "myDiv" ).css('left', '150px'); });
[jQuery] find multiple values
Hi there, Is there a way to find multiple values? This script checks *name = ben*, what about I want to check if *name = ben* and *name = joe*? Is this possible? Thanks --- var items = [{id:1, name:'bob'}, {id:2, name:'joe'}, {id:3, name:'ben'}]; var found = $(items).find("[name='ben']");
[jQuery] How to remove unneeded functions of jquery?
Hello Jquery members , I'm wondering how to remove unneeded functions out of jquery. This could strongly reduce the file size! Can somebody tell me more about it?
[jQuery] How to delete unneeded function out of Jquery?
Hello , I'm wondering how to delete unneeded functions out of jquery. (this could strongly reduce the file size!) Can somebody tell me more? For exemple: I don't use the "text( )" function and want to delete it.
[jQuery] Re: Issue with Cycle Plugin
im experiencing the exact sa On Jun 15, 4:29 pm, Mike Alsup wrote: > Try adding the style "overflow:hidden" to your slideshow container. > > On Jun 14, 9:02 pm, vintom wrote: > > > I am not great with jquery (yet), but I have used a few plugins with > > me newest site. I am using the cycle plugin and it works great, but I > > am having one issue. When I load the page initially (http://vintom.com/ > > gfc) it stacks the images on top of each other until the plugin kicks > > in (which is only about 2 seconds). > > > Is there any way to get around this? I would like to just have the > > first image in the cycle show up, and not have it affect the rest of > > the site layout. > > > Any help would be great: > > > With problem: > > > http://vintom.com/jing/gfc-before.png"; alt="" /> > > > Without problem: > > > http://vintom.com/jing/gfc-after.png"; alt="" />
[jQuery] Re: Issue with Cycle Plugin
im experiencing the exact same problem - all my images start on top of eachother. If you press cmd+shift+R to reload it doesnt fix it - if you press F5 somehow it fixes it. overflow on my containing div doesn't work either - im very new to jQuery and CSS... so it might be something stupid, but if you have a spare minute, take a look at http://www.yannickdepauw.be/new/ best On Jun 15, 4:29 pm, Mike Alsup wrote: > Try adding the style "overflow:hidden" to your slideshow container. > > On Jun 14, 9:02 pm, vintom wrote: > > > I am not great with jquery (yet), but I have used a few plugins with > > me newest site. I am using the cycle plugin and it works great, but I > > am having one issue. When I load the page initially (http://vintom.com/ > > gfc) it stacks the images on top of each other until the plugin kicks > > in (which is only about 2 seconds). > > > Is there any way to get around this? I would like to just have the > > first image in the cycle show up, and not have it affect the rest of > > the site layout. > > > Any help would be great: > > > With problem: > > > http://vintom.com/jing/gfc-before.png"; alt="" /> > > > Without problem: > > > http://vintom.com/jing/gfc-after.png"; alt="" />
[jQuery] jQuery validation plug-in 1.5.5
Hi, why jQuery validation plug-in 1.5.5 don't work with FireFox version 3.5.4?
[jQuery] Dropdown list to auto populate input boxes
Hello All, I need to create a form where when a dropdown list is selected it auto populates a group of input values, so far I have this code but it seems to be getting the values but it is not adding the values to the input fields, any help would be greatly appreciated. Jquery Code $(document).ready(function() { $("#charity_val").change(function(){ var charity = $("#charity_val").val(); $.post("ajax.php",{ charity_val: charity }, function(xml){ var address = $("address",xml).text(); alert(address); var suburb = $("suburb",xml).text(); var postcode = $("postcode",xml).text(); var state = $("state",xml).text(); var country = $("country",xml).text(); $("#charity_address").attr("value",address); $("#charity_suburb").attr("value",suburb); $("#charity_postcode").attr("value",postcode); $("#charity_state").attr("value",state); $("#charity_country").attr("value",country); }); }); }); php Code header('Content-Type: text/xml; charset=utf-8'); $value = $_REQUEST['charity_val']; $query = mysql_query("SELECT * FROM step_7_charities WHERE id_charity = {$value}"); while($row = mysql_fetch_array($query)) { $U['charity_address'] = $row['address']; $U['charity_suburb'] = $row['suburb']; $U['charity_postcode'] = $row['postcode']; $U['charity_state'] = $row['id_state']; $U['charity_country'] = $row['country']; } $returnXML = "".$U['charity_address']."".$U['charity_suburb']."". $U['charity_postcode']."".$U['charity_state']."".$U['charity_country'].""; echo $returnXML; Thankyou
[jQuery] tagging
hi - i need to implement del.icio.us style tagging mechanism. that involves a list of hyperlinked keywords that when clicked add or remove or their text to an inputbox and inputbox supporting autosuggest for each of the words after the separation character. i am surprised to see that it is not already implemented since most web 2.0 applications implement one form of tagging or another. if someone can tell me how to add or remove a text to an input field using jquery, i can get the ball rolling. thanks.
[jQuery] Re: tagging
guys- thanks for the replies.. jake got me started and i ended up with following.. if anybody can turn it into a "plugin" that takes the input field's name and the list of tags as parameters, it might be useful for the community.. // span.tag.selected {background:blue;color:white;padding:2px 6px;cursor:pointer;} input.tagtext {width:400px;}
[jQuery] jQuery help
Hello all! I am having an issue with jQuery (obviously) anyway, Here is what I am talking about: http://manhattanwest.com/the_residences/floor_plansNEW.php If you dont click any other links and click the "1st Floor" and "Loft" links below the img, it works just fine, but as soon as you click another floor plan and the click the "Greenwich Lofts" link again, the functionality dies.any thoughts? Thanks,
[jQuery] Re: sent a message, nothing visible
I am not receiving messages. So I am testing if my messages are going out :) On Thu, Jan 8, 2009 at 3:47 PM, lsblsb wrote: > > just send a message here, but it doesnt appear since 2 hours. > so this is a test... > -- jQuery HowTo Resource <http://jquery-howto.blogspot.com>
[jQuery] Re: jqGalScroll in Joomla
Set css style for your unordered list items to none; ul{ list-style:none; } On Thu, Jan 8, 2009 at 8:33 AM, ozz wrote: > > Installed jQuery into Joomla article, portfolio scroll, looks awesome, > works fine! > Only one problem, it shows bullets beside each image and pagination... > It's fine on a regular html page > Can you guys help??? What should i do? > -- jQuery HowTo Resource <http://jquery-howto.blogspot.com>
[jQuery] Re: Simulate BackSpace key
As far as I can remember trigger function takes only two parameters. The second parameter should be an array: $('#editor').trigger("keypress", [null,{which: 8,pageX:e.pageX,pageY:e.pageY}]); On Thu, Jan 8, 2009 at 3:57 PM, RSol wrote: > > I read that I can simulate keypress with code: > > $('#editor').trigger("keypress", [],null,{which: > 8,pageX:e.pageX,pageY:e.pageY}); > > This code dont work. > > Please help me solve this. > -- jQuery HowTo Resource <http://jquery-howto.blogspot.com>
[jQuery] Re: Joomla and jqGalScroll
Another one: Set css style for your unordered list items to none; ul{ list-style:none; } On Thu, Jan 8, 2009 at 8:37 AM, Alex Osipov wrote: > Hi there, i am not sure if i am writing to the right place:)Installed > jquery into the joomla, posted, works great > Only one thing it's shows the bullets beside every image, and between > pagination numbers > It works fine on regular html page... > Please help?? > > Best Regards, > Alex > > 778.991.3593 > design: www.acreative.ca > art: www.ozipov.com > > -- jQuery HowTo Resource <http://jquery-howto.blogspot.com>
[jQuery] Re: help me in jquery show( speed, [callback] ) effects
You can do this: $('dd').click(function(){ // here select and show whatever you want $('.somethingToShow').show('slow'); }); On Thu, Jan 8, 2009 at 3:30 PM, nage wrote: > > hi > > I am new to jquery, i have on form with 3 images, i want call > show( speed, [callback] ) > function when clicking particuler image only > > for example > > > > > > > i want call show( speed, [callback] ) when clicking welcome.gif > image only > - - - - - jQuery HowTo Resource <http://jquery-howto.blogspot.com>
[jQuery] Re: [tooltip] catch images before showing them
Preload all images used in tooltip with javascript: Detailed article: http://articles.techrepublic.com.com/5100-10878_11-5214317.html Google: http://www.google.com/search?rlz=1C1GGLD_enUZ291UZ308&sourceid=chrome&ie=UTF-8&q=javascript+image+preload On Thu, Jan 8, 2009 at 4:13 PM, kannibal wrote: > > Hi, > > Im using jQuery tooltip to show a preview of links using > http://url2jpg.nu/ > First time it takes a long time, how can i cache all images before > hovering the link? > > Regards Stefan > - - - - - http://jquery-howto.blogspot.com"; title="jQuery HowTo site">jQuery HowTo Resource
[jQuery] Re: bind the same functionality to load and change event
Move your code to some function and then call it on document ready and onchange-event: function myMethod(){ // my custom js code } $(document).ready(function(){ myMethod(); $("#properties div select").bind("change",myMethod()); }); -- jQuery HowTo Resource <http://jquery-howto.blogspot.com> On Thu, Jan 8, 2009 at 2:19 PM, lsblsb wrote: > > hi there, > > i want to execute the same lines of code when the site has finished > loading AND when an onchange-event is fired. > > i tried something like > > $("#properties div select").bind("ready change",function(e){ > $("#properties div select").bind("load change",function(e){ > > but this does not work :/ > > can you tell me how to do something like that? > > thank you! >
[jQuery] Re: jQuery - Binding to Ajax Event
Why don't you use jQuery's helper function $.getJSON( url, [data], [callback] ) http://docs.jquery.com/Ajax/jQuery.getJSON#urldatacallback jQuery HowTo Resource - http://jquery-howto.blogspot.com On Fri, Jan 9, 2009 at 9:32 AM, goodsanket wrote: > > Hi all > > I am developing a portal and i am kind of stuck. > I am using multiple AJAX calls to get data dynamically from a JSON > file. > > In one page I am making 2 AJAX calls, and I want to call a function on > call back from AJAX. I found out a way to do it, its something like > this, > > > $(window).bind("ajaxComplete", function() { > function1(); > }); > > Now problem here is, function1 is being called twice, on each AJAX > callback. Is there any way so that i can call function1 only once. > > Thanks
[jQuery] Re: Simulate BackSpace key
Here is how to simulate a backspace in javascript: getElementById('yourTextBox').Select(TextBox1.SelectionStart - 1, 1) getElementById('yourTextBox').SelectedText = " jQuery HowTo Resource - http://jquery-howto.blogspot.com On Fri, Jan 9, 2009 at 11:03 AM, RSol wrote: > > To replace ':)' to image I see 2 variants: > When I detect ':)' I: > 1. Emulate two BackSpace and execCommand('InsertImage',false,img) > 2. Get all text from '#editor', then String.replace(/:\)/g,img), then > put that in '#editor', then need moove cursor to the end of '#editor'. > I dont know how to move cursor to the end of editor. > > I select 1st variant, and try emulate BackSpace key. Using $ > ('#editor').trigger("keypress", ) I cant do this - I dont ckow > how! > I find: > > var evt = document.createEvent("KeyEvents"); > evt.initKeyEvent( > "keypress",// in DOMString typeArg, > true, // in boolean canBubbleArg, > true, // in boolean cancelableArg, > null, // in nsIDOMAbstractView viewArg, Specifies > UIEvent.view. This value may be null. > false,// in boolean ctrlKeyArg, > false,// in boolean altKeyArg, > false,// in boolean shiftKeyArg, > false,// in boolean metaKeyArg, > 8, // in unsigned long keyCodeArg, > 0); // in unsigned long charCodeArg); > $('#editor')[0].dispatchEvent(evt); > > it's work in FF, but dont work in IE. > >> Ah, I think I see the issue. Am I right in assuming that you don't >> want to simulate the backspace, but detect it? > > I need to simulate the BackSpace > >> Also, how are you keeping track of the replacement? It seems to me >> that you could do yourself a big favor and make what the user enters >> not what you show the user, so when they delete a smiley, you can just >> remove the whole thing?
[jQuery] Re: simple problem
You are selecting an image and image has no HTML or any kind of text content in it! img element has no html() function. jQuery HowTo Resource - http://jquery-howto.blogspot.com On Thu, Jan 8, 2009 at 8:11 PM, CreativeMind wrote: > > hi all, > i m unable to find the img and its src attribute... > when i write > alert($(myobj[1][$c]).find('li').html()); > i get the output > > > alert($(myobj[1][$c]).find('li').find('a').html()); > > > but when i try > alert($(myobj[1][$c]).find('li').find('a').find('img').html()); > > i get no value or empty value .. can u plz correct it.. > thx >
[jQuery] Re: how to select all first td's inside all in a table
Once more solution: $("tr td:nth-child(1)").addClass('date'); jQuery HowTo Resource - http://jquery-howto.blogspot.com On Fri, Jan 9, 2009 at 2:58 AM, Tijmen Smit wrote: > > I have a table that contains several , all of them look like > this. > > >20-04 >459 >559 >659 >439 >519 >599 >424 >489 >554 > > >27-04 >506 >606 >706 >486 >566 >646 >471 >536 >601 > > > > One of the things that I would like to do is add the class "date" to > the first td that exists after a . > > I came up with this -> $("#prijslijst-appartement tr td:eq > (0)").addClass("date"); , but that doesn't really do what I thought It > would. It only adds the date class to one td, and it ignores all the > other in the table. What I was hoping it would do is finding all > , and then add the date class to the first in all the in > the entire table. > > You can see the example here -> http://tijmensmit.com/dev/td/prijslijst.html. > The one with the date class on it has the pink border around it. > > Its not only the first which I should target, the 3th, 6th and > 9th within each should also be given a different class. > > What would be the best way to do this, and to make sure it looks in > all in the entire table, and not stops after the first one? > > Thanks, > Tijmen
[jQuery] Re: Simulate BackSpace key
There is a nice article (http://the-stickman.com/web-development/javascript/finding-selection-cursor-position-in-a-textarea-in-internet-explorer/) I found comments particularly useful. jQuery HowTo Resource - http://jquery-howto.blogspot.com 2009/1/9 RSol : > > I write WYSWYG editor and use to editing 'div' tag with .attr > ('contentEditable','true') > > On 9 янв, 08:23, "jQuery Lover" wrote: >> Here is how to simulate a backspace in javascript: >> >> getElementById('yourTextBox').Select(TextBox1.SelectionStart - 1, 1) >> getElementById('yourTextBox').SelectedText = " >> >> jQuery HowTo Resource - http://jquery-howto.blogspot.com
[jQuery] Re: Attach events to items before $(document).ready
Put your javascript right under the input field. ... document.myForm.username.focus(); It is not jQuery, but plain javascript. Just in case jquery is not fully loaded... jQuery HowTo Resource - http://jquery-howto.blogspot.com On Fri, Jan 9, 2009 at 6:25 PM, Gordon wrote: > > I've got a field on a web page that needs some javascript behaviour > when it gains or loses focus, so I attached the appropriate handlers > in a $(document).ready to the field. > > It all works fine, except if the user focuses the input field before > the ready event fires. In this case the behaviour doesn't occur. > > The old version used onfocus and onblur attributes in the tag itself, > which is obviously a very bad way of doing it, but did have the > advantage that the behaviour would occur as soon as the input field > became visible. > > Is there a friendlier way of attaching behaviour before the ready > event?
[jQuery] Re: Tutorials or examples of jQuery and ColdFusion?
jquery is client side scripting language and it does not care nor knows what you are using at the server side as far as you return what it is expecting (xml, json, html, plain text, etc). You should probably ask for utility classes. For example a class that would convert your object or an array to json or something... That is my opinion... jQuery HowTo Resource - http://jquery-howto.blogspot.com On Thu, Jan 8, 2009 at 10:44 PM, Rick Faircloth wrote: > > Hi, all... > > I think I saw it mentioned that someone had written > some examples of using jQuery on the front-end and > ColdFusion on the backend for ajax work. > > Most of the stuff I find on the 'Net with jQuery > and PHP. > > Perhaps the examples were written in conjunction > with a plug-in? > > I'd appreciate any clues. > > Thanks, > > Rick > >
[jQuery] Re: Preload images for jQuery Cycle Plugin
Here is something from top of my head: $(function () { var imgs = new Array(); imgs[0] = 'images1.jpg'; imgs[2] = 'images2.jpg'; imgs[3] = 'images3.jpg'; imgs[4] = 'images4.jpg'; imgs[5] = 'images5.jpg'; var $img = new Image(); for(var i in imgs){ $($img) .load(function () { checkFinal(); }) .attr('src', imgs[i]); } }); var loaded = 0; function checkFinal(){ loaded++; if(loaded == 5){ // = // call image rotator statement here // = } } Basically, it loads five images. On each load it checks if it is the final image and if it is then call the jquery cycle plugin statement jQuery HowTo Resource - http://jquery-howto.blogspot.com On Fri, Jan 9, 2009 at 10:49 AM, code_monkey <3dcreat...@gmail.com> wrote: > > > Hi, > I'm quit new to jquery and trying to figure out how to preload image for > jQuery Cycle Plugin. > > I have 5+ large size images and I need those to be preloaded before starting > the slideshow with cycle plugin. I also I need to display a loading gif wile > it preloads the images. > > I have tried to implement the technique here > http://jqueryfordesigners.com/image-loading/ > > but still couldn't figure out how to make it working with the cycle plugin. > > Can anyone please help me with this? > > Thanks > > -- > View this message in context: > http://www.nabble.com/Preload-images-for-jQuery-Cycle-Plugin-tp21366628s27240p21366628.html > Sent from the jQuery General Discussion mailing list archive at Nabble.com. > >
[jQuery] Re: jquery abstraction/widget for fixed panel at bottom page
Here is exactly what you need :) http://www.ben-griffiths.com/project/jquery-position-footer/ jQuery HowTo Resource - http://jquery-howto.blogspot.com On Fri, Jan 9, 2009 at 7:07 PM, aldana wrote: > > > hi, > > i read that you can use following for a html-snippet which should be fixed > at bottom page: > style="position: fixed; bottom: 0px;" > > but it does not seem to work with all browsers (e.g. IE6). does jquery > provide an abstraction for fixed-style box at the bottom of the page? > > thanks. > > - > manuel aldana > aldana((at))gmx.de > software-engineering blog: http://www.aldana-online.de > -- > View this message in context: > http://www.nabble.com/jquery-abstraction-widget-for-fixed-panel-at-bottom-page-tp21372949s27240p21372949.html > Sent from the jQuery General Discussion mailing list archive at Nabble.com. > >
[jQuery] Re: Need help with a Jquery toggle bug in my menu's
Introduce some variable that tracks the current menu state. $(document).ready(function(){ var menuOn = false; $("li.main-nav").children('div').hide(); $("li.main-nav").bind("mouseenter mouseleave", function(){ ... }); }); And then, in your bound function check with "if" statement if the menu is on. If it's off then change to on, plus change the menuOn value to true. Similar with the "off" case. I hope I was clear enough. jQuery HowTo Resource - http://jquery-howto.blogspot.com On Fri, Jan 9, 2009 at 7:14 PM, Ted wrote: > > I've got a full width drop down menu setup, using jquery's toggle to > show/hide the hidden divs when the user clicks on the one of the > elements or any of it's children. > > The problem I'm having (and it's kind of hard to reproduce), is that > if the user has their mouse over one of the items while the page > is loading, the toggle becomes confused, and believes that on is off > and off is on. Basically giving you a flickering menu. > > Here's my Jquery code: > >$(document).ready(function(){ >$("li.main-nav").bind("mouseenter mouseleave", function > (){ >$(this).children('div').toggle(); >$(this).toggleClass('menu-on'); > return false; >}); >}); > > And the URL of the test case: > > http://dl.getdropbox.com/u/21984/menu_test/menu_test.html > > I had figured if I told Jquery to hide all of the divs before I > introduce the toggle function that would solve the problem, and tried > using a piece of code that looks like this: > > $(document).ready(function(){ >$("li.main-nav").children('div').hide(); >}); > > ...but that didn't help. > > Does anyone have any ideas on how I could fix this?
[jQuery] Re: Attach events to items before $(document).ready
I agree with Rob here. Inline javascript is not the worst that may happen to your page. It's just the hype around unobtrusive javascript coding that we have lately that makes some people to think that it is the worst thing ever. jQuery HowTo Resource - http://jquery-howto.blogspot.com On Fri, Jan 9, 2009 at 6:59 PM, RobG wrote: > > > > On Jan 9, 11:25 pm, Gordon wrote: >> I've got a field on a web page that needs some javascript behaviour >> when it gains or loses focus, so I attached the appropriate handlers >> in a $(document).ready to the field. >> >> It all works fine, except if the user focuses the input field before >> the ready event fires. In this case the behaviour doesn't occur. > > That is a major issue with dynamically attached listeners. The longer > the page takes to load, the more likely it is that it will occur. > >> >> The old version used onfocus and onblur attributes in the tag itself, >> which is obviously a very bad way of doing it, > > Obviously? There is nothing wrong with inline listeners. Ultimately, > you are trying to create a document with appropriate elements and > functionality - how you go about that should be determined by your > functional requirements. > > If you have a requirement for elements to have listeners from the > instant they appear, and there is a good chance that dynamic listeners > wont be attached quickly enough, put them inline. > > >> but did have the >> advantage that the behaviour would occur as soon as the input field >> became visible. > > Which seems to be what you want, so why is it so bad? > >> >> Is there a friendlier way of attaching behaviour before the ready >> event? > > An alternative is to use a script element immediately after the > element you want the listener attached to, but I'll guess that you > like that approach even less. > > > -- > Rob
[jQuery] Re: How best to create Google Calendar functionality in Jquery?
jQuery UI already has what you need. First use a container div with bg image of time. Then create a dragable and resizable div that can only be dragged/resized horizontally. Then use jquery.offset() to get where the div's left and right sides are and easily calculate start and end dates. Similar with the vertical time spanning case. jQuery HowTo Resource - http://jquery-howto.blogspot.com On Fri, Jan 9, 2009 at 12:02 PM, Val wrote: > > Hi, > > I'm rather new to Jquery and hope someone can point me in the right > direction here. > > In my current project I need to implement some calendar event > functionality (similar to Google Calendar or Mobile Me calendar). In > a nutshell, I need to be able to: > - Create new div with click and drag > - Resize div by clicking on handles (while updating start and end > times) > - Drag divs to reposition on day grid (while updating new start and > end times) > > I know that JQuery UI offers some basic dragging and resizing, but > I've been looking all over for a plug-in or other project that would > provide the more advanced "calendar" functionality of tracking start > and end times as a div is moved or resized. > > I haven't been able to find any such project in Google, however. Can > anyone point me in the direction on where to start for this type of > thing? > > Thanks for your help, > Val >
[jQuery] Re: Superfish Righthand Side of Window Folding
There seems to be no option so you will have to change the code. You will have to check if the menu will overflow the window and proceed accordingly. So check the value of (current menu right side + popup menu width) is bigger than window width. If it is position popup menu to the left side of the current menu. jQuery HowTo Resource - http://jquery-howto.blogspot.com On Fri, Jan 9, 2009 at 3:51 PM, DIA wrote: > > Hi there, > > Is there a way to get the Superfish menu to fold back if child items > are too close to the righthand edge of the window, rather than go off > screen? > > An example of a menu which does this is: > http://www.dynamicdrive.com/style/csslibrary/item/jquery_multi_level_css_menu_2 > > Thanks! >
[jQuery] Re: teaching jquery instead of javascript ?
I agree with that :) jQuery HowTo Resource - http://jquery-howto.blogspot.com On Fri, Jan 9, 2009 at 7:47 PM, Ricardo Tomasi wrote: > > I'm sure most will agree that 240 hours is more than reasonable time > to learn the basics of Javascript, and then jQuery and a third library > of your choice. You can learn the workings of the jQuery API in a few > hours if you're good at JS. I haven't counted but I probably don't > have more than 240 hours of practice with jQuery. > > - ricardo > > On Jan 9, 5:36 am, "Alexandre Plennevaux" > wrote: >> hi Ricardo, it's actually 120 hours per year, and it's the last two >> years. so 240 hours. >> >> On Fri, Jan 9, 2009 at 4:44 AM, Ricardo Tomasi wrote: >> >> > Yes but what happens when you find an error in your script? It might >> > be a very basic mistake but you won't have a clue if you don't know >> > javascript itself. What happens 5 years from know if a totally >> > different library, with different syntax, takes over? >> >> > I agree with Peter Higgins, it's much more useful to teach the basics >> > first, then introduce jQuery, if they got the very basics then they >> > can learn the rest on their own. It's like teaching someone to use the >> > Blueprint CSS framework and not explaining what classes really are. >> > They`ll find themselves lost at the first adversity. >> >> > - ricardo >> >> > Do you mean 2 hours a week for 3 years? That's enough to learn well 5 >> > different languages :D >> >> > On Jan 8, 8:30 pm, Kean wrote: >> >> Your audience are designers, they will pick up jQuery faster because >> >> they think in CSS. >> >> >> At what point do you teach them javascript? >> >> When you teach them how to create plugins for jQuery. >> >> >> I hope this helps. >> >> >> On Jan 8, 2:13 pm, Nikola wrote: >> >> >> > Why not integrate the basic "JavaScript Fundamentals" in each jQuery >> >> > lesson. You could show some general examples and explain the >> >> > rudimentary JavaScript principal (I'm thinking a 15 minute >> >> > introduction...) then teach the jQuery and demonstrate how and why >> >> > jQuery is the "write less, do more" JavaScript library.. This way, >> >> > students get the gist of the JavaScript while learning jQuery. This >> >> > may not be as desirable as learning jQuery on top of a strong >> >> > JavaScript foundation but it can certainly help them to become >> >> > stronger jQuery developers while giving them an introductory >> >> > foundation in JavaScript principals.
[jQuery] Re: Simulate BackSpace key
You can't trigger but can achieve the same effect :) An you will definitely deal with Ranges to make your code cross browser :) jQuery HowTo Resource - http://jquery-howto.blogspot.com On Fri, Jan 9, 2009 at 7:43 PM, Ricardo Tomasi wrote: > > You can't actually trigger a keypress, only it's event listeners. I > think you'll have to deal with "ranges": > https://developer.mozilla.org/En/DOM/Range > > On Jan 9, 4:03 am, RSol wrote: >> To replace ':)' to image I see 2 variants: >> When I detect ':)' I: >> 1. Emulate two BackSpace and execCommand('InsertImage',false,img) >> 2. Get all text from '#editor', then String.replace(/:\)/g,img), then >> put that in '#editor', then need moove cursor to the end of '#editor'. >> I dont know how to move cursor to the end of editor. >> >> I select 1st variant, and try emulate BackSpace key. Using $ >> ('#editor').trigger("keypress", ) I cant do this - I dont ckow >> how! >> I find: >> >> var evt = document.createEvent("KeyEvents"); >> evt.initKeyEvent( >> "keypress",// in DOMString typeArg, >> true, // in boolean canBubbleArg, >> true, // in boolean cancelableArg, >> null, // in nsIDOMAbstractView viewArg, Specifies >> UIEvent.view. This value may be null. >> false,// in boolean ctrlKeyArg, >> false,// in boolean altKeyArg, >> false,// in boolean shiftKeyArg, >> false,// in boolean metaKeyArg, >> 8, // in unsigned long keyCodeArg, >> 0); // in unsigned long charCodeArg); >> $('#editor')[0].dispatchEvent(evt); >> >> it's work in FF, but dont work in IE. >> >> > Ah, I think I see the issue. Am I right in assuming that you don't >> > want to simulate the backspace, but detect it? >> >> I need to simulate the BackSpace >> >> > Also, how are you keeping track of the replacement? It seems to me >> > that you could do yourself a big favor and make what the user enters >> > not what you show the user, so when they delete a smiley, you can just >> > remove the whole thing?
[jQuery] Re: if statement testing for null value
Where are you putting this code? Running it on page load will not do much. Put it into a function and then bind it to all five fields. jQuery HowTo Resource - http://jquery-howto.blogspot.com On Fri, Jan 9, 2009 at 7:50 PM, Chuk wrote: > > Thanks for your suggestions, guys. I tried replacing != with !==, and > nothing changed. > Mike, concerning your suggestions, I'm really not sure what's going > on. Is the first one testing to see if each of the fields contains a > value...and then enabling the submit button? When I try that approach > and insert breakpoints using firebug, I see that the script never gets > executed...even when I fill each field with a value. When I try the > second approach, the same thing happens. I insert the code, insert > the breakpoint, fill the fields with values, and the script is not > executed. Should I put one of those approaches within a .change() > event for each of the fields?
[jQuery] Re: Does anyonw know a jQuery plug-in like Magic Zoom
Here you go. Exactly the same (SUSPICIOUSLY SIMILAR) jquery plugin: http://www.mind-projects.it/projects/jqzoom/ jQuery HowTo Resource - http://jquery-howto.blogspot.com 2009/1/9 Nguyễn Quốc Vinh : > This tool is so cool! But it is not free! > http://www.magictoolbox.com/magiczoom/ > Does anyone know a jQuery plug-in like that? > Or other javascript code which has same features? > > -- > / > * Người ta thưởng chỉ chú ý đến những kẻ lên như diều gặp gió! Nhưng hỡi ôi, > chỉ có cát, bụi và lông hồng mới là những thứ lên nhanh nhất > */ >
[jQuery] Re: Is there a way to create Javascript virtual or logical path mappings?
Why don't you add "/" to your path and it will always work, wherever you are, on the same lever, below or upper ... jQuery HowTo Resource - http://jquery-howto.blogspot.com On Sat, Jan 10, 2009 at 8:04 AM, Rick Faircloth wrote: > > I've got login templates that use jQuery and the > path required depends on the ColdFusion template > including the jQuery in the page. > > For example: > > tb_show("Login", "login/login_form.cfm?height=320&width=290&modal=true", > false); > > This code's path, "login/login_form.cfm", works when included > from a directory above the "login" directory. > > But when it's included in a template that's in a directory > that's on the same level as the login directory, that path > won't work. > > In ColdFusion, as of version 8, we can create per-application > logical mappings, such as the example below that works anywhere: > > (this.mappings, "/app_login", "e:\inetpub\webroot\fortstewart-sm\login") > > And I could just use td_show("Login", "/app_login/login_form.cfm etc...) > and it would work when included in a template in any location in the tree. > > I was wondering if the same thing can be done with jQuery/Javascript > or if there's another solution so I don't have to do this: > > > > > > > > > > Rick > >
[jQuery] Re: non standard characters in class names, not working in funtion
I don't think there are other solutions but escape special characters in your jquery selector names... jQuery HowTo Resource - http://jquery-howto.blogspot.com > > if any one can point me to other solutions ...
[jQuery] Re: jQuery code not being run
Yeap, the "not defined" errors mean jQuery is not loaded. So you should load your jQuery first and then other js code that uses it. jQuery HowTo Resource - http://jquery-howto.blogspot.com On Sat, Jan 10, 2009 at 6:30 AM, donb wrote: > > Move the jquery.js link ahead of all the others (because 'jQuery' is > NOT loaded when they call it) and fix the path on dropdown.js - it is > not loaded at all > > On Jan 9, 8:06 pm, "oliver.pra...@googlemail.com" > wrote: >> Hi, >> >> Since there's been no answers I'm just checking in again. >> >> I opened the page with Firebug and luckly recieved so error messages: >> >> jQuery is not defined >> hoverIntent.js()()hoverIntent.js (Linie 84) >> [Break on this error] })(jQuery); >> hoverIntent.js (Linie 84) >> jQuery is not defined >> superfish.js()()superfish.js (Linie 121) >> [Break on this error] })(jQuery); >> superfish.js (Linie 121) >> >> If anyone knows what they mean dont wait and reply, I'll also research >> forther with my bind approach... >> since this is the first js I'm ever doing on a webpage >> >> Oliver >> >> On Jan 3, 9:07 pm, "oliver.pra...@googlemail.com" >> >> wrote: >> > Hi, >> >> > I'm working on a site with somebody, and we got most of it finished, >> > but it needs a little self made jQuery coding ... >> >> > The problem is that this isn't running at all! >> >> > The code is in personalized.js and is being loaded (firebug) >> >> > Code in bin:http://code-bin.homedns.org/205 >> >> > We already tested around a bit but couldn't find anything that will >> > make it work, I think we also got a version using the var $j = >> > jQuery.noConflict(); but that might have been done wrong, theres a hide >> > () on mainContent just for testing but this isn't getting done >> > either... >> >> > The hole site is till now just for Firefox 3+ tested (and will break >> > in ie as far as i know) >> >> > The website:http://www.vonderdecken.net/ >> >> > hope you can help since I'm totally new to javascript and jQuery. This >> > means I sadly also means I have not a clue at all how to debug it... >> >> > Oliver
[jQuery] Re: double $().read()
Yes, you can as many $(document).ready() functions... Because you are not declaring but binding event to document object with $().ready(). jQuery HowTo Resource - http://jquery-howto.blogspot.com On Sat, Jan 10, 2009 at 5:31 AM, saiful.ha...@gmail.com wrote: > > hi all, > > can we put double $().read() declare? cos i am using tab-ui not in all > page, just in one page only? > is has trick's for this happen > > ~ saiful haqqi ~ > >
[jQuery] Re: Thickbox and Yahoo Stores
Do you have a link or could you copy&paste html code snippet of your image with the links... jQuery HowTo Resource - http://jquery-howto.blogspot.com On Sat, Jan 10, 2009 at 2:16 AM, MikeFCraft wrote: > > I'm helping someone set up thickbox to work on their yahoo store. It > seems like Yahoo has a built-in click tracking system that is messing > up the thickbox though. > > For example clicking on a thickbox link that points to "theFile.htm" > first makes a request to yahoo for something like: > > http://a.analytics.yahoo.com/p.pl?a=... > > with a ton of analytical data appended to the URL. It returns a > tracking gif, and the real content of theFile.htm never loads. (you > just stare at thickbox's loadingAnimation.gif forever) > > Has anyone ever seen this before and come up with a workaround? >
[jQuery] Re: Simplemodal causes validators to fire on webform
You probably binding your validators to ALL input[type=submit] or to some class (Ex: .submit) If so give your selector a scope $('.submit-button', document.forms[0]).bind()... jQuery HowTo Resource - http://jquery-howto.blogspot.com On Thu, Jan 8, 2009 at 9:31 PM, tawright915 wrote: > > When I click the close button on my modal message box it causes the > required field validators to fire on my form. Is there a way to stop > this from happening? > > Tom
[jQuery] Re: Thickbox and Yahoo Stores
Didn't we already have this message ??? jQuery HowTo Resource - http://jquery-howto.blogspot.com On Sat, Jan 10, 2009 at 2:10 AM, Mike521 wrote: > > I'm helping someone set up thickbox to work on their yahoo store. It > seems like Yahoo has a built-in click tracking system that is messing > up the thickbox though. > > For example clicking on a thickbox link that points to "theFile.htm" > first makes a request to yahoo for something like: > > http://a.analytics.yahoo.com/p.pl?a=... > > with a ton of analytical data appended to the URL. It returns a > tracking gif, and the real content of theFile.htm never loads. (you > just stare at thickbox's loadingAnimation.gif forever) > > Has anyone ever seen this before and come up with a workaround?
[jQuery] Re: Anyone using jQuery with Tapestry 5?
Hello there, There are no special means or specific incorporations of jQuery to some framework nor to a programming languages. Tapestry is not an exception. Use jQuery to do your front end work, use Tapestry to generate html you need. All you need is a java utility classes to convert your java objects to json format. You can download and find out more about json java classes here: http://www.json.org/java/ Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Sat, Jan 10, 2009 at 1:06 AM, rolfsf wrote: > > I've recently started doing some front end design for a team who are > working in Tapestry 5 - would love to know if there is anyone on the > list who has experience incorporating jQuery into Tapestry, and if > there are any known issues > > thanks!
[jQuery] Re: Best way to preload an image to obtain dimensions
Eric gives you the jQuery way, basically the jQuery syntax. I can't agree with Brian's idea. Loading original images in your gallery is not the best thing, unless you know your target audience has high speed internet or they are all in your local area network. Although, Eric's code is jQuery way of doing things, I find your code more readable. Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Fri, Jan 9, 2009 at 4:06 AM, nabrown78 wrote: > > Hi All, > I am building a simple little gallery where you click on a thumbnail, > and a larger image displays on the same page. I was trying to adjust > the padding around the large image using the new image's dimensions. I > pieced together this image preloading code (see below), but I don't > fully understand it (is it just loading the new image into the DOM to > be able to access its dimensions?) and I don't know if it's the best > way to go about it. > > Many thanks for any advice, > Nora Brown > > $(document).ready(function(){ > >$(".thumbs a").click(function(){ > >var largePath = $(this).attr("href"); >var largeAlt = $(this).attr("title"); > >// Image preload process >var imagePreloader = new Image(); >imagePreloader.src = largePath; >imagePreloader.onload = function() { >alert(imagePreloader.height); >}; > >$("#largeImg img").attr({ src: largePath, alt: largeAlt }); >return false; >}) > > }); >
[jQuery] Re: Can I get the contents from respose by ajax
I would also suggest to use $load() function in this case. Since it would make your code much readable. $('aa.php #a', {a:123}, function(res){ // res is a responce content }); Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Fri, Jan 9, 2009 at 11:11 PM, dropcube wrote: > > You can also try with $.load that allows you to specify a jQuery > selector in the URL.
[jQuery] Re: How it should be done?
Or if you have just one ul on your page, simply: $('ul li').hover( function () { $(this).addClass("columnSelected"); }, function () { $(this).removeClass("columnSelected"); } ); You may find "jQuery HowTo" useful - http://jquery-howto.blogspot.com On Fri, Jan 9, 2009 at 10:47 PM, Paul Mills wrote: > > Hi, > > I assume the elements are wrapped in a . So first give the > a unique ID so it's easy to identify. So code looks a bit like > this: > > column 1 > column 2 > column 3 > > > Now you can code the one jQuery command to operate on all s within > the : > $('#columns li').hover( > function () { >$(this).addClass("columnSelected"); > }, > function () { >$(this).removeClass("columnSelected"); > } > ); > > Paul > > On Jan 8, 2:53 pm, zibi wrote: >> I have something like this: >> >> $("li.column1").hover( >> function () { >> $("li.column1").addClass("columnSelected"); >> }, >> function () { >> $("li.column1").removeClass("columnSelected"); >> } >> ); >> >> $("li.column2").hover( >> function () { >> $("li.column2").addClass("columnSelected"); >> }, >> function () { >> $("li.column2").removeClass("columnSelected"); >> } >> ); >> >> $("li.column3").hover( >> function () { >> $("li.column3").addClass("columnSelected"); >> }, >> function () { >> $("li.column3").removeClass("columnSelected"); >> } >> ); >> >> and so on ... >> >> $("li.column31").hover( >> function () { >> $("li.column31").addClass("columnSelected"); >> }, >> function () { >> $("li.column31).removeClass("columnSelected"); >> } >> ); >> >> So I have 31 times the same thing only class number is changing. How >> can I do this i simpler way? >> >> Thanks
[jQuery] Re: Need help with a Jquery toggle bug in my menu's
@serpicolugnut: read my previous post!!! Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Fri, Jan 9, 2009 at 7:06 PM, serpicolugnut wrote: > > > I've got a full width drop down menu setup, using jquery's toggle to > show/hide the hidden divs when the user clicks on the one of the > elements or any of it's children. > > The problem I'm having (and it's kind of hard to reproduce), is that if the > user has their mouse over one of the items while the page is loading, > the toggle becomes confused, and believes that on is off and off is on. > Basically giving you a flickering menu. > > Here's my Jquery code: > >$(document).ready(function(){ >$("li.main-nav").bind("mouseenter mouseleave", function(){ >$(this).children('div').toggle(); >$(this).toggleClass('menu-on'); >return false; >}); > }); > > And the URL of the test case: > > http://dl.getdropbox.com/u/21984/menu_test/menu_test.html > > I had figured if I told Jquery to hide all of the divs before I introduce > the toggle function that would solve the problem, and tried using a piece of > code that looks like this: > > $(document).ready(function(){ >$("li.main-nav").children('div').hide(); >}); > > ...but that didn't help. > > Does anyone have any ideas on how I could fix this? > -- > View this message in context: > http://www.nabble.com/Need-help-with-a-Jquery-toggle-bug-in-my-menu%27s-tp21372944s27240p21372944.html > Sent from the jQuery General Discussion mailing list archive at Nabble.com. > >
[jQuery] Re: jQuery Storage?
Have you tried http://plugins.jquery.com Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Fri, Jan 9, 2009 at 9:27 PM, aldana wrote: > > > Hi, > > am looking for the same. Is there any update (since the first post on March > '08) on this? Really want to avoid inclusion of different library-products. > > thnx. > > > timothy...@gmail.com wrote: >> >> >> Is there an equivalent jQuery plugin? >> >> http://ajaxian.com/archives/dojo-storage-updated-for-10 >> >> > > > - > manuel aldana > aldana((at))gmx.de > software-engineering blog: http://www.aldana-online.de > -- > View this message in context: > http://www.nabble.com/jQuery-Storage--tp16097220s27240p21375496.html > Sent from the jQuery General Discussion mailing list archive at Nabble.com. > >
[jQuery] Re: jquery abstraction/widget for fixed panel at bottom page
My bad, the plugin is a little crappy :( Forget the javascript use CSS!!! Here is to get you started: http://www.google.com/search?q=bottom+footer+css Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Fri, Jan 9, 2009 at 9:25 PM, aldana wrote: > > > i guess i will do the CSS way (without JS involved). Found a good resource > (which so far worked on all browsers I tested so far). > > http://tagsoup.com/cookbook/css/fixed/#gtev5 > > > aldana wrote: >> >> hi, >> >> i read that you can use following for a html-snippet which should be fixed >> at bottom page: >> style="position: fixed; bottom: 0px;" >> >> but it does not seem to work with all browsers (e.g. IE6). does jquery >> provide an abstraction for fixed-style box at the bottom of the page? >> >> thanks. >> > > > - > manuel aldana > aldana((at))gmx.de > software-engineering blog: http://www.aldana-online.de > -- > View this message in context: > http://www.nabble.com/jquery-abstraction-widget-for-fixed-panel-at-bottom-page-tp21372949s27240p21375491.html > Sent from the jQuery General Discussion mailing list archive at Nabble.com. > >
[jQuery] Re: Preload images for jQuery Cycle Plugin
Totally and whole heartedly agree :) It was late and I was kinda only seeing new Image() method. My bad.. Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Fri, Jan 9, 2009 at 9:23 PM, Karl Swedberg wrote: > On Jan 9, 2009, at 9:11 AM, jQuery Lover wrote: > > Here is something from top of my head: > > $(function () { > var imgs = new Array(); > imgs[0] = 'images1.jpg'; > imgs[2] = 'images2.jpg'; > imgs[3] = 'images3.jpg'; > imgs[4] = 'images4.jpg'; > imgs[5] = 'images5.jpg'; > > var $img = new Image(); > > for(var i in imgs){ >$($img) > .load(function () { >checkFinal(); > }) > .attr('src', imgs[i]); >} > > }); > > > The above seems a little overkill to me. I'm not sure why, for example, you > need to declare var imgs = new Array() and why you skip imgs[1]. Also, I > think it makes more sense to use a plain for loop rather than a for-in loop > when iterating through an array. I might be missing something, but couldn't > it be done more simply like this? ... > for (var i=1; i <= 5; i++) { > $('') > .attr('src', 'images'+i+'.jpg') > .load(function () { >checkFinal(); > }); > } > > --Karl
[jQuery] Re: if statement testing for null value
This code is just beautiful :) Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Fri, Jan 9, 2009 at 8:38 PM, MorningZ wrote: > > $('#equipmentNumber, #description').keyup(checkSubmit); > $('#type, #department, #location').change(checkSubmit); > > function checkSubmit() { > $('#submit').attr('disabled', !($('#equipmentNumber').val() && >$('#description').val() && $('#type').val() && >$('#department') && >$('#location').val() )); > } >
[jQuery] Re: Does anyonw know a jQuery plug-in like Magic Zoom
Not at all. There are some alternatives. A little different approach to zooming: http://valid.tjp.hu/tjpzoom/ Read jQuery HowTo Resource - http://jquery-howto.blogspot.com 2009/1/9 Nguyễn Quốc Vinh : > Wow! Fantastic! Thanks so much! > This is really useful to me! Thanks again! >
[jQuery] Re: [validate] message containers and valid XHTML markup?
Martin probably just concerned about the characters in classname ({:,}). Well they are valid in class names in XHTML 1.0 strict. So no wories :) Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Fri, Jan 9, 2009 at 2:19 PM, Jörn Zaefferer wrote: > I don't see how that isn't valid XHTML. Apart from that, could you clarify > "error containers"? What do you mean? > > Jörn > > On Fri, Jan 9, 2009 at 12:40 AM, martin wrote: >> >> From what I can make of the documentation, the only way to use >> validation containers is to put something like... >> >> class="{required:true,minlength:3}" >> >> into your HTML form elements. Now this works just fine for me, >> however, its not valid XHTML. >> >> Is there any way to have valid XHTML and use error containers? > >
[jQuery] Re: Sorting a list of objects ( not in table)
This is easy. All you have to do is select your list items then get them as an array and then user javascript array's native sort method like this: var rows = $('ul#searchResults li').get(); rows.sort(function(a, b) { if (a.CustomProperty < b.CustomProperty) return -1; if (a.CustomProperty > b.CustomProperty) return 1; return 0; }); Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Fri, Jan 9, 2009 at 12:46 PM, Ajay wrote: > > Hi all, > > I have a list of objects that I represent in a search result and I > need following features.. on the search ressult page > > pagination.. filtering and sorting on basis of some parameters.. > e.g. > http://tinyurl.com/7uldsd > > I found lot of plugins for doing all this in tables and representing > sortable values in columns.. but I don't want to do that and want to > represent the results in the list form as in the example URL > Can any one point to some plugin or code using which I can do > this.. ?? Any advice or pointers on how to go about doing this is also > most welcome > > > Thanks!
[jQuery] Re: attr('type') gives me checkbox instead of radio
I just checked. I am getting "radio"! Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Fri, Jan 9, 2009 at 7:47 AM, bob wrote: > > Female > Male > > var type = #('inp...@name=gender]').attr('type'); > > alert(type); > > Why do I get checkbox instead of radio?
[jQuery] Re: Swap Image when click
$('#placeWithYourImages a').click(function(){ var href = $(this).attr('href'); $('img', this).attr('src', href); return false; }); This code changes only once and it is very primitive. You may wanna add an if statement to check if the href is equal to src, etc. Or add some extra code to make it toggle on each image click. Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Fri, Jan 9, 2009 at 7:00 AM, jeffreych...@gmail.com wrote: > > Hi devs, > > I kinda new with jquery and would like to ask, has anyone tried to use > jquery to swap images when click. Its a linked image. SO when you > click the image it would swap into another one. > > Thanks. >
[jQuery] Re: Getting an array via $.post
You need to echo your array in php in json format. To do this you need a json class in your php code. Here is to get you started: http://www.google.com/search?q=json+php+class Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Fri, Jan 9, 2009 at 1:58 AM, emmj...@gmail.com wrote: > > How would I go about getting an array from a php script. As I > understand it the data returned to $.post is only things that are > echoed in the php file. I've tried using return $array; in php but it > doesn't work. > > Any help would be greatly appreciated. >
[jQuery] Re: jQuery-dependent TouchGraph Visualization (experiment)
Nice work. I should take some time and look through your code. Great job. Here are some performance test (caching in jquery) http://jquery-howto.blogspot.com/2008/12/caching-in-jquery.html Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Thu, Jan 8, 2009 at 11:36 PM, David Decraene wrote: > > Well, suprisingly there was an issue with drawing. > The script made an overzealous use of the jquery function > $element.offset(); > Storing the position as variable instead of accessing it by offset() > led to a very notable increase in performance. > > See demo at http://jowl.ontologyonline.org/TouchGraph.html > > > > On 8 jan, 08:37, David Decraene wrote: >> The great thing of html of course is that you can use css, means you >> can style it easily (demo has very basic styling, some rounded corners >> in firefox). >> Not sure how flexible styling in raphael is, I'm not familiar enough >> with it. >> Also don't think canvas or svg will be any faster, because the issue >> is not with drawing the changes, but with calculating the position of >> each node (=Javascript Math). >> >> On Jan 8, 2:27 am, Ricardo Tomasi wrote: >> >> > using "NO" Canvas or SVG is not that great a feature is it? :) >> >> > Make that use raphael.js and it's all set! >> >> > On Jan 7, 5:13 pm, David Decraene wrote: >> >> > > Thanks! >> >> > > It does need some computations that scale exponentially with the >> > > amount of nodes shown... >> > > but I think it seems to perform ok with a not too high amount of >> > > nodes, for an implementation that only uses html elements. Who nows, >> > > with future browsers (or a better algorithm :)) things might scale >> > > better... >> >> > > Greetings >> > > David >> >> > > On 7 jan, 19:00, Joe wrote: >> >> > > > Very impressive! Seems a bit sluggish at times in FF 3.0.5, but nice >> > > > work! >> >> > > > Joe >> >> > > > On Jan 7, 5:12 am, David Decraene wrote: >> >> > > > > I had some fun creating a pure HTML-DOM based Force-directed graph >> > > > > layout, similar to a touchgraph (http://www.touchgraph.com/) view. >> >> > > > > Built with the help of jQuery (hereby again: wonderful library), no >> > > > > canvas or SVG used (only DOM manipulations). >> >> > > > > You can see an experimental demo >> > > > > at:http://jowl.ontologyonline.org/TouchGraph.html. >> > > > > and the blog >> > > > > post:http://ontologyonline.blogspot.com/2009/01/experimental-touchgraph-vi >> >> > > > > Room for lot's of improvement, but nevertheless quite happy with the >> > > > > result already. >> >> > > > > David Decraenehttp://ontologyonline.org
[jQuery] Re: How to access a jQuery object instance?
You mean jquery properties or some element that you selected using jquery? Just in case: $('.inputfield').val(); $('a').href(); Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Thu, Jan 8, 2009 at 9:06 PM, WoutervD wrote: > > Hello there, > > I would like to know how i can access properties of a jQuery object > instance. > I have the following javascript: > http://paste.pocoo.org/show/U9Gsy68MKP9LvvAvqGI6/ > > I would like to access the instance from my HTML file and pass value's > > >jObject.sValue = "a value :)"; > > > How can I do this? > > The way jQuery is written confuses me a little (just started using it) >
[jQuery] Re: How to access a jQuery object instance?
See: http://docs.jquery.com/Attributes http://docs.jquery.com/Manipulation Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Thu, Jan 8, 2009 at 9:06 PM, WoutervD wrote: > > Hello there, > > I would like to know how i can access properties of a jQuery object > instance. > I have the following javascript: > http://paste.pocoo.org/show/U9Gsy68MKP9LvvAvqGI6/ > > I would like to access the instance from my HTML file and pass value's > > >jObject.sValue = "a value :)"; > > > How can I do this? > > The way jQuery is written confuses me a little (just started using it) >
[jQuery] Re: create an array from file contents
Pass contents of your file as comma seperated values and then expload(',') to an array. Or parse serverside and return as a json. Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Thu, Jan 8, 2009 at 10:11 PM, Eyveneena wrote: > > is there a way to create an array with a maximum number of entries > automatically based on file contents with jQuery? >
[jQuery] Re: Jquery Calling Servlet
Create a new window and direct it to your servlet url then onload.close(); Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Thu, Jan 8, 2009 at 7:08 PM, ruquia wrote: > > Hi i am calling a servlet using JQuery and my servlets create an excel > file at runtime and provides the option for the user to open save or > cancel the file created > > JQuery code is > > $.post("../reports/BillIDPropIDExcelExport",{csvstring: $ > ("#vname1").val(),count:$("#vname2").val(),propType:$("#vname3").val > (),instValue:$("#vname4").val()},function(data){ >alert(data);document.body.style.cursor="default"; }); > > > > and my servlets that creates the file at runtime is > > try >{ >HSSFWorkbook wb = new HSSFWorkbook(); >HSSFSheet sheet = wb.createSheet("Customer Details > Connection > Fee"); > > HSSFDataFormat format = wb.createDataFormat(); > HSSFCellStyle cstyle; > > cstyle = wb.createCellStyle(); > > cstyle.setDataFormat(format.getFormat("#,###,###.00")); > > > > >HSSFRow row = sheet.createRow((short)0); >HSSFCell c0=row.createCell((short)0); >HSSFCell c1=row.createCell((short)1); >HSSFCell c2=row.createCell((short)2); > > > > > >c0.setCellValue("CHAR_PREM_ID"); >c1.setCellValue("SA_TYPE_CD"); >c2.setCellValue("UOM_CD"); > > > > c0.setCellStyle(style); > c1.setCellStyle(style); > c2.setCellStyle(style); > > > > >String acplotnumber="",finalcsvstring="",finalacplotnumber1=""; > >String csvstring=request.getParameter("csvstring"); >System.out.println(csvstring); >String count=request.getParameter("count"); >System.out.println(count); >String instValue1=request.getParameter("instValue"); >String propType1=request.getParameter("propType"); > > >if(propType1.length()==4) >propType="'CONBASE','CONGROW'"; >else >propType="'"+propType1+"'"; > >d= new OracleDatabaseConnectionPROD(); >connection=d.connect(); >//System.out.println("OracleDatabaseConnectionPROD"); > > > > stmt = connection.createStatement(); > connection.setAutoCommit(false); > >{ > >rs=stmt.executeQuery("SELECT A.CHAR_PREM_ID, SA_TYPE_CD, > F.UOM_CD, > C.BILL_ID, SUM(CALC_AMT) as CALC_AMOUNT from Customers"); > > > >while(rs.next()) >{ > >String CHAR_PREM_ID=rs.getString(1); >String SA_TYPE_CD=rs.getString(2); >String UOM_CD=rs.getString(3); >String BILL_ID=rs.getString(4); >float CALC_AMOUNT=rs.getFloat(5); > > > >HSSFCellStyle style1 = wb.createCellStyle(); >HSSFFont font1 = wb.createFont(); >font1.setFontHeightInPoints((short)8); >style1.setFont(font1); > > >row = sheet.createRow((short)j); > >// bold > > >HSSFCell cell0 =row.createCell((short)0); >HSSFCell cell1 =row.createCell((short)1); >HSSFCell cell2 =row.createCell((short)2); > >cell0.setCellValue(CHAR_PREM_ID); >cell1.setCellValue(SA_TYPE_CD); >cell2.setCellValue(UOM_CD); > > > >cell0.setCellStyle(style1); >cell1.setCellStyle(style1); > > > >j++; > >} >//FileOutputStream fileOut = new FileOutputStream(fname > +"ExtractBillID"+dateFormat+".xls"); >//wb.write(fileOut); >
[jQuery] Re: jQuery - Binding to Ajax Event
var canI = true; $(window).bind("ajaxComplete", function() { function1(); }); function function1(){ if(canI){ // your function1() code here } }; Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Thu, Jan 8, 2009 at 5:02 PM, goodsanket wrote: > > Hi all > > I am developing a portal and i am kind of stuck. > I am using multiple AJAX calls to get data dynamically from a JSON > file. > > In one page I am making 2 AJAX calls, and I want to call a function on > call back from AJAX. I found out a way to do it, its something like > this, > > >$(window).bind("ajaxComplete", function() { >function1(); >}); > > Now problem here is, function1 is being called twice, on each AJAX > callback. Is there any way so that i can call function1 only once. > > Thanks > >
[jQuery] Re: Does anyonw know a jQuery plug-in like Magic Zoom
I have a twitter account but I don't use it much (http://twitter.com/uzbekjon). You might find my delicious bookmarks useful: General web development: http://delicious.com/uzbekjon jQuery related only: http://delicious.com/uzbekjon/jquery Or of course my jquery tips and tricks blog: http://jquery-howto.blogspot.com 2009/1/10 Nguyễn Quốc Vinh : > Wow! What a wonderful! > Do you have twitter? I want to follow you! > Or Yahoo ID or something like that? > > > 2009/1/10 jQuery Lover >> >> Not at all. There are some alternatives. >> >> A little different approach to zooming: http://valid.tjp.hu/tjpzoom/ >> >> Read jQuery HowTo Resource - http://jquery-howto.blogspot.com >> >> >> >> 2009/1/9 Nguyễn Quốc Vinh : >> > Wow! Fantastic! Thanks so much! >> > This is really useful to me! Thanks again! >> > > > > > -- > / > * Người ta thưởng chỉ chú ý đến những kẻ lên như diều gặp gió! Nhưng hỡi ôi, > chỉ có cát, bụi và lông hồng mới là những thứ lên nhanh nhất > */ >
[jQuery] Re: jQuery Storage?
No, it's just the first place to look at :) Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Sat, Jan 10, 2009 at 3:13 PM, aldana wrote: > > > yes, I had a look. But couldn't find anything. Did I overlook something? >
[jQuery] Re: Is there any plugin or script for making a tree view multi-select
You can bind your own click event to list items of tree-view and keep track of selected items. Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Thu, Jan 8, 2009 at 6:52 PM, Pradeep Garikipati wrote: > Hi Friends, > > I am using jQuery tree-view plugin for generating a tree from a list. It > worked with-out problems, but now I have a requirement where I have to > provide multi-select option in that tree. > > I researched for quite some time to figure out a way to include multi-select > functionality in the tree, but failed to get one. But I am getting a feeling > that there should be a solution for this and so I am here. > > Hope some-one will suggest me a way to get this functionality working. > > Thanks. > > Regards, > -Pradeep > www.intelligrape.com >
[jQuery] Re: Need help with a Jquery toggle bug in my menu's
I suggest you take the other way. We shall not forget about beloved CSS :) Try this: $(document).ready(function(){ $('#nav li') .bind('mouseenter mouseleave', function(){ $(this).toggleClass('menu-on'); }); }); In your CSS file add: #nav div{ display:none; } #nav .menu-on div{ display:block; } Drawback is if the user is on while page is being he will not see the div at first. He will need to move his mouse out and then in. To workaround this problem we can add an extra .hover() event listener to li's ... Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Sat, Jan 10, 2009 at 9:12 PM, Ted wrote: > > Sorry, very new to Jquery (and not that skilled at js to begin with). > > I think I follow what you are saying, but not having a good grasp of > the jquery syntax, I'm not sure exactly how to properly execute. > Here's what I came up with, but it's not working, so I know there's a > problem somewhere, but am unable to fix: >
[jQuery] Re: J QUERY - COM Objectscombination is possible or not !!!!
You can not call your com objects in jQuery. All you can do is request them (it will not parse it in any way). Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Sun, Jan 11, 2009 at 9:58 AM, bharani kumar wrote: > > Hi every one, > > > Am working on the PHP COM Objects , > > When i run the com object, it take around 50 sec for loading, so for get the > better performance we have to go to jquery, > > > But i dont know how to call the com objects file php, > > But i know if we want to call the php file we have to call like this > > $('#divid').load('example.php') > > Can any tell below is my COM OBJECT IN PHP CODE, > > Can you tell now , how can i use the jquery for the below snippet, > > Thanks > > $word = new COM("word.application") or die ("Could not initialise MS Word > object."); > $word->Documents->Open(realpath("sample.doc")); > > // Extract content. > $content = (string) $word->ActiveDocument->Content; > > echo $content; > > $word->ActiveDocument->Close(false); > > $word->Quit(); > $word = null; > unset($word); > ?> > > > > How to call the com Object in JQUERY , > > > > > -- > உங்கள் நண்பன் > பரணி குமார் > > Regards > B.S.Bharanikumar > > POST YOUR OPINION > http://bharanikumariyer.hyperphp.com/ > http://bharanikumariyerphp.site88.net/ >
[jQuery] Re: COM Objectscombination is possible or not !!!!
If you do $.load('yourfile.php') you will get the contents of your word document to jquery. Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Sun, Jan 11, 2009 at 10:16 AM, bharani kumar wrote: > > But am using the php combination know , so it is not possible to call like > > load('phpfile name '); ? > > > Sorry , i dont jquery, > > > > On Sun, Jan 11, 2009 at 10:38 AM, jQuery Lover > wrote: >> >> You can not call your com objects in jQuery. All you can do is request >> them (it will not parse it in any way). >> >> Read jQuery HowTo Resource - http://jquery-howto.blogspot.com >> >> >> >> On Sun, Jan 11, 2009 at 9:58 AM, bharani kumar >> wrote: >> > >> > Hi every one, >> > >> > >> > Am working on the PHP COM Objects , >> > >> > When i run the com object, it take around 50 sec for loading, so for get >> > the >> > better performance we have to go to jquery, >> > >> > >> > But i dont know how to call the com objects file php, >> > >> > But i know if we want to call the php file we have to call like this >> > >> > $('#divid').load('example.php') >> > >> > Can any tell below is my COM OBJECT IN PHP CODE, >> > >> > Can you tell now , how can i use the jquery for the below snippet, >> > >> > Thanks >> > >> > > > $word = new COM("word.application") or die ("Could not initialise MS >> > Word >> > object."); >> > $word->Documents->Open(realpath("sample.doc")); >> > >> > // Extract content. >> > $content = (string) $word->ActiveDocument->Content; >> > >> > echo $content; >> > >> > $word->ActiveDocument->Close(false); >> > >> > $word->Quit(); >> > $word = null; >> > unset($word); >> > ?> >> > >> > >> > >> > How to call the com Object in JQUERY , >> > >> > >> > >> > >> > -- >> > உங்கள் நண்பன் >> > பரணி குமார் >> > >> > Regards >> > B.S.Bharanikumar >> > >> > POST YOUR OPINION >> > http://bharanikumariyer.hyperphp.com/ >> > http://bharanikumariyerphp.site88.net/ >> > > > > > -- > உங்கள் நண்பன் > பரணி குமார் > > Regards > B.S.Bharanikumar > > POST YOUR OPINION > http://bharanikumariyer.hyperphp.com/ > http://bharanikumariyerphp.site88.net/ >
[jQuery] Re: Best way to preload an image to obtain dimensions
It is creating a DOM element () and then binding a load event listener to it. Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Sat, Jan 10, 2009 at 11:37 PM, nabrown78 wrote: > > More specifically, I don't understand these couple of lines: > > img = $('').load(function(){ > var pld = $(this), imgHeight = pld.height(); > > On Jan 9, 12:43 pm, Eric Garside wrote: >> Try this function out: >> >> $(function(){ >>var largeimg = $('#largeImg img'); >>$('.thumbs a').each(function(){ >> var jQ = $(this), >> path = jQ.attr('href'), >> alt = jQ.attr('title') || '', >> img = $('').load(function(){ >>var pld = $(this), imgHeight = pld.height(); >>jQ.click(function(){ >> largeimg >> .css({ >> height: /* Do whatever you need to do here to >> fix your padding. Image height stored in local variable "imgHeight" */ >> }) >> .attr({src: path, title: alt}); >> }); >> }); >> img.attr('src', path); >>}); >> >> }); >> >> It *should* preload your images, and set up the correct onclick events >> to set the #largeImg img.src to the proper path >> >> - Hide quoted text - >> >> On Jan 8, 6:06 pm, nabrown78 wrote: >> >> > Hi All, >> > I am building a simple little gallery where you click on a thumbnail, >> > and a larger image displays on the same page. I was trying to adjust >> > the padding around the large image using the new image's dimensions. I >> > pieced together this image preloading code (see below), but I don't >> > fully understand it (is it just loading the new image into the DOM to >> > be able to access its dimensions?) and I don't know if it's the best >> > way to go about it. >> >> > Many thanks for any advice, >> > Nora Brown >> >> > $(document).ready(function(){ >> >> > $(".thumbs a").click(function(){ >> >> > var largePath = $(this).attr("href"); >> > var largeAlt = $(this).attr("title"); >> >> > // Image preload process >> > var imagePreloader = new Image(); >> > imagePreloader.src = largePath; >> > imagePreloader.onload = function() { >> > alert(imagePreloader.height); >> > }; >> >> > $("#largeImg img").attr({ src: largePath, alt: largeAlt }); >> > return false; >> > }) >> >> > });
[jQuery] Re: COM Objectscombination is possible or not !!!!
I don't think so. Because you were parsing your COM elements using php before jquery and still parsing them with php. The only performance increase you may see is the page load. The page with jquery will load first and then jquery will load Com object contents. This will still take original 50 secs. Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Sun, Jan 11, 2009 at 10:35 AM, bharani kumar wrote: > Refer few no of link > > PHP-JQUERY COMBINATION PLZ > > On Sun, Jan 11, 2009 at 11:01 AM, bharani kumar > wrote: >> >> So , it is not possible to increase the com object performance using >> jquery, Am correct sir ? >> >> >> >> On Sun, Jan 11, 2009 at 10:51 AM, jQuery Lover >> wrote: >>> >>> If you do $.load('yourfile.php') you will get the contents of your >>> word document to jquery. >>> >>> Read jQuery HowTo Resource - http://jquery-howto.blogspot.com >>> >>> >>> >>> On Sun, Jan 11, 2009 at 10:16 AM, bharani kumar >>> wrote: >>> > >>> > But am using the php combination know , so it is not possible to call >>> > like >>> > >>> > load('phpfile name '); ? >>> > >>> > >>> > Sorry , i dont jquery, >>> > >>> > >>> > >>> > On Sun, Jan 11, 2009 at 10:38 AM, jQuery Lover >>> > wrote: >>> >> >>> >> You can not call your com objects in jQuery. All you can do is request >>> >> them (it will not parse it in any way). >>> >> >>> >> Read jQuery HowTo Resource - http://jquery-howto.blogspot.com >>> >> >>> >> >>> >> >>> >> On Sun, Jan 11, 2009 at 9:58 AM, bharani kumar >>> >> wrote: >>> >> > >>> >> > Hi every one, >>> >> > >>> >> > >>> >> > Am working on the PHP COM Objects , >>> >> > >>> >> > When i run the com object, it take around 50 sec for loading, so for >>> >> > get >>> >> > the >>> >> > better performance we have to go to jquery, >>> >> > >>> >> > >>> >> > But i dont know how to call the com objects file php, >>> >> > >>> >> > But i know if we want to call the php file we have to call like this >>> >> > >>> >> > $('#divid').load('example.php') >>> >> > >>> >> > Can any tell below is my COM OBJECT IN PHP CODE, >>> >> > >>> >> > Can you tell now , how can i use the jquery for the below snippet, >>> >> > >>> >> > Thanks >>> >> > >>> >> > >> >> > $word = new COM("word.application") or die ("Could not initialise MS >>> >> > Word >>> >> > object."); >>> >> > $word->Documents->Open(realpath("sample.doc")); >>> >> > >>> >> > // Extract content. >>> >> > $content = (string) $word->ActiveDocument->Content; >>> >> > >>> >> > echo $content; >>> >> > >>> >> > $word->ActiveDocument->Close(false); >>> >> > >>> >> > $word->Quit(); >>> >> > $word = null; >>> >> > unset($word); >>> >> > ?> >>> >> > >>> >> > >>> >> > >>> >> > How to call the com Object in JQUERY , >>> >> > >>> >> > >>> >> > >>> >> > >>> >> > -- >>> >> > உங்கள் நண்பன் >>> >> > பரணி குமார் >>> >> > >>> >> > Regards >>> >> > B.S.Bharanikumar >>> >> > >>> >> > POST YOUR OPINION >>> >> > http://bharanikumariyer.hyperphp.com/ >>> >> > http://bharanikumariyerphp.site88.net/ >>> >> > >>> > >>> > >>> > >>> > -- >>> > உங்கள் நண்பன் >>> > பரணி குமார் >>> > >>> > Regards >>> > B.S.Bharanikumar >>> > >>> > POST YOUR OPINION >>> > http://bharanikumariyer.hyperphp.com/ >>> > http://bharanikumariyerphp.site88.net/ >>> > >> >> >> >> -- >> உங்கள் நண்பன் >> பரணி குமார் >> >> Regards >> B.S.Bharanikumar >> >> POST YOUR OPINION >> http://bharanikumariyer.hyperphp.com/ >> http://bharanikumariyerphp.site88.net/ > > > > -- > உங்கள் நண்பன் > பரணி குமார் > > Regards > B.S.Bharanikumar > > POST YOUR OPINION > http://bharanikumariyer.hyperphp.com/ > http://bharanikumariyerphp.site88.net/ >
[jQuery] Re: [validate] Doesnt work with Struts2 generated forms
There is another way too. You can simply quote your class names like this: "department.code":{required:true} Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Sat, Jan 10, 2009 at 7:10 PM, Jörn Zaefferer wrote: > Absolutely! Documented here: > http://docs.jquery.com/Plugins/Validation/Reference#Fields_with_complex_names_.28brackets.2C_dots.29 > > Jörn > > On Sat, Jan 10, 2009 at 8:33 AM, Kashif wrote: >> >> This is a very useful plugin that I use for all my projects. >> Unfortunately, I cannot use it with any of my Java Struts2 projects >> because I need to assign the name attributes of my input fields with >> periods in them. >> for example >> >> >> Validate rules for this dont work, underneath is an example. >> >>$("#setup-department-save") >>.validate( >>{ >>rules: >>{ >>department.code:{required:true} >>} >>} >>); >> >> >> Is there some way I can still use this plugin? >> Thanks >> >
[jQuery] Re: z-index issue
I guess this was solved in your later repost. Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Sat, Jan 10, 2009 at 12:05 PM, godzilla74 wrote: > > Hi, > > I'm just learning jQuery and working on stuff for fun, but right now, > I am stumped! I have a hover animation happening with 4 small > images. Think of them as being in a small box with some padding to > separate each image. These images are small and absolutely positioned > so i could change the actual size. Just to make sure you know what I > mean, here is the HTML & CSS: > > > > /* the images are actually much larger, we just want to show a snippet > */ > span.resize{ >width:100px; >height:75px; >overflow:hidden; >padding:3px; >} > > span#pic1, span#pic2, span#pic3, span#pic4{ >position:absolute; >z-index:-1; >} > > span#pic1{ >margin:0; >} > > span#pic2{ >margin:0 0 0 110px; >} > > span#pic3{ >margin:85px 0 0 0; >} > > span#pic4{ >margin:85px 0 0 110px; >} > > > > > span> > span> >> > span> > > > > When a user hovers over an image, it actually becomes larger and the z- > index increases to make sure it displays over the other images (which > works fine). However, upon the hover out state, the z-index seems to > jump up in the chain and run before the animation! So, as the image > is going back to it's normal (smaller) state, the other images around > it show up in front as if they have a higher z-index than the hovered- > out image. I don't understand why this is and I can't figure out how > to fix it for the life of me! Any help would be much appreciated! > Here is the jQuery I have thus far: > >//original span.resize values that we set in the CSS >var oWidth = $('span.resize').width(); >var oHeight = $('span.resize').height(); > >//hover over the span image to start the function >$('span.resize').hover(function(){ >$(this) >.stop() >.css('z-index','99') >.animate({ >width:$('span.resize img').width(), >height:$('span.resize img').height() >},1000) >}, >function(){ >$(this) >.css('z-index','1') >.animate({ >width:oWidth, >height:oHeight >},1000) >}); > }); > > > > Thanks! >
[jQuery] Re: IMAP PHP is possible or not !!!!
The main question is: What is taking up the time? Is it php script that connects through imap and retrieves mail list or is it the mail list download time? Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Sun, Jan 11, 2009 at 10:46 AM, bharani kumar wrote: > Yes, Ok, > > Here another question , this is new question, > > am working in imap php, > > it take too much time for load the inbox mail, > > any idea , to increase the speed, > > > On Sun, Jan 11, 2009 at 11:09 AM, jQuery Lover > wrote: >> >> I don't think so. Because you were parsing your COM elements using php >> before jquery and still parsing them with php. The only performance >> increase you may see is the page load. The page with jquery will load >> first and then jquery will load Com object contents. This will still >> take original 50 secs. >> >> Read jQuery HowTo Resource - http://jquery-howto.blogspot.com >> >>
Re: Fw: [jQuery] Re: IMAP PHP is possible or not !!!!
Sorry, what do you mean? - Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Sun, Jan 11, 2009 at 7:01 PM, bharani kumar wrote: > > So , need to increase the speed, i thing my english is very poor, > On Sun, Jan 11, 2009 at 7:30 PM, bharani kumar > wrote: >> >> retrieves mail list, it will take around 40 sec for retrieve mail list, so >> need to increase the >>>
[jQuery] Re: How to grab the filename (src attribute) of an image?
I believe he/she is binding an event with javascript not jquery's event binding. Webmaster you can refer to an element which was clicked with "this" keyword. So to get your image source just use "this.src" property. Example: The same when applying with event listeners... - Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Mon, Jan 12, 2009 at 6:05 PM, Mauricio (Maujor) Samy Silva wrote: > > $('img').click(function() { > var fileName = $(this).attr('src'); > alert(fileName); > }); > > Maurício > > -Mensagem Original- De: > Para: "jQuery (English)" > Enviada em: segunda-feira, 12 de janeiro de 2009 10:59 > Assunto: [jQuery] How to grab the filename (src attribute) of an image? > > >> >> Hi all, >> how do i grab the filename of an image? >> >> Situation now: >> i use "normal" javascript when clicking on an image and just inserted >> some jquery to post gamedata to update a gamepage with the help of the >> taconite plugin (returns xml-data), so far so good. >> >> I just miss one item => i need the filename (src attribute of the >> image) of the image on which was clicked, ut just can't figure out how >> to grab it. >> >> Thanks in advance for your help. >> >> > >
[jQuery] Re: Correct me!
User this sintax: (function ($) { // code goes here // Here "$" is a jQuery reference })(jQuery) More detailed description is here: http://jquery-howto.blogspot.com/2008/12/what-heck-is-function-jquery.html - Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Mon, Jan 12, 2009 at 12:51 PM, Bluesapphire wrote: > > Hi! > I have used following things in separate JS file so no conflict > will be there between JQUERY and other JS frameworks. > > a- > var dom = {}; > dom.query = jQuery.noConflict(true); > > b- > var jQ = jQuery.noConflict(); > > c- > jQuery.noConflict(); > > > But when I used jQ or others, FireBug gives error. > > But in usage of $ , there is no problem and all works fine. > > > Can someone solve my problem. > > Thanks in advance >
[jQuery] Re: [treeview] Expand the trees on the image and no link
Did I understand you correctly. Your html code is like this: link And you want to show tree content if user clicks on an image, but follows the link on anchor click? If so you should give you img's an "id" (or class, but id's are faster) and do this: $(document).ready(function(){ // Assume you wrapped your code to some $('#myTree img').click(function(){ // code to display your content }); }); - Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Mon, Jan 12, 2009 at 4:58 PM, cv wrote: > > Hello, > > I would like to know how to: > > - Permetre the conduct of a tree by clicking on the image (or file > folder with a +) but when and clicking on the hyperlink ( href="index.php"> blabla ) the tree does not take place. > > Thank you for your help. >
[jQuery] Re: Form validation, not typical name of input.
You might find this useful (just as a note for the future) http://docs.jquery.com/Frequently_Asked_Questions#How_do_I_select_an_element_that_has_weird_characters_in_its_ID.3F - Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Mon, Jan 12, 2009 at 6:40 PM, grassoalvaro wrote: > > Nevermind, it's working, problem was in other place. > > On 12 Sty, 14:19, grassoalvaro wrote: >> Hi, >> >> i have problem with validation for my form. For example: >> >> >> >> >> >> $('#valid').validation({ >> rules: { >> 'data[Order][login]': 'required', >> >> } >> }); >> >> The validation method above dosn't work. Where is the problem? With >> not typical name of input?
[jQuery] Re: Posting Repeating Ajax Requests
There is no option in jquery for auto requests in a set period of time. The javascript native setInterval() is a better option don't you think ?! - Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Mon, Jan 12, 2009 at 4:50 PM, Adeel Shahid wrote: > > Is there some like quering for repeating Ajax requests. > > like i want to query a url via ajax every 2 seconds is there an option > natively in jquery for that > > currently I am using setInterval('func()', 2000) > > i just wanted to know if there is anything natively available. >
[jQuery] Re: function text() in jquery
This is quite tricky. I could not figure out how to get the text (probably I should go home:) ). If there is no other solution here is a dirty trick: var tmp = $('#testText select'); //remove the select box $('#testText select').remove(); // get the text within the div var txt = $('#testText').text(); // put back the selectbox $('#testText').append(tmp); - Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Mon, Jan 12, 2009 at 7:01 PM, kazuar wrote: > > > anyone? > > > kazuar wrote: >> >> hello, Im kinda new in jquery so maybe its a begginer question. >> I have a page with a div containing some text and a combobox. >> something like that >> >> >> hello this is text and this is combobox >> 12> value='3'>3 >> >> I wrote a function which return the text from the div. >> >> alert($('#testText').text()); >> >> My problem is that the function also return the text inside the combobox. >> is there a way to filter out the combobox text? >> >> the only workaround I can think of is to wrap my text in another div and >> call its text. >> This workaround will be a bit complicated for me because the text on my >> page is dynamic and it can come after the input field or before the input >> field so I just want to get the text inside the div without the input >> fields text... (This only happens with combobox). >> >> tnx, >> Kazuar >> >> > > -- > View this message in context: > http://www.nabble.com/function-text%28%29-in-jquery-tp21410667s27240p21414973.html > Sent from the jQuery General Discussion mailing list archive at Nabble.com. > >
[jQuery] Re: load script regarding to value of textfield
Try this: $('#searchButton').click(function(){ var url = 'http://gdata.youtube.com/feeds/api/videos?q=</a>' + $('#searchText').val() + '&alt=json-in-script&callback=showMyVideos&max-results=7&format=5">'; // ajax functions to call $.ajax, $.load, $.get, $.post }); - Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Mon, Jan 12, 2009 at 1:49 PM, dirk w wrote: > > hello community, > i have some kind of a beginner question and i really would appreciate > if you could help me with that. > > when someone types a value into the textfield and clicks on "search" > or enter than the javascript line should be called regarding to the > entered value. this should happen without reloading the complete page. > > # FORM > > value="" size="30" maxlength="30"/> > class="button buttonText" value="Search" /> > > > # Script to call > http://gdata.youtube.com/feeds/api/</a> > videos?q=' + searchTerm + '&alt=json-in- > script&callback=showMyVideos&max-results=7&format=5"> > > see the "SearchTerm" in the js line, it should be replaced with the > value of the textfield. > > thank you very much in advance! > dirk >
[jQuery] Re: Dialog - Can't Copy or Select Text
You can set resizable option to true/false (read docs http://docs.jquery.com/UI/Dialog/dialog#options) - Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Mon, Jan 12, 2009 at 1:41 PM, sirmoreno wrote: > > Hi, > I Set up a JQuery Dialog in my site. > But in FF the user can't select or copy text from the Dialog. > And in IE Ctrl + C doesn't work after selecting a text. > Another Question: how to disable the resizing of the Dialog. > Thanks > Rafael. >
[jQuery] Re: select() not working
*type: $jQ("#country_id").val(my_value); - Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Wed, Jan 14, 2009 at 4:24 PM, Beres Botond wrote: > > > It seems you don't know what .select() should be used for. It has > absolutely nothing to do with selecting and option of a select box. > Read the docs carefully. > http://docs.jquery.com/Events/select > > Try this instead (assuming that #country_id is a select box): > > $jQ("#country_id]").value(my_value) > > > ocptime wrote: >> Hello There, >> >> I want to dynamically add a select option to an existing select >> dropdown when a new country is added. This i was able to do using: >> >> $jQ("#country_id option[value='new']").before(""+ name + ""); >> >> After that i want to get selected the just now appended country option >> and must change from the "--New Country--" . For that i used the select >> () as below: >> >> $jQ("#country_id option[value='" + value + "']").select(); >> >> This seems to be not working. >> >> Even if i put a static value this is not changing: >> >> $jQ("#country_id option[value='144']").select(); >> >> Any pointers ? >> >> Thanks in Advance, >> >> Regards >> ocptime
[jQuery] Re: syntax selector problem
Alternatively $("div").click(function(){ // all child p's $("p", this).show(); // first child p $("p:first", this).show(); // another way to select first child p $("p:eq(0)", this).show(); // etc. Other ways to select first child... :) }); ----- Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Wed, Jan 14, 2009 at 4:40 PM, naden wrote: > > If there is only one do $(this).children('p').show(); > if you just want to show the rirst do $(this).children > ('p:first').show(); > > On 14 Jan., 02:10, Matt caron wrote: >> If I have: >> >> $("div").click(function(){ >> >> //How do I do the following >> $(this + " > p").show(); >> >> }); >> >> I want to select the child p of the div I clicked, and I know there's >> proper syntax to it, but I am completely brainfarting on it. >> >> Thanks! >> Matt
[jQuery] Re: select() not working
OFFTOP: Ups, I meant *typo not *type (made a typo myself :) ) Sorry. - Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Wed, Jan 14, 2009 at 4:44 PM, Beres Botond wrote: > > Ah yeah, sorry I didn't pay enough attention there :p
[jQuery] Re: jQuery selector question - Having ":" in attribute name
You can not have special character in attribute names. (it's not valid markup) Documentation is saying that your should escape VALUE bit if it contains special characters. - Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Wed, Jan 14, 2009 at 2:11 PM, naden wrote: > > I'm using jQuery 1.2.6 and having an element with the attribute > ajax:id="46" > > Test Link > > According to http://docs.jquery.com/Selectors/attributeEquals#attributevalue > you have to escape ":" with double backslash like I did. > > alert( $( "a[ajax\\:id='46']" ).attr( 'href' ) ); > > I tried a lot, but it's not working? > > Any hint would be appreciated! > > thanks >
[jQuery] Re: Wiki Error trying to access Tabs, Datepicker on docs.jquery.com
I'm not getting this error. I remember a post that says that the doc's are hosted on different servers. So I guess I'm getting mine from not crushed server. I was quite interested of getting offline/downloadable version of jquery docs. Michael, maybe you find jquery cheatsheets useful: http://www.google.com/search?q=jquery+cheatsheet ----- Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Wed, Jan 14, 2009 at 2:50 PM, michael.hasenst...@googlemail.com wrote: > > Subject says it. When I try to access the online docs all I get is the > message below. Is there an alternative location, especially something > downloadable? I'd be grateful for such a link. > > Michael > > > MediaWiki internal error. > > Original exception: exception 'DBQueryError' with message 'A database > error has occurred > Query: BEGIN > Function: Database::begin > Error: 2006 MySQL server has gone away (localhost) > ' in /home/jquery/en/docs/includes/Database.php:694 >