very cool, thanks for your help.
On Mar 11, 11:31 am, mark_story wrote:
> No worries, glad to hear you got it all sorted. MooTools can have a
> pretty steep learning curve, as it doesn't have as many one liners as
> other libraries, but if you stick with it, there is a lot of power and
> featu
No worries, glad to hear you got it all sorted. MooTools can have a
pretty steep learning curve, as it doesn't have as many one liners as
other libraries, but if you stick with it, there is a lot of power and
features under the hood. As for neat shortcuts, look at
Element.implement() you can ad
Also not to be an ass. But I have effects working, you are right there
is tons of documentation. I was just checking if anyone had any cool
ideas I hadn't thought of.
I also did get it working just fine with multiple elements of the same
name.
Copy and pasting can lead to a lot of issues with no
Not to be an ass, but mootools has tons of documentation, examples and
tutorials. You can find lots of information on how you use effects in
the mootools docss. Furthermore if you have more than one element
with the same ID don't expect anything to work properly. In addition
Element.load() does
Inside #about_desctriptioncontent you can add another div which you
will fade in :)
On Mar 9, 10:39 pm, "Arak Tai'Roth" wrote:
> Well it looks like I got it all working. Now I just need to figure out
> how to add some kind of effect to it. If anyone has any advice on
> that, that would be perfec
Well it looks like I got it all working. Now I just need to figure out
how to add some kind of effect to it. If anyone has any advice on
that, that would be perfect.
On Mar 9, 11:43 am, "Arak Tai'Roth" wrote:
> So I completely revamped the code in my ajax file to this:
>
> window.addEvent('domre
So I completely revamped the code in my ajax file to this:
window.addEvent('domready', function()
{
$('ajax_replace').addEvent('click', function(event)
{
event.stop();
var req = new Request(
{
method: 'get',
I don't want to do a simple GET request, I do want this as AJAX,
that's just the code I found. I am extremely new to MooTools, never
used it before this, in addition I am new to using AJAX period.
One thing I just realized and am slightly confused about. With the
code $('ajax_replace) I am under
Well I would start with seeing if the Selector is working? does the
click event even fire? I use mootools quite often, and there is
nothing in cake that prevents you from doing so. Why aren't you just
using Element.load() instead? If you only want to do a simple GET
request, I would just do
wind
Also considering I am using multiple links I tried this as well:
url: $$('a.ajax_replace').get('href'),
and
$$('a.ajax_replace').addEvent('click', function()
and then changing the id's to classes. I was thinking this might work,
but alas, it did not either.
On Mar 9, 9:19 am, "Arak Tai'Roth"
Yea, I'm sorry, I had fixed that problem a little while ago, that
isn't the solution to the problem, it's still not working, and the
page is still trying to load instead of working via AJAX.
This is my code for the buttons I am making if that makes a
difference.
echo $html->link($html->image('/i
Hi,
The fact that the page is loading instead of the Ajax request being
sent should signal that there's an error in your JS (if it were a Cake
err, you would have had weird responses).
Upon closer inspection, here is the problem:
$('ajax_replace').addEvent('click', function(
{
I tried that, and removed my autoRender and exit() lines and added in
$this->render(index); It didn't work.
The page is still loading, which it shouldn't be with an AJAX request
as far as I know.
In addition I added a $this->Session->setFlash('message'); inside the
isAjax() if statement and it d
Assuming your request is running - and i can see no reason why it
wouldnt as long as you have the correct html elements in use then i
suspect your problem lies here:
$this->autoRender = false;
exit();
By doing this your teling your controller not to render after the
action, and then your exiting
Anyone able to help me with this issue?
I've tried googling anything where MooTools is used with CakePHP, but
there is almost nothing that I can find, and nothing with Ajax.
On Mar 7, 11:09 pm, "Arak Tai'Roth" wrote:
> I am trying to update a div via ajax, however I am using MooTools, and
> not
I am trying to update a div via ajax, however I am using MooTools, and
not the normal Prototype and Scriptaculous.
Here is the code that I have in my controller:
function view($id)
{
if ($this->RequestHandler->isAjax())
{
16 matches
Mail list logo