1955 Posts in 1234 Topics by 601 members
Page: 1 2
|Go to End|
29 August 2009 at 10:44pm
I'll check it out, thanks.
8 September 2009 at 9:33pm
So for anyone who is interested, hello? hellllooooooooo (echo)
I've managed to do everything I needed without any Ajax in the end. I used GreyBox (didn't like the default css themes on colorbox and the GB with SS looked fine) and jQuery.
The virtual subpage function just re-renders the object with a new template file containing the form variable and different content
the form action function does its thing and re-renders the object with a thankyou template displaying more content from the CMS
An accountID input field on the main page hold the account ID
the balance function calls the external service with the accountID and receives an HTML response which is stored in a local variable
the balance funcrion returns renderWith('BalancePage.ss') which has a reference to the local variable to render the result.
Easy once you know how :o)
19 December 2009 at 7:34am
Thanks Zalzadore. this is exactly what I am trying to do but I can't get it to work .
I have tried something as simple as :
<a href="http://www.lisianne.com/SilverStripe/myform" title="myform" rel="gb_page_center[500, 500]">Launch myform</a>
in my template
and I get a Page Not found error in the popup window.
So I tried this :
<a href="http://www.google.com" title="Google" rel="gb_page_center[500, 500]">Launch Google.com</a>
an I get the same error in the popup window also!! I think I am missing something obvious , even though the windows pops open properly .
I am hoping you might be wathcing this great post of yours !
Page: 1 2
|Go to Top|