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,403,187 | 3,403,188 | Create a thumbnail from only part of an image | <p>I'm creating a thumbnail right now like this:</p>
<pre><code>// create thumbnail and save
var image = Image.FromFile(Server.MapPath(imageFilename));
var thumb = image.GetThumbnailImage(image.Width / 10, image.Height / 10, () => false, IntPtr.Zero);
thumb.Save(Server.MapPath(Path.ChangeExtension(imageFilename, "t... | c# asp.net | [0, 9] |
5,307,179 | 5,307,180 | How to Set a Parameter for WhereParameters in EntityDataSource | <p>I have an EntityDataSource and I need set WHERE to a Local Variable Type: GUID.</p>
<p>My problem is I am not able to send my local variable Guid to EntityDataSource for a WHERE OPERATION.</p>
<p>I also tried to to use a ControlParameter<code><asp:ControlParameter Name="UserId" /></code> and have a Label wit... | c# asp.net | [0, 9] |
3,901,287 | 3,901,288 | Stop js slideshow caching amount of clicks | <p>Does anyone know how to stop this slideshow from 'caching' the amount of clicks through the slides? If I click the arrows 10 times then 10 slides will slide through is there a way to stop this? Or alternatively if you click the opposite arrow for it to cancel the 'cached' clicks from the other?</p>
<p><a href="http... | javascript jquery | [3, 5] |
1,928,440 | 1,928,441 | jQuery Datepicker previous complete months | <p>I'm using the Datepicker in two input fields to allow users to select a start and end date, respectively. I was curious if there's a setting for jQuery UI's datepicker to initialize the start date field to a period that is two complete months prior to the end date, which defaults to the current date. So when a use... | javascript jquery | [3, 5] |
4,371,596 | 4,371,597 | Problems defining a good hide/unhide jQuery function for dynamic divs | <p>A while ago I used this simple function to hide/unhide <code>divs</code>':</p>
<pre><code>$(document).ready(function() {
$('#job_desc').hide();
$('#slick-toggle').click(function() {
$('#job_desc').toggle(400);
return false;
});
});
</code></pre>
<p>As you can see I'm just hiding the <code>div</code> ... | php javascript jquery | [2, 3, 5] |
5,044,295 | 5,044,296 | Pass accepts header parameter to jquery ajax | <p>Whwn i inspect the below code in Chrome Console it shows me in Request header </p>
<blockquote>
<p>Accept:undefined</p>
</blockquote>
<pre><code>jQuery.ajax({
url: _this.attr('href'),
accepts: "application/json; charset=utf-8",
});
});
</code></pre>
<p>How do i set accept type as json . I d... | javascript jquery | [3, 5] |
1,999,818 | 1,999,819 | How To Concatenate JavaScript Value to HTML Input 'name' Field? | <p>I have one variable <code>value</code> in my jQuery ready function, and I have one HTML input tag. I want this variable to be concatenated to input tag name field. Please help me.</p>
| javascript jquery | [3, 5] |
428,245 | 428,246 | Can i add rows and cells to a table dynamically? | <p>i want the user to submit a message, and that message will be added as a table row, automatically.. is it possible?</p>
<p>i want to do this: Table table=new Table. table.Rows.Add(row).. then i want to be able to insert a label into that row. e.g. row.Add(table)..but i cant find a way to do that!?!?</p>
<p><a href... | c# asp.net | [0, 9] |
4,374,997 | 4,374,998 | jQuery.validate.js equalTo refuses to work | <p>I am trying to validate that my one password equals the other. The system keeps flagging the passwords not equal error.</p>
<p>Let me post my code:</p>
<pre><code><div class="fieldWrapper">
<label for="password" id="id_password">Password: </label>
<input id="id_pass... | javascript jquery | [3, 5] |
5,750,220 | 5,750,221 | jquery syntax help processing ajax data | <p>I have two <code>form</code> tags. The second one pre-populates with options depending on the choice made in the first one, by making an Ajax request.</p>
<p>The data is returning perfectly and actually pre-populates the second <code>form</code> if I pass an example of some returned data to a local variable (see co... | php javascript jquery | [2, 3, 5] |
3,460,969 | 3,460,970 | jQuery product viewer | <p>Im trying to build a simple, lightweight product viewer using jquery.</p>
<p>I have a default image that I want to dissapear when a thumb is clicked and replace the image in 'X' div. </p>
<p>Ive attached a fiddle if anybody can explain how this is done?</p>
<p><a href="http://jsfiddle.net/BYuxR/3/" rel="nofollow"... | javascript jquery | [3, 5] |
5,826,921 | 5,826,922 | how to delete all sms of a specific contact number in android | <p>I have the following code which delete all the sms conversation ,</p>
<pre><code>Uri inboxUri = Uri.parse("content://sms/conversations");
int count = 0;
Cursor c = context.getContentResolver().query(inboxUri , null, null, null, null);
while (c.moveToNext()) {
try {
// Delete the SMS
String pid =... | java android | [1, 4] |
3,695,188 | 3,695,189 | Copy table row and increment all name attributes | <p>Let's have a table like this:</p>
<pre><code><table>
<tr>
<td><input type="text" name="FirstName1" /></td>
<td><input type="text" name="LastName1" /></td>
</tr>
<tr>
<td><input type="text" name="FirstName2" /></td>
<td>&l... | javascript jquery | [3, 5] |
5,269,431 | 5,269,432 | Read ID from URL and create a new one | <p>On Page_Load, I have to run code to check a url format. The url can be of the following formats:</p>
<pre><code>http://www.xyzabc.com/DisplayProduct?ID=230 or
http://www.xyzabc.com/DisplayProduct?ID=230&blahblah or
http://www.xyzabc.com/S(yya4h4rf4gjh5eo4uazix2t055)X(1))/DisplayProduct?ID=230
</code></pre>
... | c# asp.net | [0, 9] |
1,784,725 | 1,784,726 | Append a word between empty element | <p>How can by jquery know that if between a element is empty append between same element word "there is not"?</p>
<pre><code><div>Ok</div>
<div>No</div>
<div></div> // i want append between this div "there is not" that is empty. Like: <div>there is not</div>
<div>H... | javascript jquery | [3, 5] |
1,988,922 | 1,988,923 | Animation does not get drawn in javascript? | <p>I know there is a .animate() function in jQuery, however i want to play around writing my own!</p>
<p>Ive got this script:</p>
<pre><code>var ball = $("#ball");
var p = $("#ball").position();
for(;;){
$("#ball").css("left", ++p.left);
if ( p.left == 400 ){
break;
}
}
</code></pre>
<p>with the... | javascript jquery | [3, 5] |
5,366,595 | 5,366,596 | Can I use addClass on information stored in an HTML string? | <p>I have a string that for example looks like this.</p>
<pre><code>var html = '<div class="templatemo_post_text grid-85">
<div id="wmd-preview"><h2>Skriv något!</h2>
<p>Lorem ipsum</p></div>
<div class="templatemo_post_footer">
<div class="templatemo_post_on">
<... | javascript jquery | [3, 5] |
1,197,164 | 1,197,165 | jQuery - "Trigger a click" vs "Function call"? | <p>Say I have some actions binded to a link ( with .click or .live), and I want to do the same thing later, but I don't want duplicated code. Which is the correct way and why?</p>
<p>This:</p>
<pre><code>$('#link').click(function(){
//do stuff
});
//called later
$('#link').trigger('click');
</code></pre>
<p>OR:</p... | javascript jquery | [3, 5] |
973,754 | 973,755 | How to add a script element in an iframe for jQuery | <p>I have a parent document and iframe with some JavaScript code to add a <code>script</code> element in an <code>iframe</code> bellow:</p>
<pre><code>var script = window.document.createElement('script');
script.src = '/jquery.myPlugin.js';
window.frames['test'].document.head.appendChild(script);
</code></pre>
<p>How... | javascript jquery | [3, 5] |
3,981,900 | 3,981,901 | Get index of currently focused input text field | <p>How do I get the index of the current input text field I'm currently in? I'm trying to jump to the next input field after pressing enter. This is what I've got:</p>
<pre><code> var index = $('input:text').index(this);
$('input:text')[nextIndex].focus();
</code></pre>
<p>But it's not going to the next one..</p>
| javascript jquery | [3, 5] |
1,841,375 | 1,841,376 | Adding z-index to a window | <p>How can I add a zindex value to the following string so that the pop-window is always on top?</p>
<pre><code>string winopen = "Window.Open('Details - " + name + "', 'test.aspx', 'dest=" + destination.Value + "&id=" + id.Value + "', [250,250], [100,100], true); return false;";
button1["onclick"] = winopen ;
</co... | c# javascript jquery | [0, 3, 5] |
4,897,645 | 4,897,646 | jquery if statement to check if there is a value of an input otherwise auto populate upon clicking link | <p>I have a simple <code>jQuery</code> statement like so:</p>
<pre><code>$(document).ready(function() {
$('#ltc_link').click(function() {
$('#USERDEFINE1').val( 'LT' );
$('#PHONENIGHT').val( '(111)111-1111' );
$('#INTERNET').val( 'NONE' );
$('#last_purchase').val( 'N/A' );
$... | javascript jquery | [3, 5] |
3,235,514 | 3,235,515 | How to refresh webpage after clicking on “Update” in Grid view | <p>I am working on an Asp.net, C# Application.
I want to Refresh the webpage after I clicking on “Update” LinkButton; in Grid view. I have tried the following code; however it just refreshes the page without saving the updated data in Grid view.</p>
<pre><code>protected void LinkButton1_Click1(object sender, EventArgs... | c# asp.net | [0, 9] |
1,934,326 | 1,934,327 | Get text inside the label with jQuery | <p>From the following HTML, I want to get the text inside the <code><label></label></code> with jQuery but exclude the text inside the span in the label. </p>
<pre><code><label for="name">Name<span class="required">Required</span></label>
<input type="text" class="requiredField" ... | javascript jquery | [3, 5] |
4,066,992 | 4,066,993 | Insert text into the input/textarea using Jquery | <pre><code><div class="ctrlHolder">
<label for="" id="name.label">Name</label>
<input name="name" id="name" type="text" class="textInput small" />
<p class="formHint">The name of the item you are submitting</p>
</div>
</code></pre>
<p>How can I insert predefined text into a in... | javascript jquery | [3, 5] |
2,905,821 | 2,905,822 | Jquery autogrow with another textarea | <p>I have an JS textarea autogrow and textarea more than 1. In example the textarea have an ID 1,2,3,4....</p>
<p>Here it's the JS</p>
<pre><code><script type="text/javascript">
$(document).ready(function(){
$("#ctextarea").autoGrow();
});
</script>
</code></pre>
<p>Here it's the textarea :</p>
... | php javascript jquery | [2, 3, 5] |
2,038,179 | 2,038,180 | convert Jquery code to javascript | <p>Please can any body convert this small code to javascript?</p>
<pre><code>(function($) {
$(document).ready(function(){
$("p").click(function () {
$("p").filter(function(){
return ($(this).text().search(/(أ|ب|ت|ث|ج|ح|خ|د|ذ|ر|ز|س|ش|ص|ض|ط|ظ|ع|غ|ف|ق|ك|ل|م|ن|ه|و|ي)/) > -1);
... | javascript jquery | [3, 5] |
1,383,954 | 1,383,955 | How can I use unescape() to include html custom char in a varable | <p>I have the word Cafe in my menu. I want it to be Café</p>
<p>I have been playing around with Js's escape and unescape and I can't make it do whats I thought it could do:</p>
<pre><code>$(document).ready(function(){
var newcafe = unescape('&eacute;');
text = $(".cafe-menu-item").text().r... | javascript jquery | [3, 5] |
1,676,241 | 1,676,242 | jQuery Color Animation - does not fade back to background color | <p>I'm trying to use a jQuery color animation plugin <a href="http://www.bitstorm.org/jquery/color-animation/" rel="nofollow">http://www.bitstorm.org/jquery/color-animation/</a>. When we call it and pass it, say <code>#FFFF00</code> (yellow), we see it change to yellow and fade away. But it never quite fades back to th... | javascript jquery | [3, 5] |
4,626,016 | 4,626,017 | JQuery - Javascript | <p>The following is my code for one form of a two form aspx page. Would this code work? Or any help to make it work is much appreciated.</p>
<pre><code><form action="
$(document).ready(function(){
DoSearchSubmit('Search.aspx','Results.aspx')
});"
method="POST"
id="SearchForm" >
... | javascript jquery | [3, 5] |
3,929,962 | 3,929,963 | in jquery, how to make the right click of the mouse have the same behavior of left click | <p>what i want to realize is : when I right click a link , it also jump to another page like left click. how to do it? thanks very much.</p>
| javascript jquery | [3, 5] |
4,562,957 | 4,562,958 | sorting in XPath using Java | <p>I am using XML in my project for data to be Insert/Update/Delete & Searching.
currently i am using XPath for doing the above operations from my JAVA application.</p>
<p>How can i sort the data[ascending/descending] while reading from XML file using XPath.</p>
<p>Can anyone tell me the best way to full-fill th... | java javascript | [1, 3] |
3,331,499 | 3,331,500 | Simple <tr> Click Forcing Contained <a> Click | <p>How can I get a simple invoke click to function like this: <a href="http://jsfiddle.net/ftwPS/6/" rel="nofollow">http://jsfiddle.net/ftwPS/6/</a> I am apparently missing something basic since this is not working when you click "CLICK". </p>
<pre><code>$('tr').click(function() {
$(this).find('a').click();
});
... | javascript jquery | [3, 5] |
3,051,040 | 3,051,041 | Restructuring Json with Angularjs or Jquery | <p>What is the best way to restructure Json with Angularjs or Jquery..</p>
<p>I am getting a json with following format</p>
<pre><code> [
{
"address":"balh",
"lat":123,
"long":456
},
{
"address":"balh",
"lat":321,
"long":543
},
{
"address":"balh",
"lat":432,
"... | javascript jquery | [3, 5] |
1,279,147 | 1,279,148 | Multiple ul reverse order | <p>I'm new to jquery and I have a page with multiple unordered lists ul.
I need to reverse order each ul, I saw this answer <a href="http://stackoverflow.com/questions/5347839/jquery-reversing-the-order-of-child-elements">jQuery reversing the order of child elements</a>
but it messes all items with all lists.
I tried t... | javascript jquery | [3, 5] |
4,785,423 | 4,785,424 | Using multiple object types in a dropdown to provide filtering for a data grid | <p>In my ASP.Net C# project I have a requirement to display a dropdown containing both people's names and office names.</p>
<p>When the user makes a selection, the event is handled in JavaScript and used to filter the results of a grid. So if the user selects a person's name from the dropdown then the grid displays on... | c# javascript asp.net | [0, 3, 9] |
3,820,555 | 3,820,556 | Looking for Following JavaScript Library That Provide Navigation Menu Similar to FogBugz HomePage | <p>I was looking for JavaScript library, which is able to provide navigation menu similar to </p>
<p><a href="http://www.fogcreek.com/FogBugz/learnmore.html" rel="nofollow">http://www.fogcreek.com/FogBugz/learnmore.html</a> (left most navigation menu)</p>
<p>Any recommandation?</p>
<p>Thanks.</p>
| javascript jquery | [3, 5] |
3,464,591 | 3,464,592 | iPhone email keyboard layout with asp .net TextBox | <p>You know how the iDevices will display a different keyboard layout depending on the HTML 5 value of the type attribute? So, <code><input type="email"...</code> will display the iPad's e-mail keboard layout. I am using a .net TextBox but would like to have the iDevices show the appropriate keyboard layout for the ... | asp.net iphone | [9, 8] |
5,508,634 | 5,508,635 | Can't load all iframes | <p>I can't load all websites inside my iframe for example youtube, facebook and twitter.
I load all my pages from my database, other websites do load normal.</p>
<p>i tried:</p>
<p>js:</p>
<pre><code>function showeffect(sUrl,sName)
{
$('#effect').hide(1000);
$('#effect').show(2200);
$('#... | php jquery | [2, 5] |
179,665 | 179,666 | JQuery - Quick Sand JQuery (Default Selection) | <p>I'm using <a href="http://razorjack.net/quicksand/" rel="nofollow">http://razorjack.net/quicksand/</a> this jquery.
I want to select 'application' instead of 'everything' in page load.
Is there anyway to do?</p>
<p>Thanks,
Kevin</p>
| c# jquery | [0, 5] |
3,347,960 | 3,347,961 | How to add items in the DDL after data binding | <p>In my site when the user logs in he will be having option like Editmyaccount where he can edit the details.Here i am displaying the values entered by him in the registration page from DB and i am having two DDL's there i am displying appropriate country and state selected by user but i want to show some other countr... | c# asp.net | [0, 9] |
3,404,787 | 3,404,788 | Can I develop an iPhone app using java? | <p>Is it possible to develop applications for the iPhone using Java? And if so, does it allow the use of custom jar files?</p>
<p>Thanks.</p>
| java iphone | [1, 8] |
936,262 | 936,263 | How to create the div, dynamically in asp.net | <p>I have some textbox and submit button.</p>
<p>When ever I click the submit button the div should be added dynamically in my aspx page.</p>
<p>Also the information which is available in the text box also displayed in the page default.</p>
<p>Use:Without using database i need to display the user suggestion in my pa... | c# asp.net | [0, 9] |
748,698 | 748,699 | How to use jquery delegate method? | <p>Hi I have a problem... </p>
<p>I have to show all the results generated from a mysql query using php, in the end I generate a "block" that shortened is like this:</p>
<pre><code><div class="resultado">
<div class="titulo_articulo">
<h2>Título del artículo</h2>
</div>... | php javascript jquery | [2, 3, 5] |
1,708,943 | 1,708,944 | How to pass values from parent.aspx page to user control? | <p>I have the following setup in my application and I'm having some difficulties passing values my user control.</p>
<p><strong>ASPX</strong></p>
<pre><code><%
var posts = this.getPosts();
foreach (var post in posts)
{ %>
<asp:TextBox runat="server" Text="<%: post.post_i... | c# asp.net | [0, 9] |
219,059 | 219,060 | Put C# variable as parameter on ASP .NET custom control | <p>I have this code in my ASP page:</p>
<pre><code><%@ Register TagPrefix="genies" Namespace="TheNamespace" Assembly="TheAssembly"%>
...
<% string name = GetTag().Name; %>
<div class="<%= name %>"></div>
<genies:BarGenie ID="BarGenie1" runat="server" Title="<%= name %>" />
<... | c# asp.net | [0, 9] |
2,686,069 | 2,686,070 | safe place to save code | <p>Where is the most secure place to store sensitive code on a server (ex, authorization php, contact scripts, sensitive or protected javascript)?</p>
<p>You guys/girls got any tips or tricks on how to protect that kind of stuff?</p>
| php javascript | [2, 3] |
3,640,260 | 3,640,261 | How can I create different number of button controls? | <p>I'm printing to the screen lots of entries from my database. I'd like each entry to have it's own button, so I can add that specific entry to my cart (saved in <code>Session[]</code>).</p>
<p>How can I do it?
I'd like to have something like this: <img src="http://i39.tinypic.com/xgf5z8.png" alt="alt text"></p>
<p>... | c# asp.net | [0, 9] |
15,616 | 15,617 | ternary operator in ascx page | <p>I have this check in ListView</p>
<pre><code><%# Eval("Count") != null ? Eval("Count") : 0%>/<%# Eval("MaxRange")%>
</code></pre>
<p>now i want to change that if count is null then it should show nothing.</p>
<p>I tried this but no avail.</p>
<pre><code><%# Eval("Count") != null ? Eval("Count") + ... | c# asp.net | [0, 9] |
800,613 | 800,614 | How do I get url that is hidden by javascript on external website? | <p>How do I get url that is hidden by javascript on external website?</p>
<p>ex: <a href="http://royaldesign.se/Att_Dricka.aspx" rel="nofollow">http://royaldesign.se/Att_Dricka.aspx</a>
This url is constant through navigation of pages, so page content is loaded by javascript.</p>
<p>link location of a page: </p>
<pr... | javascript asp.net | [3, 9] |
3,022,146 | 3,022,147 | How to get unreaded sms/missed calls from my Android device? | <p>I have been developing Android application and I need to get unreaded sms/missed calls from my Android device. Are there any ways that I can do it? I hope there are some content provider that can do it. Thank you. </p>
| java android | [1, 4] |
5,943,962 | 5,943,963 | How to get specific item in Item template of Asp Grid view by using Jquery? | <p>How can I get effect on specific row of grid veiw</p>
<pre><code><asp:GridView ID="gvSearch" runat="server" DataKeyNames="guidId" >
<Columns>
<asp:TemplateField>
<ItemTemplate>
<div class="test1"> "test paragraph"
<img src="../Ima... | c# jquery | [0, 5] |
2,028,579 | 2,028,580 | show() Not Working With Class | <p>This is an easy bit of coding, but something's there that i am doing wrong.I just can't figure it out.</p>
<pre><code>#div {
display:none;
}
</code></pre>
<p>JS:</p>
<pre><code>function show() {
var class = 1;
$("#div." + class).show("slow");
}
</code></pre>
<p>HTML:</p>
<pre><code><div... | javascript jquery | [3, 5] |
3,597,397 | 3,597,398 | jquery .empty() conflict with keypress event | <p>This is meant to allow a user to type in a message and then press enter to send it. This should clear the box so that the user can type in a new message. The problem is that the standard result of pressing enter (creation of a newline) is occurring <em>after</em> the .empty() event....so the text vanishes and is rep... | javascript jquery | [3, 5] |
605,802 | 605,803 | programmatically refreshing a datagrid in asp.net | <p>I have an asp.net webpage that does a bunch of (slow, hence the problem) calculations and dumps them all into a datagrid in a webpage. I would like to be able to have the page show partial results. </p>
<p>I have figured out how to re-update the grid every time a row is done, but the page still doesn't display th... | c# asp.net | [0, 9] |
5,597,957 | 5,597,958 | Jquery selector help | <p>I have the following:</p>
<pre><code><form id="my_form">
<input type="checkbox" name="a" value="a"> Check <img src="..." />
</form>
</code></pre>
<p>To handle the check and uncheck events I do (and this works):</p>
<pre><code>$('#my_form :checkbox).click(function() {
if($(this).is(':c... | javascript jquery | [3, 5] |
290,612 | 290,613 | javascript : sending custom parameters with window.open() but its not working | <pre><code><html>
<head>
<script>
function open_win()
{
window.open("http://localhost:8080/login","mywindow")
}
</script>
</head>
<body>
<input type="button" value="Open Window" onclick="open_win()">
</body>
</html>
</code></pre>
<p>Hi , </p>
<p>On click of ... | javascript jquery | [3, 5] |
2,841,931 | 2,841,932 | how to start click or change function from inside js | <p>The problem is, <code>$('#menu').val(menu).trigger('change');</code> and <code>$('.parentcheck').val(0).attr('checked', true).trigger('click');</code> changes their state but doesn't fire their functions <code>$("#menu").change(function () {</code> and <code>$(".parentcheck").click(function () {</code>. How to deal... | javascript jquery | [3, 5] |
1,084,146 | 1,084,147 | Bind a jquery function to elements | <p>I am very new to jquery and need some help. I am trying to change a css element when I enter a textbox. I have applied a css class to my textboxes and I have a couple of div tags around my textboxes.</p>
<p>When a user selects the textbox I want to change the desired div tag.</p>
<p>This is how the html looks</p>
... | javascript jquery | [3, 5] |
161,648 | 161,649 | How to extract string values from a URL? | <p>I want to extract following values from the url mentioned below? </p>
<ul>
<li>layout2</li>
<li>aqua</li>
</ul>
<p><strong>code:</strong></p>
<pre><code>var url = "http://localhost:8080/dflyers/edit.html?layout2&aqua"
var dataLayout = // I need url string (layout2) here
var dataTheme = // I need url string (a... | javascript jquery | [3, 5] |
5,336,225 | 5,336,226 | how to add script inside a php code? | <p>How can I add script inside a php code? suppose i want to give an alert for a button click.. how can i do that??</p>
| php javascript | [2, 3] |
5,183,195 | 5,183,196 | Refresh div if PHP page returns true? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/9571447/jquery-refresh-if-php-file-echos-true">jQuery refresh if PHP file echo's 'true'</a> </p>
</blockquote>
<p>I have the following div on my index:</p>
<pre><code><div id='tv'> <? inclu... | javascript jquery | [3, 5] |
5,810,361 | 5,810,362 | How to stop unloading the page? | <p>I have a page where user needs to enter some data and click save to validate the changes, but my problem is if the user is trying to close the browser window or click on a different link to navigate to a different page..I need to delete all the entries the user has saved so far..
I am doing it the following way</p>
... | javascript jquery | [3, 5] |
101,539 | 101,540 | How do I pass a method through another method without it being called, and pass a variable object into it? | <p>Sorry for my last question. This is the question with better formatting.</p>
<p>I have a method that I am passing a method through :</p>
<pre><code>method("my_passed_method()")
function method(passed_method){
eval(passed_method.replace('()', + '(' + obj + ')' );
}
</code></pre>
<p>But this returns :</p>
<p... | javascript jquery | [3, 5] |
5,439,356 | 5,439,357 | Take User Input Value and Redirect | <p>Basically, I have a search box. Once clicked, the value within the search box would be sanitize and then redirects as a Get Var rather than a Post.</p>
<p>I have one method of taking the User's Input value and redirecting to what they want to search (But it turns into a Post Method).</p>
<p>I want to achieve the f... | php javascript | [2, 3] |
3,647,722 | 3,647,723 | Remove everything after last backslash jquery | <p><code>var t = "\kolobok\molobok\nolobok"</code></p>
<p>I need "\kolobok\molobok" from it.</p>
<p>Thank you.</p>
| javascript jquery | [3, 5] |
4,505,426 | 4,505,427 | Override onclick event in javascript/jquery | <p>I have a table(3 td's) with onclick event and need different onclick event for one td.</p>
<pre><code> <table onclick="window.location.href='http://www.google.com?id=12345'">
<tr>
<td>text</div>
<td>text1</div>
<td onclick="favTheater('test')">text3</t... | javascript jquery | [3, 5] |
60,858 | 60,859 | Problem in populating gridview from stored procedure | <p>I have a Gridview which I'm populating from a Stored Procedure which accepts 3 parameters. First parameter gets its value from a form variable Request.Form["uid"], second and third get its value from DropDownLists SelectedValue property. Second and third parameter should accept NULL if nothing is selected from DropD... | c# asp.net | [0, 9] |
852,913 | 852,914 | Call a jQuery Function with onClick event of Image Button | <p>I have a form in which a table of dynamic data is built with PHP. Within each row is an image that when clicked calls a jQuery function with a click event.</p>
<p>For example, if the image has an id of eventnfo_0, i have a function like this:</p>
<pre><code>$("#eventnfo_0").click(function()
</code></pre>
<p>It a... | php jquery | [2, 5] |
4,670,354 | 4,670,355 | Forcing SSL (https) on a page by page basis | <p>How can I set up my page load event in my code behind to redirect to an url that has an https prefix? I would need it to work with urls that have query strings attached too.</p>
<p>It's one thing to construct a link that goes straight to the https page, but I don't want the user to be able to manually change it to ... | c# asp.net | [0, 9] |
5,499,883 | 5,499,884 | Android - Setting usage flag | <p>I am currently creating an app and would like to create a demo version (free) and a full version.</p>
<p>However, I am wondering how I can set some sort of flag so that when the demo version has been used 5 times, you have to buy the full version to continue using. This usage will be detected on a submit button.</p... | java android | [1, 4] |
5,237,352 | 5,237,353 | Dropdown list where options populate a second list js/php? | <p>I have a 2 dropdown lists side by side. When user selects from the first list, i need the second list's options to be displayed.</p>
<p>The sub-options will be retrieved from a database. I have a page that will return the necessary html given the specific parent. I just need the first list's selection to trigger an... | php javascript | [2, 3] |
1,615,018 | 1,615,019 | an array of strings as a jQuery selector? | <p>I have an array of strings that are valid jQuery selectors (i.e. IDs of elements on the page): </p>
<pre><code>["#p1", "#p2", "#p3", "#p4", "#p5"]
</code></pre>
<p>I want to select elements with those IDs into a jQuery array. This is probably elementary, but I can't find anything online. I could have a for-loop wh... | javascript jquery | [3, 5] |
135,165 | 135,166 | Dissect my jQuery - can't use keyup function to insert number of characters into another textarea | <p>I'm trying to figure out why my jQuery isn't working. I've got jQuery linked to, and then after that, I try to bind to the textarea content. I've used name=content and name=#content both.</p>
<pre><code><script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script ... | javascript jquery | [3, 5] |
2,491,652 | 2,491,653 | Finding out what's slowing down ASP.NET pages | <p>I have a rather 'heavy' ASP.NET page, and currently the speed is fairly unacceptable - there is a <em>lot</em> of database communication, and displaying large grids. But I effectively want to find out what's actually causing the most slowdown, and working from there.</p>
<p>Are there any tools built into Visual Stu... | c# asp.net | [0, 9] |
2,005,702 | 2,005,703 | String was not recognized as a valid DateTime.Couldn't store <22/06/2012 12:00:00 AM> in Purchase Date Column.Expected type is DateTime | <p>I am receiving this exception on XP running machine but on windows 7, there is no issue. I am trying to format date time as follows, </p>
<pre><code>dr.BeginEdit();
dr["Pdate"] = ((DateTime)dr[dc]).ToString("dd/MM/yyyy hh:mm:ss tt", CultureInfo.InvariantCulture);
dr.EndEdit();
... | c# asp.net | [0, 9] |
896,874 | 896,875 | how to bind key combination ctrl+x+return in jquery | <p>Is there any way to catch key combination 'ctrl+x+return' in jquery(or javascript), such that if user presses this key combination, a function is called. I tried using the jquery hotkeys plugin, but that didn't worked.</p>
| javascript jquery | [3, 5] |
6,023,658 | 6,023,659 | How to make Dropdown List with checkboxes? | <p>How do we make a drop down list with checkboxes? C# lang is preferred for this.</p>
| c# asp.net | [0, 9] |
2,819,444 | 2,819,445 | Cycle through int values | <p>I need some input.</p>
<p>Say you have an int-based Enum with values 1 through 10. If you then have a variable that is, say, value corresponding to 7, how can you easiest set it to next value in the given range without going out of bounds? If the value reaches the limit, it should reset itself to first in the range... | c# javascript | [0, 3] |
1,137,698 | 1,137,699 | How to remove selection from a listbox in html by javascript and jQuery? | <p>After I click an item on a listbox, I'll do this processing then I need to remove this selection as it was at the first time so that I can click the same item again and fire the event of selected index change.</p>
| javascript jquery | [3, 5] |
482,933 | 482,934 | How to implement smart bar in Android app? | <p>How to Create Slide Drawer in android app same as in facebook app.</p>
| java android | [1, 4] |
1,687,663 | 1,687,664 | How to get the primitive value of a checkbox? | <p>Edit: Okay, I had to redo the example because the problem didn't occur in my first example</p>
<pre><code>function CheckboxClick(checkbox, check) {
this.checked = check;
checkbox.click(function (event) {
alert(this.checked);
});
}
CheckboxClick($("#checkbox"), $("#checkbox").attr("checked"));... | javascript jquery | [3, 5] |
3,682,603 | 3,682,604 | Why is my Javascript not valid? | <p>Can anyone please help?<br>
I have a div with ID 'adpictureholder', to which I dynamically add (or remove) images.<br>
On Form submit I want to get SRC values of all these images within that DIV and put them to the value of one hidden input with ID 'piclinkslisttosubmit'. <br> The thing is that my current Javascri... | javascript jquery | [3, 5] |
5,449,245 | 5,449,246 | is it legal to store jquery reference? | <pre><code>var global_ref = null;
function a(){
function some_click_handler {
global_ref = $(this);
}
}
// later in
function b()
{
$(global_ref).css(...) // or global_ref.css(...) ???
}
</code></pre>
<p>Is above concept right? and the syntax right?</p>
| javascript jquery | [3, 5] |
2,887,033 | 2,887,034 | how to format time including miliseconds | <p>I'm trying to get a time string in the format of YYYYMMDD-HHMMSSMiliseconds in android</p>
<p>Ex: 20130312-1723437520 (2013 March 12th, 17 Hour 23 Minutes 43 Seconds 7520 Miliseconds)</p>
<pre><code>Time now = new Time();
now.setToNow();
String snapshotTime = now.format("yyyyMMdd-HHmmss");
</code></pre>
<p>First ... | java android | [1, 4] |
413,179 | 413,180 | Do any of these javascript minifiers remove debug statements? | <p>It would be nice if I could put debug/console log statements in my javascript, then have a js minifier/compacter remove these when it compiles.</p>
<p>Does this exist?</p>
| javascript jquery | [3, 5] |
1,382,993 | 1,382,994 | Javascript or Jquery Calendar which should hide previous dates from current date and also Week ends | <p>Need a calendar script in Javascript or Jquery which should have the option like disabling all the previous dates from the current date and also disable the Saturday's and Sunday's too</p>
| c# javascript jquery asp.net | [0, 3, 5, 9] |
5,066,692 | 5,066,693 | Creating a loop that populates a select tag | <pre><code>function buildOrder(data) {
var $fragment;
$fragment = $('<div/>');
for (var i = 0; i < data.length; i++) {
$fragment.append('<div class="row-container"><div class="row cupcake-row">' + data[i].name + '</div><div class="clear"></div></div>');
... | javascript jquery | [3, 5] |
2,073,081 | 2,073,082 | Links and on click in ListView? | <p>i used <code>android:autoLink="web"</code> in textview inside a listView, the problem when the listview have a link, it looks like the <code>android:autoLink="web</code>" override the on click function for that listview .
What i need is to be able to click the link and able to click on the listview that contains the... | java android | [1, 4] |
3,075,914 | 3,075,915 | equivalent of OnSelect javascript hook in multi-select asp listbox | <p>I have a multi-select <code><asp:listbox></code> and a button. I want to disable the button unless >= 1 item in the listbox is selected. How can I do this client-side? I can't find some sort of <code>OnSelect</code> callback, only <code>OnSelectedIndexChanged</code> which from googling seems complicated to ... | asp.net javascript | [9, 3] |
1,840,514 | 1,840,515 | Manual sort objects with anonymous type? | <p>I have the following code:</p>
<pre><code>var categories = catList.Select(c => new
{
Title = c.Web.Title,
Byline = c[Constants.FieldNames.Byline],
Url = c[SPBuiltInFieldId.FileRef]
});
</code></pre>
<p>I will always have maximum three items but could be less.
The Title will always be either (s... | c# asp.net | [0, 9] |
850,234 | 850,235 | Annoying exception in asp.net | <p>everybody; I have this problem in asp.net, I have a page where I insert and modify data, before saving I make a validation if it passes I save the data but if not I raise an exception and show it, the function goes like this;</p>
<pre><code>protected void btnSave_Click(object sender, EventArgs e)
{
try
{
...
if(Val... | c# asp.net | [0, 9] |
1,658,760 | 1,658,761 | Android where to initialize activity data? | <p>I want to do initialization when activity starts. </p>
<p>I can put it in <code>onCreate</code> method, but it is called every time <code>screenOrientation</code> is changed.
I can disable this in <code>AndroidManifest</code>, but maybe there is better solution for this? </p>
| java android | [1, 4] |
5,440,097 | 5,440,098 | How to created 2d array/arraylist with different types of data in each dimension in JAVA? | <p>I have a native Android news App where I have news articles and comments under each article.</p>
<p>When I open the inner View(Activity) of any specific article there might be different coverages of the same article, e.g. the Coverage from CNN, BBC, FOX ...etc.</p>
<p>Each coverage is actually treated as a differe... | java android | [1, 4] |
2,342,237 | 2,342,238 | selecting textViews and getting their values | <p>I am trying to accomplish following things</p>
<p>Suppose I have 5-6 <code>TextViews</code> with values <code>S N A K E</code> </p>
<p>Now, I want to press <code>S</code> textView then slide my finger over <code>N</code> to select it too and then move my way to E. I want to do that so that i can get "<code>SNAKE<... | java android | [1, 4] |
5,747,541 | 5,747,542 | How make temp link download with resume? | <p>How can I create temporary link download with resume in asp.net with expire link after for example 2 days?</p>
<p>I use this:</p>
<pre><code>Response.ContentType = "application/octet-stream";
Response.AppendHeader("Content-Disposition", "attachment;filename=" + "12.exe");
Response.TransmitFile(Server.MapPath("~/... | c# asp.net | [0, 9] |
1,398,910 | 1,398,911 | Opening MS Word File | <p>I am using <code>document.Active()</code> method which is a part of <code>Microsoft.office.interop.word</code> namespace. I want to open the file i.e. I want to see the file opened in the Word application. I have set <code>thetrackRevisions</code> property true and rest of all the things. </p>
<p>I just want the fi... | c# asp.net | [0, 9] |
4,780,483 | 4,780,484 | $('#select').val() retuns UNDEFINED | <p>I have written some jQuery code, this is a part of it. this always return <strong>UNDEFINED</strong>. why is that</p>
<pre><code><html>
<head>
<script src="theme/js/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("#my").click(function() {
... | javascript jquery | [3, 5] |
3,313,521 | 3,313,522 | No echo appearing of text input and $_FILES variable | <p>I want to know what is the correct way of display a text input in an echo in the code below because nothing is being outputted:</p>
<pre><code><script language="javascript" type="text/javascript">
window.top.stopVideoUpload(
<?php echo $result; ?>,
'<?php echo "<input name='vidid' type='... | php javascript | [2, 3] |
5,961,387 | 5,961,388 | Call PHP function from android? | <p>I want to call specific php function on server from Android application and also to send some parameters. Till now I achieved that I can open php file using HttpClient and executed data transfer to Json and show that in my app. So, now I want to be able to call specific function and send parameter to it, how can I d... | java android | [1, 4] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.