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 |
|---|---|---|---|---|---|
5,709,764 | 5,709,765 | jquery/javascript content replace?how reusable | <p><a href="http://img163.imageshack.us/img163/6248/93306989.jpg" rel="nofollow">http://img163.imageshack.us/img163/6248/93306989.jpg</a></p>
<p>the images above show what i want,</p>
<p>i'm using Facebox to do the pop up content,so how can i make the pop up content dynamic?</p>
<pre><code><script type="text/java... | javascript jquery | [3, 5] |
398,779 | 398,780 | JQUERY outline textfield to show error | <p>I have a <code>textfield</code> and at the moment i disable the submit button when the <code>textfield</code> does not <code>hold three charactes</code>. What i want to do now is also outline the <code>textfield</code> <strong>bold red</strong> and still have the <code>submit</code> button disabled, however i cannot... | javascript jquery | [3, 5] |
681,315 | 681,316 | Javascript how to add target="_parent" in document.location.href | <pre><code>document.location.href="http://verttgrettest.com/testpaper.aspx?VideoId=1"
</code></pre>
<p>Javascript how to add target="_parent" in document.location.href</p>
| javascript jquery | [3, 5] |
3,530,694 | 3,530,695 | Add code to created DOM Elements using live() | <p>I'm trying to set this code on new elements been added by jQuery using live()</p>
<pre><code>var frcode = '<iframe scrolling="no"></iframe>';
$('.foo:nth-child(3n),.foo:last-child').after(frcode);
$('.foo:first').before(frcode);
</code></pre>
<p>I tried livequery plugin but not working good with me</p>... | javascript jquery | [3, 5] |
743,451 | 743,452 | Passing 2 sets of data using JQuery .Ajax? | <p>I have a search box:</p>
<pre><code><input class="box" name="search" type="text" id="search_input" />
</code></pre>
<p>And a <code>json_encode</code> array called <code>$findall</code>. Using jQuery <code>$.ajax()</code> I want to be able to pass the array AND the "keyword" from the input via the data field.... | php jquery | [2, 5] |
4,941,271 | 4,941,272 | Trigger an Asp.net menu click in code | <p>How can I trigger a Asp.net menu click in code behind? (it's a Webcontrol.Menu)</p>
<p>Ideally I don't want to do this but it is embedded in a horrible Sharepoint webpart that I am trying to add a feature to and don't have time to rewrite it.</p>
<p>The click on the menu item sets the index of a MultiView control ... | c# asp.net | [0, 9] |
2,199,459 | 2,199,460 | Make back button go to a different page | <p>I'd like to JavaScript, or JQuery (or any plug in actually) to force the browser to load a specific page when the back button is clicked. </p>
<p>Basically insert a page into the browser's history.</p>
<p>I've found a way of doing it below, but it seems long winded. Am I missing something?</p>
<pre><code><html... | javascript jquery | [3, 5] |
3,506,941 | 3,506,942 | Passing parameters on JQuery .trigger | <p>I am using JQuery trigger but am not sure what the correct syntax is to pass parameters in my situation. Here is where I am making the call :</p>
<pre><code>$('#'+controlName).trigger(event);
</code></pre>
<p>Here is where I am doing the event binding :</p>
<pre><code>$(window).on('onPartialRendered', onPartialR... | javascript jquery | [3, 5] |
5,962,523 | 5,962,524 | jquery each() with setInterval | <p>I have an object filled with various elements that I wish to iterate through using <code>each()</code> and then perform an action on the element whose turn it is. So:</p>
<pre><code>var arts = $("#press-sqs > article");
shuffle(arts);
$(arts).each(function(){
setInterval(function() {
// in here perform ... | javascript jquery | [3, 5] |
4,996,063 | 4,996,064 | qtip unable to display Tool Tip | <p>in aspx page inside <code>head</code> tag:<br></p>
<pre><code><script type="text/javascript">
$(function() {
InitializeToolTips();
});
function InitializeToolTips() {
$.toolTipRequest("txtText", "Text tip");
$.toolTipRequest("imgGirl", "You want to see image");
}... | jquery asp.net | [5, 9] |
3,718,131 | 3,718,132 | how to add .apk and sqlite database file in android mobile? | <p>My application is developed now & i want to test it on mobile phone. I want to add .apk & .sqlite file into an android mobile. but i dont get a specific solution for it. pls tell me an solution for this.</p>
| java android | [1, 4] |
3,892,271 | 3,892,272 | Posting Data to another domain thru code-behind of Asp.NET | <p>Since we can't post data to cross domains, I want to post the data to my aspx page and a code-behind code will take the data and submit to cross domain <em>(which is not being operated by me, so I don't have permission to modify source code for jsonp)</em> and also the website to which I pass my post data is also re... | javascript asp.net | [3, 9] |
3,763,064 | 3,763,065 | World Map with Custom Marker Positions- ASP.NET | <p>I'm looking for some suggestions as to how I could implement a World Map with custom positioned markers. My client would like a world map that represents the locations of his Licensees.</p>
<p>I have been provided with the following xml as the data source for the map.</p>
<pre><code> <Licensee id="1">
<... | c# asp.net | [0, 9] |
1,986,892 | 1,986,893 | How should I convert Java code to C# code? | <p>I'm porting a Java library to C#. I'm using Visual Studio 2008, so I don't have the discontinued Microsoft Java Language Conversion Assistant program (JLCA).</p>
<p>My approach is to create a new solution with a similar project structure to the Java library, and to then copy the java code into a c# file and convert... | c# java | [0, 1] |
1,191,584 | 1,191,585 | How to indent particular row in datagridview | <p>I have a gridview and and I am creating it dynamically, I get parent and child tables records and binding the data to a single data grid view. I need to indent the row which is from child table a bit to the right so that i can differentiate the record from parent record.</p>
<pre><code>private void CreateDynamicGri... | c# asp.net | [0, 9] |
73,040 | 73,041 | "syntax error on token ";" ,, expected" after private ... adapter | <p>It writes syntax error on token ";" ,, expected after the line <code>private ArrayAdapter adapter ;</p>
<pre>package ru.for_listactivity;
import android.os.Bundle;
import android.app.ListActivity;
import android.view.Menu;
import android.widget.ArrayAdapter;
public class MainActivity extends ListActivity {
@Over... | java android | [1, 4] |
1,285,672 | 1,285,673 | Is Using a Static Configuration Class Good Practice? | <p>In my project I am developing at the moment, I have many configuration settings. Things such as</p>
<ul>
<li>Alarm times</li>
<li>Amount of items to retrieve from the server</li>
<li>LocationManager integers such as minium location </li>
</ul>
<p>These are all static final and are all in a class that corresponds t... | java android | [1, 4] |
5,544,915 | 5,544,916 | Replace words in a string | <p>I have an array as follows:</p>
<pre><code>var arr = ["apple", "banana", "carrot"];
</code></pre>
<p>I want to replace all sentences which have the words similar to the array</p>
<pre><code>function replaceString(fruits){
return fruits.replace(arr, "---");
}
</code></pre>
<p>So if I pass a string - "An apple a d... | javascript jquery | [3, 5] |
1,121,119 | 1,121,120 | how can I include php in jQuery? | <p>Let's say I have some html file like this:</p>
<pre><code><body>
<div></div>
</body>
</code></pre>
<p>Given that I have referenced jQuery correctly, and I have a .js file like:</p>
<pre><code>$(document).ready(function(){
$('div').html(4);
});
</code></pre>
<p>That will output 4 wh... | php jquery | [2, 5] |
4,639,547 | 4,639,548 | Using javascript inside a Java program | <p>I am trying to invoke a javascript script inside my java program in order to change the selection of a drop down box. I am attempting to pass my html-scrape Document object gotten from jsoup.connect into my script to select a different value. The default option in the drop menu is 1 month (these are timeframes of da... | java javascript | [1, 3] |
4,619,132 | 4,619,133 | Bind serverside function with Hyperlink control in asp.net web form page | <p>I have few controls on asp.net web form page and i want to link a code behind function to Hyperlink to resolve URL</p>
<p>HTML & Code Behind Example</p>
<pre><code><asp:HyperLink ID="hyplnkVideo" runat="server" NavigateUrl='<%# this.getVideoPageURL()%>'>
<div id="dAlbumCategory" class="Albu... | c# asp.net | [0, 9] |
2,527,201 | 2,527,202 | jquery remove matching classes? | <p>I have a list of stuff with thing like</p>
<pre><code> <ul>
<li>
<div class="pack1 active1"><span>$3.99</span></div>
</li>
<li>
... | javascript jquery | [3, 5] |
3,230,245 | 3,230,246 | the main cause of application force close on android | <p>What is the main cause of force close on android? Is there any way to help avoid unwanted force close problem when coding an android application?</p>
| java android | [1, 4] |
1,422,232 | 1,422,233 | jQuery .load problems. Not effected by parent javascript file | <p>When trying to load a file using the <code>.load</code> function, that newly loaded file isn't affected by my jQuery in the parent file that it's being loaded into. Instead of adding the <code><script src=''></script></code> code in every page that's being loaded, is there a better way to get my javascri... | javascript jquery | [3, 5] |
1,795,604 | 1,795,605 | .stop() doesn't work with hover selector | <p>This is my code: </p>
<pre><code>$(function(){
$("#deals ul li ul").hover(function(){
$(this).stop().find(".trans").fadeIn("fast");
$(this).stop().find(".text").fadeIn("fast");
return false;
},function(){
$(this).find(".trans").fadeOut("fast");
$(this).find(".text").fadeOut("fast");
});... | javascript jquery | [3, 5] |
1,246,118 | 1,246,119 | Universal Animation Queue in jQuery? | <p>I'm trying to create this sliding effect but the only problem I'm having is queuing. </p>
<pre><code>$(this).animate({'left' : '0%'}, randTime, function() {
$(this).animate({'boxShadow' : 'none'});
setTimeout(function() {
$container.children('.slice').addClass('noshadow');
$('body > div:n... | javascript jquery | [3, 5] |
643,671 | 643,672 | scan barcode using android phone camera using ASP.net webpage? | <p>i am asp developer. i want to use android phone camera as scanner. How can i do that? the output need to goes in textbox on web page.
Is there is any API or Javascript for this?</p>
| javascript android asp.net | [3, 4, 9] |
726,420 | 726,421 | Java/Android regex test if in a string is a link | <pre><code>Pattern.compile("((http\\://|https\\://|ftp\\://|sftp\\://)|(www.))+((\\S+):(\\S+)@)?+(([a-zA-Z0-9\\.-]+\\.[a-zA-Z]{2,4})|([0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}))(/[a-zA-Z0-9%:/-_\\?\\.'~]*)?");
</code></pre>
<p>I have this pattern, I'd like to test if there is a link in my string.
I'd like to ... | java android | [1, 4] |
5,977,315 | 5,977,316 | Cookie grabber in Php or javascript | <p>I want to make a scrip through which i can grab the visitors cookis and store it in the txt file.can it be possible if so then help me.Doesn't matter it should be in php or javascript.</p>
| php javascript | [2, 3] |
1,982,877 | 1,982,878 | jQuery: Microsoft JScript runtim error: Object Expected | <p>I am new to jQuery. I am trying to display or hide a span based on the selection of a checkbox. Here's my code:</p>
<pre><code><script type = "text/javascript">
$('#chkShowDescriptions').change(function () {
var display = this.checked ? 'block' : 'none';
$('.desc').css('display', display);... | javascript jquery | [3, 5] |
2,130,280 | 2,130,281 | JS to jQuery to the fullest | <p>I have this:</p>
<pre><code>function createObject() {
var request_type;
var browser = navigator.appName;
if(browser == "Microsoft Internet Explorer"){
request_type = new ActiveXObject("Microsoft.XMLHTTP");
} else {
request_type = new XMLHttpRequest();
}
return request_type;
}
var http = crea... | javascript jquery | [3, 5] |
3,208,053 | 3,208,054 | SQL Syntax highlighting in a textbox | <p>In my webpage, i have a textbox and a 'execute' button. User can type a query in the textbox and clicks on execute button, it will produce results.
I want to do sql syntax highlighting in the textbox as the user types. That is, when user types <code>SELECT abc FROM table</code>, I want to show <code>SELECT</code> a... | c# javascript asp.net | [0, 3, 9] |
4,502,838 | 4,502,839 | jquery issue with on and live | <p>I have the following code:</p>
<pre><code>var $reviewButton = $('span.review_button');
$reviewButton
.live('click',
function(){
$('#add_reviews').show();
}
)
</code></pre>
<p>Later in the script, I use an AJAX call to load some content and another instance of $('span.review_... | javascript jquery | [3, 5] |
5,281,569 | 5,281,570 | jQuery - Imitate Click | <p>I want to imitate an anchor click when a user clicks on the containing <code><TD></code> but having problems.</p>
<p>This is the JS part:</p>
<pre><code>$('contactTab').click(function() {
$('contactTabLink').trigger("click");
});
</code></pre>
<p>And this is the HTML part:</p>
<pre><code><td class="... | javascript jquery | [3, 5] |
3,775,920 | 3,775,921 | Get download url from youtube htmlcontent getting error | <p>here is way to do it.. but it's showing error in row of split.. I don't know how to fix it.. please help..</p>
<pre><code>private String getDownloadUrlFromHtmlContent(String htmlContent) {
String downloadUrl = null;
String[] videoIdMatches = htmlContent.split(/\"video_id\":\s*\"([^\"]+)\"/);
return down... | java android | [1, 4] |
4,470,534 | 4,470,535 | asp.net error Cannot close stream until all bytes are written | <p>I have an web application that works fine when uploading pictures but when uploading larger videos to picasa, I sometimes get an error message. Is there a way I can know that the steam is not needed anymore so I can close it (using the keyword "using" or something) thanks for any advice.
Error</p>
<blockquote>
<p... | c# asp.net | [0, 9] |
2,352,582 | 2,352,583 | Insert text after specific character? | <p>Is it possible to insert a <code>div</code> after a certain amount of characters in a paragraph of text?</p>
<p>If I have a <code>div</code> full of text, like so:</p>
<pre><code><div class="content">
Vivamus luctus urna sed urna ultricies ac tempor dui sagittis.
</div>
</code></pre>
<p>And I want to ... | javascript jquery | [3, 5] |
1,438,810 | 1,438,811 | Does Android support jquery? | <p>I am developing an Android application,here I have decided to put page flip rotation.Just wanted to know whether Android supports jquery so that it would be easier for me to implement the logic</p>
| jquery android | [5, 4] |
5,574,203 | 5,574,204 | Is there a better method to structure this if statement | <p>It just seems a mess to me, my mind tells me there has to be a better way.</p>
<p>I have 6 controls on a web page.</p>
<pre><code>if (printer_make_1.Text != "" && printer_model_1.Text != "" && printer_make_2.Text != "" && printer_model_2.Text != "" && printer_make_3.Text != "" &... | c# asp.net | [0, 9] |
5,268,663 | 5,268,664 | How to echo something in C# in an .aspx file | <p>I know you can do this</p>
<pre><code><%= Request.Form[0] %>
</code></pre>
<p>But how do you do something like this?</p>
<pre><code><% if(Request.Form[0]!=null)
echo "abc";
%>
</code></pre>
| c# asp.net | [0, 9] |
4,883,044 | 4,883,045 | mix javascript and php | <p>i have file: <strong>file.php</strong></p>
<p>in this file is:</p>
<pre><code><script type="text/javascript">
//....
var sumJS = 10;
<?php $sumPHP = sumJS ?>
</script>
<?php echo "Sum = " . $sumPHP ?>
</code></pre>
<p>How can i assign sumJS for $sumPHP ?</p>
<p>if i would like make thi... | php javascript jquery | [2, 3, 5] |
675,066 | 675,067 | Help making a multiple choice quiz with jFormer (jQuery and PHP) | <p>I was wondering if anyone could help me out with a multiple choice quiz I'm making with <a href="http://www.jformer.com/" rel="nofollow">jFormer</a>.</p>
<p>Basically I'm really new to PHP and I'm having trouble with the following:</p>
<ul>
<li>Finding out how to arrange radio buttons vertically (at the moment I'm... | php jquery | [2, 5] |
2,126,947 | 2,126,948 | Problem in assigning js value to php variable | <p>How can i assign a javascript value to a php variable,</p>
<p>This is what i want to do:</p>
<pre><code><?php
$pag = echo "<script language ='javascript'>var pn = document.getElementById('t').value;
document.write(pn); </script>";
?>
</code></pre>
<p>But getti... | php javascript | [2, 3] |
5,460,774 | 5,460,775 | Show progress while loading image to server, using MultipartEntity | <p>I sending image to server using this code:</p>
<pre><code>public void loadImage(final File image) {
new Thread(new Runnable() {
public void run() {
try{
MultipartEntity entity=new MultipartEntity(HttpMultipartMode.BROWSER_COMPATIBLE);
entity.addPart("image", n... | java android | [1, 4] |
4,026,684 | 4,026,685 | improveddown causing scrollbar flickering | <p>I have used improveddropdown jquery plugin... my page has 10-20 dropdowns.. when the page loads the vertical scrollbars starts flickering.. it flickers because the improveddrodown jquery runs on dropdowns which takes some time... how to avoid this flickering of the scrollbar?</p>
| jquery asp.net | [5, 9] |
5,072,551 | 5,072,552 | javascript to jquery | <p>How do I write the following line which is in javascript in jQuery? </p>
<pre><code>var variablename = new functionname('some variable');
</code></pre>
<p>This is my js code: <code>var rt = new ResizeableTextbox('myRT');</code> </p>
<p>I need to use this in the following code segment: </p>
<pre><code> if($(t... | javascript jquery | [3, 5] |
1,303,145 | 1,303,146 | Is there a replaceWholeText Equivalent in jQuery? - How to replace TextNode | <p>Is there a way in jQuery to replace only the textNode of an element without destroying any child DOM elements?</p>
<pre><code><a href="#"><span>Text we don't want replaced</span> Text we want replaced</a>
</code></pre>
<p>When using <code>jquery.text([content])</code> it will replace any ch... | javascript jquery | [3, 5] |
3,983,991 | 3,983,992 | Initial step for Creating a web application in Asp.net using c# | <p>Could you advice a basic step for creating a web application using c#?
I am confused about how to use it, since I don't know how to write an event for a button, etc.
I also don't know the difference between an input button and an asp.net button.</p>
| c# asp.net | [0, 9] |
5,662,517 | 5,662,518 | jQuery / PHP - Lazy loading gallery keeps trying to fetch images even when they've all loaded | <p>I've got an image gallery that is showing one image per row inside of a div. I don't want the next image to load until it reaches the edge of the viewport (to save on server resources). All the images are named sequentially in the same folder (img/1.jpeg, img/2.jpeg, img/3.jpeg, ...).</p>
<p>I'm using a modified jQ... | php javascript jquery | [2, 3, 5] |
4,679,903 | 4,679,904 | How to compare character ignoring case in primitive types | <p>I am writing these lines of code:</p>
<pre><code>String name1 = fname.getText().toString();
String name2 = sname.getText().toString();
aru = 0;
count1 = name1.length();
count2 = name2.length();
for (i = 0; i < count1; i++)
{
for (j = 0; j < count2; j++)
{
if (name1.charAt(i)==name2.charAt(... | java android | [1, 4] |
866,122 | 866,123 | 'Activating' JavaScript for each page in large web sites | <p>I am working on a medium size web site that has plenty of custom JavaScript written for it.</p>
<p>At present all the script is stored in seperate JS files for each area of functionality. These are then minified and combined into a single, large JS file during our build process.</p>
<p>For each page, the relevant ... | javascript jquery | [3, 5] |
2,159,547 | 2,159,548 | VAR thevalue = $.function(myownfunction); ? wrong? | <p>i am using a jquery function as a variable in my javascript file .</p>
<pre><code>var thevalue = $.function(myownfunction);
</code></pre>
<p>but when i run it and firebug tells me that <strong>$.function(myownfunction);</strong> is not a function.
The function fetches a value and i want to change it into a VAR so ... | javascript jquery | [3, 5] |
3,119,032 | 3,119,033 | how to find and apply style to grand parent div? | <p>Is there a way I can find the grand parent of a div and apply style to it?</p>
<pre><code><div class="wrapBoxes">
<div class="filters"></div>
<div class="wrapContainer"> <-- Need to apply style to this -->
<div class="leftNav"></div>
<div id="containe... | javascript jquery | [3, 5] |
2,200,189 | 2,200,190 | jquery saving data until phonegap app closes? | <p>Is there a way to write data to a storage that gets erased when phonegap mobile app closes?
I used localStorage (html5) but this data does not get erased when app closes. How could I save data that last until app closes and I can't save it to variable because I use a lot of .js files and methods and don't want to pa... | javascript jquery | [3, 5] |
5,315,498 | 5,315,499 | How to get TD value using jquery | <p>I am trying to get the TD value using Value attribute.... </p>
<p>Suppose i have fallowing html mark-up </p>
<pre><code><td nowrap="nowrap" value="FO2180TL" class="colPadding" id="salesOrderNumber1">bla bla <td>
</code></pre>
<p>then i tried this- </p>
<pre><code>var soNum = $('#salesOrderNumber1... | javascript jquery | [3, 5] |
4,602,202 | 4,602,203 | Front end Java, back end C++ , how to join? | <p>Lets give an over-basic example, I have a program which goes through a directory and grabs the list of files in the directory. Assume for argument's sake that this HAS to be done in C++. I then wish to present the list of files using Java Swing? </p>
<p>How is this done?</p>
| java c++ | [1, 6] |
2,959,687 | 2,959,688 | jQuery.parseJSON single quote vs double quote | <p>What actually the difference between this?</p>
<p>This works fine:</p>
<pre><code>var obj1 = jQuery.parseJSON('{"orderedList": "true"}');
document.write("obj1 "+ obj1.orderedList );
</code></pre>
<p>but it does not work:</p>
<pre><code>var obj2 = jQuery.parseJSON("{'orderedList': 'true'}");
document.write("obj2 ... | javascript jquery | [3, 5] |
4,274,989 | 4,274,990 | JavaScript - Invoking Methods that Reference this | <p>Not sure what I'm doing wrong here, I just want to be able to have functions of an object reference the object scope</p>
<p>myscipt.js</p>
<pre><code>function MyFoo () {
this.name = 'myname';
}
function MyBar () {
this.myFoo = new MyFoo();
function setMyFoosName( name ) {
this.myFoo.name = name;
... | javascript jquery | [3, 5] |
2,130,096 | 2,130,097 | Jquery Find if response contains element | <p>How do you find if the response contains the element form </p>
<pre><code> $.ajax({
url : $(this).attr('action'),
type : 'POST',
success : function(response){
if($(response).find('form').length)
{
alert("hii");
}
}
});... | javascript jquery | [3, 5] |
1,241,615 | 1,241,616 | Wireless Localization | <p>Is there any API that shows signal strength as a parameter?
I'm working on a software that does indoor localization using signal strength!
I want to know how to retrieve signal strength from wireless adapter driver?</p>
| c# java | [0, 1] |
1,612,691 | 1,612,692 | javascript setInterval() | <p>I have this code:</p>
<pre><code>function noti() {
document.title = document.title + " 1"
}
setInterval("noti()", 1000)
</code></pre>
<p>The problem is it outputs: </p>
<blockquote>
<p>My title 1 1 1 1 1 1 1 ..... to infinite.... 1</p>
</blockquote>
<p>Is there any possible way to output this as "My tit... | javascript jquery | [3, 5] |
2,422,303 | 2,422,304 | jQuery .load() not working when called from loaded content | <p>My primary navigation [Our Clients, Our Culture, Our People] uses .load() to pull the content and display it in a div on the same page w/o refresh.</p>
<p>I would like for links within the new content to do the same, just display whatever content is being referenced in this same div. However, when they're clicked i... | javascript jquery | [3, 5] |
3,337,056 | 3,337,057 | what is the best practice of binding jQuery click event to each anchor tag on every row of a table | <p>There is a grid (just html table) that lists users and you can delete a specific user by clicking on delete link. The usual way I do is </p>
<pre><code><% foreach (var user in Model.Users) {%>
<tr >
<td align="right"><%= user.Name %></td>
<td><%= user.Level %></td>... | javascript jquery | [3, 5] |
2,486,420 | 2,486,421 | making gridview rows bold | <p>I want to bold all the rows of the gridview on the click event of the button in javascript so for e,g I have this button</p>
<pre><code><asp:button runat="server" text="Test" onclientClick="makerowsBold();"/>
</code></pre>
<p>.</p>
| javascript asp.net | [3, 9] |
1,246,994 | 1,246,995 | How to store name-value pairs in asp.net profile | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1277656/store-a-generic-dictionary-in-an-asp-net-profile">Store a generic dictionary in an asp.net profile?</a> </p>
</blockquote>
<p>I want to save name-value pairs in a asp.net profile, how can i do this?</p>
| c# asp.net | [0, 9] |
4,377,299 | 4,377,300 | javascript parseInt when value = 0 | <p>I'm using jquery.grep to clean a string and return only digits.</p>
<p>This is what I have:</p>
<pre><code>var TheInputArray = TheInput.slice();
var TheCleanInput = jQuery.grep(TheInputArray, function (a) {
return parseInt(a, 10);
});
</code></pre>
<p>I take a string, split it into an array and use the parseInt... | javascript jquery | [3, 5] |
934,944 | 934,945 | CheckBox [Entering the index to database] | <p>Add a check box to the form and then how to insert respective value 1 if checked else 0 to the database where I have a field which is of type integer. </p>
| c# asp.net | [0, 9] |
388,176 | 388,177 | Jquery increase/decrease number in input text by up/down arrows keyboard | <p>I have a basic quantity field and would like to allow the user to increase/decrease the number within this input box based on the keyboard up/down.</p>
<p>Following on from: EndangeredMassa answer on keyboard code <a href="http://stackoverflow.com/a/375426/560287">http://stackoverflow.com/a/375426/560287</a> how wo... | javascript jquery | [3, 5] |
4,822,709 | 4,822,710 | HTMLPurify - Disable Javascript | <p>I use HTMLPurify for disabling JavasSript in a textarea.</p>
<p>My problem is: </p>
<pre><code>$config = HTMLPurifier_Config::createDefault();
$purifier = new HTMLPurifier();
$va = $purifier->purify($va);
</code></pre>
<p>This removes script tags, but does not remove <code>[a href='javascript:...']link[/a]</co... | php javascript | [2, 3] |
1,025,843 | 1,025,844 | Java/Android: Reading/writing a byte array over a socket | <p>I have an Android application where I'm trying to send a picture to a server. I did this using Base64 encoding and it worked quite well, but it took too much memory (and time) to encode the picture before sending it.</p>
<p>I'm trying to strip the Android application down to where it just simply sends the byte arr... | java android | [1, 4] |
1,795,874 | 1,795,875 | How to load image from a website in android? | <p><a href="http://www.bestandroidblog.com/android-phones/which-android-phone-will-take-the-title-of-the-best-android-phone-of-2012/" rel="nofollow">This</a> site contains more than one image. But in a webview I just want to load any one of these images. How to do it?</p>
| java android | [1, 4] |
3,552,621 | 3,552,622 | Are extra $(...) calls bad? | <p>If I have code that pulls down a jQuery object, and then makes some further calls on it</p>
<pre><code>$("a.postSyncLink").click(function () {
var resultsTarget = $("span", $(link).parent().next());
resultsTarget.html("<img style='position: absolute;' src='" + waitImgUrl + "'/><span>Sync in prog... | javascript jquery | [3, 5] |
158,100 | 158,101 | jQuery $.removeAttr("selected") changes selected option | <p>Please take a look at the example: <a href="http://jsfiddle.net/HHDpK/1/">http://jsfiddle.net/HHDpK/1/</a></p>
<p>As you see the difference between two choosers is only the line</p>
<pre><code>$("#chooser-1 .y").removeAttr("selected");
</code></pre>
<p>But as a result their states are different (especially in Chr... | javascript jquery | [3, 5] |
3,538,773 | 3,538,774 | jquery dropdown selector AutoPostback | <p>In jQuery is there any way to distinguish between postbacking dropdowns and non-postbacking ones(ASP.NET 3.5):</p>
<pre><code>$('select').change(function(e)
{
//something like this
if ($(this).attr('AutoPostback') == true)
{
//do something here
}
else
... | asp.net jquery | [9, 5] |
1,594,736 | 1,594,737 | configuration settings in asp.net | <p>We have a static html/webform site, the site lacks search functionality, I was able to get yahoo BOSS (Build your Own Search Service) after a few hours yesterday, i got it working (still working on adding missing features like pagination) , I was wondering about the configuration options of the class, as I have a Bo... | c# asp.net | [0, 9] |
3,478,376 | 3,478,377 | File.isFile() returns false while trying to create a file in android from local drive | <p>I tried creating a pdf file into my device out of a file in my local drive. But File.isFile() method returns false.It returns true if i compile the program as a simple java file. Is tht android would not locate a file in the local by reading the path or I/o operations in android are totally different to java i/o.How... | java android | [1, 4] |
3,392,274 | 3,392,275 | can't access variable in another function inside object literal | <p>I have following code of <code>javascript</code></p>
<pre><code>var Obj = {
init: function () {
this.over = $('<div />').addClass('over');
$('body').append(this.over);
$('.click').on('click', this.show);
},
show: function () {
console.log(this.over);
}
}
Obj.in... | javascript jquery | [3, 5] |
2,581,762 | 2,581,763 | What is a better way to write this Javascript hover function? | <p>This works but of course is a bit redundant. Items can also be dynamically added so I need to have it always increment by one. What is a better way to write this into one function?</p>
<p>Update: Just added the markup. Bascially when a user hovers any of the list item a classname should be attached to the banner di... | javascript jquery | [3, 5] |
105,124 | 105,125 | How do I populate second textbox based on the value entered in first textbox using jquery? | <p>I am trying to populate the text fields based on the value entered in the first textbox field from the database but I am not getting any response when I enter some value into the first textbox field. Please check the code</p>
<p>Javascript:</p>
<pre><code> <script type="text/javascript">
$("#tin").blur(f... | php jquery | [2, 5] |
5,532,902 | 5,532,903 | I have a website that whenever I debug it the browser gives me and error. | <p>I have no idea what is causing this error, if you need to see my code just let me know, its a MasterPage.master that is attached to my default.aspx. </p>
<p>This is the error I get in the browser:</p>
<pre><code>Server Error in '/WebSite1' Application.
--------------------------------------------------------------... | c# asp.net | [0, 9] |
1,730,863 | 1,730,864 | what is the easiest way to retain values of fields while switching from page to page | <p>I am using Multiview. And I am switching between views. Each view contains lots of fields. I am going to another view from the current view to add some data. And after adding data from the new view, I am returning to the previous view. Now on this view I want to populate fields which I have entered before switching.... | c# asp.net | [0, 9] |
2,870,042 | 2,870,043 | List of deltas between ASP.NET 2.0 and ASP.NET 3.5 | <p>Is there a source for quickly getting up to speed with the general, programming deltas between ASP.NET 1.1/2.0 and ASP.NET 3.5? For example, I understand that cookies are no longer encouraged and you should use properties??? </p>
<p>Is there a list out there somewhere?</p>
| c# asp.net | [0, 9] |
2,832,424 | 2,832,425 | TimelineJS start_zoom_adjust | <p>I am trying to implement this and i'm pretty much done besides content but I want to adjust the start zoom but everywhere I try adding it, it doesn't work.
example of what I tried is below.</p>
<pre><code><div id="timeline">
<!-- Timeline.js will be placed here -->
</div>
<script src="http://... | javascript jquery | [3, 5] |
2,314,868 | 2,314,869 | tool to identify words and sentences with similar meaning | <p>how do I create and program a tool to identify words and sentences with similar meaning in 2 files/docs eg:today is sunny and what an eventful and sunny day.</p>
<p>any tools already available??</p>
| c# javascript | [0, 3] |
1,305,533 | 1,305,534 | Realize Countdown using PHP and JavaScript | <p>I want to write a countdown, which get the time from a server (php) and then counts down on the client side (JavaScript). Unfortunately I have only a few experience with JavaScript or JQuery. At this time the script looks like this:</p>
<pre><code><?php
$endTime = mktime(00, 00, 00, 01, 01, 2012);
$act... | php javascript jquery | [2, 3, 5] |
2,172,035 | 2,172,036 | declaring a variable blocks my code | <p>is something wrong here?
declaring those variables stops the execution of my code :(</p>
<pre><code>var color = $('fieldset input[type=checkbox]').data("color");
if(color === orange){var bgy = '-1'}
else{var bgy = '-37'};
</code></pre>
<p>If you need more info please ask me :)</p>
| javascript jquery | [3, 5] |
1,584,282 | 1,584,283 | jquery.AutoComplete.js adaptive width | <p>If <code>row[0]</code> is too long, the width of the yellow part does not adapt.</p>
<p>How can I solve this?</p>
<p><img src="http://i.stack.imgur.com/fGzuh.jpg" alt="enter image description here"></p>
<pre><code> $(document).ready(function () {
var b = $("#<%=TextBox1.ClientID %>").val();
... | javascript jquery | [3, 5] |
1,384,691 | 1,384,692 | convert number from 12 to 12.00 | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/5648205/in-php-how-to-print-a-number-with-2-decimals-but-only-if-there-are-decimals-al">In PHP, how to print a number with 2 decimals, but only if there are decimals already?</a> </p>
</blockquote>
<p>Brothers I... | php javascript | [2, 3] |
876,565 | 876,566 | JS library that has the the ability to serialize/re-hydrate elements state | <p>I am looking for a component/framework that has the the ability to serialize/re-hydrate the elements, or UI components upon the next page view. Something analogous to <code>$.serialize()</code> but for an element's properties (examples: visibility,width, top, left ).</p>
<p>All the functionality in jQuery is there ... | javascript asp.net | [3, 9] |
2,256,448 | 2,256,449 | javascript unexpected token COOKIE | <p>so i have this problem, i'm using a index.inc.php file to set a cookie and this is a must.</p>
<p>The problem of setting a cookie with server-side language is that it will not take effect on the first load. The javascript is on the template file index.tpl (Using XTemplate), the COOKIE2 and COOKIE3 are values define... | php javascript jquery | [2, 3, 5] |
2,105,713 | 2,105,714 | javascript check if text anchor text inside a link overflows | <p>Is it possible to check if the anchor text overflows when i have this css/html ?</p>
<pre><code><a href="#" style"overflow:hidden; width:100px; display:block;>
This is a very long text. This is a very long text. This is a very long text.
</a>
</code></pre>
<p>i use Jquery or pure javascript</p>
| javascript jquery | [3, 5] |
2,183,206 | 2,183,207 | Keeping the correct style classes | <p>In my drag and drop game there is a grid that is populated with words that are hidden from the user. The aim of the game is to spell these words with the aid of a sound and a picture. The user spells a word by dragging and dropping the relevant letters onto the grid. If the letter is correct it will glow green with ... | javascript jquery | [3, 5] |
1,321,322 | 1,321,323 | Gridview How to catch unique constraint value error in a control | <p>I have a gridview and sqldatasource to bind data from datatable to the gridview .</p>
<p>When I'm updating a value from a cell with a new one , and the value already exists in other cell of the gridview , I will get contraint error for unique value in a new page and it looks really bad for user.</p>
<p>How can I c... | c# asp.net | [0, 9] |
2,502,478 | 2,502,479 | Adding classes to list items based on theirs child's ID's | <p>I was wondering how to achieve something like this using jQuery:</p>
<pre><code><ul>
<li><a href="#id-220" class="id-220 id-320 id-321 id-322">Nunc tincidunt</a></li>
<li><a href="#id-320" class="id-320 id-321 id-322">Proin dolor</a></li>
<li>&... | javascript jquery | [3, 5] |
5,325,675 | 5,325,676 | Creating a callback handler to handle multiple callbacks in Android | <p>I have an Android application that interfaces 3rd party hardware through a vendor-supplied library. When data from the hardware is ready to be processed, the library calls back to my application.</p>
<p>The 3rd party library, due to it's design, only makes one callback to the application. However, my app has a few ... | java android | [1, 4] |
1,298,081 | 1,298,082 | Make a container div disabled | <p>I have a HUGE dynamic form with lots of fields. If one of the parameters is missing I should make all fields disabled (read not clickable). I was wondering if I can instead make the container div disabled using jQuery/JavaScript?</p>
| javascript jquery | [3, 5] |
3,619,846 | 3,619,847 | Where's the "new" keyword? Android Tutorial Woes | <p>While working my way through the Android tutorials, I came across something I don't understand. It's probably extremely simple, but I just need an idea why it's this way.</p>
<p>In the tutorial: <a href="http://developer.android.com/resources/tutorials/views/hello-autocomplete.html" rel="nofollow">http://developer.... | java android | [1, 4] |
5,356,425 | 5,356,426 | How can I manage the maximum number of participants? | <p>I'm using php and mysql. I created a registration form for some activities of an event. For example, for the activity A, the user must choose the hour: 9h, 11h, 14h... The user choose only one option. (select boxes). This form contains 2 activities, so for each activity and for each hour I have a maximum number of p... | php javascript jquery | [2, 3, 5] |
3,604,899 | 3,604,900 | Error in asp.net c# code | <p>I have the following code, this code was recommended to me by stackoverflow user on my previous post, its throwing some error</p>
<pre><code>protected void Button2_Click(object sender, EventArgs e)
{
String a = DropDownList1.SelectedItem.Value;
String b = DropDownList3.SelectedItem.Value.PadLeft... | c# asp.net | [0, 9] |
3,378,981 | 3,378,982 | How to set input type="number" on dynamic textbox in c# codebehind | <p>I have a dynamically created textbox in a c#/asp.net web page that I want to adapt to mobile browsers. </p>
<blockquote>
<p>TextBox qtybox = new TextBox();<br>
qtybox.ID="qtybox";<br>
qtybox.Text = "0";<br>
qtybox.Width = 30;<br>
container.Controls.Add(qtybox);</p>
</blockquote>
<p>I see that on a I ca... | 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.