Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Old 11-16-2008, 11:57 AM creating popup?
ameo's Avatar
Skilled Talker

Posts: 51
Trades: 0
hi, i'm currently using this code
Code:
<script type="text/javascript">
<!--

var answer = confirm ("Please click on OK to continue loading my page, or CANCEL to be directed to the Yahoo site.")
if (!answer)
window.location="http://www.yahoo.com/"

// -->
</script>
but it's getting blocked by noscript and the page continue loading as if the code isn't there. how can i get the same result and bypassing noscript? even with any other language? thanks

Edit: sorry guys, for some reason the code didn't showup
__________________

Please login or register to view this content. Registration is FREE


-----------------------------

Last edited by ameo; 11-16-2008 at 01:02 PM..
ameo is offline
Reply With Quote
View Public Profile Visit ameo's homepage!
 
 
Register now for full access!
Old 11-16-2008, 01:02 PM Re: creating popup?
Brian07002's Avatar
Defies a Status

Posts: 2,140
Name: ...
Location: ...
Trades: 0
Try this:
http://blazonry.com/javascript/windows.php
or this
http://www.tizag.com/javascriptT/javascriptpopups.php
or this
http://www.google.com/search?hl=en&q...earch&aq=f&oq=
__________________
Made2Own

Please login or register to view this content. Registration is FREE

Last edited by Brian07002; 11-16-2008 at 01:03 PM..
Brian07002 is offline
Reply With Quote
View Public Profile
 
Old 11-16-2008, 01:06 PM Re: creating popup?
ameo's Avatar
Skilled Talker

Posts: 51
Trades: 0
hey, sorry you didn't see the code. i just updated the 1st post.
i don't wanna create a popup of url i wanna make a popup warning message
usually i was doing that through alert() in javascript but i'm looking for some way that won't be blocked the famous noscript addon
__________________

Please login or register to view this content. Registration is FREE


-----------------------------
ameo is offline
Reply With Quote
View Public Profile Visit ameo's homepage!
 
Old 11-16-2008, 01:33 PM Re: creating popup?
ameo's Avatar
Skilled Talker

Posts: 51
Trades: 0
still didn't get what i mean
i don't wanna open url after clicking some link, it's a code loading automatically and asks if you want to view the content in the page or go to another one.

i'm looking for away to bypass noscript [addon for Firefox]
__________________

Please login or register to view this content. Registration is FREE


-----------------------------
ameo is offline
Reply With Quote
View Public Profile Visit ameo's homepage!
 
Old 11-16-2008, 01:45 PM Re: creating popup?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Going to state the blindingly obvious here.

ANYTHING that is triggered by javascript is going to be blocked by the "noscript" addon unless the user has allowed it to run.
So trying to find some javascript code that will bypass something designed to block javascript is just a little self defeating.

but Anyhoo
http://www.candsdesign.co.uk/article...-a-disclaimer/
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-16-2008, 03:21 PM Re: creating popup?
ameo's Avatar
Skilled Talker

Posts: 51
Trades: 0
chrishirst: i've figured that out and that is why i've stated in the end of my first post "any other language"
i know js will trigger noscript, yet i'm not js coder that's why i thought there could be someway to bypass that!

__________________

Please login or register to view this content. Registration is FREE


-----------------------------
ameo is offline
Reply With Quote
View Public Profile Visit ameo's homepage!
 
Old 11-16-2008, 03:29 PM Re: creating popup?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
There is only one language that every browser can run and this of course IS the javascript forum.

the only other way is to use server side code and cookies/sessions, which will of course stop all search engines completely.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-16-2008, 04:06 PM Re: creating popup?
ameo's Avatar
Skilled Talker

Posts: 51
Trades: 0
i checked the example you sent earlier and it's somehow what i needed but it has some issues,
the content still viewable without that warning box[when scripts is blocked]
is there away to make the content unavailable when the user has his js disabled? and ask the users to enable their js
__________________

Please login or register to view this content. Registration is FREE


-----------------------------
ameo is offline
Reply With Quote
View Public Profile Visit ameo's homepage!
 
Old 11-16-2008, 04:31 PM Re: creating popup?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
You can put a message in a <noscript> element to ask them nicely if they can enable javascript so you can then block their access, which of course they could promptly disable again.

server side code IS your only other option.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-16-2008, 04:33 PM Re: creating popup?
ameo's Avatar
Skilled Talker

Posts: 51
Trades: 0
Thanks man, got it now.

appreciate your help
__________________

Please login or register to view this content. Registration is FREE


-----------------------------
ameo is offline
Reply With Quote
View Public Profile Visit ameo's homepage!
 
Reply     « Reply to creating popup?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.29922 seconds with 12 queries