Solved

getting this to open in a popup window

Posted on 2006-11-13
4
168 Views
Last Modified: 2008-03-10
echo("\t\t\t\t<a href=\"#\" onclick=window.open(\'news/old_news_list.php?month=$j&amp;year=$i,'\',\''width=700,height=500\'\)>$thisMonth</a><br />");


this does not open up in the 700 x 500 window it is meant to.
0
Comment
Question by:roscoeh23
4 Comments
 
LVL 49

Accepted Solution

by:
Roonaan earned 500 total points
ID: 17929048
echo "\t\t\t\t<a href=\"#\" onclick=\"window.open('news/old_news_list.php?month=$j&amp;year=$i','','width=700,height=500');return false;\">$thisMonth</a><br />";

-r-
0
 
LVL 22

Expert Comment

by:Ivo Stoykov
ID: 17929050
Hi roscoeh23,

> echo("\t\t\t\t<a href=\"#\" onclick=window.open(\'news/old_news_list.php?month=$j&amp;year=$i,'\',\''width=700,height=500\'\)>$thisMonth</a><br
> />");

another backslash missed
try this:
echo("\t\t\t\t<a href=\"#\" onclick=window.open(\'news/old_news_list.php?month=$j&amp;year=$i,\'\',\''width=700,height=500\'\)>$thisMonth</a><br />");

Regards

!i!
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

This article will explain how to display the first page of your Microsoft Word documents (e.g. .doc, .docx, etc...) as images in a web page programatically. I have scoured the web on a way to do this unsuccessfully. The goal is to produce something …
Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

809 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