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

2008-10-06 Thread Micky Hulse
Hi, I have this bit of code that runs on page load: $.get(token, function(txt) { $emailStory.append('input type=hidden name=ts value=' + txt + ''); }); But it triggers ajaxStart/ajaxStop... I have tried: $.ajax({ url: token, global: false }); But that does not seem to

[jQuery] [validate] required( dependency-expression ) for select

2008-10-06 Thread Vic
Hello all, i have a question in regard to jquery validate plugin. i am using an select control and for certain option value a user select , a textarea control will appear on the form, and i need to validate this textarea control. so i tried to use required(dependency-expression) to check only

[jQuery] Re: $(#mydiv).sortable is not a function error

2008-10-06 Thread AdrianMG
Sorry I wrote with error the question... the answer for my problem was that I copied some jQuery UI code in the jquery.js that's all :P Thank you! On 5 oct, 23:09, GARIL [EMAIL PROTECTED] wrote:  somediv should be preceded either by # or . like so... $(#somediv); or $(.somediv); On Oct

[jQuery] Re: div um zwei img erstellen

2008-10-06 Thread [EMAIL PROTECTED]
Hey, what's the name of this list? jQuery English??? ... Sorry, forgot, next time, I promise :-) Ralf thanks Neto -- Antonio Marin Neto Sun Certified Programmer for Java 2 Platform 1.4 Blog:http://netomarin.blogspot.com Blog:http://weblogs.java.net/blog/netomarin/ GTalk: [EMAIL

[jQuery] Re: Partial load strips out script tags?

2008-10-06 Thread Adrian Lynch
I haven't used a partial load in a while, but could it be you have a typo: $(#load_target).load(has_script.htm #script); Should be: $(#load_target).load(has_script.htm, #script); Adrian On Oct 6, 4:24 am, ctford [EMAIL PROTECTED] wrote: When I use .load() to pull in a whole page, script

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

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

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

2008-10-06 Thread Adrian Lynch
I take it you have defined your own ajaxStart/Stop? If so, can you maybe remove and then recreate them either side of the .get call? Adrian On Oct 6, 7:50 am, Micky Hulse [EMAIL PROTECTED] wrote: Hi, I have this bit of code that runs on page load: $.get(token, function(txt) {        

[jQuery] Re: Best practices: Wait to reference objects? Classes like PHP? How do you stay organized with little overhead?

2008-10-06 Thread ajpiano
$(#anElementThatIsNotInTheDOM) will always return true. what you want to check for is $(#anElementThatIsNotInTheDOM).length 0 or if you're feeling chipper slash efficient: documentGetElementById(anElementThatIsNotInTheDOM) it's common practise to save references to jQuery objects for

[jQuery] Re: Problem jQuery Selecting Input field

2008-10-06 Thread Adrian Lynch
Try this: script src=jquery-1.2.6.min.js/script script $(function() { alert($(input[id$='home']).val()); alert($(input[id$='street']).val()); }); /script form id=phone input id=home value=This is the value of phone:home / input

[jQuery] Re: jqueryPngFix and links on IE6

2008-10-06 Thread shortStormTrooper
@fazal position:relative on the link does not always work, it depends on the complexity of the link's relationship to its parents and to other elements on the page. Sometimes z-index can help, sometimes nothing in pure CSS/HTML will fix the problem... On Oct 5, 10:36 am, Fazal Khan [EMAIL

[jQuery] Re: Jquery and ASP.NET

2008-10-06 Thread David Meiser
In case you missed this [1] announcement, Microsoft is going to begin shipping jQuery with Visual Studio and ASP.NET MVC, unchanged. Don't look for a date or version or Service Pack as to when this will actually start shipping/be available for download. Based on the announcement, I would

[jQuery] Re: jCarousel Lite - callback function returning an array, but how do I get inside?

2008-10-06 Thread Adrian Lynch
One way is to use yourJQ.get(0), yourJQ.get(1) etc. But what about just selecting against it with: $(a selector goes here, yourJQ).doSomething(); Or: yourJQ.each(function(i) { alert(this); }); I'm sure someone will say not to use .get() but I can't remember the other way it's done ;)

[jQuery] Re: it doesn't work with HTML loaded dynamically

2008-10-06 Thread Will
an example of the use : http://w.rouvre.free.fr : )

[jQuery] Resize Delay?

2008-10-06 Thread BooZker
I am centering a absolutely positioned div by saying: var center_it =((window_size/2)-(wrapper_width/2)) then: $('#wrapper').css({left:center_it+'px'}); That's simple, but my problem is Firefox has a delay of almost half a second or more when resizing before it triggers the .resize function. So

[jQuery] Superfish - always display one of the submenus

2008-10-06 Thread iguana007
Hello there, I would like ask You if there is any possibility to always display one of the submenus. I would like have first submenu always expanded and other being expanded by hover of its parent list item. Thank You for any suggestions. Luke

[jQuery] AJAX Load two external files into separate divs

2008-10-06 Thread morningovermidnight
I am trying to use AJAX to load two external files into separate divs. I have one file loading into one div with no problem. I am thinking that if I can just repeat this action with the other url for the other external file and chain the two together so that a click on ONE link will load TWO

[jQuery] Re: problem when i click

2008-10-06 Thread MorningZ
Care to divulge what the problem is? On Oct 6, 3:27 am, ledaker [EMAIL PROTECTED] wrote: $(document).ready(function() { $('#button3').click( function(event){ alert(this.id); $ ('td:contains(1-2)').parent().find('td:gt(0)').addClass('InputSearch'); $('tr:odd').addClass('LinkCal');

[jQuery] Re: JQuery .draggable() - How can you make a linked image draggable?

2008-10-06 Thread Adrian Lynch
By clickable do you mean a hyperlink? If so, then I'd guess that your dragging the image out of the link. a href=img ...//a becomes: a href=/a img .../ So drag the a instead. This should still have the image inside. Just guessing mind, not had much experience with this myself. Adrian On

[jQuery] JQuery validate problem

2008-10-06 Thread Bill
I have a problem.where i use the jquey validate plugin for my project. I want to use the validate like this: s:textfield id=name name=userGroup.name/ but it does not work . i should make the id and name property as same. or named the id as cname and name is name if i use the struts2 framework

[jQuery] Re: Jquery and ASP.NET

2008-10-06 Thread George Adamson
To get around the server-side-id vs client-side-id differences you can often use id selectors like this $(DIV[id$=myServerSideID]) but there is always the possibility of confusion between elements whose IDs end with the same pattern of letters. For an internal project we've used a couple of

[jQuery] Re: R: [jQuery] Only show div's within parent.

2008-10-06 Thread Adrian Lynch
Or: $(document).ready(function(){ $(a.show).click(function () { $(this).siblings(div.hidden).slideToggle(fast); }); }); Which will hopefully protect against the markup changing. Or better still, go up to the parent, then back in to find the right div.hidden:

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

2008-10-06 Thread Dave Methvin
$j(.is_preferred_email).each( function(i) { this[i].checked = false; } ); Inside the function of each(), the first arg is the index in the array. The this is the actual DOM element. It looks like you thought it was the original jQuery

[jQuery] Re: XML Parsing Question...

2008-10-06 Thread Erik Beeson
To my knowledge, XML parsing via the jQuery constructor isn't supported. See here: http://dev.jquery.com/ticket/3143 --Erik On Sat, Oct 4, 2008 at 12:29 PM, KenLG [EMAIL PROTECTED] wrote: For much of my app, I'm doing an Ajax hit to the server to grab XML. That works great. But, in some

[jQuery] Re: XML Parsing Question...

2008-10-06 Thread Alexandre Plennevaux
and if you simply try $(EventContact,test).length? LAb[au] _ *lab*oratory for *a*rchitecture and *u*rbanism Alexandre Plennevaux Lakensestraat 104 Rue de Laeken Brussel 1000 Bruxelles België _ Belgique _ Belgium tel: +32 (0)2 2196555 fax: +32 (0)2 4266986 mail: [EMAIL PROTECTED] [EMAIL

[jQuery] Re: XML Parsing Question...

2008-10-06 Thread Adrian Lynch
JS is case sensitive, maybe .find() is also? Adrian On Oct 4, 8:29 pm, KenLG [EMAIL PROTECTED] wrote: For much of my app, I'm doing an Ajax hit to the server to grab XML. That works great. But, in some cases, I've got too many pieces of data (unrelated) that I need to pull so I'm trying to

[jQuery] Re: Possible to set metadata parameter dynamically?

2008-10-06 Thread Adrian Lynch
Is the data attribute something jQuery knows about? Never seen it myself. Anyway, here's an idea. If the value of data is in object notation, read it into a var and eval it much like you would a JSON string! Then you might be able to work on the data more easily. Adrian On Oct 4, 9:55 pm,

[jQuery] problem when i click

2008-10-06 Thread ledaker
$(document).ready(function() { $('#button3').click( function(event){ alert(this.id); $ ('td:contains(1-2)').parent().find('td:gt(0)').addClass('InputSearch'); $('tr:odd').addClass('LinkCal'); $('tr:even').addClass('LinkTag'); $('td:contains(2-2)').addClass('LinkTag');

[jQuery] Re: Processing.js Google Group Now Formed!

2008-10-06 Thread Rick Faircloth
Ok...I'll ask...what is Processing.js about? Rick chris thatcher wrote: I started using processing.js also, I'll definitely join this group! Thatcher On Sat, Oct 4, 2008 at 7:16 PM, F1LT3R [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hey Joe, I love using Processing so I

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

2008-10-06 Thread sydneyos
Dave, Actually, I tried both of those things first - should have mentioned that. It was only after I got three elements doing alert($j(.is_preferred_email)) that I switched to using the index. On Oct 5, 7:53 pm, Dave Methvin [EMAIL PROTECTED] wrote:         $j(.is_preferred_email).each(    

[jQuery] Re: jqueryPngFix and links on IE6

2008-10-06 Thread Klaus Hartl
position: relative does not always work but in my experience triggering hasLayout almost always (you can never tell with IE) works if links displayed as block aren't clickable as a whole. http://www.satzansatz.de/cssd/onhavinglayout.html --Klaus On 6 Okt., 12:48, shortStormTrooper [EMAIL

[jQuery] problem with internet explorer...

2008-10-06 Thread Manarius
hi guys and girls :) first of all excuse me if my english is rather bad, i am from austria so english is not an everyday language for my mind. the silly warmup question first: i am not geeky enough to know, how to search for this on google (but believe me, i tried many many keywords before

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

2008-10-06 Thread sydneyos
Thanks for your input. Here is the relevant HTML (dynamically generated) input checked=checked class=is_preferred_email id=record_person_emails_10001_is_preferred name=record_person_emails_10001_is_preferred onchange=setPreferredEmail(this); type=checkbox value=1 /input

[jQuery] Re: Jquery and ASP.NET

2008-10-06 Thread GARIL
Definitely. On Oct 5, 1:45 pm, eduardo wrote: Is possible use JQuery in aspx pages writing with ASp.net 3.5 ?

[jQuery] Re: Problem jQuery Selecting Input field

2008-10-06 Thread Alexander Gyoshev
attributeEndsWith http://docs.jquery.com/Selectors/attributeEndsWithselectors: $(input[id$=':home']) On Mon, Oct 6, 2008 at 8:27 AM, Faisal Basra [EMAIL PROTECTED] wrote: Yes, right Morningz looks like this. form id=phone input id=phone:home / input id=phone:mobile / /form form

[jQuery] Re: JQuery validate problem

2008-10-06 Thread Jörn Zaefferer
Take a look at the instructions here: http://docs.jquery.com/Plugins/Validation/Reference#Fields_with_complex_names_.28brackets.2C_dots.29 Jörn On Mon, Oct 6, 2008 at 10:50 AM, Bill [EMAIL PROTECTED] wrote: I have a problem.where i use the jquey validate plugin for my project. I want to use

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

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

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

2008-10-06 Thread MorningZ
As for yout .size() issue this code http://paste.pocoo.org/show/87223/ works totally as expected. not sure what you have different On Oct 6, 10:41 am, BB [EMAIL PROTECTED] wrote: Try:         $j(.is_preferred_email).each(             function(i) {                 this.checked =

[jQuery] simple table filtering?

2008-10-06 Thread bdee1
I am looking for a simple way to filter the contents of a table. to clarify - i would like to have a form at the top of an HTML table where i can select a field to filter on and then a textbox. as i type in the textbox, the table's contents will change to display only rows where the selected

[jQuery] Re: jquery code works with firefox but not ie.

2008-10-06 Thread Eric
Good tip! Another reason to use JSON? http://us2.php.net/json_encode On Oct 5, 10:43 am, Mantas [EMAIL PROTECTED] wrote: try to right: header('Content-Type: text/xml'); in your php file. I had the same problem with IE and then i've remembered this magic line, it solved my problem On 30

[jQuery] Re: Possible to set metadata parameter dynamically?

2008-10-06 Thread Erik Beeson
In an older version of the metadata plugin, you used to be able to set something (metaDone to false I think it was) that would force it to reload, but that doesn't work anymore. This is all untested, but here's my read on it: Now, metadata is stored in jQuery's internal caching system, which

[jQuery] Re: Processing.js Google Group Now Formed!

2008-10-06 Thread Rey Bango
Hi, Can you please move this over to the Processing Google Group. This mailing list is for jQuery and the initial announcement was to let you know of the best place to chat about Processing.js. Thanks, Rey jQuery Project F1LT3R wrote: You may be looking for online apps... but I think you

[jQuery] Re: simple table filtering?

2008-10-06 Thread bdee1
that is very helpful and should be a great starting point - thank you very much for posting!! I will let you know how i make out. Eric-286 wrote: This sounds specialized enough that you'll probably be writing the code yourself. No problem, jQuery will help! Basically, every time the

[jQuery] Re: simple table filtering?

2008-10-06 Thread Eric
This sounds specialized enough that you'll probably be writing the code yourself. No problem, jQuery will help! Basically, every time the contents of your text fields change, you'll go through every row of the table, check specific cells, and if they don't match the text

[jQuery] Match the filename to highlight current link on page

2008-10-06 Thread suntrop
Hi there, I've following code to highlight the current link in my menu: var path = location.pathname.substring(1); if (path != '') { $('#navigation [EMAIL PROTECTED]' + path + ']').css('color','#c03'); } else { $('#navigation [EMAIL PROTECTED]/]').css('color','#c03'); } But some

[jQuery] Re: problem with internet explorer...

2008-10-06 Thread Manarius
i just solved the silly question myself. you just have to add: var toLoad = href+' #ContentText'; target.load(toLoad, function() { instead of: target.load(href, function() { into jquery.history.js around line 250. but the bugs remain :( greetings, jascha

[jQuery] Re: jQuery cycle and handling new request/page changed

2008-10-06 Thread Mike Alsup
me=noob Mike=the man *Thanks !* Ha, no problem. Don't feel bad, that's a very subtle issue and it's really a bug in my code, not yours. Mike

[jQuery] Can jQuery load from DOM?

2008-10-06 Thread jQuery(new).to(me)
Hello, I am trying to load jQuery from Javascript like the following code. == code == if (typeof jQuery == 'undefined' || !jQuery) { var s = document.createElement('script'); s.setAttribute('type','text/javascript');

[jQuery] Re: Jquery and ASP.NET

2008-10-06 Thread [EMAIL PROTECTED]
MorningZ, thanks for the ideas. Personally, I don't prefer overriding control ID's as they have to be unique. You can easily break your code if you don't pay enough attention. For .NET guys, I recommend using %=ControlName.ClientID% syntax. The only downside is that you can not put your

[jQuery] treeview: prendered + cookie persistence

2008-10-06 Thread pjdevries
I'm using treeview (version 1.4.1) with the 'prerendered' option in combination with 'cookie' persistence. This seems to work fine until the page with the treeview is build from scratch (as opposed to refreshed as a result of pressing the browser back button for instance). Because I build the

[jQuery] How to uninstall the

2008-10-06 Thread Kynn Jones
I have a jQuery-based script that performs some updates on the current page (using the load method), and eventually visits a second page, by resetting window.location. This works fine, but if the user hits the back button, the whole sequence is repeated, including the re-loading of the second

[jQuery] Re: ANNOUNCE: jQuery listnav plugin

2008-10-06 Thread Jack Killpatrick
Hi Ettiene, how'd using it go for you? Thanks to everyone else for the initial feedback. I'm interested to hear if anyone has implemented it anywhere. ? - Jack Ettiene wrote: Excellent stuff man! I'm already busy using it hehe Ettiene

[jQuery] Re: treeview: prendered + cookie persistence

2008-10-06 Thread Jörn Zaefferer
If you use prerendered, you have to read the cookie on the serverside and render the tree accordingly. Otherwise you have to disable prerendered to be able to use cookie persistence. Jörn On Mon, Oct 6, 2008 at 6:08 PM, pjdevries [EMAIL PROTECTED] wrote: I'm using treeview (version 1.4.1) with

[jQuery] Re: Match the filename to highlight current link on page

2008-10-06 Thread Adrian Lynch
Extract the href and then split it into it's various sections var href = some selector; hrefSections = href.split(/); If there are no query string parameters you have the file name in the last array element: var fileName = hrefSections[hrefSections.length - 1]; Now do your other selector

[jQuery] Re: jquery code works with firefox but not ie.

2008-10-06 Thread ajpiano
one of the biggest things to watch out for is malformed markup. typically, firefox will be much friendlier on markup that IE refuses to inject. have a look at your and /

[jQuery] Re: Can jQuery load from DOM?

2008-10-06 Thread Michael Geary
Yes, you can do that. I'll bet the reason you're getting $ undefined is that you're trying to reference it immediately after running that code. The dynamic script element loads asynchronously, and as with all asynchronous JavaScript, you need to either use a completion callback function or a

[jQuery] Re: Can jQuery load from DOM?

2008-10-06 Thread Web Specialist
Using this approach is possible to allow js file cache? Or in every page that js file needs to load again? Cheers Marco Antonio On Mon, Oct 6, 2008 at 2:54 PM, Michael Geary [EMAIL PROTECTED] wrote: Yes, you can do that. I'll bet the reason you're getting $ undefined is that you're trying

[jQuery] Re: R: [jQuery] Only show div's within parent.

2008-10-06 Thread ricardobeat
This will toggle the element with class 'hidden' next to the a: $('a.show').click(function(){ $(this).next('.hidden').slideToggle(fast); }); - ricardo On Oct 6, 6:03 am, Adrian Lynch [EMAIL PROTECTED] wrote: Or: $(document).ready(function(){        

[jQuery] Re: Can jQuery load from DOM?

2008-10-06 Thread Michael Geary
Browser caching works with this technique, exactly as it does with a script tag. A good way to verify this is with the outstanding Fiddler HTTP debugging proxy (Windows only, but if you don't use Windows, this is the killer app for a Windows VM under VMware): http://www.fiddlertool.com/

[jQuery] Re: Tablesorter Plugin and widgets

2008-10-06 Thread ajpiano
you need to make your addWidget method handle a function as an argument, and then execute the function if it is supplied and a function... function foo(bar,callback) { $(bar).remove(); callback $.isFunction(callback) callback(); } foo(#baz,function() {alert(done!);}); // removes baz and then

[jQuery] Re: simple table filtering?

2008-10-06 Thread MorningZ
Also, this blog post by John Resig may be of help http://ejohn.org/blog/jquery-livesearch/ I could see that as easily being tweaked to work on table rows instead of divs On Oct 6, 11:33 am, bdee1 [EMAIL PROTECTED] wrote: that is very helpful and should be a great starting point - thank

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

2008-10-06 Thread Micky Hulse
Thanks for the help all! I am going to try your suggestions, and also put-together a simple test page in order to show/test the specific code... I am wondering if maybe some other jQuery plugin/script is causing problems with this. I will be back shortly with demo page. Thanks a billion!!!

[jQuery] not defined error using instance variable in each callback

2008-10-06 Thread marty
This is driving me crazy I'm trying to copy elements from a wrapped set into an array. This works: // build an array of text on the line var rowTextArray = new Array(); // add text into array this.children.each( function() {

[jQuery] Chicago JavaScript Meetup

2008-10-06 Thread Justin Meyer
Excuse 'spamming' the forum, but it's relevant Vlad Didenko is organizing Chicago's first JavaScript meetup. If you are in the Chicago area and looking to improve your JavaScript skills, join the group at http://javascript.meetup.com/10/. We are posting discussion/talk topics to

[jQuery] Trouble getting 1 hover to work at a time

2008-10-06 Thread line47
I know what needs to be done but I'm not sure how to accomplish it. I want the span inside of the a.appHelpPopup to show on hover. Right now both span messages show on hover. :( I'm not sure how to only get the proper message associated to hover an not all spans. Here is my markup. script

[jQuery] Opacity in IE

2008-10-06 Thread Greg G
I have some animation I'm working on that works fine in Firefox but not in IE. I have two issues: Part of the animation is fading out an element. I want to integrate this with the animate function and not use the fade out option. I've tried using filter : alpha(opacity... but that didn't

[jQuery] jscrollpane not functioning in iframes

2008-10-06 Thread ekene
i made two test html pages. this is the link for the child page which calls jscrollpane http://ekeneijeoma.com/clients/lrany/recordTest.html this is the script in the recordTest.html page $(document).ready(function(){ $('#record-scroll-pane').jScrollPane(); }); this is the link for the

[jQuery] Re: append mailto link to orphan plain text email address

2008-10-06 Thread skankster
No one? On 2 Okt., 14:45, skankster [EMAIL PROTECTED] wrote: Hi, I have a div that contains simple text data with line breaks. I want to append a mailto link to the email address but so far I have not been able to select the email. The container looks something like this: div id=myId  

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

2008-10-06 Thread Micky Hulse
Hello, Here are a few test pages... Sorry, I have not had time to try the solutions offered here yet. Demo 1: http://www.ambiguism.com/sandbox/scripts/jquery/get-ajaxStartStop- test/ Demo 2: http://www.ambiguism.com/sandbox/scripts/jquery/get-ajaxStartStop- test/getOff.php Sorry in advance if

[jQuery] Re: Intercept Back button click on browser

2008-10-06 Thread Leanan
*sigh* Ok. I've decided upon the jquery.history_remote.js plugin by Klaus. I have it working, except there is one slight problem, and I can't figure out how to fix it. I have a table of links that, when you click on a link, they pull up more detailed data, load it into a div, so on and so

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

2008-10-06 Thread Mike Alsup
Demo 1: http://www.ambiguism.com/sandbox/scripts/jquery/get-ajaxStartStop- test/ Demo 2: http://www.ambiguism.com/sandbox/scripts/jquery/get-ajaxStartStop- test/getOff.php I think you've just misunderstood how to set the default ajax options. Based on this comment: /* Setup global

[jQuery] Re: not defined error using instance variable in each callback

2008-10-06 Thread marty
Thanks very much for the reply! That was a big help! I was missing the fact that this inside the loop is not the same as this outside the loop. Your suggestion really helped! Regards, Marty On Oct 6, 12:59 pm, MorningZ [EMAIL PROTECTED] wrote: i would take a guess that you are missing that

[jQuery] Re: Intercept Back button click on browser

2008-10-06 Thread Klaus Hartl
Is it possible for you to put up a demo? --Klaus On 6 Okt., 22:11, Leanan [EMAIL PROTECTED] wrote: *sigh* Ok.  I've decided upon the jquery.history_remote.js plugin by Klaus. I have it working, except there is one slight problem, and I can't figure out how to fix it. I have a table of

[jQuery] Re: Trouble getting 1 hover to work at a time

2008-10-06 Thread Leanan
I haven't tested this, but I would try something along the following: $('.appHelpPopup').children('span').show(); The problem is that you have more than one DOM element classed as appHelpPopup with a span under it, so that selector is grabbing all of them, and applying show to all of them. You

[jQuery] Re: Can jQuery load from DOM?

2008-10-06 Thread ricardobeat
Google has an API that does that, check it out: http://code.google.com/apis/ajaxlibs/ - ricardo On Oct 6, 3:29 pm, Michael Geary [EMAIL PROTECTED] wrote: Browser caching works with this technique, exactly as it does with a script tag. A good way to verify this is with the outstanding

[jQuery] Re: not defined error using instance variable in each callback

2008-10-06 Thread marty
Hi Mike, You're right, I want to be able to use this.rowTextArray later on. You're code suggestion works great! Thanks so much for the help!! Regards, Marty On Oct 6, 1:24 pm, Michael Geary [EMAIL PROTECTED] wrote: That's right, the mistaken use of this is the problem - one of them anyway

[jQuery] Re: Intercept Back button click on browser

2008-10-06 Thread Leanan
I'll see if I can create a demo that has the same behavior. On Oct 6, 4:25 pm, Klaus Hartl [EMAIL PROTECTED] wrote: Is it possible for you to put up a demo? --Klaus On 6 Okt., 22:11, Leanan [EMAIL PROTECTED] wrote: *sigh* Ok.  I've decided upon the jquery.history_remote.js plugin by

[jQuery] Re: jscrollpane not functioning in iframes

2008-10-06 Thread ricardobeat
It is functioning, but the scrollbar overflows the iframe. Give the iframe a width of 292px and you'll see it. - ricardo On Oct 6, 4:06 pm, ekene [EMAIL PROTECTED] wrote: i made two test html pages. this is the link for the child page which calls

[jQuery] Re: Intercept Back button click on browser

2008-10-06 Thread Leanan
Klaus, I've created a demo that exhibits this behavior. I modified your demo that is included with the script at http://www.stilbuero.de/jquery/history/ All you should have to do is change your index.html to be the following: html lang=en head meta http-equiv=Content-Type

[jQuery] Re: Intercept Back button click on browser

2008-10-06 Thread Bil Corry
Leanan wrote on 10/6/2008 3:52 PM: You should notice that every time you click on the Test links, you will actually get the html page twice instead of once. You test for Chap1 twice in the IF statements and you don't test for Chap3 at all. I suspect that would cause a double-load issue for

[jQuery] Re[jQuery] size creep in FF 3.0.3 and 2.x

2008-10-06 Thread greenteam003
I've been doing some searching in the mailing list and haven't been able to find this issue although I'm sure it has come up. I don't know if its a $.ui.resizable bug or css issue but I have a simple div on a page with the following html: div id=main_footer div

[jQuery] Re: Can jQuery load from DOM?

2008-10-06 Thread sung
It still has the same problem like loading jQuery from javascript. On Oct 6, 1:40 pm, ricardobeat [EMAIL PROTECTED] wrote: Google has an API that does that, check it out: http://code.google.com/apis/ajaxlibs/ - ricardo On Oct 6, 3:29 pm, Michael Geary [EMAIL PROTECTED] wrote: Browser

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

2008-10-06 Thread Micky Hulse
Hi Mike, many many thanks for your quick reply. I really appreciate you (and all of you) taking the time to help me out. :) what you probably want instead is this: $.ajaxSettings.url = token; $.ajaxSettings.global = false; Ahhh, thanks! I was did not see ajaxSettings in the docs. :( I think

[jQuery] Re: jQuery Truncating Help

2008-10-06 Thread Zachary
Does no one have any answers to this question...It has been quite a while and I could really use some suggestions. Thanks. On Oct 3, 9:21 am, zacharyd [EMAIL PROTECTED] wrote: I have been working with Brian Reindel's Truncate plug-intrying to get ti to do what I need.  It seems simple

[jQuery] Re: Can jQuery load from DOM?

2008-10-06 Thread ricardobeat
Follow the instructions on the page, you need to put everything inside the callback function. On Oct 6, 6:11 pm, sung [EMAIL PROTECTED] wrote: It still has the same problem like loading jQuery from javascript. On Oct 6, 1:40 pm, ricardobeat [EMAIL PROTECTED] wrote: Google has an API that

[jQuery] Re: Opacity in IE

2008-10-06 Thread ricardobeat
Honestly, you should be using flash for this stuff. You'll only get headaches trying to do fancy animations like these in Javascript, your code has way too much calls. If you really really want to do this in JS you should give your .blowUp divs a position:relative in CSS and use something like

[jQuery] element content displayed out of place using slideToggle (IE6/IE7)

2008-10-06 Thread Streetdaddy
http://www.screencast-o-matic.com/watch/cj6hrGnes The fps of the screencast isn't fantastic, but you can see the problem. On page load the .inner element is hidden with hide() The animation uses slideToggle(500). During the animation, the content of the element if briefly shown above. The

[jQuery] Re: Can jQuery load from DOM?

2008-10-06 Thread sung
== code == if (typeof google == 'undefined' || !google) { var s = document.createElement('script'); s.setAttribute('type','text/javascript'); s.setAttribute('src','http://www.google.com/jsapi'); document.getElementsByTagName('head')[0].appendChild(s); }

[jQuery] Re: Re[jQuery] size creep in FF 3.0.3 and 2.x

2008-10-06 Thread greenteam003
Well no responses but I did find a band aid, thought I'd share for anyone else having a similar problem with resizing acting unexpectedly. I just tagged on the following stop function to readjust just in case the resizable slides down while resizing from the top. It was only occurring when the

[jQuery] Poor Performing jQuery .each()

2008-10-06 Thread Coryt
I am having some trouble tracking down why this relativily simple client-side template is performing so poorly. Using js to make an ajax call and retrieve a small amount of data, limited to 100 rows being returned. I've tracked the problem down to the actual jQuery iteration, here is my code:

[jQuery] Valid jQuery on Development fails on Production

2008-10-06 Thread rich
I am writing a fairly basic script using jQuery. However, the script behaves differently depending on whether I am running it on my local Web server (localhost) or on a production server. On development, the following code returns the HTML I'm expecting:

[jQuery] Is it possible to avoid jumpy / disappearing content

2008-10-06 Thread Nabha
Hi there, I love jQuery, but I have a question about something I see it doing: Content that it is hiding or moving often appears in its original position *before* it is hidden by jQuery. Is there any good, accessible way around this? You can see the effect in action on a page like this:

[jQuery] jQuery plus existing Web Services

2008-10-06 Thread Risingfish
Hello, I'm starting to play around with jQuery and decided to jump in head first. We have a number of existing web services, built on ASP.NET, that we using for our client/server application. Unfortunately, they cannot handle POSTs or GETS due to the type of data returned. The SOAP call looks

[jQuery] jQuery Turk

2008-10-06 Thread Onur ACUN
hi everbody, we would like to support jQuery with http://jqueryturk.com web site which use turkish language. We will be sharing our experiments, articles about jQuery vs. on jQueryTurk. we will add a forum soon. http://forum.jqueryturk.com Onur ACUN

[jQuery] Re: Valid jQuery on Development fails on Production

2008-10-06 Thread Ryura
You have some unclosed tags (the last tr and td). Try closing those. On Oct 6, 6:06 pm, rich [EMAIL PROTECTED] wrote: I am writing a fairly basic script using jQuery. However, the script behaves differently depending on whether I am running it on my local Web server (localhost) or on a

[jQuery] Re: Can jQuery load from DOM?

2008-10-06 Thread Michael Geary
The Google Ajax loader is nice, but it doesn't do what sung is looking for. google.load() uses document.write() to write a script tag into the document. It does not use a dynamic script element, so you can't use it to load jQuery (or anything else) after the document has loaded. You can only

[jQuery] Re: Poor Performing jQuery .each()

2008-10-06 Thread Michael Geary
Is there any possibility that you can get JSON data instead of XML? It will be *much* faster. If not, then we can talk about how to optimize the XML parsing and jQuery operations - although that is a much tougher question. -Mike I am having some trouble tracking down why this relativily

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

2008-10-06 Thread Dave Methvin
Actually, I tried both of those things first - should have mentioned that.  It was only after I got three elements doing alert($j(.is_preferred_email)) that I switched to using the index. Looking at your markup, it seems like it should return three elements. I don't see a problem there. I

[jQuery] Re: not defined error using instance variable in each callback

2008-10-06 Thread Michael Geary
That's right, the mistaken use of this is the problem - one of them anyway - but that solution won't work (what is the parent property of a DOM element?). Another problem is the misuse of push - it's a method, not a property you can store into. (You *can* store into the push property - as the

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

2008-10-06 Thread ajpiano
$(.is_preferred_email).each(function() { $(this).attr(checked,checked); }); On Oct 6, 8:14 pm, Dave Methvin [EMAIL PROTECTED] wrote: Actually, I tried both of those things first - should have mentioned that.  It was only after I got three elements doing alert($j(.is_preferred_email)) that

[jQuery] Re: Is it possible to avoid jumpy / disappearing content

2008-10-06 Thread John D.
I too am looking for an accessible solution as I've run into this same problem using the following: $(document).ready(function() { $('p.firstparagraph').hide() $('#hideh1').click(function(){ $('p.firstparagraph').hide(200); }); $('#showh1').click(function(){

  1   2   >