Hi Folks,

Apologies for sounding new to all of this -- so bare with me. 

I'd like to do a bit of retro acting Javascript on the registration page 
i.e. Apply a snippet of javascript after ALL the logistration_factory and 
access_views etc have run and loaded. I can't simply add it into the 
template as a <script>, since it requires all of the fields to be read and 
added. 

So far I believe what this requires is using require.js to require a 
dependency on perhaps the logistration_factory. 

I thought I had it running well on the devstack - I followed the way 
logistration_factory was being used. But after pushing these changes to the 
fullstack, it did not seem to prevail. and get an error: History.js Adapter 
has already been loaded...

My first question is: is this described approach the only approach to 
guarantee the running of a javascript after the elements have been loaded?

Secondly:
If so:
What are the steps required to get a snippet running easily? or Is there 
something different which runs for building static files on the fullstack?
If not: 
What is the most simplest approach?

-- 
You received this message because you are subscribed to the Google Groups 
"General Open edX discussion" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/edx-code/6a71a8ad-a1b3-4bb5-97e2-4ca033ffc41f%40googlegroups.com.

Reply via email to