[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

open pop up window without Javascript enabled

Posted on 2006-10-25
8
Medium Priority
?
1,864 Views
Last Modified: 2012-06-27
How can I open a pop window of particular size even when the javascript is disabled on the browser  on my ASP page ?
0
Comment
Question by:ranirajesh
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
  • +2
8 Comments
 
LVL 53

Expert Comment

by:Ryan Chong
ID: 17802258
if you want a resized pop up, sorry, you CAN'T do it without javascript, if you want open a pop up generally, it can be done by set the hyperlink's target to "blank", like:

<a href="test.asp" target="_blank">Test</a>
0
 

Author Comment

by:ranirajesh
ID: 17802288
This is what I use currently
Window.open(url, name, "toolbar=0,location=0,directories=0,status=yes,menubar=no,scrollbars=1,resizable=yes,width, height);

But it won't work when the Javascript is disabled . Also target =_blank opens a new window with all the toolbar which I don't want ..
0
 
LVL 53

Expert Comment

by:Ryan Chong
ID: 17802656
yup, and i think that's no perfect solutions here.. javascript must be enabled if you want to resize the pop up window.
0
Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

 
LVL 16

Expert Comment

by:HackneyCab
ID: 17803210
If someone is not using Javascript, then you can't control the behaviour of their browser. Which is probably why that person has disabled Javascript. Many people hate pop-ups, pop-unders, resized content windows, etc. You'll have to accept that you cannot get the result you want for visitors who are not allowing Javascript to run.

Do you really need to use a pop-up? Even for the people who have Javascript enabled, unwanted pop-ups are the sort of thing that persuade visitors to avoid a site. Even the triggered pop-ups are annoying if the new content could have been opened in the same window without consequence. These days people are becoming very capable of opening new content in a fresh window or tab using the right-mouse context menu.
0
 
LVL 16

Expert Comment

by:OliWarner
ID: 17808390
>> Also target =_blank opens a new window with all the toolbar which I don't want ..

I'm afraid, what you want and what you're going to get without JS enabled are two very different things. The nearest to what you want is just a plain target="_blank" popup.
0
 
LVL 6

Accepted Solution

by:
Basilisci earned 2000 total points
ID: 17810181
Here's a solution that degrades gracefully. It will open a clean popup if javascript is enabled, and a normal new browser window if javascript is disabled.

<a href="test.asp" target="_blank" onclick="window.open('test.asp', 'somename', "toolbar=0,location=0,directories=0,status=yes,menubar=no,scrollbars=1,resizable=yes,width, height); return false;"
>Test</a>

Notice the return false; -statement in onclick, it prevents the normal link action from happening (opening new window) after the javascript is executed.
0
 
LVL 16

Expert Comment

by:HackneyCab
ID: 17811743
Basilisci's suggestion is probably the very closest you're going to get.
0
 

Author Comment

by:ranirajesh
ID: 17832091
Yes I guess Basilisci's is the closest solution  I can get to .

Thanx Basilisci ! Though I wish there was a way to get the pop up window in ASP !
0

Featured Post

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
This article was originally published on Monitis Blog, you can check it here . Today it’s fairly well known that high-performing websites and applications bring in more visitors, higher SEO, and ultimately more sales. By the same token, downtime…
This video teaches users how to migrate an existing Wordpress website to a new domain.
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.
Suggested Courses

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question