[jQuery] Re: min-imize scripts?

2008-08-18 Thread yabdab
I can see how this could be used on the fly as well. Just call a php page as your javascript and slap a javascript header on it. That way you can pull in all your js into one call and minify it at the same time. I gotta try that. Thanks for all the responses guys :-) On Aug 16, 5:49 pm,

[jQuery] Re: livequery + problems in ie

2008-08-18 Thread [EMAIL PROTECTED]
I forgot to say that i'm using history plugin too! maybe the problem is it! I'm waiting here! any body knows?! Please...

[jQuery] Re: livequery + problems in ie

2008-08-18 Thread [EMAIL PROTECTED]
any body knows the solution?! On Aug 17, 8:17 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm using liveQuery to load my pages and save them into history the whole code that i have written is available inhttp://ajax.rahnemaco.com/2/includes/javascript/rm.js but a plank of code is :    

[jQuery] Dialog over fisheye

2008-08-18 Thread anush
Hi, I have a fisheye interface, and onclick I am trying to load a remote url on a modal dialog. The remote url works without any javascript in it, but when I include js files.. it doesn't work. I want to load a calendar in the modal. Can anyone here please help me out. - Anush

[jQuery] Combing cycle and validate plugins

2008-08-18 Thread phew72
Hi all I have a form which I've broken up into 4 parts using the cycle plugin. What I can't figure out is how to (or if I can) validate only the parts of the form which are visible at the time. Ideally, I could use the validate plugin to do the validating. The code bits are: -- script

[jQuery] idiot alert!!! stupid jeditable question

2008-08-18 Thread Chris Hall
Sorry for the stupid question, but can someone help me understand what I need to do to with jeditable (great plugin!) so when my text area data is submitted the line breaks are converted to br tags, but when the user edits the same text area again the br tags become line breaks again? For

[jQuery] Execute script loaded into div from ajax

2008-08-18 Thread Michael Anckaert
Hello everyone, I'm trying to do something that's probably trivial, but I can't get it to work :p My main page has a div where content gets loaded via ajax: $('#main').load('page.html'); The file page.html has some html and javascript code, the problem is getting the javascript from page.html

[jQuery] Re: option to see evidence of jquery binding in the html markup?

2008-08-18 Thread chrismarx
yup, thats exactly what i want. i'll see about creating a plugin that modifies the bind function, thanks! On Aug 16, 5:01 am, Karl Rudd [EMAIL PROTECTED] wrote: Not sure exactly what you want to see. Is it that you have an existing page with a bunch of jQuery events added (most likely that you

[jQuery] getJSON - how do you make it work?

2008-08-18 Thread Jon Sidnell
Hi I'm trying to get some JSON content using the $.getJSON function, but it just won't work!! I started out using ASP.NET to generate a load of JSON, but decided to create a simple text file with a JSON string in it instead. Here's my JavaScript: $.getJSON(/test.txt, function(data) {

[jQuery] Jquery Problem in IE 6

2008-08-18 Thread Joe
Dear friends, i am working in a site, in which i have used jquery scripts. In Jquery the .html() is not working. I used .html() to print the output to one div from one file. If i use .html() in ie6 means the site in keep on loading. Please help me to fix the error. It is very *Urgent*

[jQuery] make certain modifications after clone()

2008-08-18 Thread park
Hi, Is possible to make a few modifications to wrapped elements before cloning them to a new copy? Many thanks!

[jQuery] Re: jQuery BlockUI

2008-08-18 Thread GMatos
But if my request take longer than 10 seconds? This does not work. On Aug 12, 10:42 am, Mike Alsup [EMAIL PROTECTED] wrote: Try calling it like this: setTimeout($.blockUI, 10); If I do it my submit is locked. And the screen of 'wait' does not disappear. On 10 ago, 16:42, Adrian Lynch

[jQuery] about siblings().removeClass with td:first-child problem ? anyone help, thanks.

2008-08-18 Thread YuanYuan
I have one table, I want click td:first-child then change td:first- child's background color, when click the td-first-child , td background color change, but when I click other td:first-child, the removeClass not work correct, anyone help ? thanks. my script: $(document).ready(function(){

[jQuery] Re: selectbox event problem in MSIE

2008-08-18 Thread Ralf Geschke
Thanks a lot for your answers! My solution with a bit of jQuery magic looks like this: $(#wgt2 ).change(function() { $(this).children(option:selected).each(function() { var selectValue = $(this).val(); var selectText = $(this).text(); $(this).removeAttr('selected');

[jQuery] Jquery Problem in IE 6

2008-08-18 Thread Joe
Dear friends, i am working in a site, in which i have used jquery scripts. In Jquery the .html() is not working. I used .html() to print the output to one div from one file. If i use .html() in ie6 means the site in keep on loading. Please help me to fix the error. It is very Urgent

[jQuery] Re: Whitespace problem with Ajax and JSP

2008-08-18 Thread Sjurl
On Aug 17, 9:20 am, Sjurl [EMAIL PROTECTED] wrote: On Aug 15, 4:24 pm, erroneousBolock [EMAIL PROTECTED] wrote: Lid Sjur Ringheim wrote:   trim: function( text ) {      return (text || ).replace(/^\s+|\s+$/g, );   }, That really shouldn't slow down the loading much, unless the

[jQuery] Jörn's autocomplete function on no results found

2008-08-18 Thread mmzaman
I'm using bassistance.de , Jörn Zaefferer's autocomplete plugin and loving it. However I need to be able to call a function or run some javascript code if the inputted text by the user into the autocomplete field returns no results. This would be ideal as an option or a method for the

[jQuery] Re: eval to register jquery selector

2008-08-18 Thread [EMAIL PROTECTED]
Hello Mike, thanks for replying. I have to my code for this problem, this will make things come put clearer. repSelectorH2 = new Array(divname1, divnamearbitrary, divtwo); function shortenToggle(jSelector,Selector,showId){ if (Selector.length != showId.length) {

[jQuery] Re: Can jQuery perform a generalized getElementById(divid) function without specifying the exact div id?

2008-08-18 Thread Eric
Sure, there are a number of ways you could do that. But it's hard to suggest what might be best without seeing the HTML code - can you post an example? Also, it sounds like you do have control over the HTML code so you can change it as needed, subject to your layout design requirements, is

[jQuery] mootools and jquery

2008-08-18 Thread Hoi
I'm completely new to jquery (and not technical...) and I've been asked to estimate how mush would it would take to convert a html +xml+mootools written mini web page into jquery, the current mootools written mini web page has the following: * 2 dynamic menus, content of these menus are defined

[jQuery] Re: Superfish with scripted dom page

2008-08-18 Thread rossenbere
Waw this is a fast reply! Thanks for trying to help me out! I followed your advice, made the suggested changes, added some comment and cleaned up my code, but unfortunately the problem remains... I threw out everything unnecessary, keeping an empty html page to be filled with only those elements

[jQuery] Re: getJSON - how do you make it work?

2008-08-18 Thread Ryura
Is it actually accessing the file correctly? I'd say provide a test case or check yourself with Firebug. On Aug 18, 6:00 am, Jon Sidnell [EMAIL PROTECTED] wrote: Hi I'm trying to get some JSON content using the $.getJSON function, but it just won't work!! I started out using ASP.NET to

[jQuery] Re: Can jQuery perform a generalized getElementById(divid) function without specifying the exact div id?

2008-08-18 Thread Karl Swedberg
Hi Eric, Forget about putting onclick directly in your html. Instead, do something like this: $(document).ready(function() { $('div.content').hide(); $('a.title').each(function(index) { $(this).click(function() { $('div.content').hide() .eq(index).slideDown();

[jQuery] small problem with animate({width: }) !

2008-08-18 Thread Mahmoud M. Abdel-Fattah
Hello, I'm workin on a Horizontal accordion, here's the demo : http://localhost/clients/duettographics.com/ that I got it from a tutorial, but I've a strange problem with last block, it doesn't shrink back ! Thanks for ur time, Mahmoud

[jQuery] Re: getJSON - how do you make it work?

2008-08-18 Thread András Csányi
2008/8/18 Jon Sidnell [EMAIL PROTECTED]: Hi I'm trying to get some JSON content using the $.getJSON function, but it just won't work!! I started out using ASP.NET to generate a load of JSON, but decided to create a simple text file with a JSON string in it instead. I did generate jQuery

[jQuery] Re: Combing cycle and validate plugins

2008-08-18 Thread Jörn Zaefferer
Here is a demo of validation and an accordion to split a form: http://jquery.bassistance.de/validate/demo/multipart/ Take a look at the source to get an idea how to implement it with the cycle plugin. Jörn On Mon, Aug 18, 2008 at 1:55 PM, phew72 [EMAIL PROTECTED] wrote: Hi all I have a form

[jQuery] tableSorter: correct handling of a non-standard decimal (proposed bug fix)

2008-08-18 Thread snobo
By default, tableSorter assumes that decimal point character is '.', and assigns a text parser to a column that contain strings like 123,45. There is an undocumented (why?) property decimal, which helps tableSorter understand that these are in fact numbers: $(...).tablesorter( { decimal: ',' }

[jQuery] Re: Execute script loaded into div from ajax

2008-08-18 Thread Karl Swedberg
Hi Michael, You have run into a fairly common issue: how to get events to work with elements that are added to the DOM, through either ajax or simple DOM mainpulation, after the document ready code has already fired. This FAQ topic should answer your question:

[jQuery] Re: Can jQuery perform a generalized getElementById(divid) function without specifying the exact div id?

2008-08-18 Thread Karl Swedberg
Hi Eric, [Sorry if this is a double post. Not sure if it made it through last time.] Forget about putting onclick directly in your html. Instead, do something like this: $(document).ready(function() { $('div.content').hide(); $('a.title').each(function(index) {

[jQuery] tableSorter: modify existing parsers?

2008-08-18 Thread snobo
I was going to modify the standard digit parser for the tableSorter plugin to fix the other problem I reported here: http://groups.google.com/group/jquery-en/browse_frm/thread/c5d1ecc422e68a89 but I found out that it seems impossible. It's very easy to add a new parser using

[jQuery] getJSON from http to https

2008-08-18 Thread raro
I have a script that makes a getJSON call to a https located script while itself being http. Is there any chance to make this work without browsers giving me a URI denied error So http://somedomain.com/ includes a getJSON(https://somedomain/;, etc Thanx in advance

[jQuery] Re: animate two divs for a slide up effect

2008-08-18 Thread clrockwell
I'm still unable to get this to work after trying all weekend. Is it even possible to slide one div up while simultaneously sliding up another div? On Aug 15, 3:01 pm, clrockwell [EMAIL PROTECTED] wrote: Hello, I am trying to animate two divs for a sliding effect. The div currently being

[jQuery] Re: small problem with animate({width: }) !

2008-08-18 Thread Mahmoud M. Abdel-Fattah
Oh, sorry, here's the true link : http://www.hdeya.com/other/duettographics.com

[jQuery] Re: Combing cycle and validate plugins

2008-08-18 Thread phew72
Jörn -- that form looks fantastic and is exactly what I'm looking for. Thanks so much for your reply. On Aug 18, 11:45 pm, Jörn Zaefferer [EMAIL PROTECTED] wrote: Here is a demo of validation and an accordion to split a form:http://jquery.bassistance.de/validate/demo/multipart/ Take a look

[jQuery] Re: Execute script loaded into div from ajax

2008-08-18 Thread Michael Anckaert
Hello Karl, Thank you for your reply. But I think you mis understand me. I want the scripts in the page I loaded with ajax to execute, not let my already existing scripts work with the newly loaded content. For example: main.html: function test() { ... } newpage.html: onready function

[jQuery] Re: Superfish with scripted dom page

2008-08-18 Thread rossenbere
I solved my problem!!! My page didn't have a valid document type on top Adding this made it work !!! !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http:// www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd html xmlns=http://www.w3.org/1999/xhtml; :-) Thanks for helping! On 18 aug, 15:00,

[jQuery] Re: Superfish and 3rd/4th level expanded

2008-08-18 Thread khan2002
hello for example: http://www.redbulls.com/index.php#pid__lang_de I think this kind of menu gives a god overview over the available services.. Michael

[jQuery] Re: getJSON - how do you make it work?

2008-08-18 Thread Jon Sidnell
I finally worked it out! Apparently, IIS reports a 404 for file extensions it doesn't recognise as safe, so *.json file was a big no- no. Soon as I changed it to the .txt file mentioned above (must've posted that as an idea before actually trying it in my code - oops!) it all worked. Then

[jQuery] removing html comments from the dom

2008-08-18 Thread James
Hi there, Does anyone know if it is possible to remove html comments from the DOM with jQuery? My problem is that I really need a page to render in full standards- compliance mode in IE, but my outdated corporate CMS (Vignette) inserts an html comment at the beginning of every page which throws

[jQuery] Re: removing html comments from the dom

2008-08-18 Thread Bil Corry
James wrote on 8/18/2008 10:04 AM: Does anyone know if it is possible to remove html comments from the DOM with jQuery? My problem is that I really need a page to render in full standards- compliance mode in IE, but my outdated corporate CMS (Vignette) inserts an html comment at the beginning

[jQuery] External links not working within jquery.accordian

2008-08-18 Thread Matthew
http://www.firstlineeducation.ca/ Hi! I'm new to jQuery, and just realized that somewhere along the line while coding the accordian and cycle plugins into this page, and then finishing the rest of it the links within the accordian don't work - they just scroll the accordian section back up into

[jQuery] jQuery Listen plugin help

2008-08-18 Thread sergeh
I was easily able to make the plugin work where I needed to add things dynamically via jquery. But now I can't get it work on another page where I need to add a few div via ajax When I click on a li I fetch some images via ajax and they get displayed inside of a container. My problem is that I

[jQuery] External links not working within jquery.accordian

2008-08-18 Thread Matthew
http://www.firstlineeducation.ca/ Hi! I'm new to jQuery, and just realized that somewhere along the line while coding the accordian and cycle plugins into this page, and then finishing the rest of it the links within the accordian don't work - they just scroll the accordian section back up into

[jQuery] PNG support in IE7 while animating

2008-08-18 Thread Adam
I have a current implementation of Jqueryfordesigners.com's tutorial on how to accomplish Panic's Coda site popup bubble. The background of the div that animates position and opacity from 0 to 1 is a PNG with alpha. Despite its support for PNG, the effect doesnt work in IE7- the full transparency

[jQuery] Re: Fwd: jQuery 1.2.6 crashing on Safari 2.0.3

2008-08-18 Thread John Mathews
Nice, actually that did fix the div sliding issue. Also, for the moment (it has been very inconsistent), I haven't been able to reproduce the crash. Thanks Ariel! On Aug 14, 11:49 am, Ariel Flesler [EMAIL PROTECTED] wrote: Try doing the following replacement on jQuery 1.2.6 (uncompressed)

[jQuery] jQuery edit in place works with every browser but firefox 2, works with 3, safari, opera ....

2008-08-18 Thread sixhourhalflife
This plugin works on every page solo, and on every page but firefox 2 on a page with lots of jquery going on on it. With firefox 2, the double click event fires, but the keyups dont fire and the input does not focus, then select. This is really bugging me and i cannot figure it out. (function($)

[jQuery] Re: Safari 3.0.4 - problems with $.ajax and authentication?

2008-08-18 Thread Quinode
I'm seeing exactly the same thing However, what is super stange, it's that it happens on my dev machine, but when, with the same browser i go on the inline site, the same code works

[jQuery] event handler mystery

2008-08-18 Thread ak732
Hi. I'm relatively new to javascript in general, and to jQuery. And this question may be more of a general javascript question, than a jQuery question. Not sure. I have an event handler for a click event that looks like this: // this code works...

[jQuery] Re: jQuery Listen plugin help

2008-08-18 Thread Brian Schilt
try applying 'Listen' to the images container and adding the click listener to the 'thumbs' class. $('#images-container').listen('click', '.thumbs', function(){ alert('click'); }); Brian On Aug 18, 11:50 am, sergeh [EMAIL PROTECTED] wrote: I was easily able to make the plugin work where I

[jQuery] Re: Can jQuery perform a generalized getElementById(divid) function without specifying the exact div id?

2008-08-18 Thread Eric
Yes, that works perfectly.

[jQuery] Re: Your jQuery Best Practices

2008-08-18 Thread Joe
Wow now that's what I'm talkin about! Well done all! Keep'em coming, if we haven't covered them already. cheers. Joe On Aug 15, 10:38 pm, Karl Swedberg [EMAIL PROTECTED] wrote: On Aug 15, 2008, at 8:32 PM, Michael Geary wrote: From: Michael Geary It's worth noting the implementation

[jQuery] Re: nested .each issue

2008-08-18 Thread Michael Geary
Thanks for the report, Pete. It sounds like my suspicion was correct - jQuery applies the :gt() to the *entire* result set at that point, instead of the immediately preceding selector. Iin other words, this selector: .itemList .item:gt(9) is interpreted as (using double parens to indicate

[jQuery] Re: Var and a child

2008-08-18 Thread ripple
I am just saying that I would never pass a variable with a string that started with anything other than an alpha-numeric value and have never see that done either.   I would never write   var string1 = #This is string1; var string2 = $This is string2;   or   div class=.class id=#id/div   A lot

[jQuery] Re: Var and a child

2008-08-18 Thread hubbs
Honestly guys, the var string1 = #This is string1; was just an example for posting here. :) I am not really using it. On Aug 18, 2:48 pm, ripple [EMAIL PROTECTED] wrote: I am just saying that I would never pass a variable with a string that started with anything other than an alpha-numeric

[jQuery] how to insert javascript code instead of text with .before() or anything else jQuery has?

2008-08-18 Thread Cormac
Hello everyone, I'm new to jQuery (and to programming, as a matter of fact). Still, I have this task: find a certain element on an html page and insert a google ad before it (or just anywhere nearby). I have no problems finding the necessary element, but I just cannot understand how to insert

[jQuery] IE Bug in fadeIn

2008-08-18 Thread [EMAIL PROTECTED]
Hi! I found a strange, strange bug in IE6: aux=somevalues.split('='); // divid=value, i,e, value1=abc (no quotes) $(#+aux[0]).text(aux[1]).fadeIn(); // Gives the Error Object doesn't support this property or method Now cames the oddity: var a=abc; $(#+aux[0]).text(a).fadeIn(); or

[jQuery] jCarousel

2008-08-18 Thread val
hi.. i have a little problem with jcarousel.. :( because i need the carousel's container as 'display:none;'. onclick of something, the container slides down.. now, the problem is, when it is 'display:none;' .. jcarousel doesn't work right anymore.. actually, it's just that the UL's width is not

[jQuery] Remove an element ONLY if exists

2008-08-18 Thread Gewton Jhames
There's a way to remove a element by his id, but first check if it exists? thanks.

[jQuery] Re: PNG support in IE7 while animating

2008-08-18 Thread Karl Rudd
From what I've heard it's a known problem with IE. You can have PNGs with alpha transparency in them, and you can have images that you use a filter (opacity in this case) on, but not both at the same time. Karl Rudd On Tue, Aug 19, 2008 at 1:17 AM, Adam [EMAIL PROTECTED] wrote: I have a

[jQuery] Re: PNG support in IE7 while animating

2008-08-18 Thread Karl Rudd
And just to follow up. Here's a previous post about it with a link to some more details: http://groups.google.com/group/jquery-dev/browse_thread/thread/1f693c5f4e8ea650 Karl Rudd On Tue, Aug 19, 2008 at 9:08 AM, Karl Rudd [EMAIL PROTECTED] wrote: From what I've heard it's a known problem

[jQuery] Re: Remove an element ONLY if exists

2008-08-18 Thread Karl Rudd
$('#myid').remove(); If an element with id=myid doesn't exist it isn't selected and the remove() doesn't do anything. One of the beauties of jQuery. Karl Rudd On Tue, Aug 19, 2008 at 6:11 AM, Gewton Jhames [EMAIL PROTECTED] wrote: There's a way to remove a element by his id, but first check

[jQuery] Re: eval to register jquery selector

2008-08-18 Thread Michael Geary
Both your posts made it through. Sometimes there is a delay in posting them - I've seen it with my own messages too. You left out the definition of repShowIdH2. I assume it is another array that contains the IDs that you want to call .toggle() on, in a 1-to-1 correspondence with the strings in

[jQuery] Re: Superfish (IE cleartype bug)

2008-08-18 Thread nicholasnet
Actually I should be the one who should thank you for this menu. Great work!!! As per you suggestion I tried to put fix in onShow callback but it did not worked so far I tried this

[jQuery] Re: Superfish (IE cleartype bug)

2008-08-18 Thread nicholasnet
Actually I should be the one who should thank you for coming up with this menu, it is great. Like you said I tried to put that fix in onShow callback but it did not worked. So far this is what I did / onShow:

[jQuery] Livequery am .load()

2008-08-18 Thread fleabo
Hi, I'm using livequery with the tabs plugin. $('.pagelinks a').livequery('click', function() { $(#loading).ajaxStart(function(){ $(this).show(); }); alert(this.href); $(#pagedata).load(this.href); $(#loading).ajaxStop(function(){

[jQuery] Re: mootools and jquery

2008-08-18 Thread Glen Lipka
Is this page public? Seeing it would help. There are often plugins that can do a bunch of stuff for you with little code. (Im not that technical either, which is why I love plugins) Glen On Mon, Aug 18, 2008 at 4:24 AM, Hoi [EMAIL PROTECTED] wrote: I'm completely new to jquery (and not

[jQuery] Re: Var and a child

2008-08-18 Thread Michael Geary
Ripple, I'm really sorry, but you seem to be mixing up some distinct and unrelated concepts. Bear with me and I'll explain... I would never pass a variable with a string that started with anything other than an alpha-numeric value and have never see that done either. I would never write

[jQuery] Re: Var and a child

2008-08-18 Thread ripple
I'm not going to go any further with this thread, All I said from the start was that it isn't in my best practices to write code as in the first post.   IE: var myVar = #testDiv; We all know there are many ways of writing something. We don't need to get into the fine details of assigning a

[jQuery] how do I stop a further event will be ahppened again if current event has not yet finished

2008-08-18 Thread jack
Hi, all If an event hasn't finished how do I prevent the same event being triggered again? Thank you in advance! Jack

[jQuery] simulate a keypress

2008-08-18 Thread jack
Hi, all I found a message on this group about simulating a keypress such as $('input#search_fld').trigger('keypress',[{preventDefault:function() {}, keyCode: 49}]); It won't work for me. Please advise, thank you in advance! Jack

[jQuery] Re: how to insert javascript code instead of text with .before() or anything else jQuery has?

2008-08-18 Thread Ryura
.before('google code here') You'll want to escape any /script's. On Aug 18, 6:49 pm, Cormac [EMAIL PROTECTED] wrote: Hello everyone, I'm new to jQuery (and to programming, as a matter of fact). Still, I have this task: find a certain element on an html page and insert a google ad before it

[jQuery] Re: about siblings().removeClass with td:first-child problem ? anyone help, thanks.

2008-08-18 Thread YuanYuan
Oh, I got it. this is my way. $('tr td:first-child').removeClass('selected'); $(this).addClass('selected');

[jQuery] Re: Help with trigger() problem

2008-08-18 Thread [EMAIL PROTECTED]
anyone?? please help! :(

[jQuery] Re: mootools and jquery

2008-08-18 Thread Adwin Wijaya
btw, may i know why you need to convert from mootools to jquery ? you can use jquery.noConflict() so it can work with mootools (beware, some jquery plugins are not working with it) On Aug 18, 6:24 pm, Hoi [EMAIL PROTECTED] wrote: I'm completely new to jquery (and not technical...) and I've

[jQuery] Re: how to insert javascript code instead of text with .before() or anything else jQuery has?

2008-08-18 Thread Cormac
Could you please tell me how to do it properly? I tried writing \/ script, but it didn't work. Thanks! On Aug 19, 4:38 am, Ryura [EMAIL PROTECTED] wrote: .before('google code here') You'll want to escape any /script's. On Aug 18, 6:49 pm, Cormac [EMAIL PROTECTED] wrote: Hello everyone,

[jQuery] Re: Var and a child

2008-08-18 Thread Michael Geary
From: ripple I meant no harm towards hubbs coding abilities. And none intended toward yours either, my friend. Just trying to see what we can learn from each other, in my own annoying way. :-) All the best, -Mike