Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Button Class Question

Explorer ,
Aug 17, 2008 Aug 17, 2008
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!
TOPICS
Server side applications
329
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 17, 2008 Aug 17, 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>
>

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 18, 2008 Aug 18, 2008
LATEST
.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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines