HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 22nd, 2000, 02:41 PM
asdf12371237 asdf12371237 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 2 asdf12371237 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I'm using a javascript popup window so that when a user clicks on a link, the popup window comes up with some information.

However, is there a way to make it so that if the user doesn't have javascript enabled, it goes straight to that page that would have been in the popup window? I've seen some places use a <noscript> thing.. Is it possible to use with a popup window,
and if so, how?

Below is my javascript (which I got from a javascripts website):

<script language="JavaScript">

function Browser()
{
if (navigator.appVersion.indexOf("(X11") != -1 | | navigator.appVersion.indexOf("(Mac") != -1) return 1
else return 0
}

function Description(url,dow,winwidth,winheight)
{
if (stat == 0)
{
description=window.open(url,'descr','toolbar=no,location=no,directories=no,status=no,menubar=no,scro llbar=no,scrollbars=auto,resizable=no,copyhistory=no,width='+winwidth+',height=' +winheight)
description.focus()
stat=dow
if (Browser() == 1 ) window.open(url,'descr')
}

else
{
description.close()
if (stat != dow)
{
stat=dow
description=window.open(url,'descr','toolbar=no,location=no,directories=no,status=no,menubar=no,scro llbar=no,scrollbars=auto,resizable=no,copyhistory=no,width='+winwidth+',height=' +winheight)
description.focus()

if (Browser() == 1 ) window.open(url,'descr')
}

else
{
stat=0
}
}
}

</script><script>

stat=0
dow=0
</script>


And the link:

<a href="Javascript URLescription('http://www.domain.com/popup.php3','10','300','275')">

Reply With Quote
  #2  
Old June 22nd, 2000, 10:08 PM
Spookster Spookster is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 1999
Posts: 84 Spookster User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Try putting just a normal text link inside the noscript tags.

Spookster

------------------
Visit the WSAbstract Help Forum for your Javascript, DHTML, or General Web Design Questions

Reply With Quote
  #3  
Old July 7th, 2000, 09:45 AM
zcrar70's Avatar
zcrar70 zcrar70 is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 49 zcrar70 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
hi,

I was trying to do the same thing, check if the browser has JS and if so enable popup windows else use normal HTTP hyperlink. Being a total JS neewbie i didn't quite understand your response, though, spookster. What would the code look like for this ? Thx in advance

nick

Reply With Quote
  #4  
Old July 7th, 2000, 09:46 AM
zcrar70's Avatar
zcrar70 zcrar70 is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 49 zcrar70 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
hi,

I was trying to do the same thing, check
if the browser has JS and if so enable
popup windows else use normal HTTP hyperlink. Being a total JS neewbie
i didn't quite understand your response, though, spookster. What would the code
look like for this ?

Thx in advance

nick

Reply With Quote
  #5  
Old July 7th, 2000, 11:35 AM
firepages's Avatar
firepages firepages is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2000
Location: Perth West Australia
Posts: 741 firepages User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Spookster is referring to ,

<NOSCRIPT>stuff for javascript disabled browsers</NOSCRIPT>

+ if you do a javascript redirection for javascript enabled browsers using the <body onload="yourRedirectFunction()"> etc only javascript enabled browsers will get redirected anyway - others 'should' ignore it, and carry on down your page as per normal. - I say 'should' cos nothings written in stone with earlier versions of NS and IE.

------------------
Simon Wheeler
FirePages -DHTML/PHP/MySQL

Reply With Quote
  #6  
Old July 8th, 2000, 10:45 PM
rkmarcks rkmarcks is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Posts: 81 rkmarcks User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Send a message via AIM to rkmarcks
Also try this cut and paste script. It is a jaavascript enabled/disabled redirect script.

http://javascript.internet.com/user...d-redirect.html


Russ

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > pop up window, js not enabled?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway