Skip to main content
Inspiring
August 17, 2008
Question

Button Class Question

  • August 17, 2008
  • 2 replies
  • 321 views
I am trying to have a button in the timesheet application I am building open my employee_print_entry.php file in a new or blank window onClick. However I have tryed all of the usual snippets such as target= ect. but nothing seems to be working properly. Can someone please advise on how to make this happen.

The code that I currently have an need to alter is as follows:

Thanks In Advance!
This topic has been closed for replies.

2 replies

Inspiring
August 18, 2008
.oO(bcounts)

>I am trying to have a button in the timesheet application I am building open my
>edit.php file in a new or blank window onClick. However I have tryed all of the
>usual snippets such as target= ect. but nothing seems to be working properly.

Be more specific. How is it now working? What does happen and what do
you expect instead? More details please.

>Can someone please advise on how to make this happen.
>
> The code that I currently have an need to alter is as follows:
>
> Thanks In Advance!
>
> <button class="button"
>onClick="window.location='employee_print_entry.php?period_id=<?=$period_id?>&use
>r_id=<?=$timeapp_id?>'"><b>Print Report</b></button>

Except for the unreliable short open tags (<?=) I don't see a problem.

Micha
Inspiring
August 18, 2008
<form>
<input type="button" value="Print Report"
onClick="window.open('employee_print_entry.php?period_id=<?php echo
$period_id ?>&user_id=<?php echo $timeapp_id
?>','mywindow','width=800,height=600')">
</form>


--
Ken Ford
Adobe Community Expert Dreamweaver/ColdFusion
Fordwebs, LLC
http://www.fordwebs.com


"bcounts" <webforumsuser@macromedia.com> wrote in message
news:g89lns$el4$1@forums.macromedia.com...
>I am trying to have a button in the timesheet application I am building
>open my
> edit.php file in a new or blank window onClick. However I have tryed all
> of the
> usual snippets such as target= ect. but nothing seems to be working
> properly.
> Can someone please advise on how to make this happen.
>
> The code that I currently have an need to alter is as follows:
>
> Thanks In Advance!
>
> <button class="button"
> onClick="window.location='employee_print_entry.php?period_id=<?=$period_id?>&use
> r_id=<?=$timeapp_id?>'"><b>Print Report</b></button>
>