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,186,222 | 5,186,223 | What was the first available version of a Java IDE | <p>A bit of a strange question, I have done quite a bit of research on this (about 5 hours now) and can't seem to come up with an answer: What was the first available Java IDE (as in an IDE for Java, not an IDE made with Java).</p>
<p>If anyone happens to know the same information for one for Javascript (ECMAScript) t... | java javascript | [1, 3] |
810,930 | 810,931 | how to set focus to first editable input element in form | <p>Dynamically created form contains input elements. First elements may be disabled or readonly.
I tired code below to set focus to first elemnt which accepts data to enable fast data enttry form keyboard.
However if form fist element is disable or readonly, focus is not set.
How to set focus to first element which ac... | javascript jquery | [3, 5] |
3,312,051 | 3,312,052 | manipulate 'temporary dom' at background | <p>This is bit tough question. I"m using third party library that will insert result into DOM. </p>
<p>Example: </p>
<pre><code>$('#puthere').thirdpartyplugin();
</code></pre>
<p>this will call <code>thirdpartyplugin</code> and manipulate result of HTML element <code>#puthere</code>. </p>
<p>My question is, how ... | javascript jquery | [3, 5] |
3,656,136 | 3,656,137 | Including and Excluding Libs at Run Time | <p>In my new Android app, I'm required to use a library when Android Version in 1.6 and 1.5 and include some other library when the version is more than 1.6.
I know how to get the Android SDK version, but I'm stuck at inclusion of specific library at run time.
Any Help ??</p>
| java android | [1, 4] |
1,971,679 | 1,971,680 | JavaScript confirm from C# codebehind | <p>I use following code-behind for javascript pop up for conforming, it works well but it does redirect the user to TestPage.aspx always regardless of user selection whether Yes or No.</p>
<pre><code>lblMsg.InnerHtml = @"
<script type='text/javascript'>
confirm('Do you want to continue?');
wi... | c# javascript asp.net | [0, 3, 9] |
5,032,918 | 5,032,919 | Program Logic to show two customized dialogs with in one onCreateDialog()? | <pre><code>public class HomeScreen extends Activity {
static final int DIALOG_ID_X = 0;
static final int DIALOG_ID_Y = 1;
button1.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
// TODO Auto-generated method stub
showDialog(DIALOG_ID_X);
... | java android | [1, 4] |
3,470,806 | 3,470,807 | Find item by key in Javascript | <p>Quick rookie question please.</p>
<p>Suppose I have a javsacript object like so: </p>
<pre><code>var meh=[["cars",27], ["bikes",85], ["skates",4]];
</code></pre>
<p>To go through each data object here, I can do this: </p>
<pre><code>$.each(meh, function(index,value){
console.log(value) //returns ["ca... | javascript jquery | [3, 5] |
4,838,507 | 4,838,508 | jquery add element if not present | <p>I'm reading a book on jQuery and it has some simple tasks and examples.</p>
<p>I'm trying out the adding of an element to a table, but only if the item is not yet present.</p>
<p>The table is this:</p>
<pre><code><table border="1" cellspacing="0">
<tr>
<td>Spaghetti</td>
<td&g... | javascript jquery | [3, 5] |
1,925 | 1,926 | Catching PHP bracket style elements with jQuery | <p>I have a legacy PHP application which uses brackets in it's naming of form elements e.g.</p>
<pre><code><select name="samplegroup[776]" id="samplegroup[776]">
<option value="1">1</option>
<option value="2" selected >2</option>
<option value="3">3</option>
</select>
&l... | php jquery | [2, 5] |
1,257,397 | 1,257,398 | anyway to get image file size using javascript(or jquery like) | <p>like:</p>
<pre><code><img src="http://www.google.com/intl/en_ALL/images/srpr/logo1w.png">
</code></pre>
<p>i want get logo1w.png file size 7.3kb</p>
<p>how to implement it?</p>
| javascript jquery | [3, 5] |
4,233,871 | 4,233,872 | ASP.NET Page_Unload to stop user from leaving page | <blockquote>
<p><strong>Possible Duplicate:</strong><br />
<a href="http://stackoverflow.com/questions/147636/best-way-to-detect-when-user-leaves-a-web-page">Best way to detect when user leaves a web page</a> </p>
</blockquote>
<p>I'm attemping to give a user the option to stay on the current page when they attem... | c# asp.net | [0, 9] |
5,426,340 | 5,426,341 | HighSlide zoom is not working | <p>I'm having trouble getting HighSlide to zoom on a div. It seems like it's partly working because I have the magnifying glass appearing when mousing over the pic in the browser, and when I click it says "Loading...", but it doesn't seem to magnify upon clicking. I'm simply trying to zoom/magnify the div dailyimg whic... | javascript jquery | [3, 5] |
5,118,063 | 5,118,064 | jQuery, multiple inputs and onBlur | <p>So I have 2 inputs. Both are for an "autocomplete". I also have 2 functions that do pretty much the same thing... Each input calls a different function onBlur. The problem is that the second upon selecting a "suggestion" for the second input, it populates the first. What can I do to make the second one populate the ... | javascript jquery | [3, 5] |
1,785,533 | 1,785,534 | How to delay the changing of a value in jQuery? | <p>I'm making a map using Raphael and jQuery. I've got a search box - when the mouse enters a region, the search box displays the name of that region, and when the mouse exits it, the search box changes to a preset text (along the lines of "type here to search").</p>
<p>However, when I move the mouse across the map, t... | javascript jquery | [3, 5] |
5,920,525 | 5,920,526 | How do I interpret. /glow.min.js?v=5 | <p>Please tell me what does /glow.min.js?v=5 means How this is used? i.e How the versioning is done here as file is one.</p>
| javascript jquery | [3, 5] |
957,025 | 957,026 | javascript or php array intersection and difference method | <p>I am looking for an error free code for getting unchanged, added, and removed items array by comparing two array.</p>
<p><img src="http://i.stack.imgur.com/QG0ba.jpg" alt="enter image description here"> </p>
<p>Is there any efficient method to obtain three arrays by using a single method ?</p>
<p>both php or java... | php javascript | [2, 3] |
1,154,733 | 1,154,734 | jQuery param dynamic object name | <p>why can't i have a variable in an object? I get an error like: </p>
<pre><code>"Uncaught SyntaxError: Unexpected token this"
</code></pre>
<p>My code is like this.</p>
<pre><code>$("#search_options input:checkbox").on('click', function() {
var params = {
$(this).attr('name') : $(this).val(),
};
var str... | javascript jquery | [3, 5] |
1,627,280 | 1,627,281 | How to show/hide the same blocks inside similar blocks with JQuery | <p>Code as follows:</p>
<pre><code><div class="mama">
<div class="son">Item 1</div>
</div>
<div class="mama">
<div class="son">Item 2</div>
</div>
$(".mama").hover(
function() {
$(".son").show();
},
function() {
$(".son").hide();
}
);
<... | javascript jquery | [3, 5] |
2,757,099 | 2,757,100 | How do I send a stream from a Java applet to an ASP .NET web site? | <p>I would like to be able to send a stream of binary data to an asp .net website from a java applet hosted in the same website.</p>
<p>I found <a href="http://java.sun.com/docs/books/tutorial/networking/urls/readingWriting.html" rel="nofollow">this link</a> which talks about this issue, but I am unsure how to actuall... | c# java asp.net | [0, 1, 9] |
4,122,761 | 4,122,762 | javascript error for the textbox | <pre><code><asp:Button ID="Button1" runat="server" Text="Button" OnClientClick ="toggletr();" />
<script type ="text/javascript" >
function toggletr()
{
debugger;
var Inputs =$get("TextBox1");
}
</script>
</code></pre>
<p>i trying this i am getting error:</p>
<blockquote>
<p>Microso... | javascript jquery | [3, 5] |
2,124,575 | 2,124,576 | IPhone over Android and vice versa | <p>I develop applications on both <strong>IPhone</strong> and <strong>Android</strong>. As a part of my organization's <em>Technical Session</em> program I have myself delivering the next session on <strong>IPhone or Android</strong>. Getting the session made me start comparing both technologies, which believe me, is r... | iphone android | [8, 4] |
446,777 | 446,778 | jQuery/JS - Count elements within element | <p>In jQuery or JS I need to count the amount of DIV elements inside my parent DIV called <code>cont</code>? I've seen similar questions here on StackOverflow and have tried the following.</p>
<pre><code><div class="b-load" id="cont">
<div>
<img src="page2.jpg" alt=""/>
</div>
&... | javascript jquery | [3, 5] |
59,336 | 59,337 | How can I get date and time formats based on Culture Info? | <p>What I want is..
If culture is en-US then</p>
<pre><code>string dateFormat="MM/dd/yyyy";
string timeFormat="24.00 hrs";
</code></pre>
<p>If culture is en-GB then</p>
<pre><code>string dateFormat="dd/mmyyyy";
string timeFormat="24.00 hrs";
</code></pre>
<p>and so on for other countries..</p>
<p>Now how do I ge... | c# asp.net | [0, 9] |
2,819,022 | 2,819,023 | is it possible to change key layout inside android application? | <p>Can I change the layout of a bluetooth keyboard just inside my application? Or in other words rebind the keys?
For example: pressing "a" enters "s" and pressing "s" enters "a"</p>
| java android | [1, 4] |
2,152,806 | 2,152,807 | Get the pasted content on document on paste event | <p>As mentioned in the Question how can I get the pasted content on document.As of now I am creating a text area and dblclick to get the focus into textarea and then on paste event of the textarea I am collecting the data. I dont think this is a good approach. My code is below </p>
<pre><code>$('body').dblclick(funct... | javascript jquery | [3, 5] |
1,038,584 | 1,038,585 | jquery check field with confirm | <p>Here is my snippet jquery code. Pratically i would check if field are empty on submit form, then if the username exist show confirm dialog.</p>
<pre><code><script type="text/javascript">
jQuery(function(){
$("#form").submit(function(){
var isFormValid = true;
if ($.trim($("#telephone").v... | javascript jquery | [3, 5] |
3,089,262 | 3,089,263 | How to use the JS variable in CodeBehind(aspx.cs) file? | <p>How can I use the variable of the Javascript method in my codebehind(aspx.cs) file??</p>
| c# javascript | [0, 3] |
703,506 | 703,507 | jQuery function calling | <p>I'm trying to have a callback call a function inside $(document).ready(..)</p>
<p>How do I call a function from outside this?</p>
<p>Like for example:</p>
<pre><code>$(document).ready( function(foo) {
var bar = function() { ... };
});
// How do I call bar() from here?
</code></pre>
| javascript jquery | [3, 5] |
5,835,272 | 5,835,273 | How Can I Know If An Input Is Checked If I Only Know His Value? | <p>I have a dynamic input in my php code like this one:</p>
<pre><code><input type="checkbox" id="advantage[]" name="advantage[]" value="Special Option" />
</code></pre>
<p>And I need to know if it's checked... I can have multiple checks in the same format in the code, my brain hurts because i can't find a solu... | php javascript jquery | [2, 3, 5] |
3,354,664 | 3,354,665 | How to get value of a selected radio button? | <p>I have a <code><div></code> with radioboxes:</p>
<pre><code><div id='RB-01'>
<span>Item_1</span><input type='radio' name='RB01' value='1'><br />
<span>Item_2</span><input type='radio' name='RB01' value='2'><br />
<span>Item_3</span><input ty... | javascript jquery | [3, 5] |
701,468 | 701,469 | jQuery Index of Hovered Button | <p>I'm not sure why I'm not figuring this out... I do this all the time. Must be having a "Monday Moment." But, basically, here's what I have:</p>
<pre><code>$('#nav ul li a').hover(hoverOn, hoverOff);
function hoverOn (evt) {
//how do I get the index of which button was hovered (from the jQuery group)?
}
</code... | javascript jquery | [3, 5] |
2,644,405 | 2,644,406 | How can I add a number to a variable to which I assigned a number in Javascript? | <p>I have the following:</p>
<pre><code>var offset;
offset = localStorage.getItem('test.MenuList.Offset.' + examID + "." + level) || 0;
offset += 100;
</code></pre>
<p>When I use the debugger this offset now has 0100. I want it to add like a number not a string. How can I do this?</p>
<p><strong>Please note</strong>... | javascript jquery | [3, 5] |
2,619,804 | 2,619,805 | How to get values from dynamically added (using javascript) elements? | <p>On my aspx page I dynamically create html controls on client side using javascript. For example, after page load you can click button in a browser, by clicking button html <em>input</em> and <em>select</em> elements appear. You may click once again, and this elements (<em>input</em> and <em>select</em>) will added a... | javascript asp.net | [3, 9] |
836,516 | 836,517 | Microsoft JScript runtime error: 'Sys.Extended.UI' is null or not an object | <p>i have a problem when on my page when its open its display error message on my page</p>
<p><strong>Microsoft JScript runtime error: 'Sys.Extended.UI' is null or not an object</strong></p>
<pre><code><ajax:ToolkitScriptManager ID="tsm" runat="server" CombineScripts="false" >
</ajax:ToolkitScriptManage... | c# asp.net | [0, 9] |
5,439,551 | 5,439,552 | how to retrieve RTF content from ClipBoard using javascript/JQuery methods | <p>I want to retrieve the RTF content from the Clipboard(Orginating from MSWord).
Is it possible to retrieve it using javascript / JQuery methods?</p>
| javascript jquery | [3, 5] |
5,270,342 | 5,270,343 | How do I see the output of data sent by JQuery to php? | <p>I have this JQuery piece of code. I want to see wht php outputs. How do I print that. </p>
<pre><code><html>
<head>
<script src="http://code.jquery.com/jquery-latest.min.js"></script>
</head>
<script>
$.ajax({
url: "script.php",
type: "POST",
data: { name : "John D... | php jquery | [2, 5] |
3,431,119 | 3,431,120 | findViewById won't work in InputMethodService, what do i do? | <p>I'm trying to create an android keyboard, this code works fine so far</p>
<pre><code>package keyboard.rob.com;
import...
public class xyz extends InputMethodService
implements KeyboardView.OnKeyboardActionListener {
private LinearLayout mInputView;
@Override public View onCreateInputView() {
mI... | java android | [1, 4] |
1,121,703 | 1,121,704 | ASP.Net - How do I programatically edit external config files at runtime | <p>By external config files, I mean .config files other than web.config. I've seen all the examples on how to edit web.config at runtime, but I want to edit a config file referenced by a configSource for appSettings. I want to modify only the external file and I will handle the app recycle.</p>
<p>Ideally I would like... | c# asp.net | [0, 9] |
2,815,954 | 2,815,955 | How to prompt user if page is idle from last 5 minuts | <p>What is the best approach to prompt user, if he is idle on webpage from last 5 minuts.
i mean how to know that use is idle on web page from last 5 minuts.</p>
| c# javascript asp.net | [0, 3, 9] |
2,399,841 | 2,399,842 | How to split the header of an image? | <p>I have designed a website which users upload some images and I store them in a folder.but anyone else can access the uploaded file via URL.
However I want to split the header of Uploaded images and insert the header in the database and store the rest of file in the folders.
How can I split the header of image?
If I ... | c# asp.net | [0, 9] |
4,801,668 | 4,801,669 | declaring vars inside object gives me error | <p>I am trying to create variables inside object as follows but it is giving me error. Here is <a href="http://jsfiddle.net/wnFUn/" rel="nofollow">DEMO</a></p>
<p>And same code is below</p>
<pre><code>var One = {
var var1, var2;
init: function () {
var1 = 'some1';
var2 = 'some2';
}
}
... | javascript jquery | [3, 5] |
3,956,182 | 3,956,183 | Get Date() object with specific time | <p>I want to get week Start Date of a week. I am able to get the date, its just that the date returned has time wrt to the current system time. For example, if its 19:20 hours right now, I am getting the week start date as <strong>Date {Mon Mar 26 2012 19:20:16 GMT+0530 (IST)}</strong></p>
<p>For accurate calculations... | javascript jquery | [3, 5] |
635,910 | 635,911 | Android development toggling TextView visibility | <p>Im having some trouble with setting textview to invisible/visible.</p>
<p>basicly i want this to happen when an on/off button has been clicked.</p>
<p>what i did is kind of like</p>
<pre><code>textview.setVisibility(TextView.VISIBLE);
textview.setVisibility(TextView.INVISIBLE);
</code></pre>
<p>when i try execut... | java android | [1, 4] |
2,393,519 | 2,393,520 | How to enable and disable the css applied for linkbutton | <p>I got 4 link button where i need to change the color of onclicked</p>
<p>Example :A B C D </p>
<p>By default apply css to A if B is clicked Apply it to B.css applied for the A Button should disable. I need the solution in server side or in client side.</p>
<p>I need the solution in the server side as i got update... | jquery asp.net | [5, 9] |
1,572,854 | 1,572,855 | Getting a specific item value in a ListBox | <p>I'm trying to get to specific item in a ListBox (asp.net, C#)
and check if it's null or not:</p>
<pre><code>if (ListBox.Items[0] == null )
{
if (HowMany.Text == arrOfWords[0])
{
ListBox.Items.Add(arrOfWords[0]);
ErrorMessege.Text = "Good!";
}
}
</code></pre>
<... | c# asp.net | [0, 9] |
2,369,849 | 2,369,850 | Need to initialize a byte[] array with ascii blank (i.e. 0x20 OR " ") | <p>Hello all Ol' Guy Newbie here ...
I've defined a string=> final static String Blank = " " ;
and a byte array
static byte[] LU62_Partner = new byte[8] ;</p>
<p>Further down in my logic I want to initialize the byte[] array with blanks</p>
<pre><code> // Prep LU6.2 Session
for ( ndx=0 ; ndx < 8 ; ... | java android | [1, 4] |
5,571,957 | 5,571,958 | Remove class on click anywhere, unless a certain textbox is clicked on | <p>I am trying to improve the following script a little:</p>
<pre><code>$(document).click(function(event) {
$('.home.active').click();
$('.home').removeClass("active");
});
</code></pre>
<p>This works, but it works when I don't want it to work. For example, I have a textbox. If that textbox gets focus, the ... | javascript jquery | [3, 5] |
3,180,235 | 3,180,236 | How to get right path files in android | <p>My code is following::</p>
<pre><code>Scanner sc = null;
try {
sc = new Scanner(new File("assets/mainmenu/readSourceFile.txt"));
} catch (FileNotFoundException e1) {
// TODO Auto-generated catch block
System.out.println(e1.toString());
e1.printStackTrace();
}
</code></pre>
<p>Then, logcat show exce... | java android | [1, 4] |
315,920 | 315,921 | Reindex javascript array / object after removing a key | <p>For example:</p>
<pre><code>var Cars = {
1: { "Make": "Honda",
"Model": "Accord",
"Color": "Red"
},
2: { "Make": "Honda",
"Model": "Civic",
"Color": "Silver"
},
3: { "Make": "Honda",
"Model": "Jazz",
"Color": "Yellow"
}
</code></pre>
<p>... | javascript jquery | [3, 5] |
3,418,749 | 3,418,750 | This JQuery works in Chrome and Safari, Not FF? | <p>I have a bunch of code that will open and close a div using the slidetoggle/toggleclass method</p>
<p>Now while the DIv is opened, I added in this little bit to allow the window to close if someone clicks outside of the now opened div.</p>
<pre><code>$("body").live("click", function() {
if($(event.target).pare... | php jquery | [2, 5] |
4,074,321 | 4,074,322 | Can you define jquery's $(function(){...}) twice on a page? | <p>I am working on a web page that pulls an external javascript file that has all of my functions in it. I'll call that file "functions.js".</p>
<p>functions.js has a jQuery has a <code>$(function(){...});</code> to do my operations when the page is ready. My question is, is it possible to also write another <code>$(f... | javascript jquery | [3, 5] |
4,960,846 | 4,960,847 | deal with multiple arrays being sent to jquery from php? | <p>This is kind of an odd question, but i'll try to explain it as possible. I have this PHP script which fetches data from MySQL. It gets the userID, Username, Email for each user and puts it in an array: </p>
<pre><code>phpoutput = Array ( [id] => 2 [name] => John [lastname] => sena )
Array ( [id] => 3 [n... | php jquery | [2, 5] |
4,393,613 | 4,393,614 | Jquery's same function for different events | <p>MY code is like this</p>
<pre><code> $(document).ready(function(){
nodeClick(elm = '');
});
function nodeClick()
{
if(elm != ''){
var obj = '';
}else{
obj = $('.hitarea')
}
obj.live('click',function(){
$(this).addClass('something');
$(this).attr('... | javascript jquery | [3, 5] |
709,990 | 709,991 | How uncheck items in AlertDialog (setMultiChoiceItems)? | <p>I'd like to clear selected items when the total came to three items selected, I am doing as follows but is not working ...</p>
<pre><code> AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setTitle(getResources().getText(R.string.escolhaArquivosBaixados));
builder.... | java android | [1, 4] |
1,587,183 | 1,587,184 | simple java script job | <p>I need a very simple Javascript on a html page, that will do the following..</p>
<p>Display a text like:</p>
<pre><code>This is a string of text and can be long
</code></pre>
<p>then if you mark some of the text with your mouse, the selected text should be inserted and automatically updated into a text field</p>
... | javascript jquery | [3, 5] |
2,905,813 | 2,905,814 | Triggering anchor click within a table using jquery | <p>I am using the below code to trigger the anchor click within the table <code>compareTable</code>, but it does not seem to take any effect. Can any1 point out the solution?</p>
<pre><code>$('#compareTable a').click(function() {
alert("hi");
});
</code></pre>
<p>Here is the <a href="http://jsfiddle.net/LSh4M/16/" r... | javascript jquery | [3, 5] |
592,128 | 592,129 | how to pass object by reference in android to make changes in orignal object? | <p>friends,</p>
<p>i have code </p>
<pre><code> DalCategories selected_object= new DalCategories();
for (DalCategories cat : DalCategories.EditPostCategory)
{
if(cat.getCategory_Id().equals(root_id))
{
selected_object = cat;
... | java android | [1, 4] |
5,903,747 | 5,903,748 | HttpContext.Current.Session is null | <p>I have a WebSite with a custom Cache object inside a class library. All of the projects are running .NET 3.5.
I would like to convert this class to use Session state instead of cache, in order to preserve state in a stateserver when my application recycles.
However this code throws an exception with "HttpContext.Cu... | c# asp.net | [0, 9] |
2,134,057 | 2,134,058 | Using PHP to Match a Javascript Timestamp | <p>Alright when I do the code:</p>
<pre><code><script type = "text/javascript" >
document.write((new Date).getTime());
</script>
</code></pre>
<p>You get the Unix timestamp in miliseconds. I need something that will match this in PHP. I need a variable to be set to that, NOT necessarily printed. The varia... | php javascript | [2, 3] |
5,107,069 | 5,107,070 | How to know the reason of blur? | <p>How can I know which event caused a blur event in jQuery?</p>
<p>Blur event triggered using <code>click or tab</code> etc. How can I know this blur event is due to click or tab?</p>
| javascript jquery | [3, 5] |
962,295 | 962,296 | Javascript getting ignored because of Response.Redirect() | <p>I am currently working on asp.net using C# and I need to show a message box and confirm the input from user and redirect to another page, my code is something like this: </p>
<pre><code>protected void Button1_Click(object sender, EventArgs e)
{
System.Text.StringBuilder sb = new System.Text.StringBuilder();... | c# javascript asp.net | [0, 3, 9] |
2,072,313 | 2,072,314 | Access datas based on user role in asp.net | <p>How to access datas based on user roles in asp.net ?</p>
<p>For example : i have two admins (admin1, admin2) .</p>
<p>In the frontend ,admin1 has full access to datas(view,add,edit,delete all datas) </p>
<p>while admin2 has limited access to datas(view,add,edit,delete certain datas alone and not all datas)</p>
... | c# asp.net | [0, 9] |
1,310,803 | 1,310,804 | Page Reload - Keeping Variables | <p>How do I go about when page is reloaded that I make sure the variables I have declared at the top o my class do not get reset. IE I have a counter that is originally set at 0 if I use a postback control it resets that variable how do i go about not having this happen in C#?</p>
| c# asp.net | [0, 9] |
4,335,508 | 4,335,509 | How can I check whether my radio button is checked within ONE div among many others? | <p>I have many div's called "each_item", one behind another.
I am trying to check whether a radio has been checked WITHIN this very div.</p>
<p>My problem is that with my jquery code (see below), all radio buttons of all "each_item" div's are tested. I probably need to use <code>$(this)</code>, but I don't know how to... | javascript jquery | [3, 5] |
1,718,002 | 1,718,003 | switch asp.net listview to edit mode without reload all data | <p>How can edit one row in listview without reload all data (i.e:reload all data in page 3)?<br/>
When i click on the edit link, every lable in each column convert to textbox (or dropdownlist or ...) without need to reload all data.<br/>
After that i click save link, and flush all change in database (with ajax).<br/><b... | c# asp.net | [0, 9] |
5,986,405 | 5,986,406 | jQuery reset refreshing browser as well as resetting form | <p>I am trying to issue a form reset to clear the contents back to there initial state. What is happening however, is that the form clears but also the browser refreshes. I have also tried putting the code inside a document ready but still the same. Can someone explain to me why this is happening. Thanks</p>
<pre><cod... | javascript jquery | [3, 5] |
3,315,441 | 3,315,442 | How to remove identical items from List<string>? | <p>I have a List in which I select users from db each time a sql query runs with certain value and selects one user in the time thus I cannot limit identical users in sql.</p>
<p>I have list with:</p>
<pre><code>list[0] = "jerry"
list[1] = "tom"
list[2] = "jerry"
</code></pre>
<p>I want any (first or last doesn't ma... | c# asp.net | [0, 9] |
529,001 | 529,002 | use php array in javascript? | <p>my php code looks like this:</p>
<pre><code>$result['firstName']['lastName']='johan';
echo json_encode($result);
</code></pre>
<p>how should i type to use this array in javascript with jquery?</p>
<pre><code>...function(data) {
alert(data.firstName.lastName);
});
</code></pre>
<p>or</p>
<pre><code>...functi... | php javascript jquery | [2, 3, 5] |
2,790,265 | 2,790,266 | Android record exists() in database? | <p>I am looking to the fastest and the correct way to check if a record exists in the database:</p>
<pre><code>public boolean Exists(String _id) {
Cursor c=db.query(TABLENAME(), new String[] {"1"}, "_ID="+_id, null, null, null, null);
if (!c.equals(null))
return c.moveToFirst();
return false;
}
</c... | java android | [1, 4] |
4,881,913 | 4,881,914 | Affix element if scroll reaches to its end | <p>Here is my HTML</p>
<pre><code><div class="container">
<div style="float::left" class="left affix-form"></div>
<div style="float::left" class="right"></div>
</div>
</code></pre>
<p>Now problem is initially left section and right section both doesn't fit to window view port. I me... | javascript jquery | [3, 5] |
3,499,237 | 3,499,238 | Don't want to submit form elements that I hide by hiding parent li | <p>I have form inputs placed in li element, and am hiding some of them by clicking a button. They get submitted even though they are hidden, so I was wondering what the alternative way would be to hide these element in a way that they will not be submitted?</p>
| javascript jquery | [3, 5] |
637,457 | 637,458 | Clicking hyperlink doesn't work if there is a colon in the link. How can I solve this | <p>In my application , users can post messages, a title and body. The message is then accessed by a user clicking the hyperlink of the title to read the message. However, if a colon is entered by the user the hyperlink is not clickable. I'm looking for the quickest, easiest way of resolving this</p>
<p>The hyperlink i... | c# asp.net | [0, 9] |
1,616,207 | 1,616,208 | How to read excel 2007 in c# | <p>My server does't have any Microsoft Office and I dont want to install Microsoft office. </p>
<p>When I use this code for reading an Excel 2007 file</p>
<pre><code>Provider=Microsoft.ACE.OLEDB.12.0;Data Source=c:\myFolder\myOldExcelFile.xls;
Extended Properties="Excel 8.0;HDR=YES";
</code></pre>
<p>It cannot read ... | c# asp.net | [0, 9] |
4,463,387 | 4,463,388 | On every click text should add in page | <p>I want to add value on every click on my function.</p>
<p>for example i click on then value is coming but i want to click again and another value should come without replacing the existing value</p>
<pre><code> <script>
function dearq(selected){
var value = $(".textvaluenonw").val();
$... | javascript jquery | [3, 5] |
2,561,488 | 2,561,489 | Can the parent view be notified when a child is created | <p>In android UI can be created dynamically so is there a way to know if a child was created to a parent ?</p>
<p>For example, if i have a linear layout as a parent and i dynamically create a child button. Is there away to notify the parent ? </p>
| java android | [1, 4] |
5,981,547 | 5,981,548 | How to iterate through Java collection in Javascript | <p>I'm trying to do scripting with Javascript in a Java program. I haven't found a way to iterate through a Java collection in Javascript. If I call the iterator() method for the collection, I get the method names instead of the elements.</p>
<p>Here's a sample code:</p>
<pre><code>function getValue(row, components) ... | java javascript | [1, 3] |
1,778,323 | 1,778,324 | Self-executing function syntax and callback sytnax explained | <p>bit of a silly question perhaps.</p>
<p>But I want to understand why the syntax on the self-executing function and the callback it has is so different to all the other JS syntax..</p>
<pre><code>(function () {
})()
</code></pre>
<p>I just need to understand why its valid to encapsulate it with <code>()</code> I w... | javascript jquery | [3, 5] |
251,070 | 251,071 | Multiple autosuggest fields, filters depending on previous results | <p>I'm trying to figure out a method to see if it is possible to have one text field value (the result of a mysql query of an autosuggest field) be used as a filter for another mysql query for another autosuggest field. As in first field autosuggests a country, and the second field would autosuggest a city based in tha... | php javascript | [2, 3] |
3,443,092 | 3,443,093 | Adding javascript inside TinyBox2 | <p>I am trying to add the following script inside the TinyBox2 ( <a href="http://www.scriptiny.com/2011/03/javascript-modal-windows/" rel="nofollow">http://www.scriptiny.com/2011/03/javascript-modal-windows/</a>) pop-up:</p>
<pre><code><script type="text/javascript" src="http://www.addpoll.com/poll-88331.js" charse... | javascript jquery | [3, 5] |
5,767,018 | 5,767,019 | How can i improve my webpage performance? | <p>I am currently working on a very heavy web page which contains a popup & this popup contains multiple tabs. each tab has multiple buttons on it. Click on a button opens a new popup which in turn opens a new popup. I am using RadWindow to open a nested popup. But, I am experiencing really bad performance. Is ther... | c# asp.net | [0, 9] |
1,231,198 | 1,231,199 | javascript If statement no working | <p>This is driving me crazy - basically this if statement is not working. The code keeps jumping into the else statement, I have hovered over the buttonText and everything seems alrite until it hits the conditions.</p>
<pre><code>function DesignCodeViewClick(el) {
$("div.divdesigncodeviewbuttonsselected").attr("cla... | javascript jquery | [3, 5] |
985,246 | 985,247 | Run a javascript on postback in c# | <p>I used the below manner to run a JavaScript upon postback and it worked fine for me.</p>
<pre><code>protected void Page_Load(object sender, EventArgs e)
{
if (this.IsPostBack)
{
Page.ClientScript.RegisterStartupScript(this.GetType(),"PostbackKey","<script type='text/javascript'>document.getEle... | c# javascript asp.net | [0, 3, 9] |
3,485,704 | 3,485,705 | Is element before or after another element in DOM | <p>Is there a means of detecting whether an element appears before or after another element in markup? This is <em>regardless</em> of position in DOM. It could be a child, a sibling, a parent or a parent's parent. This is a general question, so no markup to share.</p>
<p>To clarify - this is in regards to the element'... | javascript jquery | [3, 5] |
3,505,953 | 3,505,954 | highlite text parts with jquery, best practice | <p>i have a list of items containig names.
then i have a eventlistener, which ckecks for keypress event.
if the user types i.g. an A all names starting with an A should be viewed with the A bold. so all starting As should be bold.</p>
<p>what is the best way using jquery to highlite only a part of a string?</p>
<p>t... | javascript jquery | [3, 5] |
2,427,255 | 2,427,256 | System.Net.WebException: The underlying connection was closed: The connection was closed unexpectedly | <p>I'm am writing a .Net application which is supposed to post data to another .Net application.
I use the following code to request the login page</p>
<pre><code>WebProxy proxy = new WebProxy("http://proxy:80/", true);
HttpWebRequest webRequest = WebRequest.Create(LOGIN_URL) as HttpWebRequest;
//proxy.Credentials = n... | c# asp.net | [0, 9] |
649,336 | 649,337 | Fire off JavaScript function when textbox is populated and focus is still set in jQuery? | <p>How do I execute an JavaScript function right when an ASP.NET text box control is populated and focus is still set? The <code>onChange</code> event will not work because I need to programmatically move focus to the next form element after the JavaScript function has executed.</p>
<p>Is is very similar to this <a h... | asp.net javascript jquery | [9, 3, 5] |
458,128 | 458,129 | Creating ascx dynamically and adding controls to it | <p>I am a beginner in asp.net(C#) and stuck in an important point.</p>
<p>I have a dropdown list on my homepage which users select a category.
After selecting the category, user will fill a form which has related controls to that category in it.</p>
<p>As I have many categories, I just want to have single ascx page a... | c# asp.net | [0, 9] |
5,314,833 | 5,314,834 | Jquery get the actual control that fired the event. | <p>I have a following html:-</p>
<pre><code><button type="button" class="btn-add">
<i class="some-icon"></i>
</button>
</code></pre>
<p>which creates a nice fancy button with an icon</p>
<p>I bound an event on the button click:-</p>
<pre><code>function (e) {
console.log($(e.target));
}
<... | javascript jquery | [3, 5] |
5,119,015 | 5,119,016 | jQuery Select list, selected text value rather than the value | <p>building on my last question <a href="http://stackoverflow.com/questions/9191278/jquery-getting-values-from-multiple-selects-together">jQuery getting values from multiple selects together</a> </p>
<p>I have the select list like:</p>
<pre><code> <select name="access" class="change" id="staff_off" runat="server... | javascript jquery asp.net | [3, 5, 9] |
91,100 | 91,101 | javascript escaped string is not getting unescaped with c# regex.Unescape() | <p>I am sending an escaped string from javascript to c# controller and now i want it to unescaped in c#. I used regex.Unescape() in c# but its not working. Now how i will Unescaped it in c#?</p>
| c# javascript | [0, 3] |
197,447 | 197,448 | jquery remote validation, what would be the php code? | <p>I am using bassistance validation plugin and I need to check if the email already exists in my database, can someone please provide a sample php code for the serverside portion of this? i don't simply want to echo true or false, i want the json solution with the message option too...</p>
| php jquery | [2, 5] |
5,782,501 | 5,782,502 | jQuery highlight clickable areas | <p>I wanted to ask you if there is a way of highlighting clickable items within a basic HTML page, ideally by pressing a keyboard key.
When I build functional prototypes, to save time only some of the functionality is actually developed to show the flow. I want to somehow show which items are clickable, so users don't ... | javascript jquery | [3, 5] |
2,098,037 | 2,098,038 | Combining jQuery/JavaScript functions | <p>Is there any way to combine all of this to reduce the amount of javascript?</p>
<pre><code> $(document).ready(function() {
$(".individualImagebox img").bind("click", function()
{
var src = $(this).attr("src");
if (src.search(/Red\.jpg$/) >= 0) return;
// Removes the red over... | javascript jquery | [3, 5] |
5,179,316 | 5,179,317 | Using javascript variable in php | <p>I have a list of events displayed in a div using php . These events are fetched from the database. But I need to display the events that are near the entered city.So I used the Google distance javascript api to find the distance between the entered city and city of each event. But Iam not able to load the needed eve... | php javascript | [2, 3] |
1,029,735 | 1,029,736 | How enable a click event of a button? | <p>I disable a jQuery click event with:</p>
<pre><code>$("#button").click( function () { return false;}
</code></pre>
<p>How can I enable it? The intention is avoid double clicks and run multiple times the function that triggers.
I want to restore the event when other button was pushed.</p>
| javascript jquery | [3, 5] |
5,871,468 | 5,871,469 | javascript:variable value passing from javascript to php | <p>I have a <code>javascript</code> file <code>pet.js</code>. I want to pass a value of variable in <code>test.php</code>. But i can't.</p>
<p>my <code>pet.js</code> is like</p>
<pre><code>$('#pmWorkOrderDetailsPage').live('pageshow', function(event) {
var id = getUrlVars()["id"];
$.get("test.php", { test1: id } );
$... | php javascript | [2, 3] |
4,611,185 | 4,611,186 | jquery- info/docs about list of attributes applicable to different types of input elements in a form | <p>I am working with input elements in a form using jquery...I am trying to obtain the name of a form parameter in a web page, as well as its value (or multiple values in case its something like a drop down box)</p>
<p>I want to do some operations on these form elements... Is there some place you can point me to where... | javascript jquery | [3, 5] |
5,920,161 | 5,920,162 | unescape after server.urlencode | <p>I am trying to send "get" request to third party (api).</p>
<p>this api using javascript function "unescape" to get the url parametrs.</p>
<p>from my server side I am using this code</p>
<pre><code> string apiGetRequest = String.Format("someUrl?name={0}&city={1}&CREATEBY=test", HttpContext.Current.Server.... | javascript asp.net | [3, 9] |
2,124,965 | 2,124,966 | How to display an object stored in a database using jQuery and ASP.Net | <p>I have documents (images, Word documents, PDF's, etc) stored in an SQL Server database table. On my form, I display the names of these documents and need for the user to be able to click a document title and have the contents retrieved from the database and then opened in the default viewer; Word for example for a ... | jquery asp.net | [5, 9] |
3,771,919 | 3,771,920 | Android loading animation | <p>I am searching for some info on how to create loading animation in android. Is it possible to create this animation that i could call this animation in one thread and end in other ?</p>
<p>I seeking for this:</p>
<p><img src="http://i.stack.imgur.com/87ssF.png" alt="enter image description here"></p>
| java android | [1, 4] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.