Re: [jQuery] JS loading problem with FF

2007-03-25 Thread Kristinn Sigmundsson
Kristinn Sigmundsson wrote: Hi I got a little problem on a site I'm working on, the problem is that in FF, it mostly takes for 15sec for some files to load, and I get this error after load: illegal character http://www.haddock.ffs.gu.se/js/default.packed.js Line 1 A [EMAIL PROTECTED]ß5

[jQuery] JS loading problem with FF

2007-03-24 Thread Kristinn Sigmundsson
Hi I got a little problem on a site I'm working on, the problem is that in FF, it mostly takes for 15sec for some files to load, and I get this error after load: illegal character http://www.haddock.ffs.gu.se/js/default.packed.js Line 1 A [EMAIL PROTECTED]ß5•˜%(c)ñqvŒ°vqF']ÆuA\n The problem

Re: [jQuery] return false

2007-03-24 Thread Kristinn Sigmundsson
I think it is because you are fading it back before the content has loaded try this: $('#list a').each(function(i){ $(this).click(function(event){ $(#list).fadeOut(slow).load(this.href, function () { $(this).fadeIn(slow); }); return false; }); });

Re: [jQuery] passing a function to a function with variables

2007-03-07 Thread Kristinn Sigmundsson
not sure bout this, but you could try it: buildDialogBox({ u:'oba_1_2', f: function () { loadJson('userlist.txt', buildUserManageTable) }, d:'formDialog600'}); //kristinn On 3/7/07, bmsterling [EMAIL PROTECTED] wrote: Hey guys and gals, I am trying to do something like below:

Re: [jQuery] Submit a form (POST) to a Thickbox panel

2007-03-04 Thread Kristinn Sigmundsson
U could generate a div with the info from the form and use thickbox internal function TB_show, like this: $(preview).click( function () { //generate a div with the contents of the form and then call thickbox with: TB_show(Post preview, #TB_inline?height=300width=300inlineId=divId, false); }); I

[jQuery] Interface problem

2007-02-25 Thread Kristinn Sigmundsson
Hi there, I've got a really odd problem with the interface plugin. The thing is that when I go to the specific site that uses Interface theres no problem, but when I update the page I get this: http://img02.picoodle.com/img/img02/7/2/25/f_Interfaceerm_e3ca35b.gif So, following a link or typing in

Re: [jQuery] Interface problem

2007-02-25 Thread Kristinn Sigmundsson
... and this is totally random any ideas? //Kristinn Kristinn Sigmundsson wrote: Hi there, I've got a really odd problem with the interface plugin. The thing is that when I go to the specific site that uses Interface theres no problem, but when I update the page I get this: http://img02.picoodle.com

Re: [jQuery] Interface problem

2007-02-25 Thread Kristinn Sigmundsson
thanks brian, as I got a few dynamically made lists I'd put script type=text/javascript$(makesortable(sort_'.$t['type'].'));/script after every list, a simple change to: script type=text/javascript$(function(){makesortable(sort_'.$t['type'].')});/script solved it. For some reason I thought that

[jQuery] Help needed: Images not loading properly in FF

2007-02-25 Thread Kristinn Sigmundsson
Hi, so this is not a specific jQuery problem that I can point out but let me explain my problem. When refreshing a page in FF 1.5 and FF2, some images won't load properly. Which images is totally random. When I check out the net tab in firebug I see that sometimes images (only one per page view

Re: [jQuery] Help needed: Images not loading properly in FF

2007-02-25 Thread Kristinn Sigmundsson
to be the length of the gzipped content or the unpacked one? Kristinn Sigmundsson wrote: Hi, so this is not a specific jQuery problem that I can point out but let me explain my problem. When refreshing a page in FF 1.5 and FF2, some images won't load properly. Which images is totally random. When I

Re: [jQuery] how do i use display: table-row; instrad of display: block; with the show() effect on table rows?

2007-02-25 Thread Kristinn Sigmundsson
maybe something like this: $(newObject).show(slow, function() { $(this).css(display, table-row) }); //Kristinn On 2/25/07, Mark [EMAIL PROTECTED] wrote: Hey, well the title really says it all.. i`m trying to add/delete table rows with jquery and that`s working.. the bad thing is that

Re: [jQuery] appending text nodes

2007-02-22 Thread Kristinn Sigmundsson
Hm, you empty it and then append to it? wouldn't that be the same as using .html(val)? If that is what you'd want to do, try the .text() command: $(this).parents(div.sidebarToDo).find(td.sidebarText).text(val) contents of td.sidebarText will be replaced with val On 2/22/07, [EMAIL PROTECTED]

Re: [jQuery] appending text nodes

2007-02-22 Thread Kristinn Sigmundsson
: ---Original Message--- From: Kristinn Sigmundsson [EMAIL PROTECTED] Subject: Re: [jQuery] appending text nodes Sent: Feb 22 '07 15:42 Hm, you empty it and then append to it? wouldn't that be the same as using .html(val)? If that is what you'd want to do, try the .text() command

Re: [jQuery] accordion table, instead of an accordion list/menu?

2007-02-21 Thread Kristinn Sigmundsson
Thing is that even if you have a callback to the slideToggle and set the display property to table-row, it still comes out wierd... maybe a wrapping div is the best solution? On 2/21/07, rolfsf [EMAIL PROTECTED] wrote: Thanks Karl - I've scoured the threads - it's definitely on the list of

Re: [jQuery] Applyng classes to table rows?

2007-02-21 Thread Kristinn Sigmundsson
this does it for the classes $(table tr:not([EMAIL PROTECTED])).each(function() { $(this).attr(class, $(this).prev([EMAIL PROTECTED]).attr(class)); }); you might be able to get it down to one row... I would not recommend setting the IDs as

Re: [jQuery] specifying count for rss feed display with each function

2007-02-21 Thread Kristinn Sigmundsson
you can use the .lt() command before the .each to narrow the results, so if you want the first 10, you would use something like $(this).lt(10).each... //Kristinn On 2/21/07, john smith [EMAIL PROTECTED] wrote: Sorry all Im still a newb to jquery. Ive been messing around with using jquery

Re: [jQuery] Applyng classes to table rows?

2007-02-21 Thread Kristinn Sigmundsson
name from a previous tr / and combine them into a new class name like so: from: class=row id=blah-one to: class=row blah-one I modified your code a bit to achieve this. Thank you! Shane On 2/21/07, Kristinn Sigmundsson [EMAIL PROTECTED] wrote: this does it for the classes

Re: [jQuery] Introduction and Masked Input Plugin

2007-02-21 Thread Kristinn Sigmundsson
this is something that I did for a friend not to long ago: jQuery.fn.paste = function(func) { if (typeof func == function) { jQuery(this).each( function () { if ($.browser.msie) {

Re: [jQuery] specifying count for rss feed display with each function

2007-02-21 Thread Kristinn Sigmundsson
hmm, shouldn't you variable items_count, be used in lt(items_count)? can't see where it's used in you script. //Kristinn On 2/22/07, John W [EMAIL PROTECTED] wrote: Just thought Id post the full deal (well the itty bitty jquery script) for anyone else that is looking for something similiar to

Re: [jQuery] Select elements without specific children

2007-02-20 Thread Kristinn Sigmundsson
Not only is it unneccesary to repeat li.expandable, according to http://docs.jquery.com/DOM/Traversing#not.28_expr_.29 it won't work at all. //Kristinn On 2/20/07, Karl Swedberg [EMAIL PROTECTED] wrote: Hi Adam, try this: $('li.expandable:not([a.on])') A couple things to note: 1. you

Re: [jQuery] accordion table, instead of an accordion list/menu?

2007-02-20 Thread Kristinn Sigmundsson
First things first, and I could be wrong here, but I believe that the correct syntax for a table is: table thead/thead tfoot/tfoot tbody/tbody /table Not sure several tbody elements is correct... anyway, I did some test, and got some freaky results, I think that the problem lies with the

Re: [jQuery] accordion table, instead of an accordion list/menu?

2007-02-20 Thread Kristinn Sigmundsson
in IE7, no need for the display fix there) ///Kristinn On 2/21/07, Kristinn Sigmundsson [EMAIL PROTECTED] wrote: First things first, and I could be wrong here, but I believe that the correct syntax for a table is: table thead/thead tfoot/tfoot tbody/tbody /table Not sure several tbody

Re: [jQuery] Including a file based on Form Select

2007-02-19 Thread Kristinn Sigmundsson
Heres a similar example from when I was starting out with jquery, had ALOT of test pages back then :P Might help you Javascript: var formOptions = { male: 'test5.php?type=male', female:

Re: [jQuery] jqModal: closeClass and href?

2007-02-18 Thread Kristinn Sigmundsson
You could do a $(.jqmClose).click(), only thing I could come up with without having spend much time with jqModal //Kristinn On 2/19/07, fatjoez [EMAIL PROTECTED] wrote: Hi there. I've actually had a similar problem today. I'm creating a login box overlay with jqModal on successfull login I

Re: [jQuery] Cascading data into text input boxes

2007-02-16 Thread Kristinn Sigmundsson
I did something similar once, so I just made some changes this should work: $( function () { $([EMAIL PROTECTED]).change( function() { var reg = /date(on|off)(\d+)/i; var ar = reg.exec($(this).attr(id)); //id=dateoff3 = ar = [dateoff3, off, 3]

Re: [jQuery] adding a class to positive and negative data cells in a table column

2007-02-16 Thread Kristinn Sigmundsson
First thought: $(table td).each( function () { var nr = parseFloat($(this).text()); if (nr 1.5) }); On 2/16/07, rolfsf [EMAIL PROTECTED] wrote: Is there a clever way in jQuery to find non-zero data in specific columns of a table, and assign them a class based on whether they are

Re: [jQuery] adding a class to positive and negative data cells in a table column

2007-02-16 Thread Kristinn Sigmundsson
... //Kristinn On 2/16/07, Kristinn Sigmundsson [EMAIL PROTECTED] wrote: First thought: On 2/16/07, rolfsf [EMAIL PROTECTED] wrote: Is there a clever way in jQuery to find non-zero data in specific columns of a table, and assign them a class based on whether they are positive or negative? In plain

[jQuery] Handling you javascript files

2007-02-14 Thread Kristinn Sigmundsson
Hi there. I'm working on a site that will be using alot of ajax for edit-in-place, aswell as alot of other javascript. The thing is that there is practicly no javascript for regular users, compared to administrators. So I figured that in the top of my indexfile where all the scripts are I'd do

Re: [jQuery] Handling you javascript files

2007-02-14 Thread Kristinn Sigmundsson
everytime a single file changes. Just amazing! Thanks alot guys, I have no idea how I would survive without you. [1] http://www.ejeliot.com/blog/73 [2] http://joliclic.free.fr/php/javascript-packer/en/ On 2/14/07, Aaron Heimlich [EMAIL PROTECTED] wrote: On 2/14/07, Kristinn Sigmundsson [EMAIL PROTECTED

[jQuery] VERY simple img hover plugin

2007-02-14 Thread Kristinn Sigmundsson
jQuery.fn.makeHot = function(settings) { var settings = jQuery.extend({ sub: _hot, }, settings); jQuery(this).each( function () { var src = jQuery(this).attr(src); var ext = src.substring(src.lastIndexOf('.'), src.length); src =

Re: [jQuery] Can't seem to return an object

2007-01-29 Thread Kristinn Sigmundsson
I'm not sure if I'm right on this one, BUT the functioncall doesn't stop the flow does it? If so then when you do this: if(mode == edit){ var userObj = getActiveUsers(); dump(userObj); // -- This gets executed before the ajaxcall has completed. } And that would explain why you get the

Re: [jQuery] position clearing ala Shaun Inman

2007-01-28 Thread Kristinn Sigmundsson
http://www.nabble.com/file/5995/threecolumnfooter.html threecolumnfooter.html Test that file, doesn't use the dimensions plugin but you'll figure it out. It handles windowresize, but I didn't find a good way to catch a text resize, so in this example the placeFooter function calls itself after

Re: [jQuery] cant append() form objects

2007-01-27 Thread Kristinn Sigmundsson
Just a quick input on the PHP variables, If you use double quotes this: echo $var; will output the contents of $var but using single quote echo '$var'; vill output $var (not the contents of a variable) On 1/27/07, Jeremy Dill [EMAIL PROTECTED] wrote: Well, I finally got everything working

[jQuery] Calling a default function in a IFrame

2007-01-27 Thread Kristinn Sigmundsson
Hi there, I'm trying to edit thickbox to call a default function whenever a iframe has loaded, the function will not always exist in the page loaded so I would not want a JS-error when this is the case. Code I'm using atm: . try { line 304:

Re: [jQuery] remove in-page links with plain text

2007-01-27 Thread Kristinn Sigmundsson
Well that would depend on whether the original document.location.href returned a absolute or relative url wouldn't it? You should make sure that the url is either absolute or relative, depending on how you have your links defined. something like url.replace(http://www.yourdomain.com/;, ) should

Re: [jQuery] Giving up regular DOCTYPES

2007-01-25 Thread Kristinn Sigmundsson
It is always (if not then atleast almost always) possible to do thing like you describe without using custom attributes, BUT don't you think that arnauds example makes more sense, codewise? That way you can set the attribs easily ($(something).attr(selectableday, 1)) and then get all the

Re: [jQuery] Form and .submit

2007-01-24 Thread Kristinn Sigmundsson
Also you had one simple mistake here; $(#myForm).submit(function(){ alert(Submit Pressed); )}; -- should be }); On 1/24/07, Mike Alsup [EMAIL PROTECTED] wrote: I'm new to jquery, I'm trying to make something that work

Re: [jQuery] Form Ajax and PHP

2007-01-24 Thread Kristinn Sigmundsson
The thing is that the ajax call will never be made, because the form submits (to itself?). Adding a this: /* The same with this code */ $.post(script.php); return false; - will stop the form from submitting and process your calls. On 1/25/07, Karl Rudd [EMAIL PROTECTED] wrote: Try