Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,255
Total Threads: 81,222
Total Posts: 566,958
There are 163 users currently browsing (tf).
  Our Partners:
  TalkFreelance     Design and Development     Programming     Javascript :

JQuery and site loading

Thread title: JQuery and site loading
    Thread tools Search this thread Display Modes  
10-08-2009, 09:50 PM
goldsteinmedia is offline goldsteinmedia
goldsteinmedia's Avatar
Status: I'm new around here
Join date: May 2008
Location: Philadelphia, PA
Posts: 7
iTrader: 0 / 0%

goldsteinmedia is on a distinguished road

Send a message via AIM to goldsteinmedia Send a message via Skype™ to goldsteinmedia

  Old  JQuery and site loading

Hey guys,

I have a question. My site is currently using JQuery to make it fade in when someone goes to the site. I like the effect but my concern is that if someone had Javascript off, then my site won't show up at all.

Is there a way to have it do all the nifty jquery things when the javascript is on but detect when the javascript is turned off on the browser and either give them an alert that says that their javascript is turned off or lets the browser bypass the javascript all together and render the page as if there isn't an jquery in the site?

I hope this make sense.

Reply With Quote
10-09-2009, 06:01 AM
Trim is offline Trim
Status: Member
Join date: Sep 2009
Posts: 184
iTrader: 1 / 100%

Trim is an unknown quantity at this point


Hmmmm i think you can easy add function with checker if JS is turned on.
You can do it with PHP cookies (client need to enter site 2 times at first), checking in DOCTYPE (not too good for SEO) or again with PHP with JavaScriptOn command or the most simple <noscript>Turn on your JS</noscript> should be loaded when java isn`t on.

Reply With Quote
10-29-2009, 04:49 PM
Orny is offline Orny
Status: I'm new around here
Join date: Oct 2009
Location: Israel
Posts: 11
iTrader: 0 / 0%

Orny is on a distinguished road

Send a message via MSN to Orny


Just use the noscript tag.

Reply With Quote
07-04-2010, 06:36 AM
Teisho is offline Teisho
Teisho's Avatar
Status: I'm new around here
Join date: Jun 2010
Posts: 6
iTrader: 0 / 0%

Teisho is on a distinguished road


JavaScript is turned off in your web browser.
To use this site properly, turn it on in your browser preferences, then refresh the page.

Reply With Quote
07-04-2010, 04:25 PM
Fez is offline Fez
Fez's Avatar
Status: Member
Join date: Jun 2010
Location: Saudi Arabia
Expertise: HTML, CSS, Wordpress, jQuery
Software: e-texteditor
Posts: 206
iTrader: 2 / 100%

Fez is on a distinguished road

Send a message via MSN to Fez


You can use the noscript tag. Or do what I do, whatever element you are fading in. Set it to display block in your css from the begining and then in your first line of jQuery code use this:


$('#elementid').css({display: "none"});

//add the animation for it's opacity or it's display or whatever

Reply With Quote

Thread Tools
Display Modes

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed