...

View Full Version : Basic JS question popups, no scrollbar



tripwater
06-26-2009, 06:37 PM
I have a link that loads a list of project times in a popup. This list is pretty long. In fact, you cannot resize the window to view it all even if you tried.

I have this code

<a href="#" onclick="window.open ('http://mydomain.com/myfile.php?dept=1&idtask=6803', 'Logged times', 'height=300,width=500,scrollbars=yes,resizable=yes'); return false;">View Ticket Times</a>

you will notice scrollbars set to = yes and also tried scrollbars=true and yet still no scrollbars in the popup. I viewed source in the browser and it is there on the link. Any ideas why I am not getting a scrollbar?

Thanks for any info

tripwater
06-26-2009, 07:34 PM
ok here is an odd one. I found this working example on this page

Example of one working (http://www.htmlcodetutorial.com/linking/linking_famsupp_128.html)

The only difference I see in their code and mine is they put the call in a function where mine is in a link.

they say


window.open(href, windowname, 'width=400,height=150,scrollbars=yes');


Where href and windowname are local vars they set. So anyone see a difference between theirs and mine? If you click on their link it opens a popup and it has a vertical scrollbar...

tripwater
06-30-2009, 01:06 PM
no one has any ideas?

ckeyrouz
06-30-2009, 05:38 PM
no one has any ideas?

Try the following:

<script language='javascript' type='text/javascript'>
function showPopup()
{
window.open ('http://mydomain.com/myfile.php?dept=1&idtask=6803', 'Logged times', 'height=300,width=500,scrollbars=yes,resizable=yes');
return false;
}

</script>

<a href="javascript:showPopup()" target="blank">View Ticket Times</a>

and try manipulating as well the target property inside the anchor tag

ckeryouz



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum