Jump to content

AJAX in processwire


itsjohnb
 Share

Recommended Posts

SOLVED

Hello people!

This is my first post at the processwire forum. There is something i can't figure out.
The best way to explain my problem is to go to the following website: followmylegends.com.
When you try to register a small pop-up is coming. 

Now my question is how can I fill the pop-up with content with jquery? ($.get, or AJAX)

When i try something like this it wont work.

$('#register, #forgot').click(function(e){
	var div = $(this);
	e.preventDefault();
	$.get($(this).attr('href'), function(data) { 
		$('#'+$(div).attr('data-reveal-id')).html(data);
	}); 
});

Then I get an error:
GET http://www.followmylegends.com/site/templates/register/register.php 404 (Page Not Found) 

But the file is in templates/register/register.php.


Can somebody help me?

Thx,

John



Update

Sorry for this topic.. This was a bit timewasting like 3 hours. I have to learn more about processwire. What I did was create a new template. Use it for a page and called it with url.com/register/

Sorry again..

Edited by itsjohnb
  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...