Convert SOAP request to REST request in javascript/jquery
Hi All, We need to call convert SOAP request into REST in javascript. Is there any add on available for the same? Thanks in advance
Retrieve value from AJAX to PHP
Hi Basically I want to select value from dropdown and after selecting value from dropdown, enter value in the text. Based upon the selected value and text I want to retrieve value from database. 1.) index.php `Inline Code Example Here` <?php $sql = "SELECT * FROM city ORDER BY city_name"; $query = mysql_query($sql); ?> <label>City: <select name="city" onChange="showCity(this);"> <option value="">Please Select</option>
JQuery Post not working
I'm very new to JQuery and the following simple example is not working for me. It work fine in plain JavaScript AJAX. Here is the JQuery: $(document).ready(function(){ var serverPage = "ObituaryDisplay.php"; $('button').click(function(){ Tfirst = $("#txtFirst").val(); Tlast = $("#txtLast").val(); $.post("ObituaryDisplay.php", {first:Tfirst,last:Tlast}, function(result) { $('#errdisplay').html(result); }); }); });The server side is very simple PHP page. $input
Operations on dynamicly added elements don't seem to work properly.
<div id="MyTopDiv"> <div id="one"></div> <div id="two"></div> <div> Div one and two are dynamically added. If I try to use .after() like this it does not work (nothing happens): $("#one").after($("#two"); I have also had problems with getting the height and width of dyncamically added divs. Am I supposed to refresh/reload the DOM somehow or am I doing something else wrong?
jQuery validate (http://jqueryvalidation.org/) doesn't works
Hi! I have a problem with my project where i use jQuery validation plugin. This is example of my form (i use Twitter Bootstrap): <form action="/editprofile/save/" method="post" role="form" class="editprofileform"> <div class="col-xs-4"> <div class="form-group"> <label for="firstname" class="control-label">Your name</label> <input type="text" class="form-control" id="firstname" placeholder="Your name" name="firstname" value="Evgeny"> </div> <div class="form-group"> <label for="birthday"
what's wrong with this setup?
Hello - What's wrong with the following setup? When I press F12, I can see in the script debugger that the jquery reference and html/script below has been loaded. However, I expect an alert to display "document is ready" but that's not happening. Any idea what the problem might be with the setup below?: <html> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"> <script> $(function() { alert('document is ready'); }); </script> </head> </html>
jQuery Mobile slider widget deprecation
I understand that the jQuery Mobile slider widget is deprecated. What is the recommended alternative if one's application is slider-based? David D.
jquery - uploadForm
Hi all, I wanna ask you how to check if the file was uploaded in form ... thanks
where to place my jquery script?
Hi, I am used to place my jquery scrip <script type="text/javascript"> at the end of my code just before the </body> I wanted to ask if this is the best place to place it or it should be within the head or anywhere else? Please advise.. Thanks, Jassim
why States are not getting populated?
Hi, I am using the following code to populate states based on country select using the php and jquery but everytime I select a country nothing is happening and my state dropdown is still empty. where is the problem please? Happy New Year :) Html: <tr> <td valign="middle">Country</td> <td valign="middle">:</td> <td valign="middle"> <select name="cboCountry" id="cboCountry" style="width: 100%" required> <option value="">[Country..]</option> <?php
1.4 Custom transitions not working
Hey there, Up until 1.4 I've been defining custom transitions as explained in this stack overflow post: http://stackoverflow.com/questions/20806208/has-no-method-transition-error-with-a-custom-transition-setup-on-jqm-1-4-0/20807365?noredirect=1#comment31214747_20807365 I upgraded to 1.4 recently and now my projects transitions have gone tits up. Being an intermediately skilled programmer at best, considering the answer I got on stack overflow this is what I've gotten so far in trying to rebuild
toolbar popup
Dear All, How I can show toolbar buttons bar on html table to format contents of table. When user select table row and then click on "B" the whole text become bold, similarly when click I the text become Italic. How I can implement this functionality. Thanks
drop effect
hello, i want to do some effect of jquery, well what i want is to catch fruits by basket which are dropped from a tree. can you please give me some link, any idea, any link, any help. please reply..thanks
datepicker for dynamic table cell.[beforShowDay]
Hi All, Currently working in room reservation form . On that i need to disable days that are all already booked against that particular room. In my form , i have a button to create a room . It will create a table row having [checindate], [checkoutdate] columns. These two columns are datepickers.want to bind beforeshowday function for all dynamic datepickers. $("#tblReservationBody").delegate(".Indatepicker", "focusin", function () { $(this).datepicker({ dateFormat:
tablesorter filter functions - external select box to filter by column
Using the tablesorter plugin I want to be able to filter entries in a table with a select box. In the examples I could find select boxes in the table header but I couldn't manage to create an external select box which is populated with the values in a specific column (in this case I want to filter by the values in column 3 - Age) and lets me filter the table. Can anybody give me some advice or did I just miss the example page for this case? I've set up a jsfiddle to give you an idea of what I want
Autocomplete issue with viewmodel
I have a simple form that is working just fine with Firefox 26 (latest version as of 12/26/2013) but when I run this form with Internet Explorer 11 I am not seeing the values from my two jQuery autocomplete controls being updated in my ViewModel. All other controls are working just fine. My autocomplete controls are of type input but I have several other controls on the form that I have no issues with, just the autocomplete. Are there any known issues with jQuery autocomplete in a ... rendered in
QUnit from within dijit widget startup
Hello, I'm brand-spanking new with jQuery, but it seems to be working pretty well for my needs. I'm using it with sinon.js to test all kinds of nested dijit widgets that are loaded using AMD loading. These widgets contain and manage the tests => a boolean decides when they run or not and the execution happens after the widget's startup(), i.e. all required setups are already performed ISSUE: When pages with these widgets are loaded by refreshing the entire browser page (e.g. cursor in the address
Time masking issue with maskedinput.
Hi All, I am using maskedinput-1.3.min.js for masking time textbox. I have several issues in using the same. while landing into the page, if no value is there I want to set value as __:__. that I am setting but if user focus on the box and without entering any value just click some where else, the value is getting empty. how to restore the value? How to restrict the user to enter time not more than 23:59? I have done the following: $.mask.definitions['5'] = '[0-5]'; $.mask.definitions['2'] = '[0-2]';
Implementing top and bottom horizontal scrollbar for an iframe
I am implementing top and bottom horizontal scrollbar for an iframe .I am using an external site url to be displayed on the iframe. I created one more div 'scrollbar' before main div containig iframe.On it's scroll event,I am changing the scroll position of iframe and vice verse. This is my implementation. If I give any url from the same domain ( something likelocalhost:8080/myProject/samplePage.html ), it works perfectly . But for external urls it doesn't work. This error coming when I scroll top
Dynamically calling multiple Dialogues with different values
how to assign values to new dialogue my dialogue function showAccessId(value){ dialog = $('<div id="details"></div>') .html(bodyOfWindow) .dialog({ title:'Details', autoOpen:true, width:600, closeOnEscape:true, height:330, beforeClose: function(event,ui){ dialogueOpened=false; } $('#accessId').val(value) }); } bodyOfWindow="Access Id is : <div id='accessId'> " ; Now for me i will call the function several times .... first time i will have dialogue
How to create a blog archive in jQuery UI
I want to create a blog archive made of jQuery but when i did it i have a problem. Here's the code: <div id="accordion"> <h3> 2013 </h3> <div id="accordion"> <h3> December </h3> <div> <a class="anchor" href="riverajakob11.github.io/index.html#my-first-post"><span class="octicon octicon-link">My first post</span></a> <br> <a class="anchor" href="riverajakob11.github.io/index.html#how-do-i-blog-posts"><span class="octicon octicon-link">How do i do blog
dynamically generating js driving me crazy
I am dynamically generating html and js with this string: htmlStr+="<div class='list-group-item Specification' " + "onClick=displayResults(" + key + ", '" + time + "', '" + foodGroups + "')>";In Chrome debugger it generates the html I want, where onclick=displayResults(1, '14:03', 'meat, veggies, fats')> but in the final html that is generated the quotes
JQuery UI Draggable + Snappable False Positives
I am seeing the following unexpected behavior: Snappable elements are being returned as "snapped" when they should not be. Here are the scenarios: 1) The draggable element is in between snappable elements - Expected "snapped" elements = 0 - Actual "snapped" elements = 1 2) The draggable element is covering all or part of 1 snappable element - Expected "snapped" elements = 1 - Actual "snapped" elements = 2 See fiddle below for an example: http://jsfiddle.net/95qAk/33/
Performance differences when using load()?
Wondering if someone can clear this up for me. Speed and optimization is a factor for me on a project I am working on and I was wondering if there are any performance differences between the following when loading content. In this particular case there are many portions of the site where I need to 'refresh' content after some action has occurred. Say, for example, on click of a button I want to show a table of information which is generated with php... the values will change so I am 'refreshing'
jQuery.mobile.changePage problem, version 1.3.2
I have a strange problem with jQuery.mobile.changePage. Here is an example. i have a function which creates a page dynamically and put contents on it, then use jQuery.mobile.changePage to show it. let's say the function is called function createPage() { var pageid="dpage"; // here is some code to check if "#dpage" is already in the dom, if not create it var page = jQuery("<div data-role='page' id='dpage'></div>").appendTo(document.body); // now put a back button
Parent child relation in listbox items
how to make parent child relation in asp.net listbox control items with drag and drop functionality
Gridview Overlay
Hi to all, as an asp.net developer and relative jQuery newbie, I have run into a design issue with a project that I am working on. The requirement that I am working on is as follows: Display a series of timed activities for a specific day on a grid view with time on the x-axis (in minute / 5 min blocks) and location on the y-axis, I need to show if the activity started / finished - early / on time / late and also timing details for sub activities contained in the main activity. I have two issues
Pulling in JQuery and JQuery UI from Google CDN?
Total noob question here, but when I try to switch the JQuery and JQuery UI libraries from the references in the sample code under "Droppable" sample code, i.e. the following two lines: <script src="http://code.jquery.com/jquery-1.9.1.js"></script> <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script> to move over to the Google CDN: <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> <script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
Hide datatable initially
Hi, I am new to JQuery and I'm sure I will be asking an obvious question :( I want to initially hide a datatable when the page loads, and once the user click on a button then show the table with the results, note that the table will always remain after they once click the button. I tried the hide() command within the ready function but the datatable is always hidden. $("#reviewcases").hide(); This is what I have which always displays the table initially: $(document).ready(function()
accessing global variable in a function and putting this variable's value in ajax
var preCounter = 0; var counter = 0; $("#addQ").click(function(){ $.ajax({ url : "qtemp.php", type : "post", data : "axn=qtype&cntr="+counter+"&pcntr="+preCounter }).done( function(msg) { }); }); });'preCounter' is not passing value in ajax while varible 'counter' passing value. please help me, thanks in advance
on change post()
I'm reading from MySQL and populating an array to be able to edit cells. <td> <input type="text" name="id" id="id[$counter]" value="<?php echo $id; ?>" onchange="post()" </td> <td> <input type="text" name="item" id="item[$counter]" value="<?php echo $item; ?>" onchange="post()" </td> <td> <input type="text" name="price" id="price[$counter]" value="<?php echo $rprice; ?>" onchange="post()" </td> function post() { var id = $("id[$counter]").val(); var item = $("#item[$counter]").val();
Help problem loading xml file ..
Hi, I'm new to the programming, and I'm trying to learn jquery. I have a problem with this code, I can not view the data in the xml file. You can take a look at the code and tell me where am I doing wrong? thank you very much. <!DOCTYPE html> <html> <head> <title>xxx</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.0/jquery.mobile-1.4.0.min.css" /> <script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
show proressbar only during upload
Hi, I have downloaded the jquery file upload from http://blueimp.github.io/jQuery-File-Upload/ it's great I want to ask how can I make the progress bar show during the upload only and hidden all the other time? Thanks in advance... Regards, Jassim
Sending data to 2 URL's using ajax
Hey Guys. I am trying to figure out how to send data to 2 URL's using the GET. The datatype is just an integer. Does anyone have any suggestions on how to do that? Any help would be highly appreciated. Thanks!
Trouble using and array to loop though table rows deleting 'tr' with :contains() to identify rows
I can create the array and create individual values from it but when trying to use these values in a loop to select rows to delete it falls short for some reason. I've tried converting the array back to a string value using .join() but got that wrong too evidently. Any suggestions much appreciated. It's been a few days on this... JSFIDDLE: http://jsfiddle.net/vhabhsrosed/Txm87/7/ $(document).ready(function () { var myArrayy=["IRB Mtg Date","Minutes CAF" ]; //alert(myArrayy); for (var i=0;i<myArrayy.length;i++)
problem
Hello guys, On my page, i have an image. Under the image, there is a button. When clicked, the image would become bigger. But when i press on the button, the image will not become bigger. Im sure it must work. Can anyone of you find the solution to solve this problem? Huge thanks! ------------------------------------------------------------------------
How to increase performance
Hi, I have only 1 html-file, but it contains over 10000 strings of code. Whether performance increase, if create a separate html-file for each page? Sorry for my english. I hope you understand me.
where ,is Jquery mobile design app in new web site?
hi about 2 weeks ago ı can find jquery mobile desing page easly but now with this new site ı cant find desing page.someone send me design page link.help me.thnx sorry for bad grammar :)
One Submit button 4 forms
Hi all, Develop an application that allows various forms fill and save each in a database, all perfect up there. But now I need to fill those forms (4 specifically) and to fill the last have a "Save" button that allows me to save all the forms (4). I would appreciate help. regards
Sliding From left to right always with out back slide from right to left ?
Hi there and really thanks all you for this forums Im new in jquery and I design a slide show that slides from left to right but when it comes to end or 5th pic it begins to slide back from right to left but i want it slides from left to right always and always this is query code please help me how to fix it that always slides from left to right and has never back slides from right to left ? the query code and query link is : <script type="text/javascript" src="jquery-1.2.6.min.js"></script> <script type="text/javascript">
Next Page