I have played with the other widgets on the Eventbrite's API page and got each of them to work. The only one that I'm having difficulty with is the Event List widget.
I've hunted around online for a tutorial with more information or anything to see what I might be doing wrong, but have not been successful.
When I copy and paste the text, nothing shows up. So I tried changing the API Key and ID to mine and nothing shows up. Does anyone know if it no longer works or if there's something more that I have to add to the code that isn't too clear in the description for the Event List widget?
What languuage are you working in?
Eventbrite's open source example code section should provide some additional examples:
http://eventbrite.github.com/#examples
I was having the same problem, and I noticed the first script tag in the example from EventBrite is missing "http:" in the src attribute. Once I added this, it worked.
<script type='text/javascript' src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
should instead be...
<script type='text/javascript' src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
Related
I think I may have come across a bug, or this could be a known thing. When I have the attribute name=”submit” in my submit button that contains the data-sitekey and data-callback, I get an “Uncaught (in promise) TypeError” in my console and it fails to continue doing anything.
As soon as I change the name attribute value to something other than submit it works.
I tried reporting this as a bug to recaptcha but there email for reporting bugs is no longer available.
I suggest trying a different captcha version. Invisible recaptcha is a new and better way of secority.
With a wrapper widget it can be a great solution with click functionality as well.
Have a look at this widget: https://www.custom-captcha.com/
CustomCaptcha.init("<your reCaptcha v3 siteKey>");
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/custom-recaptcha/dist/custom_captcha.min.css"></link>
<script src="https://cdn.jsdelivr.net/npm/custom-recaptcha/dist/custom_captcha.min.js"></script>
<captcha required></captcha>
Please note: The snippet above just shows the widget itself, and cannot work because there is no valid captcha key for the snippet site.
By default the widget has the website favicon as icon (which I think is a really nice feature) but it can be changed.
I'm using TinyMCE on my Joomla website.
I made script tags allowed in TinyMCE configuration.
now when I add script tag into the code, after saving, words like script and javascript change to s-cript and j-avascript. see the code below:
<div id="15354385923149200"><s-cript type="text/J-avaScript" src="https://www.aparat.com/embed/58aFO?data[rnddiv]=15354385923149200&data[responsive]=yes"> </s-cript></div>
why does this happen? how can I fix this?
A bit of searching around leads me to guess you are using RSFirewall and that product is causing this change. I found a few posts online that reference RSFirewall making this change.
https://www.rsjoomla.com/support/documentation/rsfirewall-user-guide/frequently-asked-questions/rsfirewall-doesnt-allow-me-to-add-html-css-or-javascript-to-a-module.html
My site is http://armandwho.com/site
I'm using the Adv. Ajax Page Loader Plugin in order to keep my background vid & music uninterrupted while browsing.
I'm having trouble with the "LOOK" page. When navigating to it from the homepage (1st link), the gallery doesn't load at all. However, when you refresh or go directly to the page URL it works.
Within the plugin, there is an area for jQuery reload codes, which I think will load the needed scripts that don't get loaded when using the nav.
Can anyone make sense of what script I might need to "reload" to get my gallery working with this Ajax plugin?
Help is supremely appreciated!
Joe
I loved the music, so I decided to look into the problem a bit.
I stepped through the code for the plugin as it tried to load the page and came across this line:
//Nothing like good old pure JavaScript...
document.getElementById(AAPL_content).innerHTML = output;
..which is a problem because the javascript in the script tags isn't going to be run. You could change it to:
//Nothing like good old pure JavaScript...
jQuery(document.getElementById(AAPL_content)).html(output);
..and jQuery will handle the dirty work.
I'm trying to add the comments thingy to my page. I followed the directions here:
https://developers.facebook.com/docs/reference/plugins/comments/
I have no idea what URL I should set ; I tried my webpage URL and I get an error ("page could not be contacted"). I also tried my facebook page, no error but no comments are published.
I read somewhere else that I need an AppID, so I went to https://developers.facebook.com/apps/ which redirects to my page.
I also tried the moderation URL http://developers.facebook.com/tools/comments but all I get is a generic error.
I guess I'm missing something so obvious that it's not documented.
Can anybody help????
TIA
greg
The first thing that you need is Open Graph tags (this is why you are seeing the "Open Graph Warnings" message on the debugger).
To easily generate these tags for your page, go to Step 2 on the Like Button developer page, where you fill out a few items and get the code for your tags. Insert these tags into the <head> of your page. The og:url is one of the most important, and having it missing could be why you are getting errors.
Then, follow the steps on the Comments developer page.
You can always try looking through this tutorial as well.
I tried the classic ajax approach, but that throws an access denied javascript exception when trying to add a script stored on another domain.
Now, I'm sure this is possible since google populates google ads via js only; so does twitter, and the list can continue.
How I thought of it so far:
<div id="divId"></div>
<script type="text/javascript" src="http://mysite.com/script.js"></script>
The script in script.js should have changed the innerHTML attribute of the div above. Instead, I get the following message in fireBug: Access to restricted URI denied code: 1012
I googled around a bit but only found workarounds that are useless, like php proxies and such, whereas I want this widget to be copy-pasted into other peoples sites, blogs, forums, etc..
Thanks in advance for any helpful replies. :)
The behavior that you are seeing is intended and there for security reasons. You wouldn't want a third party script to make any changes to your page as that can be exploited heavily.
Instead, give your users a JavaScript snippet to embed on their page.
<script>
// do stuff here
</script>
Note that inside this snippet you can create a script tag dynamically, set the src attribute and load the actual JavaScript. This snippet that your users embed on their page has access to the entire DOM, but the script loaded externally does not.
Here's an example of the profile widget that Twitter gives out to embed on web pages:
<!-- external js, can't access or change the DOM -->
<script src="http://widgets.twimg.com/j/2/widget.js"></script>
<!-- local js, does that -->
<script>
new TWTR.Widget({
version: 2,
..
..
}).render().setUser('hulu').start();
</script>
The first script tag loads the library, while the second one which actually manipulates the page is added as code directly.
I finally found a solution that doesn't involve ajax.
I simply use
<div id="objectId"></div>
<script type="text/javascript" src="http://mysite.com/getAndDisplayData.php"></script>
<script type="text/javascript">getAndDisplayData();</script>
And in getAndDisplayData.php I generate a JS script that will create my widget inside the div above. The php file also connects to the database and retrieves all required widget data.
Apparently this is how google ads works, though I am not sure. It is certain though that they don't use ajax.