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,846,434 | 5,846,435 | How to extend the asp.net User.Identity Property? | <p>I'm <strong><em>not</em></strong> talking about asp.net membership.</p>
<p>For each logged user I want to cache some properties like status or the number of friend requests, from the db.</p>
<p>I can create custom class which would do it but I thought it will be better to extend the existing User.Identity property... | c# asp.net | [0, 9] |
2,516,518 | 2,516,519 | Can't get jQuery to return data | <p>I have a very simple jQuery script.. all I want it to do is return the data on the PHP/HTML page but it's not working. The code is below:</p>
<pre><code>function sendData() {
$.post("validation.php", $("#c_form").serialize(), function(data){}, "html");
</code></pre>
<p>}</p>
<p>The function is called by an oncli... | javascript jquery | [3, 5] |
5,055,796 | 5,055,797 | Show or Hide div from label Click | <p>I have three labels having folowing code on all with different ids and three divs with different ids</p>
<pre><code><asp:Label ID="CA" runat="server" Font-Bold="False" Font-Names="Arial" Font-Size="10pt" style="padding-top:6px;" ForeColor="#CCCCCC" Height="100%" Text="Current Activities" onmouseover="var b = Ch... | javascript asp.net | [3, 9] |
2,228,873 | 2,228,874 | Javascript: Find out which element was clicked without attaching any eventlistener to it? | <p>I am confused on finding an approach to resolve this issue. Consider below html</p>
<pre><code><body>
<div id="parent" onclick="myFunc">
<div id="child-a"></div>
<div id="child-b"></div>
<div id="child-c"></div>
<div id="child-d"></div&g... | javascript jquery | [3, 5] |
3,761,650 | 3,761,651 | Using jquery, how to I animate adding a new list item to a list? | <p>I have a simple javascript function that allows me to add an item to a list. Note that I use JQuery...</p>
<pre><code>function prependListItem(listName, listItemHTML)
{
//Shift down list items...
$("#" + listName + " li:first").slideDown("slow");
//Add new item to list...
$(listItemHTML).prependTo(... | javascript jquery | [3, 5] |
1,066,946 | 1,066,947 | trigger login window | <p><img src="http://i.stack.imgur.com/s3kV3.png" alt="login window"></p>
<p>I do a JQuery trigger on a login button to auto login.
It works fine in IE but in Firefox i get this login window.
My question is:</p>
<p>Can I trigger the click on OK with jQuery?</p>
<pre><code> jQuery(document).ready(function(){
... | javascript jquery | [3, 5] |
4,737,007 | 4,737,008 | Update Select Menu based off another Selection | <p>I have a list of states (USA) that includes Canadian provinces, </p>
<pre><code><select>
<optgroup label="United States">
<option value="AL">Alabama (AL)</option><option value="AK">Alaska (AK)</option><option value="AE">APO state (AE)</option><option value="AO"... | javascript jquery | [3, 5] |
3,709,581 | 3,709,582 | Why is my javascript function not found by the page it is embedded in? | <p>I have a page that has a simple javascript in the header portion of the page:</p>
<pre><code><script type="text/javascript">
function doLogout() {
var conf = confirm("Really log out?");
if (conf === true) { //changed == to === for boolean comparison
$.post("logout.aspx");
... | asp.net javascript | [9, 3] |
4,026,149 | 4,026,150 | Get browser URL with jQuery | <p>I have this code</p>
<pre><code>var pathname = window.location.pathname;
</code></pre>
<p>That take the current browser url</p>
<p>How can i paste the pathname into an html element like a p tag?</p>
| javascript jquery | [3, 5] |
1,148,050 | 1,148,051 | jquery cycle thru list one at a time when keypress | <p>I have a input box and below it, a basic list. When you press arrow-down (or arrow-up) from within the input box, I'd like to highlight/change-background of the first list item (as if it was being selected). </p>
<pre><code><div><input id="frmartist" type="text" value=""/></div>
<ul id="artis... | javascript jquery | [3, 5] |
4,892,610 | 4,892,611 | how to set the values of the forms and make it stick even after refresh? | <p>I have a long form, wherein, when I click the submit button the external js validation fires up and checks the validity of the input fields. If all the input fields passed the validation a jquery modal pops out asking the user to register or login.</p>
<p>Now, if the user choses to register and finishes registering... | php javascript jquery | [2, 3, 5] |
3,345,431 | 3,345,432 | Add Entry to DB, Upon Success Refresh Messages | <p>So it's not a complicated matter at all, but was wondering how the Stackoverflow community would tackle this.</p>
<p>I wrote a facebook-style wall type thing where users enter their "status", it gets processed via jQuery Post and upon success returns a success message. </p>
<p>Prepending the new message to the Wal... | php jquery | [2, 5] |
2,814,523 | 2,814,524 | JQuery Sync 2 Checkboxes | <p>I am using the following code to sync 2 input boxes.</p>
<pre><code>$("#input_box_1").bind("keyup paste", function() {
$("#input_box_2").val($(this).val());
});
</code></pre>
<p>The above works great but I need to do the same for a checkbox.</p>
<p>My question is...how do I modify the code for it to work with... | javascript jquery | [3, 5] |
775,377 | 775,378 | what is the difference here in this use of JSON.stringify()? | <p>what is the difference in the following between the result of <code>p</code> and <code>q</code> and why would you do either way, which is best?</p>
<pre><code> var my = [
{"a":"sdsds"},
{"b":"sdsds"},
{"c":"sdsds"},
{"d":"sdsds"},
... | javascript jquery | [3, 5] |
4,601,200 | 4,601,201 | JQuery - also trigger change on click away | <p>I have a basic JQuery script that changes a few divs when you click - thus showing them - via toggle.</p>
<pre><code><script type="text/javascript">
$('#content_display').click(function() {
$(this).toggleClass('selected');
$('#content_display_selector_container').toggle();
});
<... | javascript jquery | [3, 5] |
1,048,957 | 1,048,958 | Android: Incrementing an integer causes an allocation | <p>The following line appears in the allocations pane of eclipse:</p>
<pre><code>Alloc Order Allocation Size Allocated Class
509 12 java.lang.Integer
</code></pre>
<p>It references this line of java code:</p>
<pre><code>MyInteger++;
</code></pre>
<p>I changed it ... | java android | [1, 4] |
300,225 | 300,226 | horizontal scroll - like github | <p>Is there a javascript library which lets me do the horizontal scrolls effect kind like github does when you click on a file/folder. </p>
<p>Preferrably jQuery plugin.</p>
<p>thanks</p>
| javascript jquery | [3, 5] |
8,275 | 8,276 | Prevent jquery browser scrolling to top on click | <p>I have the following script for a thumbnail image viewer. I've named each thumbnail image and large parent image ending in thumb and large, respectively. The script replaces the large image with whatever thumbnail image is clicked on by changing the filepath.</p>
<pre><code><script>
$('.thumbs').delegate('i... | javascript jquery | [3, 5] |
3,374,864 | 3,374,865 | Performing a Response.Redirect from a non-Web based project | <p>I have created a utility method that contains some try/catches in it. In those try/catches I need to redirect the customer using an HttpResponse redirect. I can't seem to figure out how to do this outside a web project. This utility class is referenced from my ASP.NET web project and so I'm just abstracting out s... | c# asp.net | [0, 9] |
1,583,954 | 1,583,955 | How to get "public static final int" value by name? | <p>I created a class to extend KeyEvent:</p>
<pre><code>public class myKeyEvent extends KeyEvent {
public static final int MY_KEYCODE_01 = KeyEvent.KEYCODE_A;
//...
public static final int MY_KEYCODE_30 = KeyEvent.KEYCODE_Z;
}
</code></pre>
<p>Now, i want to get the Integer value by the variable name (eg.... | java android | [1, 4] |
2,627,448 | 2,627,449 | syntax error: insert } to complete ClassBody | <p>I created a method and keep getting an error that I need to include a } at the end of my method. I put the } in and the error is still there! If I then delete that } the same error will pop up on a prior method; and that error wasn't there before. in other words, if i type the } on my most recent method then the err... | java android | [1, 4] |
5,389,026 | 5,389,027 | How to get clientID if textbox name is in string variable | <p>I have written below code to check for blank value in my textbox but its generating compilation Error, please provide me solution.</p>
<p>my code in javascript:</p>
<pre><code> function checkTextboxNotFilled(txtbox) {
var txtb = document.getElementById("<%= " + txtbox + ".ClientID %>");
if (G... | asp.net javascript | [9, 3] |
1,021,720 | 1,021,721 | What is the equivalent to SoapExtension for JSON WebMethods? | <p>I've a few web methods that I use to call some external services like the Google Calendar API, obviously these can be extremely brittle.</p>
<p>Unfortunately I now realise that any error thrown on these methods are not causing an exception to bubble up to Global.asax which is where errors are getting logged in this... | c# asp.net | [0, 9] |
1,662,896 | 1,662,897 | jQuery reversing prependTo order | <p>I have a small problem, I have some static content inside a div and I need to add some extra content to it, prependTo works good, but the new content comes after the exisiting one.
appendTo comes before the exisiting content, but each new appended content comes before the previous append.</p>
<p>Hard to explain, so... | javascript jquery | [3, 5] |
3,784,448 | 3,784,449 | Fire Event With Repeater into Repeater | <p>Good Afternoon People, I'm using a Repeater, and within that repeater there is another repeater, there is a button for each item. When I click on one of these buttons asp.net returns me the following error:</p>
<blockquote>
<p>Invalid postback or callback argument. Event validation is enabled
using in configu... | c# asp.net | [0, 9] |
1,858,386 | 1,858,387 | Get Item ID From Context Menu | <p>hey people,
I am trying to get the id of the item, in this case a table row, that was long pressed to bring up the context menu. This is my code so far.</p>
<pre><code>@Override
public void onCreateContextMenu(ContextMenu menu, View v,
ContextMenuInfo menuInfo) {
super.onCreateCon... | java android | [1, 4] |
4,706,901 | 4,706,902 | how to change the text color using jquery or javascript | <p>I have a two items(rows) in the list box</p>
<p>I love to work with jquery
i love to work with javascript</p>
<p>I have textbox and button when I enter love in the text box when I click button i need to loopthrow this list box to find the text love and change that love text color? to yellow.</p>
<p>thanks</p>
| javascript jquery | [3, 5] |
2,218,796 | 2,218,797 | jQuery toggle(); | <p>I am loading data dynamically by AJAX into a cluetip (<a href="http://plugins.learningjquery.com/cluetip/#" rel="nofollow">http://plugins.learningjquery.com/cluetip/#</a>).</p>
<p>I want to toggle the results from a link like so: </p>
<pre><code>$(document).ready(function() {
$("#calendarLink").live("click",( ... | javascript jquery | [3, 5] |
2,464,790 | 2,464,791 | JS: setInterval and clearIntervals with jQuery | <p>I'm probably tired for staring at this for too long,
maybe someone can clear this up for me:</p>
<pre><code>//scripts in whispers are setup this way.
var something = function(){
setInterval(function1,1000);
setInterval(function2,1000);
blah .. blah...
}
//function2 is the same as this one
var function1... | javascript jquery | [3, 5] |
1,789,777 | 1,789,778 | ProfileBase.GetProperty() does not work on a new thread | <p>Why does this code not work if called within a new thread? The error returned is <code>Object reference not set to an instance of an object.</code> on the </p>
<pre><code>return pb.GetPropertyValue("Name").ToString();
</code></pre>
<p>this works</p>
<pre><code>GetFullName(m);
</code></pre>
<p>while this doesnt</... | c# asp.net | [0, 9] |
4,070,810 | 4,070,811 | Displaying random images at runtime | <p>I am trying to display random images</p>
<p>heres my code</p>
<pre><code>
private void Page_Load(object sender, EventArgs e)
{
int num1=0;
Random randNum = new Random();
num1 = randNum.Next(0, 9);
Image1.ImageUrl = DisplayNumber(num1);
Image1.Visible=true;
}
protected string DisplayNumber(int i)
{... | c# asp.net | [0, 9] |
2,344,303 | 2,344,304 | Code coming back from script not detected by jquery | <p>I basically have a div container which i am reusing to fill with different data, depending on the link that is clicked.</p>
<p>This div container has a class name of "test_bed" and the anchors used to populate it have class names of "linkA", "linkb" etc.</p>
<pre><code>$(document).ready(function(){
$("a.link").c... | php jquery | [2, 5] |
5,567,813 | 5,567,814 | Boolean assignment in java | <p>Can you explain this assignment? What does it mean? </p>
<pre><code>boolean activityExists = testIntent.resolveActivity(pm) != null;
</code></pre>
| java android | [1, 4] |
4,913,111 | 4,913,112 | C# application fails to call a method from C++ DLL/Project | <p>I try to integrate Web Camera support into C# solution. 1st of all I have learnt the nice example from Touchless.Vision. It contains C# solution with 3 components :
- one windows form project (C#, Any CPU)
- one wrapper project (C#, Any CPU)
- WebCamLib project (C++, x64)</p>
<p>I use Win7 x64.
So the example works... | c# c++ | [0, 6] |
357,490 | 357,491 | Local Storage using Javascript / Jquery (Without using HTML5) | <p>I want to replicate Local Storage concept (similar to HTML5) in javascript or jquery.</p>
<p>But unfortunately I don't have idea, how to start this.</p>
<p>Can any one suggest how to implement local storage using javascript or jquery (Without using HTML5)?</p>
| javascript jquery | [3, 5] |
3,381,796 | 3,381,797 | how to get value from SharedPreferences? | <p>I have been making application which uses Preferences. I have following PreferenceActivity:</p>
<pre><code>public class PreferencesActivity extends PreferenceActivity{
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
this.addPreferencesFromReso... | java android | [1, 4] |
4,062,593 | 4,062,594 | Validate the string entered is of mm/dd/yyyy format | <p>I have a datepicker control for the users to pick the date, however, they also need to enter the date manually. As such, I need to validate the date entered by the user in the textbox.</p>
<p>Below is the code that I am using to validate </p>
<pre><code> DateTime Test;
if ((!string.IsNullOrEmpty(strtdate)))... | c# asp.net | [0, 9] |
74,115 | 74,116 | Email Validation | <p>I am checking the validation for email using regular expression its working fine for me. What if the user give some dummy mailid in the textbox? </p>
<p>How can i check whether the entered mail is valid or not without telling the user to login to that mail and click subscribe link? </p>
<p>Is it possible to check ... | c# asp.net | [0, 9] |
1,325,302 | 1,325,303 | Removing text from an array | <p>I have the following script which works:</p>
<pre><code>classes = $(this).attr("class").split('_');
</code></pre>
<p>If <code>$(this)</code>'s class was:</p>
<pre><code>class="billed_department_employee_client_code"
</code></pre>
<p>The end result would look like this:</p>
<pre><code>["billed", "department", "e... | javascript jquery | [3, 5] |
4,950,537 | 4,950,538 | asp:hyperlink navigation | <p>I am using asp:hyperlink button to open a Terms and Condition pop up window.
Code for the hyperlink is -</p>
<pre><code><asp:HyperLink ID="HyperLink4" Target="_blank"
NavigateUrl="javascript:window.open('test.aspx');"
ForeColor="#F58022" runat="server">Terms and Conditions</asp:HyperLink>
</code... | c# asp.net javascript | [0, 9, 3] |
3,100,316 | 3,100,317 | "in" statement in Javascript/jQuery | <p>Does Javascript or jQuery have sometime like the "in" statement in Python?</p>
<p>"a" in "dea" -> True</p>
<p>Googling for the word <em>in</em> is hopeless :(</p>
| javascript jquery | [3, 5] |
1,655,807 | 1,655,808 | Enable input filed on radio button checked | <p>I have 2 radio buttons and 2 input fields. I want to associate a radio button with a input field. So only the selected radio buttons input field will enable and others are disabled. My html markuo is :</p>
<pre><code> <div>
<input type="radio" checked="checked" name="co" dat... | javascript jquery | [3, 5] |
632,796 | 632,797 | to display doc file in text format asp.net c# | <p>i want to read content of file.but these code is not helping.</p>
<pre><code>string[] readText = File.ReadAllLines(path); this line is giving error.
protected void btnRead_Click(object sender, EventArgs e)
{
string path = fileupload1.PostedFile.FileName;
if (!string.IsNullOrEmpty(path))
{
strin... | c# asp.net | [0, 9] |
2,512,447 | 2,512,448 | Using javascript and jquery, to populate related select boxes with array structure | <p>Using answers to <a href="http://stackoverflow.com/questions/57522/javascript-array-with-a-mix-of-literals-and-arrays">this question</a>, I have been able to populate a select box based on the selection of another select box. ( <a href="http://stackoverflow.com/questions/57522/javascript-array-with-a-mix-of-literals... | javascript jquery | [3, 5] |
1,764,861 | 1,764,862 | jQuery ajax load a page with an automatic download | <p>I have a page that produces a PDF and automatically downloads the file. </p>
<p>I have to submit some variables to the page for the PDF be produced. Right now I have it submitting a form using jQuery like this <code>$("#expForm").submit();</code>. I am submitting form jQuery because I have to apply some logic befor... | javascript jquery | [3, 5] |
749,602 | 749,603 | how to calcualate bounding box withing given distance | <p>I am developing a website in which i want to give a search functionality for user..the search feature will detect the users current location and will show all the business within 10 kilometer from the user's current location..
businesses are stored in database..
please can anyone help me?</p>
| php javascript | [2, 3] |
5,429,525 | 5,429,526 | Delay function of jquery to load? | <p>I want to delay blocking by 2 seconds while executing this code. How can I do that ? I tried setTimeout but it did not worked.</p>
<pre><code>document.getElementById('<%=btnSave.ClientID%>').disabled=true;
document.getElementById('<%=btnSave.ClientID%>').value='Saving...';
$('#Block').block({message:'Pl... | asp.net jquery | [9, 5] |
2,478,723 | 2,478,724 | how to convert Bitmap into a View? | <p>I have a back.png file which I need to </p>
<ol>
<li>assign to a variable and convert to bitmap</li>
<li>apply a hue function to it</li>
<li>and put it back</li>
</ol>
<blockquote>
<pre><code>a = BitmapFactory.decodeResource(this.getResources(),R.drawable.back);
b = Hue(a);
View c = (View)findViewById(R.drawable... | java android | [1, 4] |
4,114,721 | 4,114,722 | Change another MenuItem onClick of one | <p>My problem is that I want to change the icon from a MenuItem from Visible to not being Visible, but this ofcourse needs to go via the onOptionsItemSelected. If I call on menu, it gets the MenuItem where is clicked on, while another one needs to be hidden. And I also checked on defining the MenuItem and findViewById,... | java android | [1, 4] |
2,054,859 | 2,054,860 | jQuery Floating Div with Bottom Limit | <p>Trying to duplicate the mashable effect with two menus. I got the scrolling effect working, but I was looking for the effect to stop at the top of the footer. I was thinking I could do a conditional statement with the limits, but I wasn't sure how to pull it off.</p>
<p>Here is the javascript I'm using.</p>
<pre><... | javascript jquery | [3, 5] |
286,856 | 286,857 | Display date on the basis of culture | <p>I want to display the date time (which I've placed on master page); in different language on the basis of current culture.</p>
<p>My javascript code on master:</p>
<pre><code> <script type="text/javascript">
var t;
$(document).ready(function pageLoad() {
setTimeout('SetTime()',... | c# javascript asp.net | [0, 3, 9] |
2,228,927 | 2,228,928 | Dynamically editable pop-up menus in Android Java | <p>I'm working with an existing Android app and I need to have a dynamically editable pop-up menu or something functionally equivalent. I want the menu to appear at the bottom of the screen or the top (out of the way, the user needs to see what is going on with the screen). That menu will display information, <em>not</... | java android | [1, 4] |
2,466,888 | 2,466,889 | Cant add jquery to the head dynamically and run jquery code | <p>I have got this code:</p>
<pre><code>function init(){
if (typeof window.jQuery !== 'function') {
var link = document.createElement('script');
link.src = 'http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js';
document.getElementsByTagName('head')[0].appendChild(link);
}
}
... | javascript jquery | [3, 5] |
1,462,409 | 1,462,410 | string to two dimensional array | <p>i would like to convert this string:</p>
<pre><code>'[
['Row1 of first array', 'Row2 of first array'],
['Row1 of 2nd array', 'Row2 of 2nd array']
]'
</code></pre>
<p>Into an array with three arrays of one dimension and two items.</p>
<p>My expected output is an array with 2 elements:</p>
<ul>
<li>Array 1</... | javascript jquery | [3, 5] |
1,989,030 | 1,989,031 | JQuery script runs twice | <p>some JQuery scripts in web page runs twice. What is all about ? Maybe somebody faced such problem ? </p>
<p>For example(code that gets total items number from DB and runs in $(document).ready(function(){}); ):</p>
<pre><code>$.post("/index/getitemscount/", {} ,function(data){
$('#items_count_div').html... | javascript jquery | [3, 5] |
5,226,054 | 5,226,055 | Remove empty tags in a HTML doc with jQuery | <p>im trying to remove empty p tags using jquery. </p>
<p>Ive written the following only it doesnt seem to work...</p>
<pre><code> $( 'p:empty' ).remove();
</code></pre>
<p>Heres a live demo...</p>
<p><a href="http://jsfiddle.net/CuJXG/" rel="nofollow">http://jsfiddle.net/CuJXG/</a></p>
| javascript jquery | [3, 5] |
3,646,679 | 3,646,680 | How to convert DB2 timestamp to datetime? | <p>How do I convert a timestamp returned from DB2 ISeries to DateTime datatype in c#?</p>
<pre><code>2012-07-06 09:52:50.926145
</code></pre>
<p>This did not worked for me</p>
<pre><code>myEmployee.LastModified = Convert.ToDateTime(myRecord.GetString(myRecord.GetOrdinal("LASTMODIFIED")));
</code></pre>
| c# asp.net | [0, 9] |
5,503,586 | 5,503,587 | JavaScript and JQuery - Encoding HTML | <p>I have a web page that has a textarea defined on it like so:</p>
<pre><code><textarea id="myTextArea" rows="6" cols="75"></textarea>
</code></pre>
<p>There is a chance that a user may enter single and double quotes in this field. For instance, I have been testing with the following string:</p>
<pre><c... | javascript jquery | [3, 5] |
1,774,931 | 1,774,932 | Check if button was clicked in PHP from serialize() jquery | <p>I'm building a form to allow someone to change the color of buttons, to be used on a webpage, via a web GUI. It's set up to submit the changes via ajax, with jquery, for preview prior to the user clicking the save submit button so they can make sure they like the changes before saving them.</p>
<p>I understand that... | php javascript jquery | [2, 3, 5] |
2,733,259 | 2,733,260 | calling master page constructor from content page | <p>I have parameterized constructor for the master page and no default constructor.
How can i call the master page constructor from content page constructor.</p>
<pre><code>BaseClass(): Master.Master(x)
or
BaseClass()
{
Master.Master(x)
}
</code></pre>
<p>both does not work</p>
<p>Thanks a lot in advance for help,... | c# asp.net | [0, 9] |
3,829,121 | 3,829,122 | Jquery binding to keyup | <p>I'm having some problems binding to the keyup event of a textarea control. I'm trying the below</p>
<pre><code>var shortDescInput = $('nobr:contains("Short Description")').closest('tr').find($('textarea[title="Short Description"]'));
// this doesn't work
shortDescInput.bind('keyup', function () {
c... | javascript jquery | [3, 5] |
3,264,135 | 3,264,136 | drag a textarea when the cursor is inside the control | <p>i am making a textarea draggable using jquery UI....basically im making a div draggable and in that div is my textarea. when u drag the div the textarea drags too. the problem is that if my mouse pointer is inside the textarea, and i try to drag the control, it fails. so basically when the pointer changes the shape ... | javascript jquery | [3, 5] |
200,176 | 200,177 | Fire javascript (lightbox) once per session | <p>Hey all I have a quick javascript question! Frustrated trying to get it sorted.... right now my modal div shows after 10 seconds which is right, but I want to only show it <strong>ONCE</strong> per session. Here's my current code:</p>
<pre><code><script type="text/javascript">
$(function() { // wait for th... | javascript jquery | [3, 5] |
4,016,418 | 4,016,419 | How to convert selectors and event capturing from jQuery to plain JS? | <p>Can someone please help with converting this code to plain JS:</p>
<pre><code>$(document).ready(function() {
$("textarea").bind("keydown", function(event) {
var textarea = $(this).get(0);
//further will need only textarea and event vars
}
});
</code></pre>
<p>I don't care about cr... | javascript jquery | [3, 5] |
1,548,645 | 1,548,646 | pre-increment and post-increment in PHP | <p>the result of the following statement should give 9 : (using java or js or c++)</p>
<pre><code>i = 1;
i += ++i + i++ + ++i;
//i = 9 now
</code></pre>
<p>but in php </p>
<p>the same statements will give 12 ?!</p>
<pre><code>$i = 1;
$i += ++$i + $i++ + ++$i;
echo $i;
</code></pre>
<p>is this a bug or can anyone ... | java php javascript | [1, 2, 3] |
4,688,334 | 4,688,335 | Speed of Java vs. JS / HTML / CSS for web applications | <p>I am creating a web application. I have primarily used Javascript specifically jQuery. Because of some very specific functionality, I am running into practical limitations of Javascript--they're not hard limitations but stuff that I would find easy in Java, like making an equation editor where you can edit directl... | java javascript | [1, 3] |
3,154,888 | 3,154,889 | Using methods of classes in android programming | <p>Hi everyone I am a beginner in android, please help.
I have DBAdapter class which has different methods to manipulate my db.
I want to call the method i.e. insert when button is clicked. However it only works outside of listener (View.OnClickListener). </p>
<pre><code> package com.dbclass;
import android.ap... | java android | [1, 4] |
4,803,098 | 4,803,099 | Interested in writing a computer game to improve my programming | <p>I've been trying to think of a good project to improve my programming skills. I'm heavilly interested in finance, but getting the data isn't so easy, therefore I thought I would try to make a simple computer game. The problem I have is I am not very 'graphics' savy. To be honest I dont know much about computer graph... | java c++ | [1, 6] |
2,023,020 | 2,023,021 | Which pattern jQuery $.fn.extend or $.extend use | <p>I was just reading <a href="http://stackoverflow.com/questions/3790909/javascript-module-pattern-vs-constructor-prototype-pattern">Javascript: Module Pattern vs Constructor/Prototype pattern?</a> and I was curious to know that when we extend our class with $.fn.extend or $.extend which pattern is used, Module Patter... | javascript jquery | [3, 5] |
2,619,482 | 2,619,483 | Using jQuery.get with a file up a directory? | <p>I'm using jQuery to write a simple utility app that's just run locally. It'll read from a list of files using jQuery.get and then display them along with some meta-data (which resides in a separate file). The images and meta files live in ../scored_images/*.[jpg|meta]</p>
<p>I can load the file list with jQuery.g... | javascript jquery | [3, 5] |
362,900 | 362,901 | how to access div id in same "table td" using jquery | <p>I have the following code : </p>
<pre><code><td>
<div id="div<%# Eval("Id") %>" class="Display"><%# Eval("Display") %></div>
<div class="Actions">
</div>
<div class="Comment">
<span>Comment </span>
<input id="txt<%# Eval("Id") %>" ty... | javascript jquery asp.net | [3, 5, 9] |
2,604,127 | 2,604,128 | Finding the device model and make | <p>How do I find the make and model of an Android device?</p>
| java android | [1, 4] |
3,385,859 | 3,385,860 | Avoid Page refresh on button click? | <p>I have this .net page where I have a media player control and a button. The button functionality is to call a stored procedure. I need the page NOT to reload and stop the video when the user clicks the button.</p>
<p>Is there a way to do this?</p>
<p>Here is the code</p>
<p>watching.aspx</p>
<pre><code><div i... | c# asp.net | [0, 9] |
4,131,036 | 4,131,037 | How to check if a EditText field has change content under runtime in Android. | <p>How can I check if two EditTextField has changed content under runtime i android? I want to enable a button if both EdutTextField has some content. Thanks in advance.</p>
| java android | [1, 4] |
1,473,710 | 1,473,711 | JS Jquery Namespace Calling Functions | <p>Ok terrible title but I couldn't think of another description.</p>
<p>I have the following code:</p>
<pre><code>jQuery( document ).ready( function( $ )
{
$.myNamespace = {
init: function()
{
$('.button').click(function() {
this.anotherFunction();
... | javascript jquery | [3, 5] |
3,029,443 | 3,029,444 | Hard-coding button's width in dimension units | <p>I've got the hard-coded layout, consisting of <code>Button</code>s, and need to enlarge some of them. I found <code>Button</code>'s method <code>setWidth(int value)</code>, accepting width in pixels, but I need to set value in <code>dp</code>. So, how can I set <code>dp</code> value in program code?</p>
| java android | [1, 4] |
2,563,563 | 2,563,564 | jquery PHP image upload (using .post method) | <p>I am trying to upload images on a form but I am using Jquery .Post function in order to submit the data of the form. I get a PHP error of an undifined index. Here is a small portion of my code:</p>
<p>related HTML:</p>
<pre><code><input type="hidden" name="MAX_FILE_SIZE" value="1000000" />
Picture: <inpu... | php jquery | [2, 5] |
5,651,036 | 5,651,037 | Call function named clearState? (java/android beginner) | <p>Here's the code:</p>
<pre><code>public CellState(Context context, GameState state) {
super(context);
setLayoutParams(new GridView.LayoutParams(70, 70));
setScaleType(ImageView.ScaleType.CENTER_CROP);
setPadding(8, 8, 8, 8);
setClickable(true);
mGameState = state;
//TODO: call clearSta... | java android | [1, 4] |
5,574,143 | 5,574,144 | asp.net lock page method until action finished | <p>I have an asp.net page that execute some update to db. The updates takes 2-3 seconds, all these hapends in a method that first read data from db and do some updates. When the page request are less then 2 sec for these action, the db read code, read the same state of records in db, and all update actions of asp.net p... | c# asp.net | [0, 9] |
994,514 | 994,515 | Triggering full screen in browser with JavaScript | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1125084/how-to-make-in-javascript-full-screen-windows-stretching-all-over-the-screen">How to make in Javascript full screen windows (stretching all over the screen)</a> </p>
</blockquote>
<p>Currently I tried to... | javascript jquery | [3, 5] |
4,106,532 | 4,106,533 | Javascript 'undefined error' in asp.net webform | <p>I'm not a javascript expert, but I've used it before, and this problem is perplexing me. Here's the javascript: </p>
<pre><code>function formatNumThousands(myNumber) {
if (myNumber.length > 0) {
var index = myNumber.indexOf(',');
while (index != -1) {
myNumber = myNumber.replac... | javascript asp.net | [3, 9] |
5,495,843 | 5,495,844 | Avoiding having to write the same word over and over again | <p>I'm very new to javascript so this question might sound stupid. But what is the correct syntax of replacing certain words inside variables and functions. For example, I have this function:</p>
<pre><code>function posTelegram(p){
var data = telegramData;
$("#hotspotTelegram").css("left", xposTelegram[p] +"px");
if (... | javascript jquery | [3, 5] |
1,244,840 | 1,244,841 | asp.net export to access | <p>I want to export my generic list by doing the following. Please advise.</p>
<p>I'd like to use the Access object model in .net and create an Access database in a memory stream populate it with my list and send it for download all in one click of a button.</p>
<p>Is that possible? Would this work under heavy load? ... | c# asp.net | [0, 9] |
1,112,309 | 1,112,310 | Is there a way to hide javascript code? | <p>I have this script that starts with <code><script></code> and finishes with <code></script></code></p>
<p>People can actually see it if they go to the source code of the page.</p>
<p>Is there a way to avoid that? I mean to make that code invisible as if it where PHP?</p>
| php javascript | [2, 3] |
2,618,995 | 2,618,996 | Jquery tablesorter plugin not sorting correct | <p>I have some columns with the format:</p>
<pre><code><td>148 kr. </td>
</code></pre>
<p>The tablesorter plugin does not sort them correct. It is like random.</p>
<p>I also have columns like this one:</p>
<pre><code><td>148 kr. <br>(Oprettelse 49 kr.)</td>
</code></pre>
<p>Were I wan... | javascript jquery | [3, 5] |
323,023 | 323,024 | Why does jquery need _$ in case of overwrite? | <pre><code>var
// Will speed up references to window, and allows munging its name.
window = this,
// Will speed up references to undefined, and allows munging its name.
undefined,
// Map over jQuery in case of overwrite
_jQuery = window.jQuery,
// Map over the $ in case of overwrite
_$ = window.$,
jQuery = window.jQu... | javascript jquery | [3, 5] |
3,613,754 | 3,613,755 | How to extend data recursively with jQuery.data? | <p>I'm looking for a better way to do this:</p>
<pre><code>var extended = $.extend(entity.data('namespace'), {
att1 : whatever,
att2 : whatever
});
entity.data('namespace', extended);
</code></pre>
<p>Any suggestions?</p>
| javascript jquery | [3, 5] |
2,886,527 | 2,886,528 | Changing the UI of a webform when the browser language changes | <p>I need to change the location of some controls of a webform when the page is opened in a different language. That is I simply need to Localize the GUI of the Webform too along with the text of the webform.</p>
| c# asp.net | [0, 9] |
211,952 | 211,953 | PHPs call_user_func_array in Python | <p>Is there an equivalent in Python for PHP's <a href="http://www.php.net/manual/en/function.call-user-func-array.php" rel="nofollow">call_user_func_array</a>?</p>
| php python | [2, 7] |
461,858 | 461,859 | Email Templating with Delimiters | <p>In DasBlog the template uses the following syntax, for example:</p>
<p><h1><%= MyMacro() %></h1></p>
<p>inside a txt file, and my query is, how this is evaluated at run time? Does the author of DasBlog use the AspCompiler programatically?</p>
<p>Is there an Evaluating statement I am missing or is the... | c# asp.net | [0, 9] |
1,796,591 | 1,796,592 | Convert a javascript piece of code into php | <p>I just want to properly translate this</p>
<pre><code>foo.push(("000" + parseInt(foo1.charAt(loc3), 16).toString(2)).slice(-4));
</code></pre>
<p>into php.</p>
<p>Anyone can help me?</p>
| php javascript | [2, 3] |
1,740,658 | 1,740,659 | Ping sql server and track newly inserted rows | <p>I m developing simple multiuser chat application in asp.net c# for my website.I have a table name chat in database.i have a chat.aspx.cs page which contains getmessage() addmessage() methods.i created 1 class file which contains getpreviousmsgcount() and newmsgcount() methods which returns the Count of total records... | c# asp.net | [0, 9] |
2,164,543 | 2,164,544 | Keeping images in place after others are removed? | <p>I am working on a memory matching game. Right now, when the user clicks on two identical images, they are removed. This part of the game works fine. When the images are removed, I want the other images to stay in place. However, they are shifting towards each other and not leaving space.</p>
<p>Demo: <a href="http:... | javascript jquery | [3, 5] |
5,831,341 | 5,831,342 | Win Form and Asp.net interface | <p>I have a WinForm which connects to a OleDb. Whilst the Project (In Visual Studio 2010) was open i clicked on the New Menu and Said <code>Add New Web Site</code> now the problem is i have a class which i created before adding the website - but the <code>code-behind</code> file can't pick up that namespace or class ex... | c# asp.net | [0, 9] |
1,811,418 | 1,811,419 | accessing fields across a package | <p>How do I make fields accessible across a package? Currently, even if they are declared public i'm not able to access the fields from another class in the same package.</p>
| java android | [1, 4] |
2,649,121 | 2,649,122 | market:// not supported, despite Android documentation | <p>I'm implementing in-app purchase for an Android app from within a web view. The purchase is meant to be completed via Amazon's MP3 app. If the user does not have it installed, I want to open the Market app so they can download it before attempting to complete their purchase.</p>
<p>According to <a href="http://deve... | javascript android | [3, 4] |
5,571,444 | 5,571,445 | jquery horizontal news ticker using google jsapi | <p>I need to make some changes to this news ticker which is based on goldyberg's jquery horizontal newsticker using Google JSAPI:</p>
<p><a href="http://inetwebdesign.com/jQueryTools/tickers/horizontal-news-ticker2/horizontal-news-ticker3.html" rel="nofollow">http://inetwebdesign.com/jQueryTools/tickers/horizontal-new... | javascript jquery | [3, 5] |
2,379,420 | 2,379,421 | redirect in n seconds and pass values | <p>i have page A and B. Once the page A loads i will be keep on getting input from user. after 60 seconds the page will automatically redirect to Page B. I did with below code.. but values are not getting passed. </p>
<pre><code><html>
<head>
<script type="text/javascript">
function printVal()
{
prin... | php javascript | [2, 3] |
2,482,881 | 2,482,882 | How to add same method to multiple classes (activity) | <p>I have 3 classes A, B, and C. These extend another class D.</p>
<p>Class D has a method that is used in all classes A, B, and C. </p>
<p>Now the problem is that classes A, B, and C should extend different classes and use just the same method from class D.</p>
<p>I can't believe that I should copy and paste the me... | java android | [1, 4] |
4,762,524 | 4,762,525 | What should the frequently asked questions really include? | <p>Sorry for intruding, I've been using SO for a while now and just recently started contributing by helping to answer questions. This is the first question I ever asked, and I wish I had a better way to approach it.</p>
<p>The faqs section for Android is unhelpful. It shows the most upvoted questions, not the ones a... | java android | [1, 4] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.