Unnamed: 0 int64 302 6.03M | Id int64 303 6.03M | Title stringlengths 12 149 | input stringlengths 25 3.08k | output stringclasses 181
values | Tag_Number stringclasses 181
values |
|---|---|---|---|---|---|
348,025 | 348,026 | Compare day and show hour only using DateTime formats | <p>I have a DateTime column in my SQL database, how do I check if the Day in that is Today, or yesterday?</p>
<p>What I want to is something like: If date is today then the result would be
"Today, at " same for yesterday..</p>
| c# asp.net | [0, 9] |
3,333,935 | 3,333,936 | Call Public variable of C# in javascript? | <p><strong>My Problem is I am try to call Public variable in Code Behind From JavaScript function
I try To Do This :</strong></p>
<p><strong>In Code Behind Section:</strong></p>
<pre><code> public string str ="TEST";
</code></pre>
<p><strong>In JavaScript Section:</strong></p>
<pre><code> <script type="text/jav... | c# javascript | [0, 3] |
5,242,614 | 5,242,615 | How to uniquely identify the jQuery function on checkBox change click? | <p>In my program i display one question at a time and on next click it is post and get the second question. But i apply some logic for check box list for each question in Jquery, and i call it like this</p>
<pre><code> $(document).ready(function () {
$("input:checkbox").change(function () {
var t... | javascript jquery asp.net | [3, 5, 9] |
3,217,741 | 3,217,742 | Is there a way to do a 'scoped' add() in jQuery? | <p>The main jQuery method takes a second optional argument to provide context for the search.
eg </p>
<pre><code>$(".setA", ancestorOfSetsA);
</code></pre>
<p>However, the jQuery <code>add()</code> method does not accept this context argument. What I am trying to accomplish is:</p>
<pre><code>$(".setA", ancestorOfSe... | javascript jquery | [3, 5] |
1,202,364 | 1,202,365 | checking if gridview has a selected item | <p>I have a grideview and 2 buttons. I need to only show the buttons when the gridview has a selected item. My code looks like this: </p>
<pre><code>protected void Page_Load(object sender, EventArgs e)
{
btactivate.Visible = false;
btdeactivate.Visible = false;
//Show Activate and Deactivate Buttons only i... | c# asp.net | [0, 9] |
549,961 | 549,962 | loading image before switching div background in jquery | <p>I have a web page where I want to switch the background image of a div in response to user interaction. What I have so far is:</p>
<pre><code>function updateImg() {
imgurl=buildImgURL(); // constructs a URL based on various form values
$('#mainImage').css("background-image", "url("+imgurl+")");
}
</code></p... | javascript jquery | [3, 5] |
5,295,230 | 5,295,231 | Detect the browser closing event of Alt+F4 in asp.net | <p>How to detect the browser closing event in asp.net before page unload.
I need to call the javascript function to clear the cookie expire time.
In body onunload method I'm able to call the function but its calling even if I refresh the page.
So, Could anyone can help me out.
Thanks.</p>
| javascript asp.net | [3, 9] |
2,009,199 | 2,009,200 | Hashtable overriding | <p>This is my first time using this website so I apologize if I am not using it correctly. Please do let me know.</p>
<p>Anyway I have an Account object that takes in 2 strings... An acctName, and lastName (Code is below). </p>
<p>I want to insert this object into a hash table with the key being the acctName and I wo... | java android | [1, 4] |
2,448,385 | 2,448,386 | jQuery animate on blur - but only if blur outside of form | <p>I have a search input (<code>#search_input</code>) which expands when being focused. Additional search options pop up that allow me to select specific search options.</p>
<p>The input should contract after it blurs, but only when the blur was triggered outside of the form.</p>
<p><a href="http://jsfiddle.net/zMp9S... | javascript jquery | [3, 5] |
2,004,267 | 2,004,268 | jQuery select change event | <p>I am trying to fire an alert depending on which value is selected from a <code><select></code> element using jQuery:</p>
<pre><code>$("#optiontype").change( function () {
var option = $("#optiontype").val();
if(option.Contains("Forward")){
alert("forward selected");
}
}... | javascript jquery | [3, 5] |
1,969,560 | 1,969,561 | Dynamically adding jQuery's slider | <p>I've got a simple upload form to allow for multiple uploads, and for each file selected it needs to create a new slider.</p>
<p>I've got it creating a new slider, and they each have individual ID's. The only problem I am having is I want the slider to input it's value into a text box each time it slides or is chang... | javascript jquery | [3, 5] |
2,465,264 | 2,465,265 | Most efficient jquery show/hide Toggle | <p>Simple question:</p>
<p>What is the most efficient way of showing/hiding 2 divs based on a select control using jquery?</p>
<pre><code><div id="div1">DIV 1 BRO</div>
<div id="div2" style="display:none;">THIS BE DIV 2 CUZ</div>
<select id="blablabla">
<option value="div1">di... | javascript jquery | [3, 5] |
33,376 | 33,377 | Do HttpHeaders get encrypted when not using https | <p>There is plenty of discussion for this regarding https. But do the headers get encrypted when not using https (so plain http)?</p>
<p>Thanks</p>
| c# asp.net | [0, 9] |
1,064,173 | 1,064,174 | Create drop down control containing page's named anchors | <p>I have a dynamically created page (read from database values) with grouped information. I wanted to add <strong>named anchors</strong> as each group is created. (Regular anchors will appear on the page also.)</p>
<p>I was hoping to find a jQuery plug or codeset example that could automatically generate and populat... | javascript asp.net | [3, 9] |
1,706,499 | 1,706,500 | checking session with jquery from php script then saving the item clicked to mysql database and updating the label which has been clicked | <p>hi I am trying to saving to save item into my sql database I have 3 functions </p>
<pre><code>/* the function below checks if a session is pressent using jquery ajax call to php script */
function checkSess(){
$.ajax({
url: "check_s.php",
... | php jquery | [2, 5] |
1,865,417 | 1,865,418 | Find a image in code behind | <p>I would like to use the find control method to find a image on the designer and make it visible, but i keep getting a null</p>
<p>This is my Code:</p>
<pre><code>foreach (ImageShow image in imageList)
{
Image Showimage = (Image)FindControl(image.imageName);
Showimage.Visible = true;
}
</code></pre>
<p>Any... | c# asp.net | [0, 9] |
949,655 | 949,656 | populate another drop down on selection of first | <p>I am going to populate a another drop down on selection of first drop down. Implementing this with intermediate php file. I am showing second drop down on basis of Jquery.</p>
<p>Jquery code.</p>
<pre><code>$("<select/>", {
class: "selectdoctor",
name: "selectdoctor" + i,
id: "selectdoctor" + i
}).appendTo("... | php jquery | [2, 5] |
3,595,455 | 3,595,456 | First a tag created in a Javascript loop not implemented | <p>I am trying to populate a div (class='thumb") with thumnailpictures. The name of the pictures is gathered from an xml file. Every thumnail picture is encapsulated with an a-tag that points to a function to show the full picture.</p>
<p>On some browsers the first thumbnailpicture seems not to have this a-tag...click... | javascript jquery | [3, 5] |
2,122,797 | 2,122,798 | FileUpload Getting error for large file | <p>i save the <code>file upload object</code> in the <code>session</code>, and then use this <code>session</code> in the <code>iframe</code>, it works fine for VS web server for all file small or large </p>
<p>Issue :( => but on <code>IIS</code> it work fine for small size file, but gives error for larges files. </p>... | c# asp.net | [0, 9] |
5,064,594 | 5,064,595 | jQuery 'on' event, check if NOT ON | <p>I have a running event checking if I am hovering a link after something that been <code>POSTED</code>, using the on event.</p>
<pre><code>$(document).on("mouseenter","#hover",function() {
load();
$("#sidebar").fadeToggle("slow");
$("#sidebar").html('');
$.post("ajax_search.php?type=sidebar", { si... | php jquery | [2, 5] |
2,849,718 | 2,849,719 | Javascript execute timer function only if window is in focus? | <p>Say I have two separate browser windows open:</p>
<pre><code>function onload() {
setTimeout("dosomething", 2000);
}
function dosomething() {
$.ajax({
url: "someurl",
success: function (data) {
document.write("Hello");
}
});
setTimeout("dosomething", 2000);
}
</co... | javascript jquery | [3, 5] |
2,619,720 | 2,619,721 | Fastest way to pick up Java for Android App | <p>Please don't downvote this question, I know it's not 100% in line probably with the standard set of questions...but I am really screwed at the moment. My professor decided to go against what the class said (saying we don't know how to develop in java or mobile apps) and gave us an Android Project due in 3 weeks fro... | java android | [1, 4] |
1,850,043 | 1,850,044 | adding an "active" class to parent and child element | <p>Need to add an active class to both parent and child element if a user clicks on the child element in a list. My html is as follows:-</p>
<pre><code><ul class="tabs">
<li class="accordion"><a href="#tab1">Bar</a>
<ul class="sub">
<li>lorem/li>
... | javascript jquery | [3, 5] |
1,098,696 | 1,098,697 | Determine response from PHP in jQuery | <p>All,
I've got a function that basically gets triggered when an Upload finishes. I have the following code in that function:</p>
<pre><code>onFinish: function (e, data) {
console.log(data.result);
},
</code></pre>
<p>When I do this I get the following response in my console:</p>
<pre><code>[{
"name": "1_32... | javascript jquery | [3, 5] |
336,411 | 336,412 | Referencing variables from C# in ASP.NET | <p>I am trying to use QueryStrings from my C# file in my ASPX file:</p>
<pre><code><asp:Button ID="LinkButtonDetails" runat="server" Text="DETAILS"
PostBackUrl='<%# string.Format("~/projectdetails.aspx?guid=<%= id%>
&name=<%= name%>
&role=<%= company_role%>
&member=<%= mem_id%&g... | c# asp.net | [0, 9] |
4,245,602 | 4,245,603 | How many line of code are in a program? (I know this is kind of vauge and depends but...) | <p>It seems when I try to research all I can find are how many lines are in Linux, call of duty, windows and other things that are massive applications with millions of lines of code.</p>
<p>Does anyone have examples of code size of applications that don't take teams and teams of people?</p>
<p>P.S.</p>
<p>I'm 24 yr... | java php javascript c++ python | [1, 2, 3, 6, 7] |
319,436 | 319,437 | Go back to to previous page ASP.NET | <p>Im having an issue of going back to the previous page. The page i want to go back to had a few radio buttons which you had to select, after this you went to the next page which is the current page which then you can select certain things BUT I want to be able to go back to the previous page and the original selectio... | c# asp.net | [0, 9] |
2,163,103 | 2,163,104 | How do I reset an asp.net website within the site itself with a button? | <p>I am working on an ASP.NET 2.0 website. The issue that I'm having is that it queries a database to get the info it displays on screen, but the database occasionally gets to where it has too many open connections. This causes the website to reject the attempt to log-in for anyone, after that database error.</p>
<p>T... | c# asp.net | [0, 9] |
824,994 | 824,995 | JQuery Self in Data | <p>I am having trouble with the following code:</p>
<pre><code>function Class() {
var self = this;
var $div = $('<div/>');
$div.data('obj',self);
this.get = function() {
return $div;
}
}
var x = new Class();
var $y = x.get();
</code></pre>
<p><a href="http://jsfiddle.net/t8ZTW/2/" ... | javascript jquery | [3, 5] |
1,373,217 | 1,373,218 | How listeners work | <p>Can someone please tell me how the listener interface works, when you set a onclicklistener, what really happens in the background?</p>
| java android | [1, 4] |
538,279 | 538,280 | Leverage .Net to deal with 133 textBoxes? | <p>I have a 19 X 7 table with a textBox in each cell. Some textBoxes need to be read only, depending on the data that is loaded into them. On saving I have to examine each textbox and see if the value needs to be saved. Having to list 133 textboxes by hand takes a long while. I would be ecstatic to get it down to a row... | c# asp.net | [0, 9] |
2,823,196 | 2,823,197 | how to validate Request.QueryString.Keys.Count null value in conditon? | <p>I have included this <code>if (Request.QueryString.Keys.Count == 0)</code> condition in the page load event. In some scenarios it throws <code>Index was outside the bounds of the array</code> exeception. How to handle this exception?</p>
| c# asp.net | [0, 9] |
509,846 | 509,847 | Jquery: everything works, but my function wont fire | <p>Everything works just fine, but when I remove</p>
<pre><code>{queue:false, duration: 800, easing: 'easeInOutQuart'}
</code></pre>
<p>from </p>
<pre><code>$(".chapters_list").slideDown(
</code></pre>
<p>with a 500, it stops working. So if I don't want easing in my script, it will work fine, when I insert easi... | javascript jquery | [3, 5] |
4,336,170 | 4,336,171 | asp:Image bug onload in IE | <p>I have a tag in mypage.aspx:</p>
<pre><code> <asp:Image ID="imgDedoPid" runat="server" Height="100%" data-big=""
ImageAlign="AbsBottom" />
</code></pre>
<p>and on mypage.aspx.cs i have this call:</p>
<pre><code> Image imgDedoPid.ImageUrl = "Handler1.a... | c# javascript jquery asp.net | [0, 3, 5, 9] |
2,775,229 | 2,775,230 | .submit() without reloading page | <p>I am trying do some file upload using jquery. The upload box have to be in the dialog box.
Now I just want to know after I click on the dialog's upload button. How can I submit yet the page do not load.
I tried using this
$('#uploadForm').submit().preventDefault();
It has not action at all.</p>
<p><strong>html</str... | php jquery | [2, 5] |
1,463,856 | 1,463,857 | Uncaught TypeError: Object #<Object> has no method 'newsticker' | <p><br/>
I've done a search, and I've found a few results, but none that seem to work - hoping someone can help me or point me in the right direction.<br/><br/>
I have a web page with jQuery loaded and a 3rd party script, News Ticker. I have an existing site with this working fine with no problems, however, when I copy... | javascript jquery | [3, 5] |
5,968,318 | 5,968,319 | What is equivalent of DateTime.ToOADate() in javascript? | <p>How can I get the OADate (OLE Automation date) in javascript? I need to pass my date object (to my web service) in the form of a double value.</p>
<p>in c#:</p>
<pre><code>var d = DateTime.Now.ToOADate();
</code></pre>
<p>what is the equivalent in js?</p>
| c# javascript | [0, 3] |
5,482,720 | 5,482,721 | Slide Effect happening too many times | <p>I call this functions on onmouseover and onmouseout for several divs. </p>
<pre><code>//Takes effect on divs with id, 62,63,64,65...
function slide_it(id){
$('#options_'+id).slideToggle('slow');
}
</code></pre>
<p>The problem is that if I move my mouse over and then mouse out, then again, mouse over and then... | javascript jquery | [3, 5] |
5,054,357 | 5,054,358 | Conditional statement not responding to results | <p>On my page there may be any number of UL's populated, with a maximum of 3 LI's in each. I have set this conditional statement up to handle the left margin, depending on how many LI's there may be. It logs the correct result, but it always applies the css as if the result was 1, even if the result is 2 or 3... I'm qu... | javascript jquery | [3, 5] |
1,034,691 | 1,034,692 | Adding controls to a table control dynamically | <p>I have one table control "table1"</p>
<p>And added controls to it in click event of one button as :</p>
<pre><code>protected void Button2_Click(object sender, EventArgs e)
{
TableRow row;
TableCell cell;
for (int i = 0; i < 3; ++i)
{
TextBox txt = new TextBox();
txt.Text = i.ToSt... | c# asp.net | [0, 9] |
916,462 | 916,463 | Confirmation box with yes and No option, on drop down list's selected index change | <p>I am using Following code to show a confirmation box.</p>
<pre><code>protected void cmbPayerBucketMain_SelectedIndexChanged(object sender, EventArgs e)
{
ClientScriptManager CSM = Page.ClientScript;
if (!String.IsNullOrEmpty(hiddenF1.Value) || !String.IsNullOrEmpty(hiddenF2.Value))
{
CSM.Regi... | c# javascript jquery asp.net | [0, 3, 5, 9] |
2,994,751 | 2,994,752 | Created a carousel but can't solve the idea of fading each div the comes in next and fade out the last | <p><a href="http://jsfiddle.net/rgbjoy/q9VGh/" rel="nofollow">http://jsfiddle.net/rgbjoy/q9VGh/</a> - As you can see, after viewing (1), when you hit next, (2) opacity will fade in, while 1 will fade back to .25. Not sure how to go about this.</p>
<p>edit: Updated fiddle to working copy.</p>
<p>jQuery</p>
<pre><code... | javascript jquery | [3, 5] |
4,604,325 | 4,604,326 | is it possible to open a popup when a checkbox is checked using jquery?if yes how? | <p>In my application i have popup box whichis initially hidden and there is a checkbox.so when a user checks the checkbox a popupup should open .please help...</p>
| javascript jquery | [3, 5] |
5,503,582 | 5,503,583 | php $_POST array: what in java? | <p>I'm "translating" a PHP class in Java.</p>
<p>I've a function that takes a key and checks if it's in the $_POST array.</p>
<p>How could I do a similar thing from a class Java method?</p>
| java php | [1, 2] |
950,683 | 950,684 | displaying array elements | <p>I am creating a JavaScript array is the following manner:</p>
<pre><code>var selectedColors= { 'Orange' : $("#Orange").val(),
'Light Blue' : $("#LightBlue").val(),
'Dark Red' : $("#DarkRed").val(),
'Dark Blue' : $("#DarkBlue").val()};
</code... | javascript jquery | [3, 5] |
2,573,332 | 2,573,333 | Javascript/Jquery how to get Key from Key/Value | <p>I have a field called City that is a drop down. It has a key value pair.</p>
<p>To get the value, I can simply do the following in Jquery:</p>
<pre><code> var city = $("#city").val();
</code></pre>
<p>How do I get the key value though? </p>
| javascript jquery | [3, 5] |
4,024,572 | 4,024,573 | Loading List Items with JQuery dynamically | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/4932506/load-list-items-dynamically-with-jquery">Load List Items dynamically with JQuery</a> </p>
</blockquote>
<p>I have the following JQuery used to load list items:</p>
<pre><code>$('li').css('display', 'non... | javascript jquery | [3, 5] |
5,286,083 | 5,286,084 | Is there a js function that scrolls a site left right up and down? | <p>I was wondering if anyone knows if there was a javascript or something that scrolls a site left right up and down on a click.</p>
<p>For example I want to create a site with multiple divs. Look at photo below.</p>
<p><img src="http://i.stack.imgur.com/ygCBW.jpg" alt="enter image description here"></p>
<p>I want e... | javascript jquery | [3, 5] |
3,354,063 | 3,354,064 | How do I load results using php and jquery as I scroll? | <p>How do I load results using php and jquery as I scroll? E.g. like twitter, facebook and Especially <a href="http://cssline.com/" rel="nofollow">http://cssline.com/</a></p>
| php jquery | [2, 5] |
1,284,954 | 1,284,955 | How to write the condition to check the validation using jquery or javascript | <p>hello friends, </p>
<pre><code> $('input[name=checkedRecordsCat]').attr('checked', true);
$('input[name=checkedRecordsSubCat]').attr('checked', true);
$('input[name=checkedRecordsAtta]').attr('checked', true);
$('input[name=checkedRecordsTextComp]').attr('checked', true);
$('i... | javascript jquery | [3, 5] |
3,094,608 | 3,094,609 | How to show/hide divs based on selection using jQuery? | <p>Using jQuery, I'd like to display a different set of text based on a user's selection. As I'm new to jQuery, I wanted to see if there is a cleaner way to write this out? My current code is functioning fine, but would love any input on other functions that could accomplish this more quickly before I move further. ... | javascript jquery | [3, 5] |
2,925,346 | 2,925,347 | Javascript CRM Conversion Error | <p>I am working in a Corporate Real Estate CRM. Javascript is allowed but not supported. When I insert this:</p>
<pre><code><script>
function tick(){
$('#ticker li:first').slideUp( function () { $(this).appendTo($('#ticker')).slideDown(); });
}
setInterval(function(){ tick () }, 5000);
</code></pre>
<p><... | javascript jquery | [3, 5] |
1,492,516 | 1,492,517 | how to get the querystring from a parent page? | <p>i am using an iframe ipage in my parentpage. I would like to get the querystring in javascript of the parentpage?</p>
| javascript asp.net | [3, 9] |
1,806,162 | 1,806,163 | file contents are getting erased in /data/data/package/files folder in android java | <p>From my apk i am writting some contents to /data/data/package/files/settings.data files, when i reboot the system file is still exists but contents in the file are empty.</p>
<p>Can somebody help me .</p>
| java android | [1, 4] |
3,621,182 | 3,621,183 | Richtextbox in web application and highlighting the text | <p>I am a beginner to web application development. I am loading some text to the text box and checking for certain errors like if occurring of space before <code>.</code>(dot/full-stop). <br>I want to display the line no, column no and cursor position of the errors. Which control is suited for this. How to find the lin... | c# javascript asp.net | [0, 3, 9] |
3,489,477 | 3,489,478 | How to get the dynamically created text box value in jsp using jquery javascript | <p>I am using code in Javascript like below:</p>
<pre><code>newTextBoxDiv.html('<td border="2">'+number+'</td>'
+'<td>'+grouptext+'</td>'
+'<td style="display:none">'+groupVal+'</td>'+'<td>'+itemText+'</td>'
+'<td style="display:none">'+itemId+'</td>'+'<td... | javascript jquery | [3, 5] |
4,253,528 | 4,253,529 | Why when I change the src of an image with jquery, the the src is not changed in my c# codebehind? | <p>I have a gallery of thumbnails. When you click on a thumbnail, the main image changes to the thumbnail clicked by using jQuery and changing the 'src' tag of the . This works as expected. </p>
<pre><code>$('#ContentPlaceHolder1_photoSpotImage').attr('src', src.replace(/-thumbs/, ''));
</code></pre>
<p>I have a link... | c# jquery asp.net | [0, 5, 9] |
4,584,556 | 4,584,557 | Save dynamically generated textfield from PHP | <p>I have a table which is being dynamically generated based on the user input, in some cases rows have a textfield and i want to save the values updated by the user in the textfield by in the MySql database. e.g:</p>
<p>Actual Code:</p>
<pre><code>echo "<tr><td>".$sql3[0]."</td><td>".$row1[2]... | php javascript jquery | [2, 3, 5] |
370,650 | 370,651 | Character Creator in Javascript | <p>I've had an idea for a website and would like a character creator.</p>
<p>One that has options for different eyes, mouth, hair, etc.</p>
<p>Then the options the person has chosen be submitted to their wordpress account photo.</p>
<p>What would be the best way to pull this off?</p>
<p>Any help is greatly apprecia... | php javascript jquery | [2, 3, 5] |
5,404,510 | 5,404,511 | issue with sort data | <p>i am developing an app in which i get data from server and display in map. but before display it on map's balloon i have just sort data by one field name is "Destination" and there are method made na,e is ..GOTOSORT.... </p>
<p>now problem is i got variables <code>s</code> with length 1 and there for the for loop a... | java android | [1, 4] |
269,500 | 269,501 | How to disable sorting on column in jQuery.tablesorter? | <p><br><br>i try to find a way how to disable sorting on column. I use jquery tablesorter.
And by default if you click on header cell it sort column data, but what i need to do if i don't need to use sorting on one or two column in four columns table.
<br><br>
Thanks in advanced.</p>
| javascript jquery | [3, 5] |
1,203,788 | 1,203,789 | Update HiddenFiled value on parent window after child window is close Javascript,VS2005 c# | <p>I have a child window and a parent window with a hiddenfield hdnSelectedFields .I am changing the value of hdnSelectedFields.</p>
<p>Code:</p>
<pre><code>String vStrScript = "<script language=javascript>function CloseParent() {window.opener.document.getElementById('hdnSelectedFields').Value = '" + tempstring... | asp.net javascript | [9, 3] |
5,366,688 | 5,366,689 | how to make onchange event happened in code-behind in ASP.NET? | <p>Suppose I have a textbox Mytbx and I have a javascript for its onchange event. I hook it up in code behind in Page_Load event like:</p>
<pre><code>Mytbx.Attributes.Add("onchange", "test();")
</code></pre>
<p>Then I changed the text in code-behind for this textbox like (in a button click event for example):</p>
<p... | javascript asp.net | [3, 9] |
1,600,270 | 1,600,271 | jQuery won't find elements | <p>I have this js code:</p>
<pre><code>(function($, undefined) {
$("a").click(function(event) { //or another elemtnt
alert('Hello!');
})
})(jQuery);
</code></pre>
<p>And of course link:</p>
<pre><code><a href="http://google.ru/" target="_blank">Google</a>
</code></pre>
<p>the JS code doe... | javascript jquery | [3, 5] |
1,471,499 | 1,471,500 | saving XMLHttpRequest.responseText in a variable | <p>I'm writing a small script in JS to save the data using a php website like this:</p>
<pre><code>function getPopulation(id) {
var xhr_object = null;
if(window.XMLHttpRequest) // Firefox
xhr_object = new XMLHttpRequest();
else if(window.ActiveXObject) // Internet Explorer
xhr_object = new A... | php javascript | [2, 3] |
4,202,211 | 4,202,212 | How do we update URL or query strings using javascript/jQuery without reloading the page? | <p>Is there a way to update the URL programatically without reloading the page?</p>
<p>EDIT: I added something in the title in post .I just want to make it clear that I don't want to reload the page</p>
| javascript jquery | [3, 5] |
4,820,268 | 4,820,269 | Disabling Javascript execution when loggining in | <p>I have an <code>Index.php</code> page that launches a <code>JQuery</code> dialog (in <code>modal</code> mode). Dialog consists of a login form. When form gets submitted an <code>Ajax request</code> is sent to another php file (where the request gets handled). If request is succeded I just close the dialog.</p>
<p>I... | php javascript | [2, 3] |
423,005 | 423,006 | Refer to attributes from multiple selector in jQuery | <p>I have a bunch of DIVs identified by class screen-cat-comment and I want for each div to execute a plugin that receives as a parameter an attribute value from each DIV. </p>
<pre><code><div class="screen-cat-comment" catId="1"></div>
<div class="screen-cat-comment" catId="2"></div>
<div c... | javascript jquery | [3, 5] |
5,833,278 | 5,833,279 | Proper use of for and if statements in Java/Android | <p>I have an two arrays, one is cityUSA[i] and one is decimalUSA[i]. Each has over 1500 entries, cityUSA[100] goes with decimalUSA[100] and so on. I find the city people are in via location services in Android and then I compare it to the list of cities I have in the cityUSA[i] array. I then search for a match and u... | java android | [1, 4] |
2,572,101 | 2,572,102 | Getting the closes element in the form with javascript | <p>I have the following two fields in a form:</p>
<pre><code> <input type="button" value="Rep" id="rep" name="rep" style="width:50px" onclick="addRep()"/>
<input type="hidden" value="<?php echo $comment_id; ?>"/>
</code></pre>
<p>I need to get the value of the hidden field in the form. So I... | php javascript | [2, 3] |
5,344,990 | 5,344,991 | embedded javascript that is based on jQuery | <p>I'm building a service that allows people to put a javascript code I gave them to their site.
The javascript code is based on jQuery.</p>
<p>My question is how to do this to be safe and optimized, cause I don't want to break certain users website.</p>
<p>The thing I'm looking for so far( you can update if you thin... | javascript jquery | [3, 5] |
2,397,881 | 2,397,882 | jquery tabs selection | <p>the jquery code is like this:</p>
<pre><code> $(document).ready(function() {
//When page loads...
$(".tab_content").hide(); //Hide all content
$("ul.tabs li:first").addClass("active").show(); //Activate first tab
$(".tab_content:first").show(); //Show first tab content
//On Click Event
... | javascript jquery | [3, 5] |
1,617,355 | 1,617,356 | Get uri LocalPath in jquery/JS? | <p>simple problem with a simple question. I have a string, in C# i can put it through a uri and access LocalPath</p>
<p>How do i get LocalPath in jquery or javascript? ( LocalPath: "/asas")</p>
<p>{http://z.com/asas?sadfdsgfg}</p>
<pre><code>AbsolutePath: "/asas"
AbsoluteUri: "http://z.com/asas?sadfdsgfg"
Authori... | javascript jquery | [3, 5] |
1,879,228 | 1,879,229 | Using Python vs PHP for Web Development - When and Where | <p>First of all, please don't make a comment that is based on your opinion or preferences or some magic hatred for PHP.</p>
<p>I work at a web development company and I'm going to write a new CMS soon. I'm currently using WordPress, but I have lots of experience with Python/Django.</p>
<p>My question to this great co... | php python | [2, 7] |
3,807,211 | 3,807,212 | jquery lightbox issue | <p>on <a href="http://www.holzschild24.com/schritt1.php" rel="nofollow">http://www.holzschild24.com/schritt1.php</a> i use
<a href="http://leandrovieira.com/projects/jquery/lightbox/" rel="nofollow">http://leandrovieira.com/projects/jquery/lightbox/</a></p>
<p>and i get an error: <code>$("#slider").easySlider</code> ... | javascript jquery | [3, 5] |
1,197,726 | 1,197,727 | Unrecognized element 'authentication'. | <p>I am trying to write a simple authentication. I'm also trying to make this quick and learn about the forms authentication via web.config.</p>
<p>So i have my authentication working if I hard code my 'user name' and 'password' into C# code and do a simple conditional.</p>
<p>However, I get en error message '<strong... | c# asp.net | [0, 9] |
3,320,081 | 3,320,082 | Swipe to switch tabs with TabHelper | <p>I'm creating an app that is required to be used on older devices, I used the included source at <a href="https://developer.android.com/training/backward-compatible-ui/index.html" rel="nofollow">https://developer.android.com/training/backward-compatible-ui/index.html</a> to create the tabs but I would like to be able... | java android | [1, 4] |
1,454,362 | 1,454,363 | ASP.NET Login box positioning | <p>I am using VS2005 C#. I have a login box in my .aspx page, but I can't find the parameter I have to set too position it in the middle of my webpage.</p>
<p>I have tried using <code>&nbsp;</code> but it did not work as well.</p>
<p>Below is my code for my login box:</p>
<pre><code><asp:login id="Login1" run... | c# asp.net | [0, 9] |
3,776,872 | 3,776,873 | JScrollbar - Can i use internal links within the scollable part? | <p>I am using Jquery JScrollbar.
It works fine except when I want internal links in the scrollable part.
The scrollbar dissapears when I click on the internal link:</p>
<pre><code> <div class="jScrollbar">
<div class="jScrollbar_mask">
<a href="#some link">li... | javascript jquery | [3, 5] |
5,886,646 | 5,886,647 | How to remove data- attribute from the div element? | <p>I have an html <code>div</code> element, which contains lot of HTML-5 <code>data-</code> attributes to store extra </p>
<p>data with element. I know that we can use <code>removeAttr</code> of jquery to remove specific attribute, </p>
<p>but i want to know that is there any way to remove <code>data-</code> all aton... | javascript jquery | [3, 5] |
3,370,295 | 3,370,296 | JS statement separator with commas | <p>I found the following js sample and am confused by the syntax. Notice the statements are separated by commas instead of semicolons. Are commas a valid statement separator in js? I have not seen this before.</p>
<pre><code> $('selector').each(function () {
this.onclick = function () {
... | javascript jquery | [3, 5] |
4,494,781 | 4,494,782 | With asp.net, how do I cause a browser to open a tab delimited txt file in Excel? | <p>We have a tab delimited file that we are making available for download. The file extension is txt, but the users want it to open automatically in Excel. The previous developer had used the following code:</p>
<pre><code>private void DownloadLinkButtonCommandEventHandler(object sender, CommandEventArgs e)
{
Resp... | c# asp.net | [0, 9] |
4,885,073 | 4,885,074 | Using javascript to fade a thumbnail image from grayscale to to color | <p>I'm relatively new to web development and wouldn't even know where to start in coding a javascript that fades a grayscale thumbnail image into a color thumbnail image on mouseover, and vice versa on mouseoff (<--or whatever this is called). </p>
<p>I've looked all over and can't find a script that does this. I... | javascript jquery | [3, 5] |
5,858,503 | 5,858,504 | Selecting textbox value when pressing the next button | <p>I have a grid of textboxes. When the user presses the arrow button I need the cursor to select the contents of the textbox in the direction they have just pushed. I have tried using JQuery's .select() method, but this doesnt seem to work in IE. </p>
<p>Could you give me suggestions on how to get this working?</p>... | javascript jquery | [3, 5] |
3,293,348 | 3,293,349 | jquery ajax request failing in IE6 | <p>I have got a ajax request working in safari,FF and Chrome but not in IE6.I get the error message and the xhr.statusText is <strong>unknown</strong>.I know I should be ditching IE6 but its in the requirements list so I'm helpless.If anyone has a solution to please lemme know.</p>
<p>Thanks</p>
<pre><code>$.ajax({
... | javascript jquery | [3, 5] |
3,953,588 | 3,953,589 | jquery val() not working | <p>jQuery val() didnt working, this is the simple script:</p>
<pre><code>$("#com_form").submit(function() {
var name = $("#nama").val();
var komentar = $("#komentar").val();
alert.("Hi, "+name+" this is your comment: "+komentar)
});
});*/
</code>... | javascript jquery | [3, 5] |
1,809,548 | 1,809,549 | Android - TouchDrag moves image within view, but need entire view to move | <p>My image simply moves within my image view based upon the touch location. I need the entire view to move (not just the image in it).</p>
<p>Here is my code in onTouch:</p>
<pre><code>ImageView image = (ImageView)v;
switch (event.getAction() & MotionEvent.ACTION_MASK)
{
case MotionEvent.ACTION_DOW... | java android | [1, 4] |
2,680,938 | 2,680,939 | How would I prevent JQuery from selecting more than 1 level of children dom elements? | <p>How would I only select Item A and Item B pragmatically while excluding the sub item? </p>
<pre><code><div id="nav">
<ul>
<li>
<p>Item A</p>
<ul>
<li>
<p>Sub Item A</p>
</... | javascript jquery | [3, 5] |
2,193,150 | 2,193,151 | How to store a list of values so that it can be accessed in other pages in ASP.NET? | <p>I have some 10 permission in my table. Some users have all 10 permissions. </p>
<p>Each page in the website have to check whether the user have the particular permission. </p>
<p>In the home page I can do a query and store the permission list to a list box, and check whether Permission1 is in the list box, when I ... | c# asp.net | [0, 9] |
2,004,116 | 2,004,117 | question-suggestion list | <p>i have a asp.net page. i m writing some words in a question textbox named txtTitle, after moving to another txtbox named txtbox2, i want that it should open a question-suggestion page based on that keyword typed in txtbox1 in the space before txtbox2. i hv tried this but it is not working. can anyone provide me the ... | c# asp.net jquery | [0, 9, 5] |
511,102 | 511,103 | How to optimize my javascript slider loading? | <p>I've been coding up a little responsive image slider to display my wedding photos using <a href="http://responsive-slides.viljamis.com/" rel="nofollow">responsiveslides.js</a> and a little script to deal with vertical images (it sets a max-height based on the browser viewport). You can see it at <a href="http://john... | javascript jquery | [3, 5] |
836,164 | 836,165 | how to submit form from jQuery and navigate to the page? | <p>I have two php pages. Page 1 contains one form which i submitted with jQuery. Page 2 is form query page. I want to read all the data from Page 2 after submitting from page 1 through navigation. My following code does not work as I expected.</p>
<p>Page 1:</p>
<pre><code>$.ajax({
type: "POST",
url: "requestProcesso... | php jquery | [2, 5] |
4,282,509 | 4,282,510 | focusin jquery ui datepicker removes text but filtered dates as well | <p>Hi I have two jquery UI datepickers to filter a range of dates in which input box I want to have some text that clears at the focus before the selection, so I used the following:</p>
<pre><code><input name="From" type="text" id="From" class="datepicker initialClass" value="From" />
<input name="To" type="t... | jquery asp.net | [5, 9] |
2,265,825 | 2,265,826 | A JQUERY standard way of storing the original value of a form field? | <p>Is there a standard way in JQUERY to (at document ready time) store the original values of the form fields on the page in order to check (later) whether the fields have truly changed or not?</p>
<p>Normally I will do something like this:</p>
<pre><code>var NameField = $("INPUT[name='NameField']");
//Record the ori... | javascript jquery | [3, 5] |
5,311,678 | 5,311,679 | remove blank values from array and suggest a better method to read text file data delimited by '|' | <p>Am trying to get values from a text file in which entries are delimited using '<strong>|</strong>'.am getting the values using string .Split method..but in some places the delimiter appears multiple times in succession like '<strong>||||||||</strong>',so empty space gets inserted in the array how should i remove tho... | c# asp.net | [0, 9] |
416,662 | 416,663 | external link icon | <p>Using a script, that works great. It pops in a external link icon next to external links. Whoopydoo... and also adds a target="_blank" attribute.</p>
<p>The issue I have is, I dont want it to work on IMAGES.</p>
<p>Only on text links , so any sugestions.</p>
<p>The jquery is:</p>
<pre><code>(function(a){
a.fn.li... | javascript jquery | [3, 5] |
2,480,326 | 2,480,327 | jquery each loop only looping once and if using else code stops | <p>I've got two problems with the following javascript and jquery code.
The jquery each loop only iterates once, it gets the first element with the right ID does what it needs to do and stops.</p>
<p>The second problems is that when I use the else in the code the one inside the each function, it doesn't even tries the... | javascript jquery | [3, 5] |
1,209,136 | 1,209,137 | Checking if a form field is numeric while using Jquery to get its value | <p>Basically, I'm doing this:</p>
<pre><code>var phone = $("#phone").val();
</code></pre>
<p>Then I want to check if:</p>
<p>1) Phone contains only numbers</p>
<p>2) Phone contains at least 10 digits</p>
<p>But the problem is, from my experience, using <code>$("something").val()</code>
returns it as a string so <... | javascript jquery | [3, 5] |
4,285,257 | 4,285,258 | how to add class to a listitem from code behind | <p>I am dynamically generating paging from code behind but my html design is different. How to add a class to listitem. The code is as below</p>
<pre><code> if (pageCount > 0)
{
pages.Add(new ListItem("First", "1", currentPage > 1));
for (int i = 1; i <= pageCount; i++)
{
... | c# asp.net | [0, 9] |
388,694 | 388,695 | Is there any GoogleGroup API to fetch data from Google Groups | <p>How to Access Google group information from asp.net using C#. Please suggest for any avaliable API or documentations to refer.</p>
<p>Thanks
Karteek.</p>
| c# asp.net | [0, 9] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.