dialog

Dojo and javascript: lightweight tooltip in onclick on anchor tab

两盒软妹~` 提交于 2019-12-25 04:15:25
问题 I have a dojo datagrid and I am using a formatter that puts, among other things, link in the cell. The formatter looks like this: var descshort = value[1].substring(0,220); return '<a href="'+ value[2] +'">'+value[0]+'</a><br /><div class="gridItemDescription">'+descshort+'  <a href="#" onclick="showDesc();return false;">show more...</a></div>'; So you see I am only displaying the first 220 characters of value[1]. What I want to do now is show a dialog or tool tip when you click on the "show

Facebook returning a 206 response only from a determined server

我怕爱的太早我们不能终老 提交于 2019-12-25 04:13:36
问题 I'm trying to post a feed using Facebook javascript API (FB.ui). When I post the feed, the image field appears empty. Of course I've tried the URL from the example provided by facebook http://www.fbrell.com/f8.jpg and it works fine. Then I downloaded this image and uploaded to my server and tried again and got nothing. Using the facebook debugger, the facebook example image returns a 200 message, and the same image from my server returns a 206 message, which I believe is the reason why it's

I cannot open popup dialog with Phonegap on iOS mobile

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-25 03:54:59
问题 I have a strange problem with Phonegap on iOS platform. On Android, "popup" works correctly. I have this code: <button data-rel="popup" data-position-to="window" data-transition="pop" id="prueba23">Botón</button> <div data-role="popup" id="popupDialog"> <div data-role="header" data-theme="a" style="top:-21px"> <h1>Delete Page?</h1> </div> <div role="main"> <h3 class="ui-title">Are you sure you want to delete this page?</h3> <p>This action cannot be undone.</p> </div> <div data-role="footer">

Android : dialog and NullPointerException

吃可爱长大的小学妹 提交于 2019-12-25 03:54:06
问题 I have the first activity that call a dialog from second activity with this code : public class negozi extends ListActivity implements dati_punti{ private Context context; private popup_segnala segnala; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.negozi); context = this; visual_pop(context); } public void visual_pop(Context context){ segnala = new popup_segnala(context); segnala.showDialog(popup_segnala.OK_INSERT);

jquery ui dialog box removes <div> after closing

允我心安 提交于 2019-12-25 03:49:37
问题 I have three divs, and a buttons for each for my dialog box to trigger. When I trigger the parent div it shows the dialog box and the content of the other two childs with no problem. If the child div only is triggered, it opens and displays the contents of the child div a ok, but when I open [click the button for dialog box] the parent div, the child div content is gone [ by checking it through firebug ] or not displayed, but when i trigger the button for the child div, the dialog box opens

How can i make my outdated app version show a dialog that an update is available? [duplicate]

本秂侑毒 提交于 2019-12-25 03:24:52
问题 This question already has answers here : Android Application Update Notification (2 answers) Closed 5 years ago . I am just new to android programming, so let's say i have an app of version 1.0 .. then i released another version for the same app, let's say version 1.1 .. what code should i add in my app to check for updates and forces the outdated app versions to exit when a user does not update it and redirects the user to the download link if he/she wants to update my app ?. thanks in short

jQuery dialog box, php form

心已入冬 提交于 2019-12-25 02:59:41
问题 i have a dialog box that opens on pageload for a site. script type="text/javascript"> $(function() { $('#dialog-message').dialog({ modal: 'true', width: '400' }); }); </script> this pulls up an include: <div id="dialog-message" title="Free Jiu Jitsu Session at Alliance"> <!--#include virtual="/includes/guest.php" --> guest.php has a very small form that is processed by the page itself: <?php $dbh=mysql_connect //login stuff here if (isset($_POST['submit'])) { if (!$_POST['name'] | !$_POST[

Usage of GetOpenFileName() API in VC++ for opening a folder & NOT a file

人盡茶涼 提交于 2019-12-25 02:55:56
问题 BOOL WINAPI GetOpenFileName( Inout LPOPENFILENAME lpofn ); is used for opening a file in a VC++ program, say C:\Hello\World\abc.txt . But I want to use this function to select a folder C:\Hello\World instaed of a file in it. I guess I need to make some changes to the members of the structure "OPENFILENAME". Can anyone kindly lemme know how do I achieve this in a VC++ program. Thanks in advance. 回答1: GetOpenFileName does not support folder selection at all. Your options are: SHBrowseForFolder

Implementing browser-compliant dialogs using jQuery

落花浮王杯 提交于 2019-12-25 02:47:41
问题 I would like to show a jquery dialog which contains an iframe when the user clicks a link. Unfortunately I am unable to set this up so that the dialog closes down properly when the close (X) in the dialog is clicked in all the major browsers (Chrome, IE, FF, Safari and Opera) I can write code specifically for IE or Safari but so far my attempts to write common code which work in both have failed. The following shows my code. <!DOCTYPE HTML> <script type="text/javascript" src="http://ajax

css transition not working on dialog box

本小妞迷上赌 提交于 2019-12-25 02:20:03
问题 I am trying to figure out why the fade in and out of a dialog box in this code is not working properly. What I'm trying to do is having a fade in and out on click. But I am trying to do this fade in/out with CSS only though. When i remove manually the class "active" in the console the effect works, but not when I actually click on the link (to open the dialog box). This is my code CSS: .modal { display: block; overflow: auto; overflow-y: scroll; position: fixed; top: 0; right: 0; bottom: 0;