Streaming live at 10am (PST)

Need some help with this php script to call an element from a website


#1

I figured out a possible strategy to do what I need, however I am not sure exactly how to plug everything in.

One of the webflow staff posted this:

But I’m not sure the correct method to plug everything in. The code he posted is:

function loadContent(url, targetSelector, contentSelector) {
    var target = $(targetSelector);
    $.get(url, function(data) {
        alert('loaded');
        target.html($(contentSelector, data));
    });
};

and

$(document).ready(function() {
	$('#load-content-please').click(function(e) {
		e.preventDefault()
		loadContent('awesomepage', '#load-here-1', '#copyme')
	});
	// even more clickable stuff to load content here...
});

so my question is, I need to call an element to load from this link:

https://leahsbeautyloft.acuityscheduling.com/schedule.php?appointmentType=2971336 so what parts of this link and the actual element go in here: url, targetSelector, contentSelector?

Thanks for your help!


#2

original post edited for clarity.


#3

This topic was automatically closed 125 days after the last reply. New replies are no longer allowed.