I'd like to position an element at the bottom of the screen. This is
easy, using position: fixed and bottom: ...px.
However, on screens higher than 600px, I'd like to fix it at 600px
from the top. That is, if the screen is shorter than 600px, push it
to the bottom of the screebn otherwise, push
I should add my platform:
Firefox 2
Win XP
Pentium Core Duo
jQuery 1.2.1 minified
cached
On Nov 4, 8:02 pm, "S. Robert James" <[EMAIL PROTECTED]> wrote:
> I benchmarked also, using a homebrew console.debug(new
> Date().getTime()), and consistently got about 90ms to load
> say that using the minified/gzipped solution will result in the least amount
> of network overhead (duh) without the (albeit minor) performance hit of the
> packed version.
>
> And on the original point about framesets, 0.016 seconds savings in time is
> not worth the problems
On Nov 4, 3:04 pm, "Jeffrey Kretz" <[EMAIL PROTECTED]> wrote:
> I would need to see some actual stats as to the performance hit of the
> jQuery file loading itself into memory before I had this concern.
>
Is there a good way to profile page load, and determine how much time
is spent parsing/exe
pm, Stefan Petre <[EMAIL PROTECTED]> wrote:
> S. Robert James wrote:
> > While working on
> > this:http://groups.google.com/group/jquery-en/browse_thread/thread/7cbc9fb...
> > , I've tried to come up with a way to read attributes out of a CSS
> > class, even i
While working on this:
http://groups.google.com/group/jquery-en/browse_thread/thread/7cbc9fb45f7dc133
, I've tried to come up with a way to read attributes out of a CSS
class, even if that class isn't applied to any element. No luck so
far.
Any jQuery pro's want to take a crack at it? Storing a
While working on a web app, I thought of this method to drastically
reduce jQuery load time.
Every link follow causes jQuery to be reloaded again. Now, although
the .js file is stored in the local cache, it still needs to be parsed
and executed, which takes a lot of time. What if, instead, we us
I have a animation using jQuery, which goes from one position to
another. Right now, the positions are coded into JavaScript:
$("#widget").animate({top: '500px'})
Instead of hard-coding 500px into JavaScript, or even passing it as a
parameter, I'd much rather set them in CSS, and run the animat
I have an animation that runs after a delay:
setTimeout(function(){$(".mbox").fadeIn('slow');},500);
If I need to cancel it, how do I this?
I would like to cancel it regardless of whether it is still in the
initial setTimeout of 500ms, or has already started to fadeIn.
Firefox provides pageshow and pagehide events, to handle page being
refereshed from cache: quite useful!
http://developer.mozilla.org/en/docs/Using_Firefox_1.5_caching
Unfortunately, as far as I can tell, jQuery simply won't bind to them!
Anyone know of a way to bind to those events with jQue
I'm having trouble understanding how various jQuery plugins show
transparency and overlays over certain elements (or the whole page).
I think CSS provides the ability to do this, but I'm not sure.
What is the basic CSS to:
1) Put a gray, semi-transparent sheet over the whole page?
2) To do the sa
I just want a simple function to answer 'first time' or 'back button
reload'. I don't want to replace the entire nav of the app.
On Jul 18, 11:01 pm, Kenneth <[EMAIL PROTECTED]> wrote:
> On 7/18/07, S. Robert James <[EMAIL PROTECTED]> wrote:
>
> &g
On 7/19/07, Klaus Hartl <[EMAIL PROTECTED]> wrote:
Robert James wrote:
>
>
> Is there a way to list all the methods that a particular JavaScript
> object has? Or is there a tool that can do this?
Speaking of tools, I highly recommend the Firebug extension for Firefox,
truly
Yes - what JS code allows it to see the list of all methods (and their
source code!)?
Jack Killpatrick wrote:
> Something like this?
>
> http://www.netgrow.com.au/files/javascript_dump.cfm
>
> - Jack
>
> Robert James wrote:
> >
> >
> > Is there a way to
Solving the Back button problem
Is there a way to use JavaScript to detect whether a page is being
loaded for the first time (from the server), or because someone hit
the Back button? Often you want to display a status message only one,
but not show it when they hit the Back button.
Is there a way to list all the methods that a particular JavaScript object
has? Or is there a tool that can do this?
I've been bothered about this also. The simplest approach is to do what
TCP/IP does - number each response, and ignore all but the latest response.
To elaborate: since you can have multiple, parallel, independent streams of
Ajax going on, you need to number those also - call them ports. For eac
On 7/1/07, John Resig <[EMAIL PROTECTED]> wrote:
Not as of yet - we're currently trying to figure out ways to improve
the custom event/triggering system.
--John
That would be very helpful. If you want to use JavaScript to, for example,
submit a form, there's currently no good way (that I k
I have a textfield which I don't show scrollbars on - easy, using CSS.
But I'd like to have the lines wordwrap, instead of just going off the
screen. Can I use jQuery to catch the maxrows and wrap lines which
are too long?
jQuery let's you simulate firing an event. Is there anyway to check
if the event returned true or false?
And the problem remains - you don't know if the event return true or
false.
How do other people deal with this issue? To me, it seems like a
serious limitation: you can't truly simulate events, because
validating callbacks will be bypassed.
On May 20, 6:03 pm, Jörn Zaefferer <[EMAIL PROTECTED]>
ciated - basically I want to fire the
registered event handlers and capture their return code.
On May 20, 2:15 pm, "S. Robert James" <[EMAIL PROTECTED]> wrote:
> One big problem I keep on running into is that event handlers don't
> fire when the event is called via jQue
One big problem I keep on running into is that event handlers don't
fire when the event is called via jQuery.
For instance, I want to disable submitting a form:
jQuery('form').bind('submit', function() { return false; })
Works like a charm. But, if I use jQuery then to submit the form, it
sti
Is this just impossible to do?
On May 18, 2:21 pm, "S. Robert James" <[EMAIL PROTECTED]> wrote:
> I'd like to prefill a text box in a form with a typical value, but
> select the text, so that if the user begins typing, the prefilled text
> is overwritten, wihtout
I'd like to prefill a text box in a form with a typical value, but
select the text, so that if the user begins typing, the prefilled text
is overwritten, wihtout him having to erase it. (Just like the
location bar in my browser - if I click on it, the text becomes
selected, so that one key overwr
Is there any way to have jQuery simulate the click event, to the point
of even following the link? $(...).click() will trigger other events,
but not follow the link - I'm looking for a complete click simulation.
(There must be some way using JavaScript - I know Selenium simulates
this...)
I'd like to select the first text input, password input, or textarea
on the page.
Only those three types of elements, and only the first one.
$("[EMAIL PROTECTED]'text']:first, [EMAIL PROTECTED]'password']:first,
textarea:first") is close, but not exact - it will take the first text
input, and t
27 matches
Mail list logo