2 Replies - 3649 Views - Last Post: 01 May 2012 - 08:56 PM Rate Topic: -----

#1 De.camm  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 24
  • Joined: 05-March 12

The popup file pdf format not working with icon calling function

Posted 27 April 2012 - 07:42 PM

actually the file pdf format working with name calling function, the code as below:
<a href=index.cfm?section=Alumni&action=print_form&test=#qStuD.student_code# target=print_form>| print |</a>


but when i am using image as a icon, the popup not function and all the inherit value not showing. The code for the icon calling function like this:

<a href="index.cfm?section=Alumni&action=print_form&test=#qStudentList.student_code# target=print_form" onclick="print_form"><img src="Themes/Default/images/icons/search.gif" onmouseover="this.style.cursor='pointer'"/></a>


what should i do?

Is This A Good Question/Topic? 0
  • +

Replies To: The popup file pdf format not working with icon calling function

#2 Craig328  Icon User is offline

  • I make this look good
  • member icon

Reputation: 1926
  • View blog
  • Posts: 3,471
  • Joined: 13-January 08

Re: The popup file pdf format not working with icon calling function

Posted 28 April 2012 - 05:14 AM

Well, this again really isn't so much a CF issue.

In an anchor tag, there are two main ways to address a click event on the anchor: via the href attribute and through adding a Javascript function via the onclick attribute. Your first example uses the href and it should work (or at least the click does something). Your second example, while it retains the href also adds an onclick attribute.

Now, think for a moment: why would you want to have both things in the same tag? Further, does the onclick info ("print_form") look proper? Is that a Javascript function you're trying to call? If it is, look at it closer and you should see the issue if its your print_form function that's not firing properly.
Was This Post Helpful? 1
  • +
  • -

#3 De.camm  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 24
  • Joined: 05-March 12

Re: The popup file pdf format not working with icon calling function

Posted 01 May 2012 - 08:56 PM

thanks Craig..
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1