Jump to content

Recommended Posts

Posted (edited)

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
Posted

Well, I'm glad you solved it for yourself. All there's left is to say welcome and wish a great journey with PW :)

edit: and don't be sorry for asking

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
×
×
  • Create New...