I could, and that's the way we're approaching this. I'd rather do it all at
once, rather than have two db inserts.

No biggie.

> _____________________________________________ 
> From:         jquery-en@googlegroups.com
> [mailto:jquery...@googlegroups.com]  On Behalf Of Josh Nathanson
> Sent: Wednesday, May 20, 2009 12:51 PM
> To:   jquery-en@googlegroups.com
> Subject:      [jQuery] Re: SOT: execute JS before a specific image loads
> 
> Andy,
> 
> Dunno if you can do that....curious though, could you just do an ajax call
> that gives you the "extra stuff"?  It won't fire if they don't have
> javascript present, so it would do pretty much the same thing.
> 
> -- Josh
> 
> 
> 
> _____________________________________________
> From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
> Behalf Of Andy Matthews
> Sent: Wednesday, May 20, 2009 8:52 AM
> To: jquery-en@googlegroups.com
> Subject: [jQuery] SOT: execute JS before a specific image loads
> 
> 
> 
> Can I intercept the loading of an image BEFORE it loads?
> 
> We're looking at using an img tag for inserting stats on our server.
> Here's what I'm considering...
> 
> 1) Collect certain information server side, write an img to the document
> like so (note the URL vars):
> 
> <img id="statsImg" src="stats.cfm?somevar=someval" width="1" height="1" />
> 
> 2) Using JS, intercept the load of this image BEFORE it takes place, and
> add things to the URL vars.
> 
> This way, if JS is not present, you get the default stuff, but if JS is
> present, you get extra stuff.
> 
> Anyone?
> 
> Andy Matthews
> Senior Web Developer
>  << OLE Object: Picture (Metafile) >> 
> www.dealerskins.com
> 
> P Please consider the environment before printing this e-mail.
> 
> Total customer satisfaction is my number 1 priority! If you are not
> completely satisfied with
> the service I have provided, please let me know right away so I can
> correct the problem,
> or notify my manager Aaron West at aw...@dealerskins.com.
> 

<<attachment: winmail.dat>>

Reply via email to