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,361,722 | 5,361,723 | Whant to check all kind of audio & video quality in asp.net C# | <p>How can I check the quality and bit-rate of audio & video files in C# asp.net?</p>
| c# asp.net | [0, 9] |
859,824 | 859,825 | AlertDialog in SurfaceView | <p>In my surfaceView class I have a AlertDialog with 2 buttons that allows the user to restart or exit the application when they lose. I used the code from the android website on creating dialogs. When ever the health drops to 0, the app forcecloses. I am wandering how it is I would go about setting it up to where it d... | java android | [1, 4] |
4,583,611 | 4,583,612 | Best way to fill textbox with list of values by double click using java script or jquery? | <p>I need to fill a textbox with list of values just by double click on it using java script or j query?</p>
<p>Eg:- I have a list of 10 users and i want to fill a textbox control like a dropdownlist just by clicking on it using java script or j query.</p>
<p>Is it possible than how?</p>
| javascript jquery | [3, 5] |
2,134,727 | 2,134,728 | How to show a html button for asp:button click | <p>I have an asp.net web page with asp:button control. I need to show two (normal) HTML buttons for the click event of the asp:button control.
My requirement is when the page load for the first time there will be only asp:button there visible. After I click on that asp:button other two HTML buttons should be visible. ... | c# jquery asp.net | [0, 5, 9] |
3,679,351 | 3,679,352 | smtp web.config configuration and usage | <p>I have the following problem:</p>
<p>Using asp.net C# and calling several places in code to send email to the user.</p>
<p>However the from address in different sections of the code is different, and I have only one email address configured in web.config. This causes email sent from non-configured email addresses ... | c# asp.net | [0, 9] |
5,091,994 | 5,091,995 | Running a Web Page On More Than One Directory | <p>I have written a web page that reads an input file and outputs a dashboard. Every month there will be a new input file (stored in its own sub directory with some other files) and I want to be able to archive the old files and display them in a drop down menu as options to display. I can read the home directory and... | c# asp.net | [0, 9] |
1,644,707 | 1,644,708 | jQuery: How to make function in an object public? | <p>I use a pagination plugin and I'd like to make one of it's functions public, so I can call it from "outside". I can not call it directly, using <code>pageSelected($(obj))</code>.</p>
<p>Is there an easy way to make it visible so I can call it?</p>
<p>Jerry</p>
| javascript jquery | [3, 5] |
6,031,578 | 6,031,579 | C++ to Java code translation | <p>I have following code in C++:</p>
<pre><code>struct Foo { };
std::ostream& operator<<(std::ostream& os, const Foo& f) {
return os << "Foo";
}
Foo foo;
std::cout << print("Ha! %1%, x=%2% %1% %3%") % "Hej" % 1 % foo;
</code></pre>
<p>Because I don't think I understand that C++ code.... | java c++ | [1, 6] |
4,130,187 | 4,130,188 | asp.net - Get data from external application | <p>I would like to know how to link my web application with an external application. </p>
<p>The external application would call my application with a link.</p>
<p>Ex, ../../report/3</p>
<p>here 3 is the id for some data. Now I would gather the data from their database and process it.</p>
<p>Please tell me how to a... | c# asp.net | [0, 9] |
752,916 | 752,917 | Eval function is C# | <p>I need some help in understanding what the Eval bit does (Just started learning C#.net):</p>
<pre><code><asp:Image
ID="Image1"
ImageUrl='<%# Eval("Name", "~/UploadImages/{0} %>'
...
</code></pre>
<p>The image is in a datalist repeater which has been binded to a folder containing images files.</p>
<p... | c# asp.net | [0, 9] |
1,096,103 | 1,096,104 | Passing javascript variables to server-side C# logic | <p>Is there a way to assign/pass/copy a javascript variable to a server side variable in C#? For the sake of argument, let's say that I was able to parse some JSON for variables that I want to store and assign them on the client (ie. var = FirstName and var = 25 and var = someDateTime, etc) . </p>
| c# javascript asp.net | [0, 3, 9] |
3,366,871 | 3,366,872 | javascript inheritance pattern confusion | <p>I find this is most recommended way to do inheritance in javascript.</p>
<pre><code>function extend(Child, Parent) {
var F = function(){};
F.prototype = Parent.prototype;
Child.prototype = new F();
}
</code></pre>
<p>what if I already have methods in child's prototype, aren't they will overwrite, shouldn't we ... | javascript jquery | [3, 5] |
1,965,625 | 1,965,626 | If container width, padding and line-height is known, how to calculate height? | <p>I am adding element dynamically to DOM.</p>
<pre><code>$('<div class="entry"></div>').text(data.status).appendTo(app.twitter_feed);
</code></pre>
<p>I want to get element height before it is added to DOM. The usual approach is to add the element within a hidden element with the same style and then simp... | javascript jquery | [3, 5] |
2,108,660 | 2,108,661 | Use edittext as html editor in android | <p>i am creating an application which give options to write articles and submit.</p>
<p>I want to give all html options to user so that user can make part of text bold,italic,underlined etc.
i googled but not found that much suitable options or any html tool for android.</p>
<p>looking for suggestions.</p>
| java android | [1, 4] |
4,654,663 | 4,654,664 | Checking ScrollBar of TextBox | <p>I have a simple asp:textbox set up like this</p>
<pre><code><asp:TextBox runat="server" ID="tbxWarning" TextMode="MultiLine" Rows="4">
</asp:TextBox>
</code></pre>
<p>The SUBMIT button on the page does not become active until you scroll to the bottom of the textbox. This part works except that sometim... | javascript jquery asp.net | [3, 5, 9] |
2,042,753 | 2,042,754 | Android, how to make a thread sleep? | <p>Here's my code that, upon a click of the "menu" button, slides 'menubtm' in or out of view. Is there a way to make it pause for a few milliseconds at every loop, so that it would be viable, how the menubtm moves?</p>
<p>Thanks!</p>
<pre><code>@Override
public boolean onKeyDown(int keycode, KeyEvent event ) {
if(k... | java android | [1, 4] |
5,389,713 | 5,389,714 | What is the equivalent to Java's string.getBytes() in C#? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/7089640/equivalent-of-getbytes-in-java-to-c-sharp">Equivalent of getBytes() in Java to C#</a> </p>
</blockquote>
<p>In Java:</p>
<pre><code>String s="abcde";
byte bar[] = s.getBytes();
</code></pre>
<p>In C#:... | c# java | [0, 1] |
5,622,530 | 5,622,531 | jqtscroll - How do I send the scroll content to the end of the page? | <p>How do I send the scroll content to the end of the page?
There's a bind event to do this?</p>
<p><a href="http://code.google.com/p/jqtscroll/" rel="nofollow">http://code.google.com/p/jqtscroll/</a></p>
| javascript jquery iphone | [3, 5, 8] |
2,397,195 | 2,397,196 | does php ternary operator only 'return' a true or false? | <p>I have a php ternary operator as follows that does not work:</p>
<pre><code> var newLoginTxt = <?=$_SESSION['loginStatus']? 'Logged in' : 'Login'?>;
alert("About to set the navbar's login text to: " + newLoginTxt);
</code></pre>
<p>No alert box appears at all.</p>
<p>However this does work:</p>
<pre><code... | php javascript | [2, 3] |
596,957 | 596,958 | Run a PHP script in a .net page | <p>Strange question I know, but I'm developing a .net site, it's going to be pretty big so I'm not developing it in a language I am unfamiliar with (PHP).</p>
<p>The site needs to have it's PHPBB forum ported with it. I've looked at some .net forums but none are to the levels of maturity that the site requires.</p>
... | php asp.net | [2, 9] |
377,719 | 377,720 | how to make the appliction exit when pressing back button in the main activity? | <p>In my application when i click the back button it passes through all the activities that i open them previously , i used the public void <code>onBackPressed()</code> method to make the back button back to the activity that i want as follow </p>
<pre><code>public void onBackPressed()
{
startActivity(new ... | java android | [1, 4] |
2,522,792 | 2,522,793 | in mail column in my gridview - how to send mail? | <p>i have gridview in my form that has column that bind to mail field on </p>
<p>my database.</p>
<p>i see this mail in my gridview, but how to do that in mouse press i'll send mail ?</p>
<p>(i try the hyperlink - but still no working)</p>
<p>thanks</p>
| c# asp.net | [0, 9] |
2,265,941 | 2,265,942 | get_File_contents | <p>I have a php file that use this function like this :</p>
<ul>
<li>file_get_contents("somewhere/XMLRPC", false, $context);</li>
</ul>
<p>I am going to re write this request in JAVA, but the problem is that I don't know what exactly should I send to my server.
I will appreciate if you could guide me how can I print ... | java php | [1, 2] |
2,499,475 | 2,499,476 | Trying to incrementally animate "marginTop" with jQuery, but it resets each time. Why? | <p>I'm having trouble implementing a "scroll more text" feature. </p>
<pre><code><a href="#" id="scroll-trigger">More</a>
<div id="outer-frame">
<div id="scroll-frame">
.. long text
</div>
</div>
</code></pre>
<p>.. in the css</p>
<pre><code>#outer-frame {
height:200px;
overflo... | javascript jquery | [3, 5] |
5,037,728 | 5,037,729 | Get anchor tags from mutiple HTML Files | <p>I am not sure if this is even possible but I am trying to extract all the anchor tag links in a few HTML files on my website. I have currently written a php script that scans a few directories and sub directories that builds an array of HTML file links. Here is that code:</p>
<pre><code>$di = new RecursiveDirectory... | php javascript | [2, 3] |
5,078,722 | 5,078,723 | ASP.NET Classes Question | <p>Could someone tell me the difference between </p>
<pre><code>static public
public static
</code></pre>
<p>and </p>
<pre><code>private int _myin = 0
public int MyInt
{
get{ return _myInt; }
private set {_myInt = value; }
}
</code></pre>
<p>the private set part is what I want to know</p>
| c# asp.net | [0, 9] |
3,397,642 | 3,397,643 | qtip unable to display Tool Tip | <p>in aspx page inside <code>head</code> tag:<br></p>
<pre><code><script type="text/javascript">
$(function() {
InitializeToolTips();
});
function InitializeToolTips() {
$.toolTipRequest("txtText", "Text tip");
$.toolTipRequest("imgGirl", "You want to see image");
}... | jquery asp.net | [5, 9] |
2,414,596 | 2,414,597 | Divide data into several datasets/listview which are shown in jquery tabs | <p>I'm extracting data from a webserivce.</p>
<p>This is my select statement to retrieve the data:</p>
<pre><code>string cmdstr = "select title, titlefr, racpnr, racpmodeltype from onl_wgn where show = 1 order by onl_kl, racpnr";
</code></pre>
<p>I got 4 groups of onl_kl. Now I want to show each group in a tab of th... | c# asp.net jquery | [0, 9, 5] |
5,076,417 | 5,076,418 | I can't get li elements' index? | <p>This is my list..</p>
<pre><code><li class="haftalar"><a value="7" class="click" href="#" title="7. Hafta Maç Özetleri">7. Hafta</a></li>
<li class="haftalar"><a value="8" class="click" href="#" title="8. Hafta Maç Özetleri">8. Hafta</a></li>
</code></pre>
<p>I want ... | javascript jquery | [3, 5] |
2,883,726 | 2,883,727 | XML listview issue | <p>Trying to set a listview up with the results of my database query.</p>
<p>Anyway, I'm getting a weird XML refrence id error from my listview. Can anyone see the issue here? Im guessing its the '@id' reference causing the problem?</p>
<p>Heres my XML:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<... | java android | [1, 4] |
3,884,206 | 3,884,207 | How to validate the text box should take only A B C | <p>I have a text box I need to validate that.. </p>
<p>I mean user can only Enter Either A or B or C if he enters D to Z or any other things I should show the Popup message please Enter A or B or C</p>
<p>Using Jquery or javascript?</p>
<p>thanks</p>
| javascript jquery | [3, 5] |
3,927,687 | 3,927,688 | How to display hidden placeholder without refreshing the page? | <p>I have two placeholders in one page and basically my requirement is that I want to show other placeholder on click of button which is in first placeholder without refreshing the page.</p>
<p>But when I m clicking on the button in 1st placeholder it is refreshing the page and then showing me second placeholder.I m o... | c# asp.net | [0, 9] |
2,176,745 | 2,176,746 | If a <li> is clicked, hide the inner div | <p>My DOM looks like this:</p>
<pre><code><li id="li1">
<div class="c1"></div>
</li>
<li id="li2">
<div class="c1"></div>
</li>
</code></pre>
<p>Using jQuery, if the first <li> is clicked, I want the inner to be hidden.</p>
| javascript jquery | [3, 5] |
3,526,743 | 3,526,744 | Return false not working | <p>Can someone tell me why <code>return false</code> is not working? I just want to check if current is yellow. If it is yellow class don't do nothing (return false). The problem is when you click a button it runs its thing again but I want to avoid that.
Here's <a href="http://jsfiddle.net/3YLEg/" rel="nofollow">the F... | javascript jquery | [3, 5] |
5,699,445 | 5,699,446 | What does PageMethods actually return? | <p>This code gets the return value from public static string in the code behind and shows what is returned in an alert.</p>
<pre><code><script type="text/javascript">
function GetFromServer()
{
PageMethods.GetHello(OnGetHelloComplete);
}
function OnGetHelloComplete(result, userContext, methodName)
{
alert("R... | javascript asp.net | [3, 9] |
1,951,781 | 1,951,782 | XMLVM EXEC error Could not find or load main class org.xmlvm.Main | <p>Please excuse the ignorance if I missed anything.</p>
<p>I am trying to build the CSharp Fireworks (Visual Studio 2008) example that was included in the packaged downloaded via SVN. However, after building the project successfully, there is a post-build that takes place, but throws an error. I've listed the error... | c# java iphone | [0, 1, 8] |
3,855,232 | 3,855,233 | Check if a remote image is online | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/5913150/check-if-image-exists-on-remote-server-before-downloading">Check if image exists on remote server before downloading</a> </p>
</blockquote>
<p>I want to display several webcam images from remote servers ... | php jquery | [2, 5] |
5,969,542 | 5,969,543 | Can I do both javascript and a PHP form? | <p>I want to take advantage of some jquery functions for sending messages like having a modal dialog but I also want to include users not running javascript.</p>
<p>If I have a jquery function to handle the dialog but the user doesn't have javascript enabled whats the best way to redirect them to my PHP page for compo... | php javascript jquery | [2, 3, 5] |
4,170,711 | 4,170,712 | How to navigate from one popup to another | <p>I have a popup which is </p>
<pre><code>function validateDropDown(obj){
if(document.getElementById(obj).value=='4')
{ alert('Do you want to view Service Details?');
return false;
}
}
</code></pre>
<p>Now, when the popup asks "Do you want to view Service Details?" and if i give OK, then it... | c# javascript | [0, 3] |
964,142 | 964,143 | How To jQuery JavaScript conditional statement (beginner) | <p>Apologies if this is an overly simple question, but my searches are getting me nowhere.</p>
<p>I have a jQuery function which produces an error on some of my pages which do not contain the <code>#message</code> input:</p>
<pre><code>Error: jQuery("#message").val() is undefined
Line: 56
</code></pre>
<p>And my jQu... | javascript jquery | [3, 5] |
445,804 | 445,805 | how to change combobox values on keypress using jquery | <p>this is not working</p>
<pre><code>if($(".foo").is(':focus')){
// do something
}
</code></pre>
<p>To change values on keypress:</p>
<pre><code>$(".foo").bind("keypress", function(e){
$(this).attr('value', 'bar');
})
</code></pre>
| javascript jquery | [3, 5] |
3,983,303 | 3,983,304 | Prevent a negative number in JS click counter | <p>I have a simple JS counter with two buttons (+ and -) that is used to tally people. Works fine, but it allows the user to go into the negative when decreasing the count. Probably a simple solution but not for me. Any help would be appreciated. Thanks.</p>
<p>JS</p>
<pre><code> //Pax Counter
$(document).ready(f... | javascript jquery | [3, 5] |
224,215 | 224,216 | JQuery Assign a value to a new variable? | <p>Hi am using the following jquery code:</p>
<pre><code>$.cookie('the_cookie', 'the_value');
</code></pre>
<p>I want to assign the_value to a new variable...</p>
<p>like:</p>
<pre><code>var newVar = the_value;
</code></pre>
<p>How can I do this?</p>
| javascript jquery | [3, 5] |
419,513 | 419,514 | Dot notation for hierarchical related string values | <p>I have a lot of constant string values in my application which I want to have as strongly typed objects in C# for code reuse and readability. I would like to be able to reference the string value like so:</p>
<pre><code>Category.MyCategory //returns a string value ie “My Category”
Category.MyCategory.Type.Private ... | c# asp.net | [0, 9] |
2,000,574 | 2,000,575 | how to insert hexadecimal byte in a particular position in a given string | <p>I want to insert hexadecimal byte for example 0A and 00 in a particular position in a given string i.e.,String set="16 10 36 07 02 00 00 00 00 00 00 00 00 00 00 0B 11 B7 93"; i want to insert 0A and 00 in 4th and 5th position of the given string. How can i write a code in java</p>
| java android | [1, 4] |
5,010,078 | 5,010,079 | Listen to phone state throughout the application? | <p>I nee to liste to phone state using phone state listener .I have many activities in a project. Should I register the listener to each of the activities or else is ther a better way.</p>
<p>ps: i am not interested to use broadcast receiver</p>
| java android | [1, 4] |
2,002,538 | 2,002,539 | Help in Converting Small Python Code to PHP | <p>please i need some help in converting a python code to a php syntax
the code is for generating an alphanumeric code using alpha encoding</p>
<p>the code : </p>
<pre><code>def mkcpl(x):
x = ord(x)
set="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
for c in set:
d = or... | php python | [2, 7] |
3,555,142 | 3,555,143 | how to inject a jquery code to a HTML page dynamically | <p>i want to add a javascript code , which i getting from the server to my view .</p>
<p>is this possible .</p>
<p>i am doing this</p>
<pre><code> jQuery(".city").change(function(){
var address = jQuery('#business-address').val();
var city = jQuery('.city').val();
var state = jQuery('.sta... | javascript jquery | [3, 5] |
486,871 | 486,872 | jQuery UI Tab returns first tab | <p>I've an asp:Button control in tabs-2. I'm inserting database something in onClick method, then it returns first tab but i want to open current tab. Also, page must be reload. How can i do ?</p>
<pre><code><asp:Button ID="btnAddContactKnowledge" CssClass="ButtonDefault" runat="server" Text="add" OnClientClick... | c# jquery asp.net | [0, 5, 9] |
1,948,462 | 1,948,463 | Force asp.net dropdownlist to expand | <p>I have an ASP.NET data bound dropdownlist which is populated based on the contents of a textbox. After it is populated I would like to expand the dropdownlist automatically, so that the user realizes that a choice needs to be made and doesn't need to click on the dropdown to expand it. There doesn't seem to be a p... | c# asp.net | [0, 9] |
131,152 | 131,153 | Difference between Dalvik Bridge Function and Dalvik Native Function call? | <p>What is the difference between Dalvik Bridge Function and Dalvik Native Function call in Android?</p>
| java android | [1, 4] |
3,592,876 | 3,592,877 | How do I replace white spaces from the string in Android? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/6932163/removing-spaces-from-string">Removing spaces from string</a> </p>
</blockquote>
<p>I want to remove white spaces and special characters from the string when user enters it in the textbox.</p>
| java android | [1, 4] |
2,663,703 | 2,663,704 | Reading an XML Node only | <p>I am having an issue getting the value of an XML, it is loading it in the XML document when i debug, but it is not finding the value or the node i want to access. Here is the xml. The value i want to get is "Active". Now this XML is not a file or anything , is being passed as a string... (can not modify this part) h... | c# asp.net | [0, 9] |
3,748,307 | 3,748,308 | Call Javascript from GridView TemplateField | <p>I have a GridView, I have coded like the below</p>
<pre><code><asp:TemplateField HeaderText="Item">
<ItemTemplate>
<asp:Button ID="btnItem" OnClientClick="javascript:SearchReqsult(<%#Eval("Id") %>);"
CssClass="Save" runat="server" />
</Ite... | c# javascript asp.net | [0, 3, 9] |
2,583,847 | 2,583,848 | Android; Application has stopped. Simple Animation Error | <p>My application splash screen is set to have one image fade in, then another, and then after the second one finishes, it's set to start my Main activity.</p>
<p>As soon as my second image is almost done fading in, it crashes.</p>
<p>Here is my SplashScreen activity;</p>
<pre><code>package com.example.gymbuddy;
im... | java android | [1, 4] |
5,439,235 | 5,439,236 | Android - instead of launch new intent to new class/activity, how go back to open activity/class? | <p>My code allows me to launch a new activity/class:</p>
<pre><code>Intent intent = new Intent(activity1.this, activity2.class);
startActivity(intent);
finish();
</code></pre>
<p>What if i have an activity already open, and just want to go back to it instead of reopening a new one, thus having multiple open of sam... | java android | [1, 4] |
2,632,865 | 2,632,866 | jQuery - Get the href attribute for each link in a section of HTML | <p>I've written the following jQuery to loop through each of the <code><a></code> objects in a section of HTML:</p>
<pre><code>$(".chapterindex" + key + " div.link a").each(
function(intIndex){
alert( "Numbered index: " + intIndex );
});
});
</code></pre>
<p>The key value used in the first line... | javascript jquery | [3, 5] |
392,705 | 392,706 | Help porting c++ to php code | <p>I need if possible port this function to c++:</p>
<pre><code>static unsigned char bux_code[3] = {0xFC, 0xCF, 0xAB};
void bux_convert(char* buf, int size)
{
int n = 0;
// ----
for (n=0;n<size;n++)
{
buf[n]^=bux_code[n%3];
}
}
</code></pre>
<p>What i have d... | php c++ | [2, 6] |
2,648,538 | 2,648,539 | WinFormsControlLibrary in Asp.net | <p>I am using <code>windowformscontrol</code> library to capture a image and it is referring a dll "<strong><em>test.dll</em></strong>".</p>
<p>And when i am using the <code>windowformscontrol</code> library in my <code>Asp.net</code> app its throwing an error while running in explorer..</p>
<pre><code>Exception : Un... | c# asp.net | [0, 9] |
3,921,752 | 3,921,753 | Get the newly focussed element (if any) from the onBlur event. | <p>I need to get the newly focussed element (if any) while executing an onBlur handler.</p>
<p>How can I do this?</p>
<p>I can think of some awful solutions, but nothing which doesn't involve setTimeout. </p>
| javascript jquery | [3, 5] |
5,018,009 | 5,018,010 | Help thinking "Pythony" | <p>I'm brand new to Python and trying to learn it by replicating the following C++ function into python</p>
<pre><code>// determines which words in a vector consist of the same letters
// outputs the words with the same letters on the same line
void equivalentWords(vector <string> words, ofstream & outFile) ... | c++ python | [6, 7] |
1,858,906 | 1,858,907 | Limiting frame rate with Thread.sleep() | <p>I am working on a live wallpaper, so no worries about physics collisions. I just want to have as smooth a frame rate as possible, up to a limit of 30fps to conserve battery. </p>
<p>To do this, at the end of the loop, and I measure time since the beginning of that loop. If the frame took less than 33ms, I use Threa... | java android | [1, 4] |
5,380,689 | 5,380,690 | How to pass values from parent.aspx page to user control? | <p>I have the following setup in my application and I'm having some difficulties passing values my user control.</p>
<p><strong>ASPX</strong></p>
<pre><code><%
var posts = this.getPosts();
foreach (var post in posts)
{ %>
<asp:TextBox runat="server" Text="<%: post.post_i... | c# asp.net | [0, 9] |
4,995,395 | 4,995,396 | how to use lightbox(jquery) in gridview or datalist control | <p>i have an requirment where i need to i display a <strong>thumbnailimage</strong> in datalist control. and once user clicks the thumbnail image new pop up show come showing image. along with the data [ that comes from <strong>Database</strong>]
so any one have done concept using lightbox with asp.net
any ... | asp.net jquery | [9, 5] |
5,163,385 | 5,163,386 | For Android, should I use the float datatype more often for my game, or just cast to float when drawing? | <p>Android uses the RectF structure for drawing bitmaps. I am working on my game structure, so for example, a Sprite will have and x/y coordinate, width, height, speed, and so on. This means every time in my render loop I have to cast those integers to floats when figuring out the source/target RectF's to use... altern... | java android | [1, 4] |
1,207,115 | 1,207,116 | each function index and element | <p>my question is a simple one how do you use element with index in each function</p>
<pre><code>$('div').each(function(index, element) {
is element equal to $(this)
});
</code></pre>
| javascript jquery | [3, 5] |
1,983,862 | 1,983,863 | UPDATE STATEMENT in asp.net using c# | <p><P>i am using asp.net with C# as code behind
<Pre><code>
OleDbConnection cn = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\Documents and Settings\CJP\My Documents\Visual Studio 2005\WebSites\NewElligibleSoft\elligiblity.mdb;Persist Security Info=False");
cn.Open();
string... | c# asp.net | [0, 9] |
1,704,375 | 1,704,376 | Jquery Css Selector Add Value | <p>How can i reset a display:none and add some value here is the code</p>
<pre><code>onclick="$('reason{$test->id}').css('display:block');
$('#reasonid{$test->id}').val(this.value);"
</code></pre>
| javascript jquery | [3, 5] |
795,172 | 795,173 | jQuery slideToggle() on two items concurrently | <p>So I'm in the process of creating a text slider, for headlines. I would like the currently displayed text to side out, at the same time that the new text is sliding in. Is there a way that I can use jQuerys <code>.slideToggle()</code> or <code>.slide()</code> concurrently to be able to do what I want?</p>
| javascript jquery | [3, 5] |
3,790,049 | 3,790,050 | ASP.NET or PHP? Soft for Real Estate Agencies | <p>Soon I begin create CRM for Real Estate Agencies sphere.
In my backround 2 years of PHP-programming & then 5 years of ASP.NET (intranet applications).
& I think maybe ASP.NET (i write code on C#) have good IDE (VS 2010), but this is monster :)</p>
<p>My application will be multiplayer webapplication for dif... | php asp.net | [2, 9] |
6,022,116 | 6,022,117 | Using Jquery fadeOut() how can hide this Msg box | <p>i am trying to close(<em>fadeout</em>) the message box when i click the close button. But here it is not working. help me to fix this.</p>
<p>before it close automatically. if i click the close button the message box should hide. but here it is not working</p>
<p>Here is my <a href="http://jsfiddle.net/sureshpattu... | javascript jquery | [3, 5] |
1,243,064 | 1,243,065 | Sliding in content on hover over #viewer with .load and sliding away when hovering over #button2 or #button3 | <p>I have this jquery :</p>
<pre><code>$(document).ready(function() {
$('#display').hover(
function () {
$('#viewer').load('display.php');
});
});
</code></pre>
<p>What I want to happen is, for the content to slide in when hovering over #viewer and I want it to slide away when it hovers over #button1 or #button2 ... | php jquery | [2, 5] |
3,668,730 | 3,668,731 | jquery: Writing a method | <p>This is the same question as this:
<a href="http://stackoverflow.com/questions/2890620/jquery-running-a-function-in-a-context-and-adding-to-a-variable">http://stackoverflow.com/questions/2890620/jquery-running-a-function-in-a-context-and-adding-to-a-variable</a></p>
<p>But that question was poorly posed.</p>
<p>Tr... | javascript jquery | [3, 5] |
5,146,469 | 5,146,470 | Multiple Dropdown Boxes that will fill in a table | <p>I'm going to have 3 drop down menus. </p>
<ol>
<li>that has garment.</li>
<li>has the color. </li>
<li>number of colors. </li>
</ol>
<p>When the person selects these it will generate a table that shows what the cost for the amount of pieces like 1 column 48pc then 72pc then 96pc and so on. I dont expect anyone to ... | php javascript | [2, 3] |
3,777,778 | 3,777,779 | Passing Arguments into an Inline Function | <p>I'd like to use an inline function with arguments to set a variable. Here is a boiled down version (which apparently is only pseudo code at this point) of what I'm attempting:</p>
<pre><code>var something = 10;
var something_else = 15;
var dynamic_value = (function(something,something_else){
if(something == so... | javascript jquery | [3, 5] |
4,353,155 | 4,353,156 | How to call a function in Page.ClientScript properly | <p>There are two things I do not understand too well in this scenario</p>
<p>First, there is a javascript that is in this format</p>
<pre><code>function Allocate()
{
this.Name = $("allocateName");
this.AddAllocation = $("addAllocation");
this.setCustom= $("setCustom");
}
... some other initializations her... | c# javascript asp.net | [0, 3, 9] |
144,410 | 144,411 | Getting name of object as a string in JavaScript | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/85992/how-do-i-enumerate-the-properties-of-a-javascript-object">How do I enumerate the properties of a javascript object?</a><br>
<a href="http://stackoverflow.com/questions/3982721/javascript-getting-a-single-pro... | javascript jquery | [3, 5] |
2,477,565 | 2,477,566 | JavaScript counter | <p>Everytime a specific action is made in JavaScript for example this:</p>
<pre><code><script type="text/javascript">
$(function() {
$('#typing').keyup(function () {
switch($(this).val()) {
case 'containment':
// HERE
break;
}
});
});
</script>
</code></pre>
<p>inside the //HERE w... | javascript jquery | [3, 5] |
3,018,698 | 3,018,699 | How can I call a C++ function from C#? | <p>How can I call a C++ function from C# .NET?</p>
| c# c++ | [0, 6] |
4,341,100 | 4,341,101 | Do Raphael elements like RECT support the zIndex attribute | <p>Raphael elements do not seem to respond to zIndex modifications for me. I've tried everything to reorder a bunch of rectangles drawn one over the other and they remain unchanged. Here is what I tried.</p>
<pre><code>$(".c10").css({zIndex: 0});
$(".c50").css({zIndex: 0});
$(".c90").css({zIndex: 0});
</code></pre>... | javascript jquery | [3, 5] |
919,084 | 919,085 | javascript issue - unexpected token ( | <p>this code here is suppose to call a file that will in return return data for fill in a form but i am getting this error (in the code) and i do not know why.</p>
<pre><code>dropdown.bind('change', function(){
$post.('backgroundScript.php',
Uncaught SyntaxError: Unexpected token ( - this is the error im getting
... | php javascript | [2, 3] |
1,423,219 | 1,423,220 | php to javascript varable not working in chrome and I.E | <p>I am converting a php variable to a javascript variable. It works fine in firefox, but in chrome and I.E it doesn't work,</p>
<p>Here is what i'm doing,</p>
<pre><code>var chkimg = "<?= $_imgname ?>";
</code></pre>
<p>Where $_imgname contains the data and is tested. But it doesn't convert to javascript vari... | php javascript | [2, 3] |
4,765,972 | 4,765,973 | Get ASP.NET session id with jQuery | <p>I was wondering if it's possible to get the session id of a session with jQuery ?
And if so, how do I do that, can't seem to find it on jquery.com</p>
| jquery asp.net | [5, 9] |
1,190,657 | 1,190,658 | Different ways to set context? | <p>Here are two ways of setting context:</p>
<pre><code>$.proxy(function() {
this.doStuff();
}, this);
</code></pre>
<p>...</p>
<pre><code>var that = this;
that.doStuff();
</code></pre>
<p>Is there any reason to use one and not the other?</p>
| javascript jquery | [3, 5] |
2,410,552 | 2,410,553 | A question about a standard way to hide a div in Javascript and jQuery | <p>I'm still relatively new to javascript and jQuery and was just wondering this.</p>
<p>Suppose I have this HTML snippet:</p>
<pre><code><p id="disclaimer">
Disclaimer! </p>
<input type="button" id="hideButton" value="hide" />
</code></pre>
<p>I could hide the div in the following ways:</p>
<pre>... | javascript jquery | [3, 5] |
3,834,053 | 3,834,054 | Trigger Div Click From Link | <p>I have a site <a href="http://www.thebalancedbody.ca/" rel="nofollow">http://www.thebalancedbody.ca/</a> and there is a pop out contact form on the left (Contact) which has this id <code><div id="mycontactform"></code>.</p>
<p>There is also a link in the footer called CONTACT US </p>
<pre><code><a href="#... | javascript jquery | [3, 5] |
1,872,701 | 1,872,702 | PHP showing null output | <p>I'm writing an android application that retrieves data belonging to a particular user. I'm using SharedPreference of Activity1 in Activity2.</p>
<p>here's the SharedPreference that I'm storing in Activity1</p>
<pre><code>SharedPreferences sp = getSharedPreferences("login details", 0);
SharedPreferences.Editor sped... | php android | [2, 4] |
4,269,134 | 4,269,135 | how does accordion works? | <p>I'm not asking how to <code>show/hide</code> content upon <code>click</code>.</p>
<p>All I want to know is how by placing 2 divs, one on top the other, I can get the effect that by clicking on the bottom div, it "closing" the upper div. that's all. Not exactly accordion, but this is enough for my situation.</p>
<p... | javascript jquery | [3, 5] |
2,414,320 | 2,414,321 | Using jQuery to find certain text, then add class onto the following UL | <p>So I am trying to add a class onto a UL depending on the text used in the navigation.</p>
<p>For example.</p>
<pre><code> <li>
<a href="#">Text</a>
<ul>
</ul>
</li>
</code></pre>
<p>I want to add a class onto the ul depending on the text inside the ... | javascript jquery | [3, 5] |
992,093 | 992,094 | How to reset image positions | <p>I am making a game and I am trying to create a game end function. How would I go about resetting all images to their starting positions?</p>
| javascript jquery | [3, 5] |
2,889,490 | 2,889,491 | how to resize a picture programatically and add it to the web site | <p>Hi there
I am working with visual web developer and would a) like to know how I could programatcally add a picture to the website, instead of going to Website and then add existing item. The idea I have is to upload the picture using the file upload control but then I want to have it added so that it can be accessed... | c# asp.net | [0, 9] |
4,738,353 | 4,738,354 | javascript ClearTimeout with jquery droppable out | <p>I have this code </p>
<pre><code> var expandTimerId=0;
$(".droppable").droppable({
tollerance : 'pointer',
greedy : true ,
hoverClass : 'dropHover',
drop : _onDropItem,
over: _onDragOver,
... | javascript jquery | [3, 5] |
3,374,895 | 3,374,896 | JQuery / JavaScript MAC Address Validation | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/4260467/what-is-a-regular-expression-for-a-mac-address">What is a regular expression for a MAC Address?</a> </p>
</blockquote>
<p>I would like to validate a string to ensure that it is a valid MAC Address.</p>
... | javascript jquery | [3, 5] |
5,515,756 | 5,515,757 | Dynamically change size of div and all its content? | <p>Please note that this is not the same question as "change a div size to fit content". What I have is a relatively positioned div with a couple of absolutely positioned images inside it:</p>
<pre><code><div id="nj_size_holder">
<img id="nj_credit_card" src="credit_card.png" width="340"/>
<img ... | javascript jquery | [3, 5] |
2,742,058 | 2,742,059 | Add php database to java script file | <p>I am working on a project of web calendar. I want to add my php database file to the java script file. When I click on the save button of calendar, the entries showed in calendar, but I m unable to add PHP file to save button. So when I click on save button, the entry should go to the database(php file).</p>
<p>cod... | php javascript | [2, 3] |
3,946,708 | 3,946,709 | Access web control from class file in asp.net 4 | <p>I am doing a simple page (Default.aspx), where is a DropDownList (id <strong>colors</strong>) control. It is easy to populate it with items in PageLoad method. </p>
<pre><code>protected void Page_Load(object sender, EventArgs e)
{
if (!this.IsPostBack)
{
colors.Items.Add("red");
}
} etc. ....
... | c# asp.net | [0, 9] |
4,677,575 | 4,677,576 | Conversion of Date | <p>I am getting date in two different formats.<br>
1) <code>2012-01-05</code><br>
2) <code>05/01/2012</code><br>
But i want this to be in the below format. <code>"5 Jan 2011"</code> </p>
<p>Please help..
Now i'm having <code>String d1="2012-01-05"</code> and <code>String d2="2012-01-05".</code><br>
urgent..</... | java android | [1, 4] |
5,438,986 | 5,438,987 | Locating DOM element by absolute coordinates | <p>Is there a simple way to locate all DOM elements that "cover" (that is, have within its boundaries) a pixel with X/Y coordinate pair?</p>
<p>Thank you!</p>
| javascript jquery | [3, 5] |
79,295 | 79,296 | Buttons in treeView | <p>I am making an application where I want to display buttons next to each expanded leaf node.
I looked for tree list view and datagrid in tree view but nothing helped.
It would be great if anyone could suggest something
I am coding with c# and using asp.net.</p>
<p>I am looking for something like this: </p>
<ul>
<li... | c# asp.net | [0, 9] |
4,181,907 | 4,181,908 | java - checking file content before uploading to server | <p>i have got a situation now.</p>
<p>I need to develop a webpage where user can select a file to upload and before uploading the file to server i need to check first few lines of the file whether the data is valid or not and if the data is valid then upload the file, if not through an error message.</p>
<p>the file ... | java javascript | [1, 3] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.