popup

Set width of javascript popup box [duplicate]

二次信任 提交于 2019-12-13 20:42:03
问题 This question already has answers here : Closed 6 years ago . Possible Duplicate: How to break line in Javascript I'm using the below javascript to display a popup message on page load for a clients website. I am a real novice at js and can only really copy/paste examples I find on the net. Need to know how I can set the width of the popup box. I would like the text to run over two lines, not just span the width of the page. Here is an example of how it appears www.manageourwebsite.com.au

Listing services and status in a pop-up

别来无恙 提交于 2019-12-13 17:26:26
问题 I have a script that will stop and start services. However, I've had a few issues where services aren't stopping correctly which requires user intervention on the server. Before the start services portion of the script runs I'm using an if statement to check if all the services listed have stopped and if they haven't the script will pop an alert. Below is a snippet of the script that does this. I'm trying to list the services in the pop-up with their status and start-up type but for some

howto create an Ajax Popup Form and submit the form

◇◆丶佛笑我妖孽 提交于 2019-12-13 16:31:43
问题 I like to request a ajax-popup bij clicking on a link with variable. The popup will show some date requested from the server. After submit the data will be checked on the server and send a responce back. Depending on the responce, new content will be showed in the popup. The user can close the popup afterwards. I have searched a while for a tutorial or example, but i can't find any. Who can give me an example or suggestion to startup? 回答1: Check into the jQuery UI Dialog widget. It can do

On click open popup with form and then on submit download and close it! How?

最后都变了- 提交于 2019-12-13 14:26:47
问题 Here is what I am trying to do Click on download link. On click Popup will open. Contact form is in the popup. On submit button send mail and auto start download of PDF file. At the same time of starting of download close the popup without redirecting to any page. I tried using .click() window.open() $('#theForm').submit(function(){ event.preventDefault(); var $form = $( this ), url = $form.attr( 'action' ); var posting = $.post( url, { name: $('#name').val(), name2: $('#name2').val() } ); /*

What's an easy way to show a popover based on if / if else statements?

独自空忆成欢 提交于 2019-12-13 09:06:32
问题 I'm using the javascript on my site seen on the link below. It determines if the user 1. has already allowed our Facebook app and is logged in, 2. hasn't allowed our application but is logged in to Facebook, or 3. isn't logged in to Facebook. I want a popup to show up over some of my site's content (maybe 600px by 400px or something) so it acts as a content blocker of sorts and tells them they need to log in. The popup would then go away after they've allowed the application. My problem is

Produce another pop up based on selected dropdown

若如初见. 提交于 2019-12-13 09:04:31
问题 I am using Kendo UI pop up(template). I have dropdown here. In my demo, I already have the pop up 1. So, right now I want to make if test1 selected, should be other for popup for test1. Other than that, do not happen anything. Is it possible to do that? I'm really need help here. Thank you, please see my demo below. My demo here using jsfiddle : http://jsfiddle.net/ak6hsdo8/2/ HTML <div id="grid"></div> <!-- Kendo popup template --> <script type="text/x-kendo-template" id="popup_editor"> <p

Show popup and reset timer on refresh

风格不统一 提交于 2019-12-13 08:36:41
问题 I am showing a popup for users that are not logged in. I do this using javascript and PHP. <?php if ( ( is_single() || is_front_page() || is_page() ) && !is_page('login') && !is_page('register') && !is_user_logged_in()){ echo'<div class="overlay-bg"> </div> <div class="overlay-content popup3"> <h1>You must login or Register to view this site. do_shortcode("[sp_login_shortcode]");</h1> </div>'; } ?> Javascript code as below $(document).ready(function(){ // function to show our popups function

How to restrict the size of a Google chrome extension popup?

╄→尐↘猪︶ㄣ 提交于 2019-12-13 07:41:46
问题 I am creating a Google Chrome extension that does some basic search based on the choices provided. This is how it looks so far The problem is that there is a lot of white space on the sides which does not look good, especially because this is a popup and overlays on the current page. How can I make sure that the popup uses the minimum amount of space required? 回答1: It should be as simple as styling the body element. Do you want a fixed size, fixed width, or just less margins? For fixed size,

Pop Under on Click for RSS Feed - Javascript

一世执手 提交于 2019-12-13 07:31:53
问题 I want to set up the site so when users click on RSS feed links (which I display in part of the site), the feed link appears in a pop under. It makes sense on the site. It's something my users want. What I can't figure out is how to populate the rss links that I'm pulling to get them to open in a pop under. I've got this: $(document).ready(function(){ $("a[href^='http']").attr('target','_blank'); }); which does open the link in a new window. I can add another line like this: $("a[href^='http'

multiple semantic-ui popups with target element defined in atribute of each instance

半城伤御伤魂 提交于 2019-12-13 07:19:09
问题 I have succesfully defined a popup for a clickable link element: The element: `<a href="{{URL::to('alerts')}}" data-tcs="#popup-1">Alerts Page</a>` The script which triggers my popup (note the commented lines!) $('[data-tcs]') .popup({ // (default as in example provided on the S-UI, works well) // popup : $('#popup-1'), // (attempt 1, doesn't work) // popup : $(this).data('tcs'), // (attempt 2, doesn't work) popup : $(this).attr('data-tcs'), on : 'hover', delay: { show: 0, hide: 500 },