How to add Jquery or javascript functions for click to popup open? [closed] - popup

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
popup images I need to click to menu items popup show

You can hide popup content initially using CSS & then use jQuery fadeIn()/ fadeOut() to show/hide popup respectively.
Sample HTML:
click to open popup
<div class="popup-content"> <!-- use display:none to hide initially -->
x
<h1>Lorem Ipsum</h1>
<p>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
</p>
</div>
jQuery click function:
jQuery(document).ready(function($){
$('.click-to-open').on('click', function(e){
e.preventDefault();
$('.popup-content').fadeIn();
});
$('.popup-close').on('click', function(e){
e.preventDefault();
$('.popup-content').fadeOut();
}
});
Check the following fiddle for working example: https://jsfiddle.net/tvaunsg3/1/
You can use toggleClass() on body to create some overlay while pop-up is active.
Alternatively, you can also use jQuery Modal or Magnific Popup if you need more advanced functionality (callback and etc).

Related

How to achieve a modal similar to Bootstrap modal in .NET MAUI? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 months ago.
Improve this question
How can I achieve a Bootstrap modal dialog on .NET MAUI? Where..
Backdrop fade in or out
Modal content slide up or down
Modal can be close by clicking backdrop or by clicking custom close button
I've tried to find some existing libraries but have not been able to get the same effect.
Desired modal link: https://www.awesomescreenshot.com/video/11412401?key=4805d42e3e44dbabb15ff52cc2d70369
You could use the BottomSheet control for this,
More information here: https://blogs.xgenoapps.com/post/2022/07/23/maui-bottom-sheet
Add the namespace:
xmlns:controls="clr-namespace:XGENO.Maui.Controls;assembly=Maui.Controls.BottomSheet"
And then all you have to do is something like:
<controls:BottomSheet
x:Name="simpleBottomSheet"
HeaderText="Simple Example">
<controls:BottomSheet.BottomSheetContent>
<Label
Text="Hello from Bottom Sheet. This is a simple implementation with no customization." />
</controls:BottomSheet.BottomSheetContent>
</controls:BottomSheet>
Also, the Github is here : https://github.com/naweed/Maui.Controls.BottomSheet
Goodluck!
Also, I have a free set of controls(Android/iOS) you can check out if you are interested. It already has a bunch of controls and I am planning to add more :D https://github.com/FreakyAli/MAUI.FreakyControls
You could use net maui toolkit to open a popup page and show as modal.
Refer to this video:
https://www.youtube.com/watch?v=yM7opXlu-MU

Making GoTo Sheet Button [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I want to create a "View" Button on top and the list below which contains the sheet names.
e.g
"View"
sheet 1
Sheet 2
Sheet 3
Sheet 4
... .
If I select Sheet 3 and then click View, it should take me to Sheet 3
I tried macro but it is somehow taking input for a particular sheet only and is taking me to one sheet only even if I select others
Place this routine in a standard code module:
Public Sub SelectSheet()
On Error Resume Next
Sheets(Selection(1, 1).Value).Select
End Sub
Create a Form Button on the worksheet and give it a caption of GoTo.
Assign the macro to the button.

How to change name or hide "New" tab in top nav bar in pligg cms? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I want to rename the "New" tab in top navigation bar in header.tpl but after i rename and save it, nothing changed and an error 404 page appears. please help me I want to hide the New tab in nav bar, which is not working...thanks a lot.
To change the word "New" you should:
Login to your Admin CP.
Expand the Modules menu.
Click Modify Language.
In the Filter Text box type New.
There are quite a few you need to change if you want your new word shown everywhere. These are the values I have changed:
PLIGG_Visual_Search_Status_New
PLIGG_Visual_Pligg_Queued
PLIGG_Visual_RSS_Queued
PLIGG_Visual_Breadcrumb_Unpublished_Tab
PLIGG_Visual_Breadcrumb_Unpublished
PLIGG_Visual_Breadcrumb_Queued
PLIGG_Visual_User_NewsUnPublished
PLIGG_Visual_AdminPanel_New
PLIGG_Visual_AdminPanel_Mark_New
PLIGG_Visual_EditStory_Email_NewText
Or, to hide the New tab you should:
Edit templates\bootstrap\header.tpl.
Find and Remove <li {if $pagename eq "new"}class="active"{/if}>{#PLIGG_Visual_Pligg_Queued#}</li>.

Touch elements at bottom of page got error: Element is not currently visible and so may not be interacted with

I have a very long html page with lots of editable elements. When click on a element, an edit dialog for it will pop up. The strange thing is if the element is at the top of the page, its edit dialog can be accessed successfully while the bottom and some middle positon elements' edit dialog cann't be accessed. the error prints out is: "Element is not currently visible and so may not be interacted with". Some checks on the failed edit dialog is:
p dialog.exist? ==>got true
p dialog.visible? ==>got false
puts dialog.attribute_value('style') ==>got ""
(firebug shows the style attribute value is 'display: block;' and the checks on success dialog of top element has exactly the same value, visible is 'false' too !!! so weired!! why it can be accessed?)
Then I tried:
browser.execute_script("document.getElementById('dialogDiv').style.display='block'; ")
to set the dialog style attribute value to 'display: block;' wish it become visiable, but failed.
On this long page, when the edit dialog of element pops up, there isn't scroll bar. So there is a chance that part of the dialog of bottom element is covered up. Is this a reason?
so I tried:
bottom_element.wd.location_once_scrolled_into_view
to scroll to the bottom element before click it, when the dialog pops up, all part of the dialog showed but still fail to access.
last trying:
after the edit dialog opend, use javacript to scroll
browser.execute_script("window.scrollBy(0,-100)")
the dialog is in middle of the browser window and isn't coverd up by anything, but still got
Element is not currently visible and so may not be interacted with
When i moved to a similar long page but has scroll bar after dialog poped up, the dialog of bottom element can be accessed successfully. Dose anyone has any idea about this? Please share with me, Thank advance.
the html is:
<div id="dialogDiv" style="display: block;">
<div class="sage_dialog ui-draggable" style="top: 322px; display: block; margin-bottom: 1000px; left: 542px;">
the location and size of the dialog are:
<struct Selenium::WebDriver::Point x=0, y=1576>
<struct Selenium::WebDriver::Dimension width=800, height=0>
I got a clue from How to force Selenium WebDriver to click on element which is not currently visible?
height=0 is a problem, how can i change it?
After consulting the html designer, I got the key of the probelm, the body html is:
<body class="float_guide_parent" style="width: 800px; overflow: hidden; cursor: auto;">
The value of overflow is 'hidden', It blocks showing of scroll bar, so i modified it by:
browser.execute_script("$('.float_guide_parent').css('overflow',''); ")
Problem soveled.

Disable Facebook Like button's "Post to Facebook" popup [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Facebook Like Button - how to disable Comment pop up?
I have a Facebook Like button on my site like so:
<fb:like href="http://www.facebook.com/myurl" colorscheme="light" send="false" width="450" show_faces="false" font="" ref="top_like_button"></fb:like>
When the user clicks it, I need to refresh the page. I have seen various posts on how to do this using the 'edge.create' event, and it works fine.
But my problem is when they click Like, it shows a popup saying "Post to Facebook".
So I really need to refresh my page after they have closed the popup. Is this possible?
An alternative acceptable solution would be to disable the popup completely, so that when they click Like the popup doesn't appear.
Thanks
You can avoid this flyout being displayed by using iframe version of Like Button social plugin.
When will users have the option to add a comment to the like?
If you are using the XFBML version of the Like button, users will always have the option to add a comment. If you are using the Iframe version of the button, users will have the option to comments if you are using the 'standard' layout with a width of at least 400 pixels. If users do add a comment, the story published back to Facebook is given more prominence.
Beware, this will make impossible to subscribe to edge.create/egde.remove events.
Iframe it or simply have the like box in a tight div with overflow: hidden.
div#like_box {
height: 20px;
overflow: hidden;
padding: 0;
}
If you can't remove it; hide it! :)