Solved

getting this to open in a popup window

Posted on 2006-11-13
4
166 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
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Consider the following scenario: You are working on a website and make something great - something that lets the server work with information submitted by your users. This could be anything, from a simple guestbook to a e-Money solution. But what…
This article discusses four methods for overlaying images in a container on a web page
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
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…

772 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now