Relatively simple JS question

I currently have some JS on one of my PHP pages, but it’s at a point where it’s near 200 lines long so I want to move it to its own file. The only problem is I can’t work out how to use something like dmx.parse in a separate file.

I have two dmx.parse in the current script. One for fetching users from a server connect query - dmx.parse(‘taggableUsers.data.taggableQuery’) and one for adding users to an array: dmx.parse(“postcomment.tagarr.addUniq(” + item.id + " )"); - How do I go about using these in a JS file? I assume I can use some sort of variable for the users, but I’m not sure about adding to the array.

Community Page
Last updated: