[jQuery] Re: How to gzip a javascript file | I am not able to find.

2008-10-18 Thread Sridhar Kuppalli
In those sites they have mentioned to set some variables in apache. How do that. can my cpanel have that option? On Sun, Oct 19, 2008 at 2:17 AM, Sam Sherlock <[EMAIL PROTECTED]>wrote: > search for mod_deflate on google > > I use jsMin and cssTidy, others prefer other options > > > > 2008/10/18 S

[jQuery] Re: question about loading javascript into an element after dom is ready

2008-10-18 Thread ricardobeat
You are not really taking advantage of jQuery.. and document.write() calls that are not present on page load will always clear the page. You can simply do: $(document).ready(function(){ //$('#jt').after(''); //insert the script, but this would clear the page too $('#jt').after('I am her

[jQuery] Re: strange "bytes marker" at head of jquery.blockUI.js?

2008-10-18 Thread Jeffrey 'jf' Lim
On Sun, Oct 19, 2008 at 3:33 AM, Mike Alsup <[EMAIL PROTECTED]> wrote: > >> > Definitely an accident. In what version do you see this? >> >> in the current version? 2.09. And 2.08 as well (which I have a copy of). >> > > I don't see any problem with the original file: > > http://www.malsup.com/jq

[jQuery] Re: strange "bytes marker" at head of jquery.blockUI.js?

2008-10-18 Thread ricardobeat
It's probably the Unicode 'BOM' (byte order marker). It creeps in when you save utf-8 files through Notepad or some other editors. Most HTML editors either show it visually at the beginning of the file allowing you to delete it manually or have an option to remove it ('Remove BOM signature' or som

[jQuery] Re: question about loading javascript into an element after dom is ready

2008-10-18 Thread ricardobeat
Just to be clearer, you can't use document.write() after the page is already loaded. - ricardo On Oct 18, 3:09 pm, jt <[EMAIL PROTECTED]> wrote: > I'd like to load a js file into a specific location but it replaces > the page with what is being written out. I suspect there's a fairly > obvious a

[jQuery] Re: Prototype to Jquery

2008-10-18 Thread ricardobeat
jQuery shouldn't clash with any other library if you are doing it correctly: http://docs.jquery.com/Using_jQuery_with_Other_Libraries basically, call jQuery.noConflict(); then wrap all your jQuery code inside: jQuery(function($){ //code }); - ricardo On Oct 17, 6:23 pm, simpme <[EMAIL PRO

[jQuery] Re: Jquery Ajax vs base Ajax approach

2008-10-18 Thread ricardobeat
The only visible differences are that with jQuery you are using POST instead of GET, and sending some data to the server, what you don't seem to be doing on your 'base' approach. Anyway response times should be the same, the function running time is negligible, it only depends on the server. - ri

[jQuery] Re: JQuery Selector and Java Script Variable

2008-10-18 Thread ricardobeat
At first, the textarea has 'text content' (inside the tags), and it's shown inside. When you click the buttons, it updates this text content. *But*, when you edit it manually, you are updating the textarea's VALUE attribute, not the the text inside. When you have both, the value attribute supers

[jQuery] Re: Multiple JQuery Bottleneck

2008-10-18 Thread dvdavid2001
Hi John, Thanks a lot for the reply. Well, the app is deployed in our intranet so I cannot provide you the link onto it. However, let me try to create one test page where I can send it to you by early next week. Thanks. David John Resig wrote: > > > Kind of hard to debug what you're talkin

[jQuery] Re: window height

2008-10-18 Thread Michael Geary
The problem is the document.write. You can't do that in a .ready() or .load() or any time except when the document is first loading. (Some browsers allow it anyway; most don't.) $(window).height() should be valid while the document is loading. If you make your document.write calls directly inline

[jQuery] Re: Does jquery click() always prevent a click-through to the url?

2008-10-18 Thread Michael Geary
All jQuery events are "pass throughs" in the sense you are talking about. Merely intercepting an event with jQuery does not prevent the normal browser behavior for that event. If you handle a click event, the browser will still take its normal action after your code returns. You can prevent the s

[jQuery] Re: How to gzip a javascript file | I am not able to find.

2008-10-18 Thread MorningZ
Nice find Karl!! Works great I finally see the magic 16kb number for the 1.2.6 jQuery library from my server/site On Oct 18, 5:50 pm, Karl Swedberg <[EMAIL PROTECTED]> wrote: > Since it sounds like Sridhar is using a Windows server, he might need   > to use compression in IIS rather than apach

[jQuery] window height

2008-10-18 Thread kevind
can anyone point me to where i can get the window height or viewport height of the current window. the code (below) in the onload event doesn't return anything in IE 6 or Chrome but does work in FF3 i just need the height so i can adjust another element on the page to fit in and leave a footer a

[jQuery] Re: Only required when something else is selected?

2008-10-18 Thread Validatorian
Using this plugin, btw: http://bassistance.de/jquery-plugins/jquery-plugin-validation/

[jQuery] tablesort url sorting issue

2008-10-18 Thread sliv
Howdy. I have a really simple problem that im generating a column of form items which look like: $Guid = new Guid(); $formname2 = $Guid->toString(); // RESULTS IN HERE echo" javascript: document." . $formname . ".submit() " . $result['Horse_Name'] . " "; Hence i would like to

[jQuery] JQuery UI Not Working?

2008-10-18 Thread Ali
I've used JQuery and many plugins before however I am attemtping to update to the newest versions. I downloaded a theme from ui.jquery.com and then a custom package (UI Core + Tabs + Accordion). I keep getting an error that the .tabs is not a known function however. In addition my Accordion is loa

[jQuery] [validate] Only required when something else is selected?

2008-10-18 Thread Validatorian
Say I have a form that has a dropdown for "country", "state" and "zip/ postal code" Now, if you select "United States", both "state' and "zip/postal code" are required, but if you select, "Argentina" only "zip/postal code" is required, and if you select "vietnam" then nothing else is required.

[jQuery] Re: IE6 only 'partially' updating html loaded via ajax

2008-10-18 Thread jsw_nz
Hi Asfman Thanks for the reply - I did as you suggested- adding the option - in two separate ways - neither fixed the issue (1) function getAjax_final(page_url,page_id) { $.ajaxSetup({cache: false}); $.ajax({ type: "GET", etc. (2) $.ajax({ type: "GET",

[jQuery] Prototype to Jquery

2008-10-18 Thread simpme
Let me first begin by saying that I am a total noob to jquery/prototype/javascript etc. I am trying to setup a basic mail signup script using one of the examples from the mail chimp website (http://www.mailchimp.com/api/downloads/mcapi-simple-subscribe.zip) which uses prototype however I am alre

[jQuery] Re: Jquery tab

2008-10-18 Thread Klaus Hartl
I'm sorry, I do not quite understand your problem. Do you perhaps mean that the anchor is in use for the loading on mouseover and you need the tab to do something else if you click on it? --Klaus On 18 Okt., 23:07, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I have one little question left

[jQuery] Dynamic load web pages

2008-10-18 Thread lament10
Hello everyone. I really hope someone can help me, I think what I need help with is a fairly simple issue, and I have found good stuff on the web, but just cant get exactly what I need. Its really simple, I just want to dynamically load a few divs so my users don't have to load a new page every t

[jQuery] Re: How to gzip a javascript file | I am not able to find.

2008-10-18 Thread Karl Swedberg
Since it sounds like Sridhar is using a Windows server, he might need to use compression in IIS rather than apache's mod_deflate. Here is an article I found via google: http://www.keylimetie.com/Blog/2008/5/20/How-to-enable-HTTP-Compression-on-Windows-Server-2003/ Seems pretty straightforward

[jQuery] Re: How do i use JQuery ?

2008-10-18 Thread Mike Alsup
> Im trying to download JQuery but its downloading a .download file ... > > what should i do ? Try this link: http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js

[jQuery] How do i use JQuery ?

2008-10-18 Thread nadavten
Im trying to download JQuery but its downloading a .download file ... what should i do ?

[jQuery] Does jquery click() always prevent a click-through to the url?

2008-10-18 Thread Peter Barney
Is this a good way to let the user know that a slow-loading page is coming? $("#menu a").click(function(e){ $.blockUI({ message: "Loading..." }); location.href = e.target; }) I'm not very familiar with jquery, but as far as I can tell, the .click() function isn't a pass-

[jQuery] problem with my plugin

2008-10-18 Thread gtraxx
Hello, I have a problem with my plugin. I have two error messages: invalid object initializer [Break on this error] $(this).startWidth.animate({endwidth},2000) jquery.m...gcolor.js (ligne 15) $("#msg").MsgColor is not a function [Break on this error] endHeight: '+=30%' my code : (function($){

[jQuery] Re: Jquery tab

2008-10-18 Thread [EMAIL PROTECTED]
I have one little question left. Thits is a TAB: Beginpagina is't possbile to make the tab also clickable, because the a href is already in use. On 18 okt, 19:59, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Thanks for your time and you support. I got it up and running now. > Maybe not the

[jQuery] Re: How to gzip a javascript file | I am not able to find.

2008-10-18 Thread Sam Sherlock
search for mod_deflate on google I use jsMin and cssTidy, others prefer other options 2008/10/18 Sridhar Kuppalli <[EMAIL PROTECTED]> > Hi All, > > I am a PHP programmer. > I dont have access to the htdocs or apache of my web hosting. > > *Can we gzip JS and CSS fiels? > How to do it ? > Can w

[jQuery] Re: strange "bytes marker" at head of jquery.blockUI.js?

2008-10-18 Thread Mike Alsup
> > Definitely an accident.  In what version do you see this? > > in the current version? 2.09. And 2.08 as well (which I have a copy of). > I don't see any problem with the original file: http://www.malsup.com/jquery/block/jquery.blockUI.js?v2.09 I think it must just be your copy? Mike

[jQuery] question about loading javascript into an element after dom is ready

2008-10-18 Thread jt
I'd like to load a js file into a specific location but it replaces the page with what is being written out. I suspect there's a fairly obvious answer (maybe it can't be done). Here's a basic version of the code and I would like it to write 'here i am' in the dom after . Currently, it replaces the

[jQuery] how to auto-submit a form (when a select box changes) and load the response in the same page in a

2008-10-18 Thread skywalker
hi all! greetings to everyone! I am sorry if I missed the solution of this problem given here already but I searched for quite some time. here is my problem I have written a form with only a select box which, when changed, should submit its form and load the response from the server in

[jQuery] Re: JQuery $ function

2008-10-18 Thread Dave Methvin
> How does this work...(This actually does what I want it to, but I am > amazed that JQuery can figure out how to select from an array) If the incoming arg to $() is an array, it's assumed to be an array of DOM elements. That's what your get_selected_rows() returns, so jQuery creates an object t

[jQuery] Re: trouble with passing parameters to a callback function

2008-10-18 Thread Balazs Endresz
This is a classic issue, you just have to use another closure: for (var i = 0; i < img_list.length;i++) (function(i){ $(new Image()).load(function () { ClassName.CallBackFunction.apply(this,[$(this),i]); }).attr("src",$(img_list[i]).attr("src")); })(i) but it's a bit easier with $.each:

[jQuery] How to gzip a javascript file | I am not able to find.

2008-10-18 Thread Sridhar Kuppalli
Hi All, I am a PHP programmer. I dont have access to the htdocs or apache of my web hosting. *Can we gzip JS and CSS fiels? How to do it ? Can we do it PHP?* I am using windows OS. What i can see in the blogs are they are telling some unix commands to gzip. Is there any other way to do it on Win

[jQuery] Re: JQuery Selector and Java Script Variable

2008-10-18 Thread Remy Sharp
Slightly aside to your actual problem - I looked at the jsbin dump you did and the source XML (http://jsbin.com/ebupo ) and noticed the XML tags had been escaped - so I've gone in to the database and updated it manually so your test page now works (or works in that it demonstrates the problem). C

[jQuery] Re: Jquery Ajax vs base Ajax approach

2008-10-18 Thread bookme
I mean response time using base ajax approach or jquery? Which one is fast ? Please tell me Thanks On Oct 18, 6:52 pm, MorningZ <[EMAIL PROTECTED]> wrote: > Can you elaborate on what you mean by "seemless"? Like mainly, what > is the issue? And what is "better results"? the results should

[jQuery] Re: JQuery Selector and Java Script Variable

2008-10-18 Thread Balazs Endresz
In your case the proplem is that you're using .text() instead of .value() on the textarea. The strangest thing is why does .text() even work unless you change the content? It's quite misleading because it shouldn't work on input elements: http://docs.jquery.com/Attributes/text On Oct 18, 6:09 pm

[jQuery] Re: Jquery tab

2008-10-18 Thread [EMAIL PROTECTED]
Thanks for your time and you support. I got it up and running now. Maybe not the most effecient way but it works. On 17 okt, 16:50, Klaus Hartl <[EMAIL PROTECTED]> wrote: > On 17 Okt., 15:37, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > Works amazing. I adjusted the ui.tabs.js file so tha

[jQuery] Re: event.preventDefault() seems to fail

2008-10-18 Thread Ryan Hullah
I've thought of that, but I'm not sure that would work for me. I only want a sub section of input textboxes and certain input buttons within that sub section to prevent the form submit on the Enter button. So if I did it on the form submit event, I'd need to know who caused the submit and whethe

[jQuery] move and resize window according to parent window position

2008-10-18 Thread Tom Shafer
Does anybody have a way to move a popup window so that it is always centered over the parent window. I am having trouble figuring this out. Thanks, Tom

[jQuery] getting new window to appear at mouse click coordinates

2008-10-18 Thread David Garthe
I need to have a window appear at the exact location of the link that I click (so its not floating in the middle of the page or something). Can someone help me out? Thanks. // this example shows the use of onShow and onHide callbacks. Make

[jQuery] some doubt

2008-10-18 Thread asfman
1. init $.fn[ready?"ready":"load"] (fn) here if we delete $.fn.ready,it comes $.fn.load(fn) equals to $ (document).bind("load",fn); Does it make any means? 2. selector if my selector is "~.xx" or "~ xxx",the search results are the same the reason is : the line 1537: // And remove the token

[jQuery] trouble with passing parameters to a callback function

2008-10-18 Thread GTakacs1976
This is my code: var ClassName = {}; ClassName.CallBackFunction = function(index,i) { alert($(index).attr('src') + ' ' + i); } function() { for (var i = 0; i < img_list.length;i++){ $(new Image()).load(function () { ClassName.CallBackFunction.apply(this,[$(this),i]); }

[jQuery] Jquery change event

2008-10-18 Thread Ronn
How do I get jquery's change event you fire per letter typed into a text box? I'm using the code below, but it only fires when I tab off the textbox. Thanks, Ronn $(document).ready(function() { $('input').change(function() { alert('you changed something');

[jQuery] Slider plugin not working in, at first, hidden div

2008-10-18 Thread Corstiaan
Hello, For exercice, i have build a custom content slider plugin (which i will share as soon as it is finished). It all works fine so far. See http://preview.hetfabrikaat.nl/fabrikaat/car.htm http://preview.hetfabrikaat.nl/fabrikaat/car.htm for a working in progress example. As i said, all wo

[jQuery] Find element in a iframe

2008-10-18 Thread Fabrizio
Hello !!! I have a very nice problemen , I would like to keep all the ".entry" element in a Iframe. (. ) My Iframe is : http://radiofrance-blogs.com/fabienne-sintes/ feed/" /> I try differents thinks whithout succes. If someone have the solution it wil be my friend for the next 3 years !!

[jQuery] xml parsing useing jquery not working in IE7

2008-10-18 Thread sachin
below example is working in FF but not working in IE. Pls somebody help me. //xml file //js file // File: readXML.js // Start function when DOM has completely loaded $(document).ready(function(){ // Open the students.xml file $.get("incentives.xml",{},function(xml){

[jQuery] [Superfish] Close current after delay

2008-10-18 Thread [EMAIL PROTECTED]
Hi I've a new layout with Superfish (horizontal + 2 vertical sub): http://www.metadelic.com/upload/brassam/layout_brassam/ Everthing is perfect. Exept that I wish close after a short delay the current path and display only the active menu (horizontal in red). How I can do that? Thx in advance f

[jQuery] Superfish - Fix to allow custom easing

2008-10-18 Thread Chuck Trukk
I wanted an easeOutBack easing for my animation. It was easy with a few modifications: modify sf.defaults sf.defaults = { etc current defaults, easing : 'swing' }; modify showSuperfishUl (the 2nd to last line) from $ul.animate(o.a

[jQuery] Slide one div off left, expand another in one click?

2008-10-18 Thread Krys
I have a page to code where there will be two divs side by side. The left one will contain navigation, and a << button. Clicking this should slide the dive off the page to the left, leaving just a >> button. At the same time, the right-hand div should expand to fill the space left. Clicking the >>

[jQuery] Re: JQuery Selector and Java Script Variable

2008-10-18 Thread RotinPain
I met a similar issue, but i can determine it happens only with Firefox (3.0.3). The variable selector seems to be the problem. I explained the whole thing here:http://jsbin.com/aciwi in short, $("[id='" + variableId + "']").text( variableValue ); won't always work with FF (it works in first ste

[jQuery] Re: strange "bytes marker" at head of jquery.blockUI.js?

2008-10-18 Thread Jeffrey 'jf' Lim
On Fri, Oct 17, 2008 at 7:39 PM, Mike Alsup <[EMAIL PROTECTED]> wrote: > >> not too sure if anybody noticed this (I did a cursory search through >> the archives - but didnt find anything), but what is with those first >> 3 non-ascii bytes at the head of the js? (0xef, 0xbb, 0xbf) Are they >> suppo

[jQuery] Check to make sure checkbox is checked using validator

2008-10-18 Thread flycast
My code: Do you agree to the terms above? Yes No I want to require that the checkbox with the value of "Yes" is checked before the form will submit. How is this done?

[jQuery] Give rest to Mouse Buttons...........

2008-10-18 Thread thesmartmind
Hi all, I got one problem when i am trying to write click free code. I am using onmouseover effect every time to give focus to HTML Elements. But i am facing two problems here 1. I am not able to execute my code in Internet Explorer. It is executing in mozilla. 2. I am not able to display drop

[jQuery] Re: Jquery Ajax vs base Ajax approach

2008-10-18 Thread MorningZ
Can you elaborate on what you mean by "seemless"? Like mainly, what is the issue? And what is "better results"? the results should be the same if your php code is any code On Oct 18, 2:27 am, bookme <[EMAIL PROTECTED]> wrote: > Hi, > > Jquery is gr8 I agreed. > > But when I am working on a re

[jQuery] Jquery hide and fadeout are not the same

2008-10-18 Thread GTakacs1976
I have these two lines of code: $("#imagestrip ul li a img").hide(); $("#imagestrip ul li a img").fadeOut(1); While Hide not only hides the img element it also hides the li element. fadeOut only hides the img element. Is this a bug or a feature? I want to be able to hide only the img element but

[jQuery] Showing 1 post after being buried.

2008-10-18 Thread Miraploy
Hello. jquery newbie here. I'm trying to build a digg-like bury- comment feature with drupal. I got the comments to bury after a certain number of negative votes, but i don't know how to create a *show button that shows only 1 post (after it's been already buried). Anything like this: $("p").

[jQuery] Re: IE6 only 'partially' updating html loaded via ajax

2008-10-18 Thread asfman
$.ajaxSetup({cache: false}); Maybe the cache results

[jQuery] Equal height containers with expand abilities

2008-10-18 Thread bmclaughlin
Hello, I am trying to find a way to do the following. I have included some code (link below) of the basic layout for the question at hand showing two examples of content amount possible. The Goal: When someone lands on the page there are 3 containers in a row. All three containers are of equal h

[jQuery] Re: event.preventDefault() seems to fail

2008-10-18 Thread Prajwala Manchikatla
instead of using preventDefault for the input, submit buttons use it for the form.submit event. That means write a event handler for onsubmit event of form and in that handler use preventDefault. It will work. We also had a same requirement. It solves the problem. On Sat, Oct 18, 2008 at 9:14 AM,

[jQuery] Need Help with Serializing Ajax Calls

2008-10-18 Thread aimhier
I am using AjaxManager and I modified the JSuggest Plugin and set the option to abortOld so that it aborts all old requests. However, the older requests are not aborted. The fragment of the code for declaration $(function() { var ajaxManager1 = $.manageAjax({manageType: 'abortOld', maxReq: 0}); .