w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
In jquery mobile 1.3.1 how do you set selected value in a selectmenu?
$('#select').val(myval).selectmenu('refresh'); Just make sure myval actually matches a value in your options: <option value="myval">My value</option> http://jquerymobile.com/demos/1.0a4.1/docs/forms/forms-selects.html

Categories : Javascript

onclick div open selectmenu in jquery mobile
I think quotes is the problem. Try this onClick='$("#select-choice-7").selectmenu("open");' instead of onClick="$('#select-choice-7').selectmenu('open');"

Categories : Javascript

selectmenu jquery dynamic select options not work
getModello.php code if($_GET['list']){ $id = $_GET['id']; $query_modello="SELECT DISTINCT dettmodello FROM book_datanew WHERE dettmarca='".$id."'"; $distinct_modello = DB::get_modello($query_modello); for($i=0; $i < count($distinct_modello); $i++){ array_push($dati, array("modello"=>$distinct_modello[$i])); } //print_r($dati); echo json_encode($dati); }

Categories : Javascript

jQuery Dialog not working for me ..?
Your version of jQuery is too low and you need to add jQuery UI for dialog to work, and i'd suggest not to use inline scripting. Use on() like this. $('a').on('click',function(){ showDialog(); }); Demo here

Categories : Javascript

JQuery Dialog not working
A button inside a form will submit the form and reload the page, so you need to either change the button to an input element with type="button", or prevent the default form submit by adding this to your code: $('.add-RefStatus').button().on('click', function(e) { e.preventDefault(); // the rest of your code here }); FIDDLE

Categories : Jquery

jquery ui confirmation dialog not working
It looks like your PHP is checking for which button is clicked. jQuery does not include the buttons when you submit a form via $('#confirm').submit();. The browser will only include the buttons in the submission if the button was actually clicked. There are a couple ways to get the button name/value pair to be included in the submission. You can use $('form').serializeArray(); and push the doDelete/Delete pair as described in this answer Or you might be able to get away with doing something like this. Notice the click of the delete button is called a second time. The button click event checks if it was initiated via a trigger (aka the dialog). The second time around, it will not be prevented from being submitted. $(function () { $("#dialog-confirm-multiple").dialog({ autoOp

Categories : PHP

Jquery dialog not working from accordion with ckedior
Make sure that you have included the jQuery library file. In your code, you have missed the braces while initializing the dialog. This will help you: $("#dialog").dialog({ draggable: false, resizable: false, modal: true, buttons: [ { text: "Close", click: function() { $( this ).dialog( "destroy" ); } } ] }); Also have a look at Dialog Widget.

Categories : Javascript

No validation working on the form inside the jQuery UI dialog
Ok, this was not a jquery or any js problem. The html was not formated properly, the form element was "inside" a table which didnot work, always have form element enclose a table <form> <table> <tr> <td><!--input element here--></td> </tr> </table> </form> and not <table> <form> <tr> <td><!--input element here--></td> </tr> </form> </table> If you are enclosing form inside a table cell, it should be ok.

Categories : Forms

JQuery Alertify confirm dialog box not working properly
This is how i solved JS Fiddle DEMO $("#btn").live("click", function () { alertify.confirm("Are you sure you want to delete?", function (asc) { if (asc) { //ajax call for delete alertify.success("Record is deleted."); } else { alertify.error("You've clicked cancel"); } }, "Default Value"); });

Categories : Javascript

jquery datatbles fnAddData from dialog form ajax not working
You didn't set your oTable as a global variable that why oTable on your dialog is not define, if you want to define it on your script do something like: var oTable; $(document).ready(function() { oTable = $('#systemgoals').dataTable({}); And on your dialog oTable.fnAddData( [ obj.inserted.goal_id, obj.inserted.value, obj.inserted.status, obj.inserted.points_per_action, obj.inserted.created, obj.inserted.due

Categories : Ajax

Facebook Login in jQuery Dialog - MVC 4 ActionResult in jQuery Dialog
I think that I found a possible solution by myself, I don't know if is this is the best and clean way, but works. Following the details. I changed my controller to this: if (result.Result != null) // return result.Result; { RedirectResult RR = (RedirectResult)result.Result; return Content(RR.Url); } return HttpContext.Request.IsAuthenticated ? new RedirectResult(!string.IsNullOrEmpty(returnUrl) ? returnUrl : "~/") : new RedirectResult(Url.LogOn(returnUrl)); and my view to this: <fieldset class="facebook-login-block"> <legend>@T("Plugins.ExternalAuth.Facebook.Login")</legend> @*<a href="@Url.RouteUrl("Plugin.ExternalAuth.Facebook.Login", new { ReturnUrl = HttpContext.Current.Request.QueryString["Retu

Categories : Jquery

TinyMCE editor in dijit.dialog: link dialog not working
Solution found: use dojox.layout.FloatingPane instead of dijit.Dialog. But I would not recommend the usage of dojox.layout.FloatingPane, I had lots of problems so I switched back and will wait until TinyMCE update will fix the problem.

Categories : Javascript

Jquery ui dialog buttons click function issue and effects another dialog on the page
Another issue is that I had another dialog somewhere in the page, even that dialog is displaying these buttons... For this part, check the classes or Ids you are passing to the function. It may happen that the other div also contains those classes.

Categories : Jquery

Jquery UI Dialog in MVC4 application loading dialog content from partial view
Why you aren't just simply putting your view into a div and performing a .dialog() on it...?! In your first view: <div id="divDialog" style="display:none"> @Html.Partial("MyPartialView") </div> Whenever you want the dialog: $("#divDialog").dialog({ // dialog options... }); You can also render any contents dynamically into your dialog: $("#divDialog").html(jqXHR.responseText); // or any hard coded content

Categories : Jquery

jQuery UI dialog: How check what if user confirm or cancel the UI dialog.
Change the structure of your buttons code to: buttons: [{ text: "Confirm", click: function () { $(this).dialog("close"); console.log('confirm') } }, { text: "Cancel", click: function () { $(this).dialog("close"); console.log('cancel') } }] Then you have easy access to the click event for each button. jsFiddle example

Categories : Javascript

JQuery UI dialog trigger from parent dialog button click
I think you want to initialize the "inner" dialog in one step and open it in another like so: $(function() { $("#tabs").tabs(); $( "#dlgInstitutionSearch" ).dialog( { dialogClass: "no-close", minWidth:512, minHeight:410, closeOnEscape:true, buttons: [ { text: "Search", click: function() { $( this ).dialog( "close" ); } }, { text: "Cancel", click: function() { $( this ).dialog( "close" ); } }, { text: "Help", click: function() { $( this ).dialog( "close" ); } } ] }); // Initialize the dialog $("#dlgStatesList").dialog({ autoOpen: false, dialogClass: "no-close", minWidth:200, minHeight:300, closeOnEscape:true, buttons: [ { text: "OK",

Categories : Jquery

How to hide a jquery dialog button on dialog load?
Try this: $('#dialog-form').dialog({ ... buttons : {...}, open : function() { $('#dialog-form') .dialog('widget') .find('div.ui-dialog-buttonpane div.ui-dialog-buttonset button') .eq(0) .button('disable'); } });

Categories : Javascript

Open a New Jquery UI Dialog With Links in Existing Dialog
Actually this is possible and I just did it a few days ago. Can you make sure your click event is bind correctly in your dialog? Maybe put an alert on click and see if it actually works? Is this where you are opening the new dialog? $("#home-tos").click(function( event ) { event.preventDefault(); $("#tos-description").dialog("open").load("/tos/"); return false; }); Can you just test something like this: $("#home-tos").live("click", function() { alert("click worked"); }); There's also an open method of dialog, where you could do this: $("dialog-div").dialog({ autoOpen: false, open: function() { $(this).find("yourbutton")click(function() { alert("click worked"); }); } }); jsfiddle:

Categories : Javascript

jQuery UI dialog with iFrame position with multiple dialog
You have to create a function in the main window for opening these dialogs. Then every links in your dialogs should call that function (from main window) with calling window.parent.your_function_name().

Categories : Jquery

jquery dialog position not working with width:auto - need to auto resize after opening
solved it with the help of this question: jQuery - Dialog auto-resize on dynamic content and maintain center position ajaxStop is called whenever ajax finishes loading, so I'm resizing the dialog when ajaxStop is called and it's works perfectly! $(document).ajaxStop(function(){ $(".dialog").dialog({height:"auto",width:"auto"}); });

Categories : Jquery

jQuery UI 1.10.3 Dialog Box, dragging moves away dialog box
Verified jQuery UI website, its a bug in jQuery UI. Ticket# 9354: http://bugs.jqueryui.com/ticket/9354 Ticket# 9315: http://bugs.jqueryui.com/ticket/9315

Categories : Javascript

Table in jQuery ui .dialog not following dialog box when moved
Update your css as : #centraldiv{ position:relative; } .addinsurancecotable { height:200px; margin:10px auto 10px auto; background-color:#E2E4FC; display:none; position:absolute; } .addinsurancecotable td { border:0px solid black; font-family:"Times New Roman", Times, serif; font-size:14px;} see here

Categories : Jquery

Jquery Mobile Dialog on page load, the dialog doesn't load
Make sure that you imports are in the right order. jQuery then UI and lastly jQuery Mobile. My dialog now loads correctly and with the proper formatting. <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script> <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script> <script src="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.js"></script>

Categories : Javascript

Dynamically created Selectmenu options override the selected option with the first value
When you have selected something in your select, the UI automaticly goes back to the previous page, triggering the 'pageShow event'. That's why your list is reseted. For instance, you can replace you event handler, as you are already in the "onDomReady" part. replace $(document).on('pageshow', '#checkout', function(){ by $(function(){

Categories : Jquery

JQuery - Close both dialog windows using first dialog's close icon
This way: $JQ_("#dialog_0").on('dialogclose', function() { $JQ_("#dialog_1").dialog('close'); }); SAMPLE: http://jsfiddle.net/w5YLR/1/

Categories : Jquery

jQuery UI Dialog Close button doesn't show up with local jQuery file
Do you have the images stored locally as well? You should probably download the whole jQuery UI package from here http://jqueryui.com/ instead of trying to find the individual files from the CDN.

Categories : Javascript

jQuery dialog loses all features when loading a view with more jQuery
You have included your jquery and jqueryUI script the Dialog view in the @section scripts{} section. This Dialoge view is loaded via ajax and the scripts included in it are not accessible by the main view. Try moving these scripts to the Layout or the parent view with loads the Dialog view. I am sure this will solve the unusual behavior your are facing.

Categories : Jquery

jQuery-UI autocomplete doesn't display in jQuery-UI dialog
Don't know if this is the best answer, but you can move the autocomplete results after the dialog. $("#search").autocomplete("widget").insertAfter($("#dialog").parent()); http://jsbin.com/uciriq/4/

Categories : Jquery

How to pass jquery var to ui dialog and change the jquery var into PHP var
If you want your button to activate a php function, you must use an ajax request. so to pass the variable to php, package it in your ajax request. <script> var someJqueryVar; var url="targat.php?val="+someJqueryVar; $.ajax( url ) //... </script>

Categories : PHP

dismiss of dialog not working
DO this way. ProgressDialog waitDialog; waitDialog = ProgressDialog.show(this, "wait","wait"); 5secondstask(); waitDialog.dismiss(); UPDATE EXPLAINATION In your case not working because the progressdialog you create using waitDialog=new ProgressDialog(this); is reference by "waitDialog" variable. But when you call show method it returns another object of progressdialog. which is not reference by "waitDialog" variable. Because show() is static method which returns new object of progressdialog. Your case will also work if assign reference to "waitDialog" variable. ProgressDialog waitDialog; waitDialog=new ProgressDialog(this); waitDialog=waitDialog.show(this, "wait","wait");//UPDATE here to work with your case 5secondstask(); waitDialog.dismiss();

Categories : Android

primefaces dialog not working
which version of primefaces you use ? If you use Primefaces 3.5 or older: <p:commandButton id="showDialogButton" type="button" value="Show" onclick="dlg.show()" /> For Primefaces 4.0 : <p:commandButton id="showDialogButton" type="button" value="Show" onclick="PF('dlg').show()" />

Categories : JSF

jsf 2 passing of value to dialog not working
First you need to set value in "input" field. after you need to show your dialog box. you can do it like. Change your code According to this code. Please Notice "immediate" and "oncomplete" Attribute. <h:body> <h:form> Input : <p:inputText value="#{myBean.input}" immediate="true"/> <p:commandButton value="Sumbit" oncomplete="dlg.show()" update=":form2"/> </h:form> <h:form id="form2"> <p:dialog widgetVar="dlg" modal="true"> passed value:<p:inputText value="#{myBean.input}"/> </p:dialog> </h:form> </h:body>

Categories : JSF

Primefaces dialog only working once
I finally got it managed and want to share the answer with all of you. If you use glassfish 4.0 (ships with JSF 2.2) you have to use primefaces 4.0 (currently SNAPSHOT) the following code works as intended: <div id="header_right" class="floatr"> <h:form> <p:graphicImage id="img" value="../resources/img/user_1.jpg" style="cursor:pointer" title="My Profile" height="70px"/> <p:overlayPanel id="imgPanel" for="img" showEffect="blind" hideEffect="fade" showEvent="mouseover" hideEvent="fade"> <p:commandLink value="Edit profile" update=":profiledialog" oncomplete="PF('profiledlg').show()"> <p:resetInput target=":profiledialogform" /> <

Categories : JSF

XPages XSP Dialog not working
There is probably error in dialog's content. This error is hidden inside partial refresh response, so you have to use web developer tools/firebug to see actual response in network tab. You will probably find error page as a response. In case you don't use try/catch exception handling, you may also find the exception in IBM_TECHNICAL_SUPPORT directory inside server's data directory in xpages_exc*.log file.

Categories : Ajax

AngularUI Modal dialog not working
The order in which you list your dependencies is the order that they will be passed to your controller function. Since $dialog is the third entry in your dependencies array, it should be the third argument in your function.

Categories : Javascript

using a dialog box to select a file and working on it
This is the code I generally use to force a user to select the workbook that needs to be opened: Dim f As Object, fso As Object, flder As Object Dim myfile As String Dim wb As Workbook, ws As Worksheet Set wb = ActiveWorkbook Set ws = ActiveSheet Set fso = CreateObject("Scripting.FileSystemObject") With Application.FileDialog(msoFileDialogFilePicker) .Show If .SelectedItems.Count = 0 Then MsgBox "Cancel Selected" End End If myfile = .SelectedItems(1) End With Set Wbk= Workbooks.Open(myfile) Alternatively you can store all the file locations in cells on the first sheet, that way they only need to update the spreadsheet with the new file location and not edit the code or select the workbook every time. To integrate this with your code, it would look someth

Categories : Excel

Dialog Framework in Primeface 4.0 not working
it's possible that you need to use an annotation. I have the same problema and I resolve it using annotation @postconstruct in init method and after do the //setter/getters and some logic to get PendingRep List that you need.

Categories : JSF

jQueryUI Modal dialog not working
Use this $(document).ready(function() { $("#dialog_open").button().click(function () { $('#dialog_frame').dialog({ height:500, width:500, modal:true }); }); });

Categories : Jquery

FB.ui send dialog box not working on iPhone
This dialog can be used with the JavaScript SDK and by performing a full redirect to a URL. It is not supported on mobile devices. https://developers.facebook.com/docs/reference/dialogs/send/

Categories : Javascript

Dialog element of primefaces not working
Try opening your dialog like so: <p:dialog id="modalDialog" header="Modal Dialog" widgetVar="dlg2" modal="true" height="100" appendToBody="false"> <h:outputText value="This is a Modal Dialog." /> </p:dialog> <p:commandButton id="modalDialogButton" value="Modal" onclick="dlg2.show();" type="button" process="@this" update="@none"/> Please post the header of your xhtml file and state what version of PrimeFaces you are using. The following call: PF('dlg2').show(); does not work with Primefaces v3.5 it works 4.0 and up. Version 4.0 supports dlg2.show(); and dlg2.hide(); but not for long, it will be deprecated in future versions so use PF('dlg2').show();

Categories : JSF



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.