Solved

getting this to open in a popup window

Posted on 2006-11-13
4
172 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
[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
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

623 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