Re: Opening controller data in new Window w/ ajax-link call

2011-01-13 Thread OldWest
Hi Miles,
Can you show me an example link you have written on a request like this? I 
am a bit new to using Ajax oriented features, and it could be simply over my 
head off the bat.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Opening controller data in new Window w/ ajax-link call

2011-01-13 Thread OldWest
And why would it be better to break convention? Please explain.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Opening controller data in new Window w/ ajax-link call

2011-01-12 Thread OldWest
I have been cracking at this for about 4 hours, and unable to resolve.

Everything is working as expected except I cannot find an option to
open my link in a new window.

Here is my current view code:

div id=benefits/div

echo $ajax-link(
'Benefits Schedule', array( 'controller' = 'plan_details',
'action' = 'view', $plan['PlanDetail']['id'] ),
array( 'update' = 'benefits', 'position' = 'top'  )
);

As you can see my controller is being called and the benefits div is
opening the data fine, but I just want it to open in a new popup
window.

I have the Html, Javascript and Ajax helpers enabled. And I also have
ProtoType and Scriptaculous up an running on my script.

Does anyone have any suggestions?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Opening controller data in new Window w/ ajax-link call

2011-01-12 Thread OldWest
I found a solution that works using Modalbox like:

echo $html-link('Benefit Schedule',array('controller' =
'plan_details', 'action' = 'view', $plan['PlanDetail']['id'] ),
array('title' = 'Benefit Schedule', 'onclick' =
Modalbox.show(this.href, {title: this.title, width: 850}); return
false;));

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Opening controller data in new Window w/ ajax-link call

2011-01-12 Thread Miles J
I personally would just write the links yourself, instead of having to
go through Cake. Manual links + event binds = better.

On Jan 12, 11:56 am, OldWest jason.wy...@gmail.com wrote:
 I found a solution that works using Modalbox like:

 echo $html-link('Benefit Schedule',array('controller' =
 'plan_details', 'action' = 'view', $plan['PlanDetail']['id'] ),
 array('title' = 'Benefit Schedule', 'onclick' =
 Modalbox.show(this.href, {title: this.title, width: 850}); return
 false;));

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en