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,009,744 | 5,009,745 | bitmap.eraseColor(COLOR.TRANSPARENT) not working on surfaceview | <p>I have a surfaceview in my layout, which i draw a bitmap to.
I make the surfaceview transparent by calling this code :</p>
<p>// framebuffer is a Bitmap</p>
<pre><code> setZOrderOnTop(true);
this.framebuffer = framebuffer;
this.holder = getHolder();
this.holder.setFormat(PixelFormat.... | java android | [1, 4] |
5,239,627 | 5,239,628 | C++ Object Graph to C# | <p>Is there a tool that will take a series of C++ headers and generate a XSD and a class that will serialize the C++ to XML?</p>
<p>Or really what we are looking for is the simplest way to migrate data from C++ to C#? We have a library in C++ that we would like to write a GUI for in C#. Using Managed wrapper classes... | c# c++ | [0, 6] |
2,227,526 | 2,227,527 | What are the tools/frameworks used to build C# ASP.net applications? | <p>I am basically a java programmer who wants to move to .net. I haven't worked in .NET companies so I don't have any idea about the tools they use. In a Java company people use Maven, Hibernate and frameworks such as JSF or Tapestry.</p>
<p>My questions are: </p>
<p>What are the tools/frameworks that .NET/C# compani... | c# asp.net | [0, 9] |
3,955,984 | 3,955,985 | Do something upon accepting an alert | <p>I want to execute some code when an alert is accept by the user, I know about this: </p>
<pre><code>if(confirm("Go to the next step"))
{
document.write("accepted");
}
else{
document.write("rejected");
}
</code></pre>
<p>the point is I want the box to have only one button like the normal alert... | javascript jquery | [3, 5] |
4,439,856 | 4,439,857 | jQuery Collapsible Panel | <p>ASP.Net, 2.0 VS2005, .Net 2.0 jQuery 1.8.3, jQuery UI 1.9.2</p>
<p>I have two panels (more will come later on) on my form that can be open or closed at the users request.</p>
<p>i am using the jQuery '.slideToggle' method.</p>
<p>This is my markup</p>
<pre><code><div class="trigger0">Collapsible Header 1 -... | jquery asp.net | [5, 9] |
3,586,215 | 3,586,216 | List Adapter and getView function explanation | <p>I'm thoroughly confused about the life cycle of list view. More specifically, what does the list adapter do exactly? Does it just provide data to the given view? And when/where does the <code>getView()</code> function gets called? And what purpose does this <code>getView()</code> function provide? From just looking ... | java android | [1, 4] |
4,461,759 | 4,461,760 | How to export an Asp.net Pi chart graph into MS Excel? | <p>How to export an Asp.net Pi chart graph into MS Excel?</p>
<p>I am using Asp.net,C#</p>
<p>Thank in advance
Rashed</p>
| c# asp.net | [0, 9] |
3,603,980 | 3,603,981 | How to return from a $.each operation? (jQuery) | <p>Example:</p>
<pre><code>var t = $.each(templos_cache, function(f,g){
$.each(g.requer, function(h,j){
if (parseFloat(g.id) == id){
alert(j.nome); // OK, return 'afrodite'.
return j.nome; // wrong, return [Object object].
}
});
return '';
});
</code></pre>
<p>Looking at the code we can see the proble... | javascript jquery | [3, 5] |
4,198,654 | 4,198,655 | embedded javascript that is based on jQuery | <p>I'm building a service that allows people to put a javascript code I gave them to their site.
The javascript code is based on jQuery.</p>
<p>My question is how to do this to be safe and optimized, cause I don't want to break certain users website.</p>
<p>The thing I'm looking for so far( you can update if you thin... | javascript jquery | [3, 5] |
2,283,037 | 2,283,038 | click function triggering function before event finishes | <p>I've built a dropdown menu that uses a slideUp event if the menu itself or anywhere in the body is clicked:</p>
<pre><code>$('html, .currentPage').click(function() {
$('.currentMenu').slideUp('fast', function() { myFunction(); });
});
</code></pre>
<p>I also have a function inside the slideUp event callback. ... | javascript jquery | [3, 5] |
4,103,594 | 4,103,595 | ANDROID: If...Else as Switch on String | <p>I'm writing an Android app for work that shows the status of our phone lines, but thats neither here nor there.</p>
<p>I make a call to one of our servers and get returned JSON text of the status. I then parse this putting each line into a SortedMap (TreeMap) with the Key being the name of the line and my own class... | java android | [1, 4] |
5,044,858 | 5,044,859 | How do I detect a mobile device (iPhone, iPad etc), using JQuery? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/3514784/best-way-to-detect-handheld-device-in-jquery">best way to detect handheld device in jQuery</a> </p>
</blockquote>
<p>Hi All,</p>
<p>I have a link on my website for the Terms & Conditions in the foot... | javascript jquery | [3, 5] |
2,247,705 | 2,247,706 | Using spinner OnItemSelectedListener() to start new intent | <p>I have a spinner and when the user selects I want to call another java class using new Intent. The code below worked when I was using a Button but now I have it attached to the Spinner select I think it has something to do with view.getContext();</p>
<p>areaspinner.setOnItemSelectedListener(new OnItemSelectedListen... | java android | [1, 4] |
4,175,893 | 4,175,894 | Get auto height of a div without cloning it | <p>I have a div element whose auto height, lets say, is 300px.<br>
On a button click, I set it's height to 500px.<br>
I would like to animate it's height back to its default height.
The only solution I know is to clone the div, store its height and use it accordingly.<br>
A <a href="http://jsfiddle.net/nLtVz/" rel="nof... | javascript jquery | [3, 5] |
4,227,341 | 4,227,342 | How to show the first n number of elements in jQuery? | <p>I have a page that has 50 elements with the same class "fields" which are all display none at the moment</p>
<pre><code><div class="fields" style="display:none;">
...
</div>
<div class="fields" style="display:none;">
...
</div>
<div class="fields" style="display:none;">
...... | javascript jquery | [3, 5] |
5,856,187 | 5,856,188 | Get call history and ping a URL with data in Android | <p>I am having issues. I have looked around as much as I can. I would like to see what you have some scratch. I am not looking for a full source code, just some help with the methods/techniques you used.</p>
<p>Basically, X times per day I want to grab any new outgoing/incoming calls and ping a URL. I need this to be ... | java android | [1, 4] |
2,891,219 | 2,891,220 | Android: float does not getting calculated | <p>Currently I'm having a problem, that drives me crazy.</p>
<p>You know, how the percentage is calculated.
It's (p/pMax)*100 , isn't it ?</p>
<p>That is just that, what I've written in code.
But I ALWAYS getting 0.0 as the result of this calculation.
See the screenshot for clarifying.</p>
<p><a href="http://i.stack... | java android | [1, 4] |
3,228,759 | 3,228,760 | Emulating Value Type Polymorphism in C Sharp | <p>I'm looking for a way to create some kind of value type hierarchical class structure. I know that enums do not support inheritence since they are value types and are therefore sealed, so I'm probably looking for some kind of static class implementation.</p>
<p>My purpose for this is to redefine roles in this ASP.NE... | c# asp.net | [0, 9] |
4,450,252 | 4,450,253 | Parsing remote JSON using Javascript? | <p>I am building an application using WorldBank API, but WorldBank API does not support JSONP. So is there a way to parse remote JSON using Javascript. Thank You</p>
| javascript jquery | [3, 5] |
256,037 | 256,038 | why can't I access this.property in my object literal? | <p>I've just been restructuring my code into objects and using the this keyword, I've got this problem whereby, setting the prop works, but then when the second method fires, <code>myProp</code> is undefined. I've noticed if I use <code>myObj</code> to set and get rather than this it works fine. What's the difference h... | javascript jquery | [3, 5] |
4,048,897 | 4,048,898 | Double quotes breaking jQuery (Very simple) | <pre><code> <?
//SQL SELECT HERE
$result = mysql_query($sql);
$options = '';
while ($row = mysql_fetch_array($result)) {
$options .= '<option>Data: ' . $row['data'] .'</option>';
}
?>
$("#multiSelect").html("<?=$options?>");
</code></pre>
<p>The above i... | php javascript jquery | [2, 3, 5] |
2,930,038 | 2,930,039 | Is using multiple base pages with inheritance the right choice? | <p>Should I be using multiple base pages with inheritance or is there a better strategy?</p>
<p>Contrived Example:</p>
<p>Currently I have 20 webpages and they all use my base-page "BasePage".</p>
<p>ie.) Page1 : BasePage</p>
<p>BasePage provides functions:</p>
<ul>
<li>Function1() </li>
<li>Function2() </li>
<li>... | c# asp.net | [0, 9] |
4,626,314 | 4,626,315 | jQuery change button attributes | <p>I have a button like this:</p>
<pre><code><input type="button" name="btn" id="btn" value="Proceed"/>
</code></pre>
<p>After all processes and get the expected result, I need to apply some changes on this button.</p>
<ol>
<li>Change the value of this button.</li>
<li>Add something to direct the current page ... | javascript jquery | [3, 5] |
4,575,823 | 4,575,824 | select list title is not showing on mouse hover | <p>I created a Select list and applied jquery UI <code>selectmenu plugin</code> like:</p>
<pre><code> <select id="test" title="This is not showing on mouse hover">
<option..>
</option>..
</select>
$("#test").selectmenu();
</code></pre>
<p>Now my problem is that the <strong>title</str... | javascript jquery | [3, 5] |
5,195,578 | 5,195,579 | Javascript splitting | <p>lets say i have this variable</p>
<pre><code>var image = "image.jpg";
</code></pre>
<p>I'm trying to split the content of the variable image and insert _thumbs into it to get something like <code>image_thumbs.jpg</code>.</p>
<p>How do i go about this?
Many Thanks.</p>
| javascript jquery | [3, 5] |
1,890,143 | 1,890,144 | Clear back navigation stack on activity intent | <p>I have a login view at the start of my application. On logging in this view is finished manually (i.e. <code>finish()</code> is called in the code). This is so that the user doesn't have to press the back button past the login page when they want to exit the app.</p>
<p>Now I want to have a <code>logout</code> butt... | java android | [1, 4] |
4,853,894 | 4,853,895 | juqery document ready() not fired in French culture | <pre><code> <script type="text/javascript">
$(document).ready(function () {
alert("doc ready");
// ...
// ...
});
</script>
</code></pre>
<p>This code works fine in US, AU, EU, Chinese, Japanese, Germany cultures, but just not in French.</p>
| jquery asp.net | [5, 9] |
1,304,395 | 1,304,396 | Data Read Returning (Invalid Attempt to Read when Reader is closed) | <p>I am trying to read an XML returned by a query, I tested the query and it is returning the XML with the correct items.. but the code behind has a problem..It reads the first item correctly but then it throws the exception.. I am not sure what is wrong (The exception happens the second time it attempts to go through ... | c# asp.net | [0, 9] |
3,786,201 | 3,786,202 | warning message while opening the excel file after export from gridview | <p>i have written code to export data but warning message i am facing while opening the excel file and by default file is saving as .html extension</p>
<p>warning - "The file you are opening in a different format than specified by the file extension"</p>
<p>i need with .xls extension to be saved
please help me</p>
... | c# asp.net | [0, 9] |
2,505,135 | 2,505,136 | static variables, what is their life span? | <p>I am using static variables in my app, lots of them. My question is, when I exit the app will they be still in memory..? If yes, how can I correct this. Thanks in advance.</p>
| java android | [1, 4] |
662,524 | 662,525 | How do I set a background on a view without affecting its dimensions? | <p>I want use a tiled background to give a texture to an existing layout. So I have created a drawable like this:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
android:src="@drawable/green-linen"
android:tileMode="repeat" >
... | java android | [1, 4] |
1,649,365 | 1,649,366 | Using Javascript/JQuery Mouseover fades in Firefox (keeps repeating) | <p>I am trying to use JS/JQuery to make tiles that will fade out then fade in with different data (In this case it is pictures) when you over on it and then reverse it when you mouse off of it. Now my code works fine in Chrome but when I test it in FireFox it keeps executing the fade in/out commands. I looked up simila... | javascript jquery | [3, 5] |
6,019,291 | 6,019,292 | loading and replacing the image in jquery | <p>I have low resolution image which is loaded first,once it is loaded i need to replace it with a high resolution image.</p>
<p>I try to do so in html img tag but in throws error saying </p>
<pre><code>Uncaught TypeError: Cannot read property 'width' of undefined
</code></pre>
| javascript jquery | [3, 5] |
4,147,794 | 4,147,795 | hide div when click on form or focus on another control or press escape key | <p>I am developing an web application. In this i provided a functionality means "autocomplete textbox". In this control, I need to show up 4 columns whenever user press keys in textbox, i need to collect these keys and send it to the service which will give us result as xml. then i convert xml to dataset and binded wi... | asp.net jquery | [9, 5] |
5,870,047 | 5,870,048 | Create order "queue" list | <p>I'm pretty new to Jquery and need a little direction to get started on setting up an order "queue" system. Short examples would help, but I'm looking more for a general outline and the know if what I'm wanting to do is even possible:</p>
<p>1) Have a "main" div where you select the item and enter the quantity for t... | javascript jquery | [3, 5] |
3,014,653 | 3,014,654 | Calculate a percentage discount and how much is saved in javascript | <p>I'm having trouble calculating a 10% discount and then showing how much was saved in <code>#value3</code>. Code: </p>
<pre><code>function priceCalc() {
var price = $("#pricing").val();
var discount = 10; // should be percentage
var total = price - discount;
var savings = ?
$("span#value1").html(price);... | javascript jquery | [3, 5] |
5,973,042 | 5,973,043 | Dynamic text box list | <p>I am trying to make a text box list using jquery. What I want is to have text that changes into a textbox when clicked. Then I want it to return to text afterwords. My problem is getting the dynamically created textboxes to focus, change the textbox text, be removed and change the text. This is my code:</p>
<pre><c... | javascript jquery | [3, 5] |
3,019,560 | 3,019,561 | How to add data items to a List<Struct> | <p>I have the following struct defined in a user control:</p>
<pre><code>public struct ColumnData
{
public string ColumnName { get; set; }
public string ColumnDataItem { get; set; }
public bool ColumnIsHyperLink { get; set; }
public string ColumnHyperLinkURL { get; set; }
public string ColumnHyperL... | c# asp.net | [0, 9] |
981,455 | 981,456 | JQUERY - fade out specifc div, wait, fade div back in | <p>I currently have this working fiddle - <a href="http://jsfiddle.net/B8Abd/" rel="nofollow">http://jsfiddle.net/B8Abd/</a></p>
<p>I would like to use jquerys fade out then fade in during the function. The code at the moment is this:</p>
<pre><code> function changetoYellow() {
//change the color of the div
... | javascript jquery | [3, 5] |
502,058 | 502,059 | word was unable to read this document. it may be corrupt | <p>"word was unable to read this document. it may be corrupt" </p>
<p>I am facing this error on server when want to open word file in C# but it works fine on my local machine. I have given all permission to the word file on server and the word file is also not corrupted. But still facing this error. Please help.</p>
| c# asp.net | [0, 9] |
1,710,349 | 1,710,350 | Help with ContextMenu with a multicolumn ListView | <p>I have a listview which displays emails with the following layout:</p>
<pre><code>email@address.com category //This could be work etc
First line of the emails subject!
</code></pre>
<p>Using the following XML:</p>
<pre><code><LinearLayout
........
android:orientation="vertical"&g... | java android | [1, 4] |
11,512 | 11,513 | converting json string into json on client side? | <p>In my javascript code I am getting json string from cs file</p>
<pre><code>var tmpString="<%=resultset2%>";
</code></pre>
<p>In cs I am concatenating strings to build json string. Here is an issue the json string is returned as a string and it has " with it.</p>
<pre><code>"[{id:'1',name:'Aik'},{id:'2',... | c# javascript asp.net | [0, 3, 9] |
1,576,862 | 1,576,863 | multiple .net applications, single point to put sites in maintenance mode | <p>I have a asp.net website that has other 'child' asp.net applications within that are setup as separate IIS applications, while others are not child applications.</p>
<p>What would be a good way to prevent users from accessing the website during deployments/updates/downtime.</p>
<p>I know I could do this using the ... | c# asp.net | [0, 9] |
5,767,310 | 5,767,311 | webservice returns rounded number instead of decimal | <p>I have a web service that returns a decimal value into my json string but it rounds it off on numbers that are 400.00 to 400 instead, but if it has 400.50 it returns 400.50 which is what i want how do i return a value that is 400 to 400.00 in that format </p>
<p><strong>Error</strong></p>
<pre>
{"Message":"LINQ to... | jquery asp.net | [5, 9] |
5,531,524 | 5,531,525 | upload file http handler file size | <p>I'm creating a small Silverlight uploader. It does 2 things: checks the file size and type and uploads the file. I'm creating an http handler on the receiving end. However, the Silverlight code can still be manipulated or bypassed and I don't want to tie up the server because someone's uploading 100MB file. How do I... | c# asp.net | [0, 9] |
1,506,196 | 1,506,197 | Creating a text file on click of a button | <p>I basically want to create a text file that will have contents that will be fetched from one of the tables in my Database. The contents should display as follows:-</p>
<pre><code>Item1 ID1
Item2 ID2
Item3 ID3
Item4 ID4
Item5 ID5
</code></pre>
<p>I want the contents exactly like this. The names of the items and IDs... | c# asp.net | [0, 9] |
2,517,301 | 2,517,302 | how to get value from a loop while using different button | <p>I need the value from a loop witch is $row->value, then when I click on button_click(href) a DIV popup will show and ask for another value that is idnumber.
At the popup a submit button will direct to next_page.php</p>
<p>I want both value from loop $row->value and at popup value=idnumber send to next_page.php</p>
... | php javascript jquery | [2, 3, 5] |
613,641 | 613,642 | Time of Timepicker get's lost on screen rotate | <p>I have an activity with following code.</p>
<pre><code>@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
// set time picker values
TimePicker picker = (TimePicker) findViewById(R.id.startTimePicker);
picker.setIs24Hou... | java android | [1, 4] |
3,112,412 | 3,112,413 | Android: Master detail project has errors right after creation | <p>I have the android 4.1 and 4.0 SDK installed on my laptop. I've done plenty of projects just using a blank activity, but when I decided to try a "master detail flow" example from within Eclipse (create new Android project, select MasterDetailFlow) the other day it wouldn't even let me build. I have errors right off ... | java android | [1, 4] |
4,785,732 | 4,785,733 | How to get a specific frame within a frameset using jQuery? | <p>My main page:</p>
<pre><code><FRAMESET>
<FRAMESET >
<FRAME name="menu" src=<%=menu%>>
<FRAME marginWidth="0" src=<%=bottom%> >
</FRAMESET>
<FRAMESET>
<FRAME src=<%=title%>>
<FRAME name="main"src=<%=main%>>
</FRAMESET>
</co... | javascript jquery | [3, 5] |
3,052,844 | 3,052,845 | Jquery toggle issue | <p>i just made a jquery work to hide and show a link on a image. the 'a' seated as position absolute on image.</p>
<p>To do this, i made this code :</p>
<pre><code>$(document).ready(function(){
var caseStudySlider = $('div.case-study-slider img');
caseStudySlider.bind('mouseover',function(e){
$(e.targ... | javascript jquery | [3, 5] |
5,925,047 | 5,925,048 | calculating the average of field entries | <p>I am trying to calculate the average of some int entries in a database table using a basic ado.net procedure but get an error that states that the cast is not valid.</p>
<pre><code>try
{
int average;
string conn = @"Provider=Microsoft.Jet.OleDb.4.0;
... | c# asp.net | [0, 9] |
251,673 | 251,674 | jQuery change append onClick | <p>I have the following jQuery code which locates the <code>ul</code> element on the page, hides any <code>li</code> items after the third item within that <code>ul</code> element and appends a <em>"Show More!"</em> text link which reveals/toggles the hidden list items when clicked.</p>
<pre><code>$('ul')
.find('l... | javascript jquery | [3, 5] |
2,505,519 | 2,505,520 | Formatting text in dynamicaly created textboxes | <p>I have jquery that generates textareas with different id's. Now i need to make some buttons that will format text inside that textareas. For example: when user clicks in certain textarea, enter text, and click "bold" button, only text inside of that textarea will become bold (in other will be normal). I did manage t... | javascript jquery | [3, 5] |
1,267,924 | 1,267,925 | From jquery back to JavaScript | <p>I need a pure JavaScript equivalent of this Jquery code:
because the use of libraries isnt allowed in my current project,</p>
<p>File handler.js</p>
<pre><code>$(document).ready(function(){
$("#some_button").click(function(){
alert('ok. works');
});
});
</code></pre>
<p>File index.html</p>
<pre><code><... | javascript jquery | [3, 5] |
1,997,186 | 1,997,187 | How can I start Google Android from scratch | <p>I am new to Google Android, how do i start with it from scratch along with all the requirements do i need to get a program running.</p>
| java android | [1, 4] |
4,115,940 | 4,115,941 | jQuery, Uncaught TypeError | <p>I have some javascript code on my webpage that is loading some divs onto the page. I also want to add onmouseenter, and onmouseleave event handlers to each div. I am using jquery to add these handlers, but i get the error:</p>
<blockquote>
<p>"Property '$' of object [object DOMWindow] is not a function"</p>
</blo... | javascript jquery | [3, 5] |
99,329 | 99,330 | pyfacebook and javascript query | <p>I'm using pyfacebook on the backend and javascript on the client side. Now if I want to pass a variable to the javascript from pyfacebook. how would I go about doing that, any ideas?</p>
| javascript python | [3, 7] |
2,639,813 | 2,639,814 | what do u mean by bluetooth chat in android | <pre><code>private static final int REQUEST_CONNECT_DEVICE = 1;
private static final int REQUEST_ENABLE_BT = 2;
public static final int MESSAGE_STATE_CHANGE = 1;
public static final int MESSAGE_DEVICE_NAME = 4;
public static final int MESSAGE_TOAST = 5;
public static final String DEVICE_NAME = "device_name";
pub... | java android | [1, 4] |
2,048,810 | 2,048,811 | using jquery/javascript to get node text | <p>i am doing this:</p>
<pre><code> if ($(this).prop('checked')) {
var checkText = $(this).next('a').text();
</code></pre>
<p>to get the node text of one of the nodes in my treeview</p>
<p>here is the HTML source:</p>
<pre><code><a class="TreeView1_0" href="javascript:__doPostBack('TreeView1','sP... | c# javascript jquery asp.net | [0, 3, 5, 9] |
493,243 | 493,244 | Creating multiple objects using for loop | <p>What I want is to create multiple view in for loop
example</p>
<pre><code>for(int i =1; i<5; i++){
GridView view = new Gridview(this);
}
</code></pre>
<p>But It creates 5 gridview with the same name.. so in future i can't set different option to a specific gridview. How do I get, that gridivew created in a loop... | java android | [1, 4] |
3,976,372 | 3,976,373 | How to resize div width with window scroll(jquery) - but only 1/3 of the divs width in the css | <p><a href="http://jsfiddle.net/95EtZ/1/" rel="nofollow">http://jsfiddle.net/95EtZ/1/</a></p>
<p>There is the problem half solved in action.</p>
<p>Right now it's set up with the containers width hardcoded in the javascript.</p>
<p>I need the js to grab the width of the container div - resize it with window scroll. ... | javascript jquery | [3, 5] |
107,278 | 107,279 | Trying to understand js call() | <p>I am trying to understand this line of code. it's from the blueimp jquery file upload. I've extracted the part I need down this line (it populates my page with images I already have). I am unclear as to why it needs to be called this way. I understand the call() method, just not clear on this - it seems extra convol... | javascript jquery | [3, 5] |
2,145,387 | 2,145,388 | How to find server control using jquery? | <p>How to find server control using jquery
e.g</p>
<pre><code>$(".tab1").find("<%=lblTab1Heading.ClientID%>"); throws exception thrown & not caught
</code></pre>
| jquery asp.net | [5, 9] |
4,631,496 | 4,631,497 | How to add DropDownlist of all users to ListView | <p>I have a ListView control, I want to edit the InsertItem Template to include a Dropdownlist Item which contains a list of users in Membership Directory.</p>
<p>I tried this:</p>
<pre><code> MembershipUserCollection users = Membership.GetAllUsers();
assigned_volunteerDropDownBox.DataSource = users;
assi... | c# asp.net | [0, 9] |
2,921,057 | 2,921,058 | how to allow a form submit only when fields are selected | <p>i have a few select fields that are dynamically created by the end user and the only way to control them is by adding a class of attribute to it so that all the selects that are displayed use this class name. What i want is when the user presses buy now the form is only submitted when all select fields have a value ... | javascript jquery | [3, 5] |
3,458,003 | 3,458,004 | Android BufferedReader instance cannot be resolved at finally trying to close it | <p>I have omitted irrelevant parts of the code:</p>
<pre><code>[...]
try {
URL url = new URL(updateUrl);
BufferedReader input = new BufferedReader(new InputStreamReader(url.openStream()));
[...]
} catch (MalformedURLException e) {
// TODO Auto-generated catch block
e.printStackT... | java android | [1, 4] |
4,573,077 | 4,573,078 | C#, ASP.net application which calls executable to create output file | <p>We are developing a web application in ASP.Net and C#. The requirement here is to interact with a third party exe which is developed in Fortran77. This third party exe produces an output file after being provided with some inputs and shuts down.In windows desktop single user application this is easily possible by us... | c# asp.net | [0, 9] |
3,889,584 | 3,889,585 | Deserialize javascript objects to generic list in c# handler | <p>Im creating some javascript items in a loop</p>
<pre><code>var licenseList = {};
$($licenses).each(function (index) {
var license = {};
var editedValues = {};
license.PRODUCT_KEY = $(this).parent('div.licensewrapper').data('productkey');
$(this).fi... | c# javascript jquery asp.net | [0, 3, 5, 9] |
1,008,916 | 1,008,917 | Android SDK: NSDictionary dictionary with objectsForKeys Equivalent | <p>I have the following objective-c code </p>
<pre><code> NSDictionary *dictionary = [NSDictionary dictionaryWithObjects:names forKeys:dates];
</code></pre>
<p>The names and dates are NSMutableArrays</p>
<p>What is the java equivalent of this code?</p>
<p>Thanks</p>
| java android | [1, 4] |
2,089,176 | 2,089,177 | Javascript OR jQuery display random element on page refresh | <p>I'm working on a website for my custom themes on a blogging site. I want to have a review section, but I only want to have one review per page refresh. I was wondering if there is any way to write a script with jQuery or javascript (I'm not sure which one) to pick a random element from an array (All of the reviews w... | javascript jquery | [3, 5] |
3,932,396 | 3,932,397 | using the jNotify plugin for jquery | <p>I am currently using <a href="http://www.givainc.com/labs/jnotify_jquery_plugin.htm" rel="nofollow">jNotify</a> to display my notifications. The problem is that all notifications seem to float over the website, instead of pushing the website down. I have looked at the above link and I can seen an option:</p>
<pre... | javascript jquery | [3, 5] |
5,926,988 | 5,926,989 | how to bundle javascript files into Java application? | <p>Javascript is executed by Java application. However, something like Jquery library is really too long to fit into a String variable. I am able to read jquery.js from a file but not sure how to package it inside the .jar file.</p>
| java javascript jquery | [1, 3, 5] |
521,518 | 521,519 | How can i restart toggle when another button is clicked? | <p>i have 2 buttons each of them has toggle function with 2 function inside the toggle.
i have a problem that i want the toggle to be restarted if the user didn't click on the same button twice for example </p>
<p>if the user clicks on X first function will fires if he clicks on Y and then re-click on X the first func... | javascript jquery | [3, 5] |
5,479,319 | 5,479,320 | How to provide a UI to generate the questions and answers | <p>I am using <a href="http://code.google.com/p/jquizme" rel="nofollow">Jquizme</a> plugin. Is there any way to provide a UI to create questions and answers instead of changing the code every time to generate the quiz, so that a non web programmer can create a quiz.</p>
<p>Is there any way to save the results, statics... | javascript jquery | [3, 5] |
2,619,211 | 2,619,212 | Where to put JavaScript configuration functions? | <p>What is the general developer opinion on including javascript code on the file instead of including it on the script tag.</p>
<p>So we all agree that jquery needs to be included with a script file, like below:</p>
<pre><code> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"
t... | javascript jquery | [3, 5] |
5,378,673 | 5,378,674 | Quotes problem when passing value to Javascript | <p>I am using like</p>
<pre><code>$myPage .= '<td><a href=\'javascript:editProduct('
.$row['id']
.',"'
.$row['name']
.'")\'>Edit</a></td>';
</code></pre>
<p>where <code>$row['name']</code> has quotes in its value. it breaks. how do i solve the issue both from php side and js si... | php javascript | [2, 3] |
5,352,672 | 5,352,673 | How to fetch data from database in jquery file | <p>I have a js file that is using an image array . in that array there is name of images that are to be used on client side page. I want that image name from database. I am using asp.net technology. Please help me out.</p>
| javascript jquery asp.net | [3, 5, 9] |
3,304,978 | 3,304,979 | What is the use of JavaScript? | <p>Why do I need script on an aspx page?</p>
| asp.net javascript | [9, 3] |
3,030,273 | 3,030,274 | Loop through a php page until session reaches a certain value | <p>I am currently developing a web based examination. all the question and answers are save on mysql database. I started the system by retrieving and displaying one question together with the answers which is on radio type. i used a session $_SESSION['questionno']=1; to indicate on what question number will be retrieve... | php javascript | [2, 3] |
2,411,369 | 2,411,370 | How can I highlight paragraphs from text input in jquery | <p>I'm starting to learn <code>jQuery</code> today. I'm currently on 24th tutorial <a href="http://www.youtube.com/watch?v=jIZFHjkUCrs&feature=BFa&list=PL6B08BAA57B5C7810" rel="nofollow">PHPachademy</a>. I'm having a lot of problems getting this particular tutorial to work correctly. I'm pretty sure it's a s... | javascript jquery | [3, 5] |
559,732 | 559,733 | jQuery post inside another javascript function | <p>I have some code like:</p>
<pre><code>function duplicatecheck(value, colname) {
var invoiceLineId = $('tr[editable="1"]').attr('id');
var invoiceLine = {
InvoiceLineId: invoiceLineId,
InvoiceId: invoiceId,
ActivityId: value... | javascript jquery | [3, 5] |
3,420,656 | 3,420,657 | constructing dynamic divs in jquery and javascript | <p>Hmmm
All the answers I've seen here suggest that this should work, but...</p>
<p>Is...</p>
<pre><code> var qnDivName = "qnDiv" + i;
var currentQnDiv = document.createElement("div");
var qnDivId = document.createAttribute("id");
qnDivId.nodeValue = qnDivName;
currentQnDiv.setAttributeNode(qnDivId... | javascript jquery | [3, 5] |
4,190,631 | 4,190,632 | Stay right there after reloading | <p>I've created an Edit button in ASP.NET (C#). When this button is clicked, it will change to a Save button and a text field will appear for editing.</p>
<p>The problem is this page is pretty long. If I hit an Edit button at the end of the page, it will be reloaded and the top page will show up. Then, I have to scro... | javascript asp.net | [3, 9] |
6,027,903 | 6,027,904 | Accessing the array with dynamic keys | <p>I have an array (name array) which is smarty assigned and I want to access the value of every element of an array. I know we need to use eval here, but not sure how to use it?</p>
<pre><code>var loop = 'true' , text , i=0;
while(loop == 'true')
{
text = ~$array[i] ;//ERROR :-(
i++;
if(text=='')
loop... | javascript jquery | [3, 5] |
5,092,597 | 5,092,598 | MenuItemClick Event Not firing | <p>I am using asp:menu.In this asp menu,on clicking menu item,I want to get the menuitem,and its parent.I tried to use menuitemclick event.But menuitemclick event is not firing on clicking menu item.Can any body help?</p>
| c# asp.net | [0, 9] |
3,698,535 | 3,698,536 | Onsubmit URL Redirection with jquery | <p>I am looking for best way to do Onsubmit URL Redirection.</p>
<p>Currently I have form like this...</p>
<pre><code><form action="dologin.php?" method="post" id="frmlogin">
<input type="hidden" value="something" />
<input type="submit" value="go" />
</code></pre>
<p>Currently this <strong... | javascript jquery | [3, 5] |
326,352 | 326,353 | Naming ID in Android Applications | <p>If you are developing Android application, you will encounter such a id naming in xml files of view and layouts : </p>
<pre><code><menu xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@+id/new_game"
android:icon="@drawable/ic_new_game"
android:title="@s... | java android | [1, 4] |
4,218,469 | 4,218,470 | getting the entire file code on the page while using include/ include_once/ require_once | <p>While using include / include_once / require_once of the form <code>include 'filename.js'; </code></p>
<p>I get the entire code of the file displaying on the page. What am i doing wrong?</p>
| php jquery | [2, 5] |
4,349,582 | 4,349,583 | Different values when ANDING and assigned uints to a char array in C++ and C# | <p>I have a very simple problem that is giving me a really big headache in that I am port a bit of code from C++ into C# and for a very simple operation I am getting totally different results:-</p>
<p>C++</p>
<pre><code>char OutBuff[25];
int i;
unsigned int SumCheck = 46840;
OutBuff[i++] = SumCheck & 0xFF... | c# c++ | [0, 6] |
2,421,629 | 2,421,630 | Efficient JQuery login script | <p>I have been able to create a login form using 2 different methods.</p>
<p>1) Use $.POST to send password to server PHP script which returns a success true flag. The form then needs to be submitted a second time so PHP 'header' can be called to load a new page (this has the ajax advantage that an error message can ... | php jquery | [2, 5] |
958,800 | 958,801 | How to clear the textbox value after 5 sec using JQuery? | <p>I have tried this :</p>
<pre><code> <script type="text/javascript">
$(function() {
$("#button").click( function()
{
alert('button clicked'); // this is calling
setTimeout(function(){
alert('setTimeout'); // this is not calli... | javascript jquery | [3, 5] |
4,231,166 | 4,231,167 | jquery show() not working | <p>im making a todo list app in php and im using unordered lists to print them out.What I want is to display the titles of todo lists to be displayed first and their contents hidden initially but displayed later via the click event in jQuery.This is what i have tried so far...</p>
<pre><code><?php
include_once "co... | php jquery | [2, 5] |
3,676,690 | 3,676,691 | How to detect if MediaRecorder is used by another application? | <p>I'm trying to detect if MediaRecorder is used by other application, to stop my recorder and continue for later use. I saw Androids Voice recorder app, it does what exactly I'm talking about, but HOW ?
Thank you.</p>
| java android | [1, 4] |
2,456,471 | 2,456,472 | How to make a readonly text box editable on mouse-over using J query | <p>I have a read-only text-box with text in it. How to make it editable on mouse-over using J query ?</p>
| asp.net jquery | [9, 5] |
4,371,079 | 4,371,080 | C++ Equivalent java.util.concurrent.ArrayBlockingQueue | <p>May I know is there any C++ equivalent class, to Java java.util.concurrent.ArrayBlockingQueue</p>
<p><a href="http://download.java.net/jdk7/docs/api/java/util/concurrent/ArrayBlockingQueue.html" rel="nofollow">http://download.java.net/jdk7/docs/api/java/util/concurrent/ArrayBlockingQueue.html</a></p>
| java c++ | [1, 6] |
57,036 | 57,037 | This difference | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1051782/jquery-this-vs-this">jQuery $(this) vs this</a> </p>
</blockquote>
<p>This code in this <a href="http://jqueryfordesigners.com/jquery-look-tim-van-damme/" rel="nofollow">video Tutorial</a></p>
<p>in a V... | javascript jquery | [3, 5] |
4,992,772 | 4,992,773 | How to PHP echo when using multiple quotes | <p>How should I quote this:</p>
<pre><code><tr onclick="$.colorbox({href:'information1.html'});">
</code></pre>
<p>When put in an <code>echo " ";</code> ?</p>
<p>I have tried this:</p>
<pre><code>echo "<tr onclick='$.colorbox({href:'information1.html'});'>";
</code></pre>
<p>Which shows a Jquery error.... | php jquery | [2, 5] |
1,626,930 | 1,626,931 | Add Javascript into a DOM | <p>Have any advice. Why I can not add the javascript into a DOM?</p>
<pre><code>var strScript = "<script type='text/javascript'></script>";
$("#someElement").append(strScript);
</code></pre>
| javascript jquery | [3, 5] |
3,413,849 | 3,413,850 | Execute automatically in a loop a function | <p>I have this slider where the gotoslide function changes the slide when the navigation links are pressed.
<a href="http://jsfiddle.net/AHYVr/" rel="nofollow">http://jsfiddle.net/AHYVr/</a></p>
<p>What is the way to make a loop where the gotoslide function autoruns from 0 to lastone and then goes back to start?</p>
... | javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.