Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,471
There are 863 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     Javascript :

JQuery and site loading

Thread title: JQuery and site loading
Reply    
    Thread tools Search this thread Display Modes  
10-08-2009, 09:50 PM
#1
goldsteinmedia is offline goldsteinmedia
goldsteinmedia's Avatar
Status: I'm new around here
Join date: May 2008
Location: Philadelphia, PA
Expertise:
Software:
 
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
#2
Trim is offline Trim
Status: Member
Join date: Sep 2009
Location:
Expertise:
Software:
 
Posts: 184
iTrader: 1 / 100%
 

Trim is an unknown quantity at this point

  Old

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
#3
Orny is offline Orny
Status: I'm new around here
Join date: Oct 2009
Location: Israel
Expertise:
Software:
 
Posts: 11
iTrader: 0 / 0%
 

Orny is on a distinguished road

Send a message via MSN to Orny

  Old

Just use the noscript tag.

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

Teisho is on a distinguished road

  Old

Code:
<noscript>
JavaScript is turned off in your web browser.
To use this site properly, turn it on in your browser preferences, then refresh the page.
</noscript>

Reply With Quote
07-04-2010, 04:25 PM
#5
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

  Old

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:

Code:
$(function(){

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

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

Reply With Quote
Reply    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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