How to hide event URL in print view - fullcalendar

we are developing with fullcalendar and try to activate the print option for our customer. We use the latest version of fullcalendar and we use event urls to open a lightbox / fancybox after clicking on an event.
But, when it comes to the print view, and to printing for example a week, all the event urls are shown within the events. We really tried everything so far, to hide them from the print view, no success.
ajax_envent
I try to attach a photo. Any ideas or solutions on this?
Kind regards
Mike

Related

Buddypress event image not display in homepage

I used buddypress event manager plugin.
To display the event i should use this short code[activity-stream per_page=10 ].
Now 10 events are displayed correctly. But image will not displayed. If i create an new event means the Name of the event, Who's created , Time will be displayed.
But i want to display image also. Kindly help me to fix this.
Thanks

Google Tag Manager On Click event on Drop Down

Trying to figure out the best way to track on click events using google tag manager on an element that doesn't seem to change. this site: http://www.sleepcocktails.com/pages/faq has FAQ's where the use can click on a question which then expeands to show the answer. The goal is to understand which are the most clicked on questions so we can surface those earlier in the site.I think the best way to do this would be through click events, but as nothing really changes on the page i cant figure out what to target with google tag manager.
Any help would be appreciated thanks!
You could create the following event tag
with the trigger to fire when the Click Class variable equals "text", like this:
Use the Click Listener and configure your tag to only fire when someone clicks on a question e.g Click Classes equals text
and the set-up for your Event could be something like this:
Category: FAQ
Action: clicks
Label: {{element text}}

FullCalendar View More Button moving

I have added a hack/add-on to allow me to limit the number of events which can appear on the Full Calendar plugin. This is where I have got the code from. https://github.com/lyconic/fullcalendar/tree/view-more
However, whenever I change the month or day the view more button moves and is hidden behind an event. Its really annoying and I don't know how to fix it.
Any advice?

Pop Up Pages to close once Save button is clicked

I have 12 pop up pages on my site with a Save and Cancel button. My requirement is once the Save button is clicked on the pop page i want the server side code to execute and once its done I want the pop up to close.
Is that possible? If yes, kindly let me know how do I achieve that.
You can put a small Javascript on each popup:
<script type="text/javascript">
window.close();
</script>
Once the page has loaded (and all the code is run) this Javascript should close the window. Please note, different browsers will behave differently! Some might close it, some might alert warning, others may block it completely.
As far as I know this is the only way that could close a browser window. Either way, any number of popup windows over 0 is arguably an unfriendly user design. 10+ and you should be seriously reconsidering your user friendliness!
What you can do:
Create update panel and make your Save button as trigger to it, once button is clicked it will execute code behind without closing your popup.
Use your ScriptManager to register statrup method (JavaScript). This method will close your popup
ScriptManager.RegisterStartupScript(this,this.getType(),Guid.NewGuid().ToString(),"/your code to close popup/",true /this true will add script tags to your script so you don't have to write /);
Cheers
Sorry but this SO script wont highlight code, I don't know what is the problem.
At the end of your code the below lines of code will help to close the window.
this.Page.Response.Clear();
this.Page.Response.Write(string.Format(CultureInfo.InvariantCulture,
"window.frameElement.commonModalDialogClose(1, '{0}');", lblText.Text));
this.Page.Response.End();

How to programmatically click on a EIT Lightbox hyperling in asp.net

On my webpage Im using EIT Lightbox to display images. I need to click on the Lightbox hyper link by code. I have tried the following
body.Attributes.Add("onLoad", "document.getElementById(\"lbh1\").click()\n");
body.Attributes.Add("onload", "eval(document.getElementById(\"lbh1\").href);\n");
But neither seems to work.
If I use the following code
body.Attributes.Add("onload", "alert('popup');\n");
The alert is displayed
Is there another way to do the click?
I'm guessing this doesn't work in Firefox. Check out this article: http://lifescaler.com/2008/04/simulating-mouse-clicks-in-javascript/ or just do a Google search on simulating mouse events and/or clicks.

Resources