[jQuery] Re: $.css() onload

2009-02-03 Thread kim3er

Not sure what you mean MorningZ, looks okay to me. I tend put my code
before the closing body tag though.

On Feb 3, 10:03 pm, MorningZ  wrote:
> "where does this belong then? "
>
> 
>    
>         
>         
>         $(document).ready(function() {
>               //Fires when the DOM is ready
>         });
>         $(window).load(function() {
>               //Fires when the page is loaded
>               //(images all loaded, DOM objects placed/sized, etc)
>         });
>         
>    
> 
>       .. Your HTML ...
> 
> 
>
> On Feb 3, 4:47 pm, kim3er  wrote:
>
> > $(document).ready() fires when the document has finished loading. It
> > is generally appropirate to attach any onload code to that event. If
> > you need to attach code to the window load event, do so at the top of
> > the page before the page has started rendering.
>
> > Rich
>
> > On Feb 3, 9:30 pm, eagleon  wrote:
>
> > > thanks for the reply, I got it to work without the $(window).load
> > > () ... but just to learn, where does this belong then?
>
> > > On Feb 3, 4:26 pm, MorningZ  wrote:
>
> > > > Don't put
>
> > > > $(window).load()
>
> > > > inside
>
> > > > $(document).ready()
>
> > > > On Feb 3, 4:12 pm, eagleon  wrote:
>
> > > > > Hi Guys,
>
> > > > > I was trying to fire an $.css() during the onload event. For some
> > > > > reason, it does not work. It works fine if I attach it to another
> > > > > event such as a resize event, but not onload.
>
> > > > > This is what I have done:
>
> > > > > Code:
> > > > > [code]
> > > > > function myFunc() {
>
> > > > >       $("#example").css({'width' : 10px;});
>
> > > > > }
>
> > > > > $(document).ready(function() {
>
> > > > >       $(window).load(function() {
>
> > > > >             myFunc();
>
> > > > >       });
>
> > > > > });
>
> > > > > [/code]
>
> > > > > I need this element to be sized immediately after loading. This works
> > > > > if the event was anything else, but dosen't work with 'load' at all.
>
> > > > > Please help!
>
> > > > > Thanks


[jQuery] Re: How to Call ASP.Net 3.5 WebService which returns JSON Data From ASP.Net 2.0 WebPage having AutoComplete

2009-02-03 Thread kim3er

Have you looked in the 'd' parameter of the response object? .NET3.5
handles JSON differently to 2.0.

On Feb 4, 4:44 am, ketan  wrote:
> Hi Friends,
>                 I am facing a problem while calling a webservice
> written in ASP.Net 3.5 which returns a JSON Data and then passing this
> data to a page that has jQuery's AutoComplete Plugin.
>                I am able to call this webservice but It doesn't
> return the data.
> Regards,
> Ketan


[jQuery] Re: $.css() onload

2009-02-03 Thread kim3er

$(document).ready() fires when the document has finished loading. It
is generally appropirate to attach any onload code to that event. If
you need to attach code to the window load event, do so at the top of
the page before the page has started rendering.

Rich

On Feb 3, 9:30 pm, eagleon  wrote:
> thanks for the reply, I got it to work without the $(window).load
> () ... but just to learn, where does this belong then?
>
> On Feb 3, 4:26 pm, MorningZ  wrote:
>
> > Don't put
>
> > $(window).load()
>
> > inside
>
> > $(document).ready()
>
> > On Feb 3, 4:12 pm, eagleon  wrote:
>
> > > Hi Guys,
>
> > > I was trying to fire an $.css() during the onload event. For some
> > > reason, it does not work. It works fine if I attach it to another
> > > event such as a resize event, but not onload.
>
> > > This is what I have done:
>
> > > Code:
> > > [code]
> > > function myFunc() {
>
> > >       $("#example").css({'width' : 10px;});
>
> > > }
>
> > > $(document).ready(function() {
>
> > >       $(window).load(function() {
>
> > >             myFunc();
>
> > >       });
>
> > > });
>
> > > [/code]
>
> > > I need this element to be sized immediately after loading. This works
> > > if the event was anything else, but dosen't work with 'load' at all.
>
> > > Please help!
>
> > > Thanks


[jQuery] Re: find text within the page

2009-02-02 Thread kim3er

Could you do a string replace on the inner HTML?

Something like: .replace(/keyword/, "keyword"); or use
indexOf if you want to protect the case.

Rich

On Feb 2, 5:01 pm, paulinstl  wrote:
> I'm looking for a way to locate keywords to help the end user out.
>
> For instance, if I want to find the word "polar" then i'd like my
> function to locate it, wrap it with a span, and assign it a function.
>
> so far I can locate using a content filter and classname like this...
>
> $(".keyword:contains('polar')")
>
> But this selects the whole element (paragraph, div, whatever)
>
> how do i focus in on JUST the text?


[jQuery] Re: High Point Village Website

2009-01-30 Thread kim3er

Thanks mcologne, appreciated.

On Jan 30, 2:09 pm, mcologne  wrote:
> nice work, i like it!
>
> without going into details of programming, the site differs from that
> classic style often seen
> nowadays on many websites...
>
> you know what i mean... buttons, tabs...
>
> i like the big graphics in the backgrounds...
>
> best regards m
> cologne
>
> On Jan 30, 2:38 pm, kim3er  wrote:
>
> > Thanks for your feedback.
>
> > With this project we wanted to create something that was interesting
> > to but still functional without reliance on either JS or Flash. The
> > end result, I hope, is a website that is functional and fully styled
> > without JS turned on. With JS turned on, the site becomes more
> > interactive and hopefully more engaging. For users with Flash 9 or
> > above, more functionality is exposed, for example music, animated
> > tooltips and the red people. What we didn't want was for any of the
> > functionality to be dependant on Flash, that's where we draw the line.
>
> > In hindsight the home page scroll would have been a lot smoother and
> > consistent across browsers, if done in Flash. That said, I'm still
> > very happy with the result.
>
> > I'm not sure what you mean by the "background fades" bug, but I have
> > discovered the random woman between animations. Thanks again.
>
> > Rich
>
> > On Jan 29, 9:33 pm, Ricardo Tomasi  wrote:
>
> > > I also had that problem. Sometimes I hover a + and it doesn't slide
> > > down. Also experiencied two other bugs:
> > > - when you click the + button, the background fades from black again
> > > - inside a section like 'bar' or 'boutique hotel', when I click
> > > another section (gym/pool/etc), an unrelated image flashes in the
> > > background (a woman laying back in a chair)
>
> > > Very nice design. Do you develop in Flash too? Was it worth the extra
> > > work to do it all in JS?
>
> > > cheers,
> > > - ricardo
>
> > > On Jan 29, 6:54 pm, David Meiser  wrote:
>
> > > > It has a nice user experience.  However, you might want to think about 
> > > > the
> > > > hoverintent plugin - things seemed "shaky" when I tried to click on 
> > > > them (eg
> > > > - the animation kept moving when I wanted to hover over an item) in FF3.
>
> > > > On Thu, Jan 29, 2009 at 12:58 PM, kim3er  wrote:
>
> > > > > Hi,
>
> > > > > I've just finished working on a new web site using jQuery 1.3.1 and
> > > > > would appreciate feedback.
>
> > > > >http://www.highpointvillage.co.uk/
>
> > > > > Rich


[jQuery] Re: High Point Village Website

2009-01-30 Thread kim3er

Thanks for your feedback.

With this project we wanted to create something that was interesting
to but still functional without reliance on either JS or Flash. The
end result, I hope, is a website that is functional and fully styled
without JS turned on. With JS turned on, the site becomes more
interactive and hopefully more engaging. For users with Flash 9 or
above, more functionality is exposed, for example music, animated
tooltips and the red people. What we didn't want was for any of the
functionality to be dependant on Flash, that's where we draw the line.

In hindsight the home page scroll would have been a lot smoother and
consistent across browsers, if done in Flash. That said, I'm still
very happy with the result.

I'm not sure what you mean by the "background fades" bug, but I have
discovered the random woman between animations. Thanks again.

Rich

On Jan 29, 9:33 pm, Ricardo Tomasi  wrote:
> I also had that problem. Sometimes I hover a + and it doesn't slide
> down. Also experiencied two other bugs:
> - when you click the + button, the background fades from black again
> - inside a section like 'bar' or 'boutique hotel', when I click
> another section (gym/pool/etc), an unrelated image flashes in the
> background (a woman laying back in a chair)
>
> Very nice design. Do you develop in Flash too? Was it worth the extra
> work to do it all in JS?
>
> cheers,
> - ricardo
>
> On Jan 29, 6:54 pm, David Meiser  wrote:
>
> > It has a nice user experience.  However, you might want to think about the
> > hoverintent plugin - things seemed "shaky" when I tried to click on them (eg
> > - the animation kept moving when I wanted to hover over an item) in FF3.
>
> > On Thu, Jan 29, 2009 at 12:58 PM, kim3er  wrote:
>
> > > Hi,
>
> > > I've just finished working on a new web site using jQuery 1.3.1 and
> > > would appreciate feedback.
>
> > >http://www.highpointvillage.co.uk/
>
> > > Rich


[jQuery] Re: High Point Village Website

2009-01-30 Thread kim3er

Thanks for the feedback. Things get a bit shaky in FF2 & FF3, I
understand this is because FF redraws every frame of an animation. The
sole occasion I've encountered when ie6 provides a better end result,
though I'm sure Mozilla have there reasons. In order to improve things
on the home page, a couple of the flash elements have been disabled
including the flash tooltips, which have been replaced with JS
versions in FF and non flash browsers. Rich

On Jan 29, 8:54 pm, David Meiser  wrote:
> It has a nice user experience.  However, you might want to think about the
> hoverintent plugin - things seemed "shaky" when I tried to click on them (eg
> - the animation kept moving when I wanted to hover over an item) in FF3.
>
> On Thu, Jan 29, 2009 at 12:58 PM, kim3er  wrote:
>
> > Hi,
>
> > I've just finished working on a new web site using jQuery 1.3.1 and
> > would appreciate feedback.
>
> >http://www.highpointvillage.co.uk/
>
> > Rich


[jQuery] Re: High Point Village Website

2009-01-30 Thread kim3er

Thank you for the feedback, it really is very much appreciated. I'm
aware of the considerable amount of requests, especially with respect
to the amount of JS files we have referenced. Rich

On Jan 29, 8:50 pm, Sam Sherlock  wrote:
> That is a great piece of work, a huge amount of http requests - but appeared
> pretty seamless
>
> 2009/1/29 ksun 
>
>
>
> > Could see only intro in IE
>
> > On Jan 29, 12:58 pm, kim3er  wrote:
> > > Hi,
>
> > > I've just finished working on a new web site using jQuery 1.3.1 and
> > > would appreciate feedback.
>
> > >http://www.highpointvillage.co.uk/
>
> > > Rich


[jQuery] Re: High Point Village Website

2009-01-30 Thread kim3er

Hi ksun,

Thanks for the feedback. There are two intros, one constructed in JS
and one for users with flash installed, browsers with JS disabled will
not see an intro. I have tested the intros in ie6, ie7, ie8rc1, ff2,
ff3, s3, c1 and 09, across XP, Vista, OS X and Ubuntu.

Is your experiance contradictory to what I've stated above? If so, I'd
be very interested any follow up information you could provide. The
other browsers you tested the site on along with any user defined
settings you belive are relevant.

Rich

On Jan 29, 8:24 pm, ksun  wrote:
> Could see only intro in IE
>
> On Jan 29, 12:58 pm, kim3er  wrote:
>
> > Hi,
>
> > I've just finished working on a new web site using jQuery 1.3.1 and
> > would appreciate feedback.
>
> >http://www.highpointvillage.co.uk/
>
> > Rich


[jQuery] High Point Village Website

2009-01-29 Thread kim3er

Hi,

I've just finished working on a new web site using jQuery 1.3.1 and
would appreciate feedback.

http://www.highpointvillage.co.uk/

Rich