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 |
|---|---|---|---|---|---|
3,067,365 | 3,067,366 | Calling Dynamic controls from a seperate class | <p>I need to know if it is possible to call a control and also attach it's events from a class. I have been researching the internet for a some valuable information but to no avail. Below is a simple illustration of what I intend achieving.</p>
<p>PAGE</p>
<pre><code>protected void Page_Load(object sender, EventArgs ... | c# asp.net | [0, 9] |
4,929,729 | 4,929,730 | How to find out first character index in my Textbox | <p>I have a textbox, I need to enter only alphabet in the starting of textbox; no integers, no special characters.... What should I do?</p>
| c# asp.net javascript | [0, 9, 3] |
2,022,601 | 2,022,602 | How to count online people connected to my web site with jQuery or st? | <p>i created a web site with asp.net 4.0 and now i need to count online people that connected to my web site.
how do i do this with JQuery?</p>
| jquery asp.net | [5, 9] |
5,878,483 | 5,878,484 | JavaScript timing, jQuery fadeIn fadeOut | <p>I have a simple function that I wrote that transitions three div elements using a fade in/out effect. The event is triggered when a user clicks a link. Here's my code:</p>
<pre><code>$(".link1").click(function () {
$(".feature1").fadeIn(1000);
$(".feature2").fadeOut(1000);
$(".feature3").fadeOut(1000);
});... | javascript jquery | [3, 5] |
2,459,400 | 2,459,401 | get query string in popup window | <pre><code><a href="tags.php" onclick="return popitup('tags.php')">tags</a>
</code></pre>
<p>I have this line of code that runs the javascript to open new mini popup window,and it mostly works.</p>
<p>Now how could i add current query string attributes so that my popup window has url something like this "... | php javascript | [2, 3] |
4,330,078 | 4,330,079 | Only supporting users who have Javascript enabled | <p>I am considering creating a website that only supports users with JavaScript enabled.</p>
<p>My justification for this is that I want to offer a rich user experience, in a fairly limited time budget, so if I only support people who have JS enabled, I don't have to spend time making sure the UI works without JS and ... | c# asp.net javascript | [0, 9, 3] |
5,131,413 | 5,131,414 | how to check the value in text box against the database | <pre><code>protected void btnSubmit_Click(object sender, EventArgs e)
{
SqlConnection conNwind;
SqlCommand cmdSelect, cmdInsert;
SqlDataReader dtrUser;
string connStr = ConfigurationManager.ConnectionStrings["ConnectionNWind"].ConnectionString;
conNwind = new SqlConnection(connStr);
conNwind.O... | c# asp.net | [0, 9] |
614,290 | 614,291 | JQuery: $.get is not a function | <p>I'm having a problem doing something very basic in jQuery. Can someone tell me what I'm doing wrong exactly?</p>
<p>If I run the code below, the function $.get seems to be missing (getJSON and others missing too). But $ itself and other functions do exist, so I know JQuery is loading.</p>
<pre><code>google.load(... | javascript jquery | [3, 5] |
1,949,898 | 1,949,899 | jQuery find last input and append | <p>I am trying to append an image after the last input field in a div, any ideas as to why this won't work?</p>
<pre><code>$('<img src="img/loading.gif" id="loading_img" />').appendTo($(form).find('input:last'));
</code></pre>
| javascript jquery | [3, 5] |
3,390,555 | 3,390,556 | How can I store PHP values when building html tables? | <p>I don't think I asked the question very well, so let me elaborate what I'm doing. </p>
<p>I'm building a simple website for a project my niece is working on. She wants to implement a ticket ordering system for their class graduation (this is all just for the project, it won't actually be used for anything in a pro... | php jquery | [2, 5] |
5,030,628 | 5,030,629 | where android store desktop icons? | <p>Once an app is installed, where android store icons shown on app drawer? in which path? I tried to remove it programmatically but without success. An alternative should be to refresh the app drawer. Possible on rooted phones?</p>
| java android | [1, 4] |
3,493,973 | 3,493,974 | to generate a loginpage for android using java,sqlite,xml | <p><em>*</em>*iam developing the quiz application android ,for that application iam developing the loginpage
i need the coding for login page developed by using the java,sqlite,xml(layout).
my design of the login page is consist of
userid
password for existing user
two buttons
for login
and another for register(new u... | java android | [1, 4] |
2,254,191 | 2,254,192 | Forms Authentication update user status after specific user session ends | <p>Hi I'm using Forms Authentication for authentication users in my asp.net c# application. How can I update user status after specific user session ends (automatically) or browser close?</p>
<p>Thank you</p>
| c# asp.net | [0, 9] |
5,319,461 | 5,319,462 | Java add and set functions | <p>I'm a python programmer, but currently I'm reading through Java code to get some ideas. I have no programming experience at all with Java and I don't know how it's possible, but I couldn't get any information using Google about these functions.</p>
<pre><code>if(pv.size() -2 < j)
pv.add(j+1, localpv.get(j))... | java python | [1, 7] |
2,134,367 | 2,134,368 | how to find selected hyperlink in asp.net using C# | <p>I have a list of 10 hyperlink on default1.apx. On selecting any hyperlink it redirects to another page and all hyperlinks redirects to the same page default2.aspx. But how can i now which hyperlink is clicked from 10 hyperlinks list in asp.net using C#.</p>
| c# asp.net | [0, 9] |
5,932,300 | 5,932,301 | suppress : this page is accessing information that is not under its control this poses a security risk? | <p>I have asp.net page having lots of ajax controls. I am redirect to https:// login page from this asp.net page after session time out. But the page always showing below popup message window when its redirect. </p>
<pre><code> "this page is accessing information that is not under its control
this poses a security... | c# javascript jquery asp.net | [0, 3, 5, 9] |
4,722,386 | 4,722,387 | Using ID as a variable | <p>I'm trying to find the text of the span with the class name "link" but i have problems.</p>
<pre><code><div id="item-0" class="box">
.......
</div>
<div id="item-1" class="box">
<p><strong>Link: </strong><span class="link">http://www.domain.com/list44/</span>&... | javascript jquery | [3, 5] |
1,289,497 | 1,289,498 | How to get ShowState of a window in c# or c++? | <p>I am trying to get showstate of a window.</p>
<p>I know that I can maximize, minimize, or close a window by ShowWindow API in c# or c++. How do I get ShowState of a window?</p>
| c# c++ | [0, 6] |
46,420 | 46,421 | how to replace javascript '\' with another char | <p>i have a var in javascript that looks like this: </p>
<pre><code>C:\docs\path\file.exe
</code></pre>
<p>how can i replace \ with another char like ?
so the var becomes </p>
<pre><code>C:?docs?path?file.exe
</code></pre>
<p><strong>edit</strong><br>
i am trying to find the size of a file in JS. the only way i m... | c# javascript | [0, 3] |
5,172,480 | 5,172,481 | Jquery / Javascript get params from window localtion | <p>My URL is:</p>
<pre><code>http://localhost:3000/?sort=rating
</code></pre>
<p>The parameter <code>sort</code> is dynamic, and I would like to add it to another URL.</p>
<p>In my javascript I have:</p>
<pre><code>window.location.pathname + '.js?page=' + currentPage
</code></pre>
<p>How do I add the <code>sort</c... | javascript jquery | [3, 5] |
1,634,854 | 1,634,855 | jQuery script to click automatically on a link | <p>My current code that i use is this:</p>
<pre><code><script type="text/javascript">
$(document).ready(function(){
$('#on_holiday').trigger('click');
});
</script>
</code></pre>
<p>How ever, this only works when the 'ID' is 'on_holiday' within the input form. I need this to work when I have another eleme... | javascript jquery | [3, 5] |
5,118,296 | 5,118,297 | Open select clicking another element with javascript | <p>I've been looking for a way to open a select / combobox clicking another element. I read answers saying that is impossible but... How is facebook doing it?</p>
<p>In your facebook timeline, when you want to change the date of a status, there is an ahchor and when you click it, a combobox appears. I thought they ha... | javascript jquery | [3, 5] |
2,549,654 | 2,549,655 | How can I get the same fly-in and bounce affect that apple uses for their nav bar in the store? | <p>Go to store.apple.com and watch the to nav bar. It flies in, and does a little bounce.</p>
| javascript jquery | [3, 5] |
1,197,296 | 1,197,297 | Drag and drop div using jquery | <p>I got a Main Div where i can drop any text and this will be displayed as in a form shown in the below script.</p>
<p>I need to drag and drop the dynamically generated div to move it up or down ,from within the current div. Is this possible? </p>
<pre><code> <script type="text/javascript">
$(init);
f... | jquery asp.net | [5, 9] |
1,382,337 | 1,382,338 | how to get Value that cause exception | <p>How can I get the value that failed to be converted? In general, and not in this single specific example case.</p>
<pre><code>try
{
textBox1.Text = "abc";
int id = Convert.ToInt(textBox1.Text);
}
catch
{
// Somehow get the value for the parameter to the .ToInt method here
}
</code></pre>
| c# asp.net | [0, 9] |
2,266,527 | 2,266,528 | Accessing C# variable in javascript | <p>I'm going to design a website for DMS (educational domain) in C#.NET, which I am new to. </p>
<p>In one of my ASPX pages, I want to disable a menu, which is in JavaScript, according to <code>accessright</code>. </p>
<p>The <code>accessright</code> stored in database table <code>login</code> as one attribute in SQL... | c# asp.net javascript | [0, 9, 3] |
1,785,420 | 1,785,421 | Using variables between if/else in Android | <p>I am developing a small app while learning Android.</p>
<p>The app is basically making a series of simple math calculations. A button is calling a function where the calculations take place. Everything was working fine, until I inserted an if/else construct.</p>
<p>Inside this construct, I am using variables creat... | java android | [1, 4] |
5,070,067 | 5,070,068 | iPhone & Android: how to take a picture and upload it to a website? | <p>I'm building an asp.net website using c# and .net 2.0. One of the pages requires to take a picture (or choose from already existing pictures), upload it to the server, add other info and save everything in the database.</p>
<p>I'm using a FileUpload control and everything is working fine on a PC.</p>
<p>Android gi... | c# android iphone asp.net | [0, 4, 8, 9] |
5,412,151 | 5,412,152 | can insert hyperlinks in different paragraphs of an image at runtime in asp.net? | <p>I am facing a big and interesting problem that is explain below.
I have an image which contains x(any number like 5) paragraphs and my requirements is to make each paragraph a hyperlink at runtime in asp.net or jquery etc.
But remember, single image that contains text in paragraph form, so how to make these paragrap... | jquery asp.net | [5, 9] |
2,980,452 | 2,980,453 | how to test if a javascript cookie has expired? | <p>Is it possible to test if a javascript cookie has expired using?</p>
<p>I need to do a few thing conditionally and two of those conditions are overlapping for which if it could be tested whether a cookie has expired then it will be easier for me to get things done.</p>
<p>I am using <code>jquery-1.5.js</code> and ... | javascript jquery | [3, 5] |
4,650,145 | 4,650,146 | setTimeout vs setInterval in javascript | <p>Hi can we change setInterval to setTimeout function, it is working fine I want to know can it is done with setTimeout</p>
<pre><code><head>
<script type="text/javascript">
$(function() {
var current = $('#counter').text();
var endvalue = 50
$('a').click(function() {
setInterval(funct... | javascript jquery | [3, 5] |
4,516,176 | 4,516,177 | Jquery form validation is not working on Mac OS X Safari | <p>i'm loading a page from Jquery fuction
which is following:</p>
<pre><code>$(document).ready(function() {
$("#Link").click(function() {
$("#Div_id1").load("Page1",function() {
$("#Div_id2").load("Page2");
});
});
});
</code></pre>
<p>On page1 there is jquery form validation, whe... | javascript jquery | [3, 5] |
5,133,502 | 5,133,503 | Script issue in PHP | <pre><code><?php
echo "<script type='text/javascript'>$('#tnxerror_captcha').html('test');</script>";
?>
<div class="tnxerror" id="tnxerror_captcha"></div>
</code></pre>
<p>The above code is not working.</p>
| php javascript | [2, 3] |
5,195,688 | 5,195,689 | convert bitmap to image c# | <p>this is how my code look now:</p>
<pre><code>System.Drawing.Image objImage = System.Drawing.Image.FromFile(Server.MapPath("aaa.jpg"));
int height = objImage.Height;
int width = objImage.Width;
System.Drawing.Bitmap bitmapimage = new System.Drawing.Bitmap(objImage, width, height);
System.Drawing.Graphics g = Syste... | c# asp.net | [0, 9] |
4,988,038 | 4,988,039 | How to redirect to dynamic url in javascript | <p>This is what I am trying to do:</p>
<pre><code>window.location = "delete.php?case=<?php echo $nt['id']; ?>";
</code></pre>
<p>How can this be done?</p>
| php javascript | [2, 3] |
276,496 | 276,497 | Focus out event of asp.net textbox | <p>I want to call a javascript function on focus out of asp.net textbox.
I want to do this on client side and not on server side.</p>
| javascript asp.net | [3, 9] |
3,717,047 | 3,717,048 | getting international time using javascript/jquery/json/etc | <p>I am trying to figure out some way to get actual time via JavaScript, jQuery, JSON, etc... </p>
<p>I've got these two sites that host the time for exactly that purpose</p>
<ul>
<li><a href="http://www.timeapi.org/utc/now" rel="nofollow">http://www.timeapi.org/utc/now</a></li>
<li><a href="http://json-time.appspot.... | javascript jquery | [3, 5] |
5,216,053 | 5,216,054 | ASP.NET C# Display address details if logged in | <p>On my website i am trying to get my site to display the users address details if they are logged in have tried a stored procedure:</p>
<pre><code>ALTER PROCEDURE dbo.showAddress
@userid nvarchar(256)
AS
SELECT Fullname, Address, County, Postcode FROM Addresses WHERE @userid = UserId
RETURN
</code></pre>
<... | c# asp.net | [0, 9] |
5,032,080 | 5,032,081 | How to hide a div with asp:ListView | <p>I have a < div> with < asp:ListView>- with results of searching. I want to hide this div, and show it when ListView will be full (or better - when this part of code will be completed)</p>
<pre><code> lvSearchResult.DataSource = getSearchResult();
lvSearchResult.DataBind();
</code></pre>
<p>How can I d... | c# javascript asp.net | [0, 3, 9] |
3,258,706 | 3,258,707 | How to obtain thumbnail path from image path in android? | <p>Basically i have image path that looks like this: /mnt/sdcard/Pictures/image.jpg
And i need to get a path to thumbnail from it, in a fastest possible way.</p>
<p>I am trying to use MediaStore.Images.Thumbnails.queryMiniThumbnail, but no matter what i pass i get null cursor.
Thanks!</p>
<p><strong>EDIT:</strong>
Th... | java android | [1, 4] |
3,474,770 | 3,474,771 | How to concat string to List C# | <p>I was trying to add the strings to the List and export the list as csv file but the result I got is not the way I want. Here is the code -</p>
<pre><code>List<string> values = new List<string>();
using (StreamReader sr = new StreamReader(filePath))
{
while (sr.Peek() != -1)
{
string line... | c# asp.net | [0, 9] |
3,820,883 | 3,820,884 | Add outlook calendar items with asp.net | <p>Im in urgent situation to add a ms outlook calendar items via asp.net/c#, I could find a sample for this,but it works when sender and receiver are different mail address.
But my requirement is when my customer create a appointment customer's outlook calendar should disaply the appointment with reminder, so basically... | c# asp.net | [0, 9] |
684,936 | 684,937 | Build common interface for two applications(one is in .asp, other in java) | <p>We have two applications. One application in .asp and second application in java.
we want to build interface for universal authentication, so that one can access the other application once signed into one application.
Both applications are using SQL database, but one is written in .ASP
hosted on Windows server while... | java asp.net | [1, 9] |
726,892 | 726,893 | Difference in methods for testing undefined in javascript | <p>I've never understood the difference in these two ways for testing the existence of an object...</p>
<pre><code>typeof obj == "undefined"
</code></pre>
<p>vs.</p>
<pre><code>obj == undefined
</code></pre>
<p>Is one preferred? I'm almost always using jQuery, is the second a jQuery only feature?</p>
| javascript jquery | [3, 5] |
3,743,981 | 3,743,982 | Dynamically choose DataContext | <p>based on some variable, I want to choose the datacontext from four possible datacontexts (of different types, of course) in a master page and then use it in nested master pages. Is this possible? </p>
<p>Thanks,
Ondrej</p>
| c# asp.net | [0, 9] |
526,262 | 526,263 | How do I get text/html between consecutive <input>s? | <p>Since input tags aren't supposed to have closing tags, is there a simple way to extract the text/HTML in between a series of input tags? For example, for the below I want to retrieve <code><b>Bob and Tim</b><br>Tim <i>after</i> Bob<br></code>.</p>
<pre><code><div id="inputs"&g... | javascript jquery | [3, 5] |
1,537,927 | 1,537,928 | How to set a dropdownlist item as selected in ASP.NET? | <p>I want to set selecteditem for asp. net dropdownlist control programmatically.</p>
<p>So I want to pass a value to the dropdownlist control to set the selected item where is the value of the item equal to the passed value.</p>
| c# asp.net | [0, 9] |
1,328,567 | 1,328,568 | Unable to return value from a function | <p>I want to return value from the function which contains an anonymous function. </p>
<pre><code>function getSingleCheckedItemId() {
return $(".data-table-chk-item").each(function() {
if ($(this).is(":checked")) {
var value = $(this).attr("value");
return value;
}
});
}
</cod... | javascript jquery | [3, 5] |
4,614,271 | 4,614,272 | need different button style on focus , clicked and normal | <p>How can i achieve different buttons styles when
the button gets focus, when clicked and when it losses focus.</p>
<p>I need to do this in jquery.</p>
| jquery asp.net | [5, 9] |
805,690 | 805,691 | How to pass extra parameter in jquery post request from outside click event? | <p>Hi i have jquery request like below ,</p>
<pre><code>$('#filterForm').submit(function(e){
e.preventDefault();
var dataString = $('#filterForm').serialize();
var class2011 = document.getElementById("2011").className;
//var validate = validateFilter();
alert(dataString);
... | javascript jquery | [3, 5] |
3,221,966 | 3,221,967 | How can I take a different values from different tables and store in another table? | <p>I want to take the <code>customer id</code> from a <code>customer table</code>, <code>restaurant id</code> from a <code>restaurant table</code>, and <code>order id</code> from <code>order table</code>. I want to store these values in a single table detail. How might I do this?</p>
| c# asp.net | [0, 9] |
4,432,575 | 4,432,576 | selected text in iframe | <p>How to get a selected text inside a iframe.</p>
<p>I my page i'm having a iframe which is editable true.
So how can i get the selected text in that iframe.</p>
| javascript jquery | [3, 5] |
3,054,710 | 3,054,711 | Hiddenfield in a usercontrol, can not access it on clientside | <p>I have a hidden field in a User Control. At run time I assign the hidden fields ClientId to an anchor tag like this:</p>
<pre><code>aClickSort1.HRef = string.Format("javascript:SortImage({0},{1});", divArrowUp1.ClientID, hiddenSort1.ClientID);
</code></pre>
<p>The thing is that when I try to get the hidden fields ... | javascript asp.net | [3, 9] |
870,607 | 870,608 | When using $(document).ready why must it be in an anonymous function? | <p>I use document ready all the time, but I'm watching some tutorial videos to really KNOW whats going on instead of just knowing from typing it so much.</p>
<p>I had always put it in an anonymous function out of habit as thats how its always done, but now I see if its NOT in an anonymous function (say <code>alert();<... | javascript jquery | [3, 5] |
2,689,342 | 2,689,343 | jQuery's implicit loop goes "both ways"? | <p>Turns out jQuery's "implicit looping" goes both way:</p>
<pre><code> <div class="classOne">
some content
</div>
<div class="classOne">
some content 2
</div>
[...]
$(function() { $('hello world').prependTo($('.classOne')); })
</code></pre>
<p>in this case,... | javascript jquery | [3, 5] |
5,187,761 | 5,187,762 | Why does not self focus work in javascript? | <p>Whenever a blur event is triggered from any input element, I want to set focus to one particular element. </p>
<p>But this <em>only works</em>, when the element I am trying to focus on to, is <strong><em>not</em></strong> the one triggering the event.</p>
<blockquote>
<p><strong><a href="http://jsfiddle.net/Lx6C... | javascript jquery | [3, 5] |
375,265 | 375,266 | best way to check if 3 textboxes are empty | <p>I have 3 textboxes and I want to check if put together they all add up to greater than blank.
What's the best way to accomplish that?</p>
<pre><code> <asp:TextBox ID="tbDate" runat="server"></asp:TextBox>
<asp:TextBox ID="tbHour" runat="server"></asp:TextBox>
<asp:TextBox ID="t... | javascript asp.net | [3, 9] |
4,180,483 | 4,180,484 | JQuery Toggle True or False on data-filter | <p>I have an image link which I want to use as a toggle button.</p>
<pre><code><img id="myToggleButton" src="myToggle.jpg" />
And what I want it to toggle is this:
<ul id="listview" data-filter="true">
So, basically I need to change from data-filter="true" or data-filter="false" and so on.
</code></pre>... | javascript jquery | [3, 5] |
3,387,101 | 3,387,102 | What's the difference between jQuery.data and jQuery._data ( underscore data )? | <p>While going through the source, I noticed that 'toggle' supposedly uses <code>jQuery._data</code> to store the state of the element. I examined the <code>jQuery.cache</code> object in chrome and found that the element's data object had yet another object under it prepended by the word jQuery with a number that I'm g... | javascript jquery | [3, 5] |
4,330,716 | 4,330,717 | Fading in background image with jQuery | <p>How would you fade in a background image (the body tag, and it is tiled) with jQuery? The background color is white and in a callback function I want to toggle the background image to on and off.</p>
<p>Any ideas?</p>
| javascript jquery | [3, 5] |
5,024,338 | 5,024,339 | not able to pass value to javascript function from jquery's success | <p>I am calling javascript function filename in success of jquery as below , but i am not able to get p in javascript </p>
<pre><code> success: function(result) {
var htmlString = [result];
for (i = 0; i < htmlString.length; i++) {
var p = htmlString[i].Number;
$('#MyGrid tbody'... | javascript jquery | [3, 5] |
532,551 | 532,552 | Process Jquery fuction only once | <p>HTML&PHP</p>
<p>I list ticket info;</p>
<pre class="lang-php prettyprint-override"><code> <table>
<?php
while($values = mysql_fetch_array($ticketInfo)){
echo '<tr>';
echo '<td id="ticketPrice">'. $values['ticket_price'] .'</td>';
echo '<td id="myBonus">'... | javascript jquery | [3, 5] |
4,681,953 | 4,681,954 | DateTime.Now.Year to fill maximum value in RangeValidator | <p>I am using a RangeValidator to validate that a year is between a static start year and a dynamic end year (the current year). I am drawing a huge blank for setting the maximum value in this fashion:</p>
<pre><code>MaximumValue='<% DateTime.Now.Year %>'
</code></pre>
<p>Any help is appreciated as I usually do... | c# asp.net | [0, 9] |
2,065,756 | 2,065,757 | JavaScript - creating a html table or grid from a list of words in script | <p>How can I take the list of words and create a html table from them? </p>
<pre><code> <script>
$('.wordcontainer').html('<ul><li></li></ul>');
var listofwords = {"mat","cat","dog", "pit", "pot", "fog", "log", "pan", "can", "man"};
</script>
</code></pre>
| javascript jquery | [3, 5] |
3,544,381 | 3,544,382 | sending other input with $_FILES php | <p>Im uploading a file using the following jquery..</p>
<pre><code> function ajaxFileUpload(jobid)
{
$("#loading")
.ajaxStart(function(){
$(this).show();
})
.ajaxComplete(function(){
$(this).hide();
});
$.ajaxFileUpload
(
{
url:'addjobrpc.php',
secureuri:false,
jobID:jobid,
fileEle... | php javascript jquery | [2, 3, 5] |
1,226,771 | 1,226,772 | Accessing the reference of a child class from an abstract parent | <p>I have an abstract class. It contains a private class field. In one of the methods in the private class field, I need to refer to <code>this</code> of whatever child class extends the abstract class.</p>
<pre><code>public abstract class ActivityCrazy extends Activity {
private class FoolClickedButton implements On... | java android | [1, 4] |
3,231,431 | 3,231,432 | Create nested property from variable | <p>Assume I have an empty object like so:</p>
<pre><code>var object = {};
</code></pre>
<p>How can I add a property with a nested object using variables? E.g.:</p>
<pre><code><span id='obj1'>person</span>
<span id='nestedObj'>name</span>
var obj1 = $( '#obj1' ).text();
var nestedObj = $( '#... | javascript jquery | [3, 5] |
4,606,094 | 4,606,095 | Disable click handler when click is fired in jQuery | <p>We have a website built in .NET and jQuery. We have custom jQuery to call the load method on a processing ASP.NET page. That ajax call is fired in a click handler, e.g.</p>
<pre><code>$("#Submit").click(function(){
$(a_selector).load("Process.aspx?data=" + someDataObject, null, function(){
alert("Done")});
... | javascript jquery | [3, 5] |
4,474,605 | 4,474,606 | How to compare two date and time in android | <p>I have one problem is there. How to compare 2 date and time</p>
<pre><code>enter code here
if(fromdate<=nowdt.now() && todate>= nowdt.now()){
////
}
</code></pre>
| java android | [1, 4] |
5,779,045 | 5,779,046 | strange session problem | <p>I have this field in my session class:</p>
<pre><code>public bool IsCartRecentlyUpdated
{
get
{
if (this.session["IsCartRecentlyUpdated"] != null)
{
return (bool)this.session["IsCartRecentlyUpdated"];
}
else
{
this.session["IsCartRecentlyUpdate... | c# asp.net | [0, 9] |
4,339,314 | 4,339,315 | How to add number of days to get the next date from current date without weekends | <p>I want to add some no. of days to get the future date. And weekends should not be included in this. How can I get this?</p>
<p>var startdate = "8-June-2012";
no. of days to add = 10;
enddate should be "22-June-2012"</p>
| javascript jquery | [3, 5] |
3,609,234 | 3,609,235 | new values on $(window).resize | <p>I first do this and it works:</p>
<pre><code> $(document).ready(function() {
var delay = 0;
var myLeft = $("#container").offset().left;
var myRight = myLeft + $("#container").outerWidth();
var newWidth = $("#container").width();
$("#head").animate({width: newWidth});
$("#head").css("marginL... | javascript jquery | [3, 5] |
503,259 | 503,260 | How to send a script from one page to another in JavaScript or jQuery? | <p>I would like to send some javascript from one file to another in my own server. For example on file 1 I have the following code:</p>
<pre><code><script>
alert("Hey There!");
</script>
</code></pre>
<p>I want to send this code to file 2, so that the alert happens on file 2. Imagine File 2 had alrea... | javascript jquery | [3, 5] |
5,482,714 | 5,482,715 | Detect Android phone via Javascript / jQuery | <p>How would i detect that the device in use is an Android for a mobile website?</p>
<p>I need to apply certain css attributes to the Android platform.</p>
<p>Thanks</p>
| javascript jquery android | [3, 5, 4] |
5,482,202 | 5,482,203 | Detecting Data changes in Forms using JQuery | <p>I'm using ASP.NET 2.0 with a Master Page and I was wondering if anyone knew of a way to detect when the fields within a certain <code><div></code> or <code>fieldset</code> have been changed (e.g., marked '<code>IsDirty</code>')?</p>
| javascript jquery | [3, 5] |
275,206 | 275,207 | parsererror in ajax jquery calling a webservice | <p>I have written a webservice like below:</p>
<pre><code>[WebMethod]
[ScriptMethod(ResponseFormat = ResponseFormat.Json, XmlSerializeString = false, UseHttpGet = true)]
public string GetNews(int tes)
{
return tes.ToString();
}
</code></pre>
<p>and I want to use this function in client so I wrote this lines:</p>
... | jquery asp.net | [5, 9] |
3,745,642 | 3,745,643 | Jquery .change() to view currently assigned method | <p>Is there any way I can view the current method assigned to a selects change event.
I have tried. </p>
<pre><code>$('#select').change()
</code></pre>
<p>but that just returns me the change event. I don't really need to do this but would be very handy for debugging. Save me hunting through the code to find the meth... | javascript jquery | [3, 5] |
3,868,376 | 3,868,377 | Jquery and CSS background change | <p>I am having problem with the following line:</p>
<pre><code>document.getElementById("giftcard").getElementsByTagName("label").style.backgroundImage ="url(giftcard_icon-d.jpg)";
</code></pre>
<p>I am trying to change background image after clicking a <code>label</code>.</p>
<p>I do have 5 <code>label</code>s in a ... | javascript jquery | [3, 5] |
2,024,702 | 2,024,703 | File permission while saving a html to server | <p>I have a problem , I want to save a html file in directory using asp.net .
But when i try to do so ,
I got a security exception as follow . </p>
<pre><code>7/10/2012 12:03:54 AM,http://www.teddytank.com/admin/AddNewsLetter.aspx?
nid=3,System.IO.IOException: The process cannot access the
file 'D:\ho... | c# asp.net | [0, 9] |
4,735,074 | 4,735,075 | jquery REGEX validation for letters and Numbers onlyu | <p>Can any body tell me what is the Regex validation to use my textbox should take only letters and Numbers?</p>
<pre><code> var BLIDRegExpression = /^[a-zA-Z0-9]*$/;
if (BLIDRegExpression.test(BLIDIdentier)) {
alert('The BLID Identifier may only consist of letters or numbers and must be exactly five cha... | javascript jquery | [3, 5] |
5,686,157 | 5,686,158 | Convert from C# function to JavaScript function | <p>I have a function in c# that used to manipulate the string, It works well while I used in C#. Now I want to convert this function to use in JavaScript. This is the function in C#:</p>
<pre><code> public static string TrimString(string str, int lenght)
{
string _str = str;
int _iAdditionalLenght = ... | c# javascript | [0, 3] |
3,051,094 | 3,051,095 | How to add &ref=123 every link | <p>How would i be able to put the follow on the end of every link of my website with out editing every link?</p>
<p>e.g <code>www.WebsiteName.com/?ref=123</code></p>
<p>so if i went to <code>www.WebsiteName.com/aboutus.php</code> i want it to add <code>?ref=123</code> onto the end of the url.</p>
| php javascript jquery | [2, 3, 5] |
4,234,103 | 4,234,104 | adding click listener to Overlay class | <p>I have the following class which extends Overlay that draws the pin in my Google Map, the question is how do I add a click listener on that so when I click on the pin I can redirect it to a different activity?</p>
<pre><code>class MapOverlay extends Overlay
{
private GeoPoint p;
public MapOverl... | java android | [1, 4] |
3,162,870 | 3,162,871 | List<Object> vs List<dynamic> | <p>I need to create a heterogeneous <code>List</code> of objects (custom classes). My first thought was to create a <code>List<ISomeMarkerInterface></code> but I quickly learned that this is not what I want. My next thought was <code>List<dynamic></code> and this didn't seem to be a bad idea. However, I was... | c# asp.net | [0, 9] |
1,795,137 | 1,795,138 | jquery checkbox selcetion | <p>Please refer the url </p>
<p><a href="http://jsfiddle.net/fnvXT/" rel="nofollow">http://jsfiddle.net/fnvXT/</a></p>
<p>Here while selecting the check box the corresponding row is selected. I want to change that as</p>
<p>only one will be highlighted at a time.</p>
<p>If i select check box 2 then the check box 2 ... | php jquery | [2, 5] |
3,161,998 | 3,161,999 | how to hide download option from pdf document seen in google docs | <pre><code>WebView WebView = (WebView) findViewById( R.id.WebView01);
String pdfurl = ""; // Url of pdf or doc file.
String weblink="http://docs.google.com/gview?embedded=true&url="+pdfurl;
mWebView.loadUrl(weblink);
</code></pre>
<p>but this code has Download option on page I want remove this option and I wa... | java android | [1, 4] |
4,030,225 | 4,030,226 | In javascript, how would I do this rfind? | <pre><code>www.mydomain.com/invite/abc123
</code></pre>
<p>I want the function to return "abc123". The logic goes like this:</p>
<pre><code>If there is a forward slash, then take all characters after the last forward slash.
</code></pre>
<p>In python, I write it like this: </p>
<pre><code>if s.find('/') >= 0:
... | javascript python | [3, 7] |
3,384,983 | 3,384,984 | How to get result from activity if started from Overlay? | <p>How can i get the result back from an Activity if started from an Overlay e.g. I am using the following code:</p>
<pre><code>Intent alertSett = new Intent(_ctx, AlertSettings.class);
_ctx.startActivity(alertSett);
//set destination
setDestination();
</code></pre>
<p>I want to call the <strong>setDestination();<... | java android | [1, 4] |
3,019,582 | 3,019,583 | loading image while javascript function(s) run | <p>is there a way to show a loading image while a javascript function is running. I have one that takes about 2-5 seconds, would be nice if i could have something like the jquery-ajax function</p>
<pre><code>$("#loading").bind("ajaxStart", function(){
$(this).attr("style", "visibility: visible")
}).bind("ajaxStop"... | javascript jquery | [3, 5] |
2,235,052 | 2,235,053 | parsing url with javascript or jquery | <p>I have a url in this form <a href="http://www.example.com/data/45" rel="nofollow">http://www.example.com/data/45</a>. How do I get the last element (45 in this example) using jQuery or JavaScript?</p>
<p>Thanks.</p>
| javascript jquery | [3, 5] |
4,862,426 | 4,862,427 | jquery addclass id not working on list | <p>Please check my code,</p>
<p><strong>CSS</strong></p>
<pre><code>.ulData li.sel {
background:#fff !important;
font-size:0.8em;
font-weight:bold;
}
</code></pre>
<p><strong>JS</strong></p>
<pre><code>function switchTab(typ){
$(".ulData li").removeClass("sel");
$("#"+typ).addClass("sel");
$... | javascript jquery | [3, 5] |
5,514,237 | 5,514,238 | How could I do face detect during recording video mode | <p>I want to do some image processing work like face detection or something
during the camera is under recording video mode .</p>
<p>now I can recording video and save file and transfer it to my server.
but if I want to detect human face during recording,(I don't need any algorithm , I'll take it)
how can I do this?... | java android | [1, 4] |
5,744,981 | 5,744,982 | Get a "Could not load file or assembly 'Microsoft.Practices.ObjectBuilder" while trying to run my application | <p>I get this error message when trying to run my ASP.NET application: </p>
<blockquote>
<p>Could not load file or assembly 'Microsoft.Practices.ObjectBuilder, Version=1.0.51206.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.</p>
</blockquot... | c# asp.net | [0, 9] |
4,693,754 | 4,693,755 | How would my Java program process a JS file to extract function names? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/6921427/how-to-get-method-name-from-javascript-file">How to get method name from JavaScript file</a> </p>
</blockquote>
<p>I want to fetch Java Script function name in my Java file.I mean i want some solution so... | java javascript | [1, 3] |
1,614,885 | 1,614,886 | Execute live function | <p>I've got an ajax call I want to execute for 2 events, whenever the document is loaded and whenever foo-live-event is clicked. What is the best way to do this? </p>
<pre><code>$(document).delegate(".foo-live-element", "click", function() {
$.ajax({
//ajax call
});
});
</code></pre>
| javascript jquery | [3, 5] |
480,276 | 480,277 | actionBarSherlock subtitle textSize | <p>I'm using ActionBarSherlock subtitles and trying to change the subtitle textsize using styles, but it seems that doesn't work. I'm not that familiar with themes, so.. How can I change that??</p>
<p>Thanks in advance</p>
| java android | [1, 4] |
327,031 | 327,032 | Javascript .keyCode vs. .which? | <p>I thought this would be answered somewhere on SO, but I can't find it.</p>
<p>If I'm listening for a keypress event, should I be using .keyCode or .which to determine if the enter key was pressed?</p>
<p>I've always done something like the following:</p>
<pre><code>$("#someid").keypress(function(e) {
if (e.keyC... | javascript jquery | [3, 5] |
4,948,587 | 4,948,588 | I need to fill text field programatically in a web page opened inside a WebView. How To? | <p>I have created a WebView and opened up a web page in it that contains a form. I need to fill that form programmatically (need to get some data form sqlite database and fill it). </p>
<p>how i can do that ? can anyone please help me out.</p>
<p>EDIT : the web page is a sign-up form and i do not own that web page.. ... | java android | [1, 4] |
5,831,562 | 5,831,563 | Jquery variables variable | <p>There exist some concept like variables variable to print variable names or call functions dynamically:</p>
<p><a href="http://php.net/manual/en/language.variables.variable.php" rel="nofollow">http://php.net/manual/en/language.variables.variable.php</a></p>
<p>Thanks in advance.</p>
| javascript jquery | [3, 5] |
3,088,940 | 3,088,941 | Android: Opening default phone dailing | <pre><code><TextView
android:id="@+id/TextView03"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@+id/header"
android:layout_alignLeft="@+id/button1"
android:layout_marginBottom="127dp"
android:text="@string/phone"
android:textColor="#00... | java android | [1, 4] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.