I am using fanxybox 1.2.6 but it's getting closed despite of mentionig onContentClick:false
Here is the code:
$("#"+vari).fancybox({'hideOnContentClick':false }).trigger('click');
Kindly help me out
p.s: The window is loading content from other URL(via Iframe)
You don't need the single quotes either side of the option name. Also, I've had issues in the past with the overlay fighting with the content, so if removing the quotes doesn't work, you might want to try adding hideOnOverlayClick:false.
$("#"+vari).fancybox({
hideOnContentClick:false,
hideOnOverlayClick:false
}).trigger('click');
Related
I am need to achieve the following behavior.
I have added some stuff to the mailItem.HTMLbody, a table with some data and a couple of links.
My plugin has a button, which when adds some html after the position of the cursor. This event may occure several times.
I have tried using WordDocument.selection class for this, but it works with the mailItem.body rather than the mailItem.HTMLBody.
How should I go about this?
Thank you in advance.
Outlook does not use an HTML editor on top of HTMLBody. It uses the Word editor accessible from Inspector.WordEditor.
How can I make sure that user typed in html comment is visible when editing an older document in Ckeditor? Use case is that users want to discuss about html formatting and they want others to see exactly what they wrote. I tried disabling the ACF by using config.allowedContent = true; but that had no effect in this case. Maybe the escaping of the document in html response must done differently? Or am I forced to instruct users to use some special formatting to avoid losing written html tags for later editing?
There was a check for double encoding the message on server side that lead the response be <p><!-- This is an example when it should have been <p><!-- This is an example I removed the check and now it works.
I have a form that normally works with respect to dirtyforms. However, there is one circumstance where a jquery-ui datapicker calendar will pop up the "are your sure" dialog when a date is clicked.
I emphasize that this normally works correctly. The situation is related to the initial conditions of the form data source. Things work when the object being referenced is existing, but not if it is new. So I am sure somewhere there is a difference in the initial conditions of the form. But in theory the form should be identical.
How can I find what is causing the popup so I can fix my issue?
Well, I did find what was causing my problem by comparing the HTML of the working and non-working situations. (Not an easy task since there were many non-relevant differences.)
Seems that the original coder did a strange thing. Left out some Javascript function declarations when the page was "new" but of course did not eliminate the calls on those functions.
So I guess that the javascript errors were the root cause. At least when I include those function declarations everything works correctly.
By default, most anchor links on the page will trigger the dialog. We don't have a hard-coded selector of all potential 3rd party widgets, you must manually take inventory of whether these widgets use hyperlinks and ignore them if they are causing errant behavior.
See ignoring things for more information.
I was unable to reproduce this behavior using Dirty Forms 2.0.0, jQuery UI 1.11.3, and jQuery 1.11.3. However, in previous versions of Dirty Forms, you can probably use the following code to ignore the hyperlink clicks from the DatePicker.
$('.ui-datepicker a').addClass($.DirtyForms.ignoreClass);
I'm not able to select text on a page that has a lot of jquery and css stuff going on. I've commented out many of the mousedown event handlers that seem like obvious culprits, but I still haven't found the bug.
The question is... what's the best way to debug this? Is there a better way to debug this than commenting out all event handlers until I find the problem? Is there some sort of event inspector I can use?
FYI, the page is:
http://www.musiclessons.com/youtube/#6NxVucKQHG8 - you can't select any text below the video
there it is:
$('#youtube-list').disableSelection ();
found in the following file, loaded by your page:
http://musiclessons.com/youtube/js/youtube.js?v=9
and here's what it's about:
http://forum.jquery.com/topic/disableselection
as for your question on an efficient way of debugging this: i don't really know. was looking through the css files for some 'user-select' property (see Is there a way to make text unselectable on an HTML page?), then read some of the js, before stumbling upon the above.
I am not sure why you need to select the text to debug, perhaps you can update the question with that.
For now, if you need to copy the text or something like that, you can always inspect with firebug or whatnot and select the text from there.
i am using dojo toolkit with php codeigniter 2.1.0 and i want to put space in tab name wherever necessary.
Anyone has any solution??
My code is :
<div id="setupParty" data-dojo-type="dijit.MenuItem"
onclick="addPartyTab('AddParty');">Manage <u>P</u>arty</div
If i will directly write as :
<div id="setupParty" data-dojo-type="dijit.MenuItem"
onclick="addPartyTab('Add Party');">Manage <u>P</u>arty</div
then it throws error
I want my tab to be displayed with name as "Add Party"
can anyone suggest me solution for this???
Thanx in advance
What error does it throw?
how does the code in addPartyTab look like?
The following should work in any case:
onclick="addPartyTab('Add Party');">
However, this may not be an ideal solution. You need to look into your addPartyTab function to first, ensure the text with embedded space is coming through fine (and i dont see any reason why it shouldnt) and then examine the code in that function to ensure it is being processed correctly - i suspect somewhere in there you will find why it is breaking.
In general, you can set title on a dijit tab (which is typically a contentpane) directly even if the title contains spaces without any issue. Following is a typical way of doing it:
dijit.byId("myTabContentPane").set("title", "Add Party - Hurray!");
where myTabContentPane is the id of the contentpane that makes up that tab