I have setup DFP to return a list of Custom Creatives. Each of these creavtives contains the following HTML:
<a href='%%CLICK_URL_UNESC%%' class='drop-down-ad'>Ad Link Text</a>
When these creatives are rendered to the page I have some JavaScript that finds all the anchor tags containing the class drop-down-ad and grabs the src attribute and stops the page from changing when clicked and loads content in via ajax. I do not want the page to change but I would like to still tell DFP that the user click the link. I am not sure if this functionality is supported by DFP?
Is making a request to the generated CLICK_URL_UNESC using ajax supported by DFP? Or is this not a thing I should be doing.
Hopefully I have explained what I am trying to do ok. Let me know if you have any questions.
Related
We have a bunch of modal dialogs in our application. When a user clicks a button it fetches the modal content from the server and displays it to the user. The way that it is structured, in order to fetch the content from the server, the button is nested inside of a form tag with an action specifying the URL to fetch the modal from. Because we can't nest form tags, this severely limits where we can place modal toggles without doing a lot of CSS trickery.
So, I'm wondering if it is acceptable from an accessibility standpoint to use an anchor tag with a valid href to display the modal. We'll intercept the click with JavaScript, fetch the content via ajax, and display it on the modal. If JavaScript isn't working or the user opens the link in a new tab, they'll still see the modal content, just with a sparse layout.
Is this a reasonable and accessible approach to take? It seems like as long as the anchor has a valid href it should be fine, and provides a tiny bit more flexibility to the user if they want to open up the link in a new tab.
I have a page with a lot of links. I would like to determine if it is worth keeping all of them or removing those that users don't click on. So I would like to see what links are clicked on a page. Is this possible without Google Tag Manager?
You can set an event on click on each link with code in page, without GTM, so you can use i.e. a JavaScript function onclick.
See the documentation for event syntax (for gtag.js): https://developers.google.com/analytics/devguides/collection/gtagjs/events
In Joomla page I have big content and I want to make not pages like 1,2,3...etc., but like in Facebook scroll down till you see button "Click to see more" and without refresh It add some data to bottom of page.
I don't know how to make It, maybe here are any extensions? Or any scripts? So hard to make It?
Thank you for answers.
To do it the ajax way, i.e. only loading content when you intend to show it, you will need to write a custom jQuery function that onload:
finds the "next page" button and store the url into a variable (this will contain the whole url followed by &pagenumber=2 or /page/2 or something similar).
remove its handler and replace it with a custom ajax call:
jQuery.get with the url you just stored adding &format=raw (this will return the content of the next page, without the rest of the template, and without any scripts and css - which you have already loaded)
on success remove the "next page" button you modified,
then insert in its place the html received from the ajax call,
repeat from n.1 until there is no "next page" button
After reading your query i come to know that you have a large content in your joomla article. Once the page loads you want to show some part of content n later part shows once clicked on see more button. If i'm correct then write script inside your article add div tags into your content. Apply display none property to the content of div which you want to show on click. Using JQuery or Js you can show the hidden part once clicked on button.
I have created a silverlight app that consits of like buttons within specific usercontrols (all in one asp page). Ie.
foodingtons.net/index.aspx?id=211
It is all incorporated within the silverlight app on one page. Hence when the control is loaded the meta tags are updated and the like button is placed within an iframe and linked to the appropriate page. When the like button is pressed a javascript function is invoked which changes a picture behind the silverlight obj. This picture in theory should be used as the default image after the like button is pressed (on clients page). But it seems to be stuck on old images.
Ie.
foodingtons.net/index.aspx?id=211
(the above is using an image which doesnt even exist)
foodingtons.net/index.aspx?id=218
(is using an image from the main page)
foodingtons.net/index.aspx?id=219
(fails.. the website is inaccessable)
I have also tried create the open graph tags with in the page to reference new images but to no avail.
I'm using the following facebook tool to debug as well
https://developers.facebook.com/tools/debug
a bit lost ... any suggestions?
Take a look at Add Facebook Like to your Silverlight Application.
Worked out what was going on. Facebook and google (using their bots) cannot crawl into the silvelright control itself. So they cannot invoke the functions that will get the meta and pics changing. Had to call the change meta stuff from the asp page itself. All sorted.
I have an asp.net site using the Google Mini. I have a search box on the masterpage that redirects to a search results page that displays the results in an iFrame. This approach is all taken from the documentation provided by Google for the Mini and seems pretty simple.
What the doc doesn't cover (or I can't find) is that clicking on any of the result that might be another .aspx page, opens that page with all of it's masterpage glory right inside the iFrame which is obviously not desired. I end up with a page in a page.
Short of grabbing the xml search results and manipulating that myself, how do I just get the search result links to open like a normal page?
You can add this javascript into your masterpage to make it break out of the iframe when the user clicks the link
<script type="text/javascript">
try
{
if (self.parent.frames.length != 0)
self.parent.location=document.location;
}
catch (Exception) {}
</script>
Another way of doing this would be to use the target attribute of the anchor (<a>) tag. If I remember correctly that would be
Link
I've used the javascript solution myself before and it works, I've not tested the target.