AJAX + Browser Persistence
Hi All, I'm building an external Wi-Fi adapter that features an embedded web server. jQuery and Ajax are used on the client to configure the adapter. A configuration action that can be triggered via jQuery/Ajax is for the adapter to scan for wireless access points. In order to initiate a scan, the adapter changes Wi-Fi mode (AP to Station), does the scan, and then returns to the Wi-Fi mode that it was in (Station to AP). The changing of the Wi-Fi mode causes the connection between the adapter and
Sending data to another page
Hey Guys I am trying to send data to another page using ajax, using the POST method. Is using the the shorthand method $.post() the same as using $.ajax() based on what I an trying to accomplish??? Sending data to another page using $.ajax() $.ajax({ type: "POST", url:"index.php", data:"test=test" });Sending data to another page using $.post() $.post("index.php","test=test");
dynamically create a text box along with a remove button, and fetch the values of the text boxes
Dear All, I want to dynamically create a text box along with a remove button, and fetch the values of the text boxes which are existing on the UI. The remove button will remove the corresponding text box. also the values entered in the existing text boxes will be fetched on a single button click. Also all the text box values have to be passed to the c# code. can some one please help me on this. Regards, Salman
how to move into next tab using Tab key
I am following this tutorial: http://www.jacklmoore.com/notes/jquery-tabs/ In which i created text boxes in tab 1,2,3. i want to create a function when user in first tab after pressing the tab key it will move in to next tab. How i can do this. I am using asp.net text boxes and drop down list in tabs. I was give tab index to inputs but it was not working. I want to do this using jquery. $('ul.tabs').each(function(){ // For each set of tabs, we want to keep track of // which tab is active and it's
Saving Form on a Timer
Hi Using Classic ASP how do I set a timer which calls a function that saves the form contents to the database but still stays on the form. I know it uses setInterval but after that I'm not sure. Thanks
Uncaught TypeError:Object#<HTML.InutElement> has no method 'datepicker'
I am getting this error in crome while trying to add the datepicker in a dynamically created textbox plz help me My code is : <xsl:if test="@type='datetime'"> <input type="text"> <xsl:attribute name="name"><xsl:value-of select="@table" />[<xsl:value-of select="@column" />]</xsl:attribute> <xsl:attribute name="value"><xsl:value-of select="@DefaultValue" /></xsl:attribute> <xsl:attribute name="id">question_<xsl:value-of
how to add mouse event to div
Here I am able to see the thumbnails but mouseEvent not working, I need when user clicks on thumbnail it shows output a jpg name which is dynamically passed to div. $(document).ready(function(){ for(i=1;i<19;i++){ $("#scroller").append("<div class='childDiv' div='child'"+i+"><img src='thumb/"+i+".jpg'></div>"); $mydiv=$('#child'+i); $mydiv.myimage='images/'+i+'.jpg'; $mydiv.click(function(){ alert('clicked on thumbmail >>'+this.myimage); });
How to get a single value of div class in jquery
Hi, iam having online shopping site.i want to show image with price in quick view.the issue is if i use $('.product-item').find('.prices').text(); it show all products prices like this $24 $34 $45.Because the div class product-item is getting looped.i want to show clicked image price only.How do i do this. $(".dialogify").bind("click", function(e) { e.preventDefault(); var productprice= $('.product-item').find('.prices').text(); }); <div class="product-item" data-productid="@Model.Id"
Class toggle with click
I have some html code that I want to toggle a class when the div is clicked. Can anyone help me with this? I want to add a on/off to my class when the div is clicked. <div class="cat-toggle"> <div class="toggle-inner"></div> </div> I need to add the on or off class to the cat-toggle based on the current state when the user clicks on it.
An accordian with complications
I'll try to lay this out as thoroughly as possible: I'm working on behavior for an SP2013 app that displays employee profiles on team sites. The app displays employee profile "bubbles" 5 at a time, with scroll arrows to advance or go back at the bottom. Clicking on the profile "bubble" takes you to the employee's complete bio. You can preview the bio from the existing list by clicking the preview button in the bubble, this is where the accordian-like action comes in. I have come up with plenty of
How to load pages with slideDown
Hello, I'm trying to load pages with slideDown and here is the problem: <div class="back"> <a class="page2" href="#">Page2</a> </div> <div id="area"></div> <script src="js/jquery.js"></script> <script type="text/javascript"> $( '.page2').on("click", function() { $( "#area" ).load('page2.html').slideDown(1500); }); </script> Nothing happens, the page doesn't load, just # on URL Thank you
How to slide from right to left?
Can some one please help me how to make this slide from right to left? This one currently slides from left to right. Thanks a lot. http://jsfiddle.net/Xaru9/
$(window).width() and chrome
with $(window).width(); I get chrome : 1746 firefox opera safari : 1920 why is Chrome totally wrong ? and how can I get the real page width on .ready and .resize ? thank you
Please provide versioned documentation
I hope this is the right place since I can't find anything else that seems like the right spot for an improvement request for the site. Please direct me to the proper place if there is one. Sometimes I need to use older versions of jQuery. It would be really nice if I could go to the documentation page and select the version to get that version's documentation. It's really hard to figure out how things have changed with the current method, which is to try to trace the history though whatever commentary
multiple forms per page & per site
Hello all, I am building a site that is primarily database driven and have multiple popups on several pages that have forms in the popups. I have found that as I am navigating through and using the site some times I have to click a submit button twice for it to submit or I have to manually refresh the page to get a popup to work. I believe I have gone through everything and made sure all of the ID's are unique throughout the whole site per one suggestion but it's still having this issue. Any ideas
Help... How to get the variable from another function to other function by using parameters... thanks...
This is the code format_time = function(song_duration ){ var song_duration = ('0'+Math.floor(song.duration/60)%60).slice(-2)+':'+(Math.floor('0' + song.duration % 60)); } //Update time line update_timeline = function(song_duration ){ $timeline.html('00:00' + "-" + song_duration); } update_timeline(); the result undifined??? can anyone help on this... i have problems interms of parameters... thanks...
Help... problem with formating time into minutes and seconds...
I got this problem on formating the time This is the the function format_time = function(seconds,minutes){ var minutes = ('0'+Math.floor(minutes/60)%60).slice(-2); var seconds = (Math.floor('0' + seconds % 60)); return minutes + ":" + seconds; } format_time(song.duration) The problem is the minutes will display aN? but the seconds display the right result.. I just realize the problem is all about the value that been returning... how can both of them to be return???
dragging listbox items up and down
I want to drag up and down the items of listbox using jquery. Is it possible? Thanks in advance
Problem about keep current menu shows
This is my html menu code: <!--sidebar start--> <aside> <div id="sidebar" class="nav-collapse "> <!-- sidebar menu start--> <ul class="sidebar-menu" id="nav-accordion"> <li class="sub-menu"> <a class="active" href="#"> <i class="icon-user"></i> <span>Khách hàng</span> </a> <ul class="sub"> <li
how to append or replaced specfic value from the option tag using jquery
hi friends if 4 text box is created based on below code then while text box focus out then that text box value are append in dropdown list its working fine but while user can change the text box value i need to replace old textbox value to new value how can i do this please help me friends My text box Creation and dropdown creation <% for (int i = 0; i < Convert.ToInt16(Model.NumGroups); i++) { %> <tr> <td> <%: Html.Label("Group" + (i+1).ToString()) %><br /> <%: Html.TextBox("GroupName", null , new
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?
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 - 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
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
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
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 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
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'
Parent child relation in listbox items
how to make parent child relation in asp.net listbox control items with drag and drop functionality
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++)
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
Next Page