Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Adding Javascript to $html->link?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
Will Poillion  
View profile   Translate to Translated (View Original)
 More options 8 Nov, 06:53
From: Will Poillion <lorew...@gmail.com>
Date: Sat, 7 Nov 2009 22:53:51 -0800 (PST)
Local: Sun 8 Nov 2009 06:53
Subject: Adding Javascript to $html->link?
How do you add javascript events using $html->link?

There is a confirmation dialog that can be passed as one of the
fields, so it puts "onclick='confirm(etc)'", but I want

onclick="if(confirm('test'){somejsfunction();}"

What the function call does is essentially ajax, but looking at the
$ajax helper doesn't provide an obvious solution (from what I can
tell)

I'm beginning to become annoyed with some of the helper functions for
the views. It seems that every time I try to add customization I have
to read the cookbook over and over to try to figure out how to do what
I could easily do with straight html.

I absolutely love the model and controller implementation, but is
anyone other than me starting to think that the only cake functions I
want to use in the views is form creation and creating (automagic)
input fields?

Thanks,
Will


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google