inherit
251424
0
Aug 17, 2019 18:56:36 GMT -8
mintybreeze
12
December 2017
mintybreeze
|
Post by mintybreeze on Oct 10, 2018 16:25:55 GMT -8
So I am currently using someone's tutorial in creating an adoptables plugin but am having trouble with connecting custom pages to the javascript since it is a forum and not a website hosting sight.
I am trying to connect a link so that after you adopt the pet and it randomly chooses one for you, that it will take you to a page that will tell you congratulations and such.
I would love it is someone knew how to do this and could get back to me as soon as possible.
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Oct 11, 2018 2:11:55 GMT -8
Can you link us to the tutorial? I would suggest not taking them away from the page unless there is good reason too. A better way would be to manipulate the DOM (i.e update a container with the message) or display a dialog with the message (usually my choice unless they are loading the page).
You said "am having trouble with connecting custom pages to the javascript", does this mean you are creating a custom page in the admin area, or are you trying to create a page similar to how some plugins do by hiding the content?
Maybe walk us through step by step as a member of how it would work.
Example:
- Member clicks link in navigation to go to adopt a pet page. - Page shows all possible pets the member can adopt. - Member clicks on pet they wish to adopt. - Dialog pops up asking them to confirm. - If confirmed, the pets container is hidden OR a dialog pops up, and the congratulations message is displayed.
|
|