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 |
|---|---|---|---|---|---|
2,336,956 | 2,336,957 | Unbind even when mouse over child | <p>I have the following HTML</p>
<pre><code><ul>
<li class="operation>Lorem ... <span rel="popover" data-content="Impsum">%</span></li>
<li class="operation>Lorem ... <span rel="popover" data-content="Impsum">%</span></li>
<li class="operation>Lorem ... <s... | javascript jquery | [3, 5] |
5,704,577 | 5,704,578 | jQuery: Get first element of type in top UL in a nested list | <p>I have a nested list like this:</p>
<pre><code><ul class="list">
<li class="list_item_type_1">
<ul class="list">
<li class="list_item_type_2">Unnested item</li>
</ul>
</li>
<li class="list_item_type_2">Unnested item</li>... | javascript jquery | [3, 5] |
2,068,173 | 2,068,174 | Can't adjust label widths. JQuery | <p>I have such a sketch: <a href="http://jsfiddle.net/challenger/upcZJ/" rel="nofollow">http://jsfiddle.net/challenger/upcZJ/</a>.</p>
<p>I found an article <a href="http://www.jankoatwarpspeed.com/post/2008/07/09/Justify-elements-using-jQuery-and-CSS.aspx" rel="nofollow">http://www.jankoatwarpspeed.com/post/2008/07/0... | javascript jquery | [3, 5] |
4,419,958 | 4,419,959 | Pass database variables to jQuery via element attribute? | <p>Is there any specification for "Pass database variables to jQuery via element attribute?"</p>
<p>I've been doing this for a long time:</p>
<pre><code><script>
var status = <%= status %>;
</script>
</code></pre>
<p>I would much rather do something like this:</p>
<pre><code><variable data-n... | javascript jquery | [3, 5] |
1,894,683 | 1,894,684 | how to get current url in code behind? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/96029/get-url-of-asp-net-page-in-code-behind">Get URL of ASP.Net Page in code-behind</a> </p>
</blockquote>
<p>I'm trying to hold current url in string in the code behind.</p>
<p>as example this is the current ... | c# asp.net | [0, 9] |
2,299,340 | 2,299,341 | Retry Popup on Ok | <p>I have not stated anywhere in my code nor JavaScript that the page should refresh upon clicking the OK button. But as the user clicks the OK button, the retry popup comes up.
I am not sure what is the reasoning behind this.</p>
<p>Here is my code for the OK button:</p>
<pre><code>protected void btn_ok_click(objec... | c# asp.net | [0, 9] |
5,652,802 | 5,652,803 | JQuery Validation for Two Password Fields | <p>Two entered passwords should be the same, and I want to display a notification when they're not matching. The target is to display the notification during typing and not after pressing the save Button. </p>
<p>I am new to javascript and I have also tried the functionname function() notation.</p>
<p>following js:</... | javascript jquery | [3, 5] |
1,199,875 | 1,199,876 | Toggle function Javascript | <p>I'm trying to make a toggle that toggles between two classes when clicked on the object with function "openclose(j)". I tried making the script only removeClass("arrow-down"), which works fine, but it wont addClass("arrow-up"). This is really annoying to deal with :)</p>
<pre><code> function openclose(j){
... | javascript jquery | [3, 5] |
5,348,456 | 5,348,457 | Jquery post and get data from PHP | <p>Jquery code looks like:</p>
<pre><code>$('#gal').rating('gl.php?gal_no=<?=$gal_no;?>&id=<?=$id;?>', {maxvalue:10,increment:.5, curvalue: <?=$cur;?>});
</code></pre>
<p>PHP code:</p>
<pre><code>$br=mysql_query("SELECT count(gal) as total FROM ...")
if ... {
echo '0';
}
else echo '1';
}
</code... | php jquery | [2, 5] |
2,782,441 | 2,782,442 | Why is this code's execution speed so different? | <p>In <strong>Internet Explorer 7</strong>, this code executes consistently in <strong>47</strong> ms:</p>
<pre><code>function updateObjectValues() {
$('.objects').html(12345678); // ~500 DIVs
}
</code></pre>
<p>however, this code executes consistently in <strong>157</strong> ms:</p>
<pre><code>function upda... | javascript jquery | [3, 5] |
4,521,754 | 4,521,755 | c# failed to check existed file in directory | <p>there are nothing is inside my test002 folder, by right my output should be is "nothing is inside the folder",but after compile there are nothing prompt.</p>
<p>what i want to do is if there are any .doc file is inside my folder, just upload it
if there are nothing is inside the folder, ask user to upload .doc to r... | c# asp.net | [0, 9] |
4,190,858 | 4,190,859 | Adding words to game through PHP | <p>In my spelling game new words will be added all the time so there is always a fresh selection of words to spell.</p>
<p>Each word added to the game has a "src" to an image and a sound that will prompts the user into getting the spelling correct in gameplay.</p>
<p>When I have completed making the game, the job of ... | javascript jquery | [3, 5] |
4,969,226 | 4,969,227 | Null Pointer when trying to dynamically disable a preference | <p>I am getting a null pointer exception on <code>mPreference = (Preference)...</code> in the following code (i.e. with debugger on, <code>mPreference</code> shows null; NB key is non-null, I can substitute with a literal and it still gives me the same exception):</p>
<pre><code>public class SettingsManager extends Pr... | java android | [1, 4] |
5,965,867 | 5,965,868 | Jquery Table plugin | <p>I need a table plugin that does the following</p>
<ol>
<li>Uses json and html table as the datasource</li>
<li>supports pagination</li>
<li>can specify how many rows to show by the user(i.e user can change rows per page)</li>
<li>sorting of columns</li>
<li>searching (complex searching options is welcome)</li>
<li... | javascript jquery | [3, 5] |
3,866,207 | 3,866,208 | frame by frame caching | <p>How to cache multiple videos frame by frame</p>
| java javascript c++ | [1, 3, 6] |
4,761,434 | 4,761,435 | How to generate a view id in code? | <p>I need to create some views in code and want to assign an id for the view. How can I generate a view id that is guaranteed to be unique among the rest of the view ids but do this at runtime? </p>
| java android | [1, 4] |
3,400,027 | 3,400,028 | Login control with jqueryui | <p>I'm using the default login control for asp.net, I would like to replace that with a button that will bring up the jquery dialog and display the login panel within that dialog box.</p>
| asp.net jquery | [9, 5] |
3,017,620 | 3,017,621 | How can I bind a JQuery event to make it only fire once? | <p>I have a help popup that I want to close when somewhere else is clicked. Here's what I have:</p>
<pre><code>$('.help[data-info]').click(function(){
$('.info[a complicated selector]').toggle(400);
$('*:not(.info[the complicated selector]).one('click','',function(){
.info[the complicated selector].hide(400);
... | javascript jquery | [3, 5] |
5,331,053 | 5,331,054 | Using vosao with Android | <p>I am in a bit of a pickle, I need to use vosao with an Android application but I have no idea how to authenticate and use it, I have got the JSON-RPC part working by telling me if the username and password is correct but I don't know what to do from here</p>
<p>Vosao is a CMS for Google App Engine. </p>
| java android | [1, 4] |
2,118,417 | 2,118,418 | .replace() not working to remove <strong> tags | <p>Hi I am using jquery to get the html content of a div, remove the strong tags and then update the div with the new contents though. It isn't working for some reason though. Here is my code:</p>
<pre><code>var content = $('#mydivid').html();
content = content.replace('<strong>', '').replace('</strong>', ... | javascript jquery | [3, 5] |
4,545,932 | 4,545,933 | jQuery: Uncheck JavaScript generated page elements | <p>I'm having trouble manipulating JavaScript generated html elements. Depending on user input - a list of checkboxes gets generated via JavaScript, which the user can then uncheck with one click. Here's the generated code:</p>
<pre><code><ul>
<li><input name="fruit" id="apple" type="checkbox" checked... | javascript jquery | [3, 5] |
2,471,350 | 2,471,351 | Using FileDescriptor with HTTP URLs in Android? | <p>I was hoping this was going to work for getting Android's MediaPlayer to stream from a URL using authentication, but now I'm not so sure. I have no problem getting it to stream from an open server (no authentication) but I don't see any way to tell MediaPlayer to use basic authentication unless perhaps using the Fil... | java android | [1, 4] |
2,583,895 | 2,583,896 | About inserting record into dynamically created gridview in asp.net c# | <p>I have created gridview dynamically on click event of button.I have 4 fields per row(First name,last name, relation,DOB) with link button for add(lnkadd).I used Itemtemplate, edittemplate, EditItemTemplate, FooterTemplate to design gridview.
I used function to add rows to gridview in lnkadd click event as follows:<... | c# asp.net | [0, 9] |
2,430,532 | 2,430,533 | Need help with logic on how to assign the correct value to a textbox | <p>I am passing in a value to the form that I ultimately assign to a textbox using javascript. The value is a calculation based on values from another page/form. However, the textbox is editable. </p>
<p>When reloading the form with the previously saved data, I don't want the value of the textbox to be overwritten w... | javascript asp.net jquery c++ | [3, 9, 5, 6] |
2,861,945 | 2,861,946 | Auto Refresh Without Effecting Scrolling | <p>I have a auto chat section where I have to get the scrollbar of chat to the bottom. Like this:</p>
<pre><code>function chatuser(user1) {
$("#currentuser").load('chatcontent.php', {
current: user1
}, function afterchatuser() {
$("#currentcontent").attr({
scrollTop: $("#currentcont... | javascript jquery | [3, 5] |
5,533,782 | 5,533,783 | jquery timer doesnt show div that is clicked instead it navigates to div based on timer | <p>I am toggling each 4 divs for 10 seconds using this jQuery function based on <code>a href id</code> value. </p>
<p>The timer works fine and it changes 4 divs for every 10 seconds but when user clicks a particular div it doesn't navigate to particular div and stays there for a given period(ex 10 sec) and proceeds t... | javascript jquery | [3, 5] |
4,254,748 | 4,254,749 | unwanted spaces when animating after changing css | <p>Im getting spaces between my div.container elements as soon as I changed the parent div to position relative and it needs to be relative is there a way to fix this. here is my jsFiddle example <a href="http://jsfiddle.net/3wpfE/3/" rel="nofollow">jsFiddle</a></p>
| javascript jquery | [3, 5] |
864,667 | 864,668 | Logical problem,seeking an algorithm | <p><br>
I am developing a javascript filtering of some results and have some difficulties..<br>
Here is the problem...<br>
Suppose that we have some criteria </p>
<ol>
<li>Manufacter (Trusardi, Calvin Kein, Armani...) </li>
<li>Color (red, blue, black...)</li>
<li>OtherFeatures (goretex, blah, blah...) </li>
</ol... | javascript jquery | [3, 5] |
1,580,899 | 1,580,900 | How to setTimeout() with a jQuery function? | <p><code>setTimeout(target.mousedown, 200)</code> doesn't seem to work. I can do <code>setTimeout("target.mousedown()", 200)</code>, but this feels dirty.</p>
<p>What's the right way to do this?</p>
| javascript jquery | [3, 5] |
251,800 | 251,801 | interpolate function need | <p>I need an javascript function that can do interpolate like the one for prototype js framework. Anyone have an interpolate function that is not depend on prototype? Jquery is welcome. Thanks.</p>
| javascript jquery | [3, 5] |
2,743,341 | 2,743,342 | Create new cookie to edit its value | <p>I know that you can't edit incoming cookies. I have a cookie that I just need to read..nothing more but I have a need to remove some characters from its value so that I can parse it. How can I do this? I don't need to send the modified new cookie back in the response, it's just for my server-side consumption and ... | c# asp.net | [0, 9] |
536,556 | 536,557 | save and retrieve values within web app | <p>I have a simple web app built in asp.net webforms c#</p>
<p>where and how would be the best way to save info from the code behind?
(and also retrieve that info)</p>
<p>eg all i want to save is a dateTime. and a flag set to True or False.
and be able to access them in the code behind.</p>
<p>Im not using a db for ... | c# asp.net | [0, 9] |
365,753 | 365,754 | jQuery error callback on ajax call if server is down | <p>I am using jQuery and I am making AJAX request from the many methods available to me. I am testing error callback condition and so far so good.</p>
<p>If I bring the server down then firebug shows the request in RED which means it was an error. However error callback is not getting called. Is this expected ? Or sh... | javascript jquery | [3, 5] |
2,735,890 | 2,735,891 | How do I get values of input element with the same name as an javascript array? | <p>I want to get values of the input element that those elements are under the same name, name="items[]"<br/>
for example:<br/></p>
<pre><code><div>...<input type="text" name="items[]" value="1" /></div>
<div>...<input type="text" name="items[]" value="2" /></div>
<div>...<... | javascript jquery | [3, 5] |
4,478,151 | 4,478,152 | Toast with image backgroung | <p>I have this simple code that brings me a toast with an image. Is it possible to have the background that the regular toast uses on this toast?</p>
<p>Thx in advance</p>
<pre><code> Toast ImageToast = new Toast(getBaseContext());
LinearLayout toastLayout = new LinearLayout(getBaseContext());
... | java android | [1, 4] |
360,311 | 360,312 | IF container "x" does not contain div "n"? JS | <p>I was wondering if its possible to make an <code>IF</code> statement, where if a container (parent div) contains/does not contain a certain div....</p>
<pre><code><div class="parent" id="x">need to check if div id "n" is here....</div>
</code></pre>
<p>So, <code>IF</code> the parent container ("<code>x... | javascript jquery | [3, 5] |
732,222 | 732,223 | Drawing Customized Products based on user selection PHP | <p>Can anybody knows from where I can get the script to create Customized products (shirts in my case) on the basis of user selection (eg like fabric, collar, cuff, buttons, shoulders) . Example of Live site is : <a href="http://www.blanklabel.com" rel="nofollow">http://www.blanklabel.com</a>.</p>
| php jquery | [2, 5] |
1,034,808 | 1,034,809 | Need a sample on how to connect to a different system from the WEB application which is in the network? | <p>I developed an Web application which reads some data from the files from different systems in the network.As its a web application it can be used any where in the network ,,,,so my question is how do i connect to a different system by entering an ipaddress or systemname which are in the network.</p>
<p>currently i ... | c# asp.net | [0, 9] |
3,320,951 | 3,320,952 | Window.location.href not works when url has # symbol in it | <p>I have a popup call which takes the user credentials and login the user. Usully user would like to same page after login also. That's way I want to refresh the current page. I am using</p>
<pre><code> window.location.href="currentrul";
</code></pre>
<p>This works just fine when we don't have # symbol in url. Let'... | javascript jquery | [3, 5] |
1,292,198 | 1,292,199 | array empty on jquery? | <p>I'm trying to learn on making my first dynamic loader from scratch with jQuery (for learning purpose) here is where I got stuck:</p>
<pre><code><script type="text/javascript">
jQuery.learningdynamicloader= function(){
var js = [];
var css = [];
console.log(js,css);
};
</script>
<script... | javascript jquery | [3, 5] |
3,938,876 | 3,938,877 | Opera redirect problem | <p>Hi everyone i have a problem like this.</p>
<p>For example im in <a href="http://localhost/Search.aspx" rel="nofollow">http://localhost/Search.aspx</a>
I have 2 textboxes (txtUserName and txtPassword) in my page for login.
user can press enter key to call Login() method when any of these textboxes focused.
I captu... | javascript asp.net | [3, 9] |
1,053,184 | 1,053,185 | How to generate numbers within a starting and ending range? | <p>I have a starting range and ending range, and I need to be able to generate numbers withing this range, and increment the returned number by the start range + 1 every time, but never generate the same number twice.</p>
<p>Not sure how to do this with C#, any help would be great.</p>
| c# asp.net | [0, 9] |
5,042,297 | 5,042,298 | I have a table that is based on two foreign keys | <p>I have a table that is based on two foreign keys. One is <code>memberID</code>, and the second is <code>movieID</code>. I need to take from this table the row that connects these two and get from the same row <code>RentDays</code>, which is an <code>int</code>.</p>
<p>i did this but i think its not good:</p>
<pre>... | c# asp.net | [0, 9] |
5,876,517 | 5,876,518 | Looking for a good name for interface with inUse() method | <p>How would you name an interface which provides 1 method inUse()?</p>
| c# java | [0, 1] |
1,453,161 | 1,453,162 | Problem with Generate Local Resource and My simple custom control | <p>I have created simple controls that are based on dot net controls . For example there is a simple GridView control that is based on dot net GridView control , I just set some setting in my control to use it in my .aspx pages , for example I set the Width of GridView in the constructor method : </p>
<pre><code>// co... | c# asp.net | [0, 9] |
528,366 | 528,367 | Jquery change prev() input field | <p>Ok so i am trying to change the value of an input field by using jquery's prev() function. I have a text field with some links after it. When someone clicks on the link i want it to change the previous </p>
<pre><code><label>
<input type="text"/>
</label>
<ul>
<li onclick="field(... | javascript jquery | [3, 5] |
3,504,909 | 3,504,910 | Text labels in textbox being passed onsubmit | <p>I found this useful little method of displaying field titles within the text fields themselves.</p>
<p><a href="http://viralpatel.net/blogs/2009/09/default-text-label-textbox-javascript-jquery.html" rel="nofollow">http://viralpatel.net/blogs/2009/09/default-text-label-textbox-javascript-jquery.html</a> </p>
<p>Onl... | javascript jquery | [3, 5] |
513,008 | 513,009 | Items Compare Page ASP.NET C# | <p>I want to create an items compare page just like this:
<a href="http://www.autotrader.com/fyc/compare.jsp?sownerid=855612&end_year=2014&start_year=1981&keywordsfyc=&search_type=both&scarid=326877152&distance=10&default_sort=priceDESC&address=11413&sort_type=priceDESC&firstReco... | c# asp.net | [0, 9] |
4,297,806 | 4,297,807 | How can i localize the url for a sitemap? | <p>I have 2 links, one english one spanish. is there anyway i can localize that in .net? I was thinking of using sitemap</p>
| c# asp.net | [0, 9] |
5,142,684 | 5,142,685 | Variable in JSON path | <p>I would like to make the path to data contained in JSON variable.
The code I have now looks like this:</p>
<pre><code>function writeDB(block)
{
$.getJSON('js/data.js', function(data) {
if (block == "path1") { var adr = data.test.path1.db; };
if (block == "path2") { var adr = data.test.path2.db; };
if... | javascript jquery | [3, 5] |
3,497,077 | 3,497,078 | What PDF library should I use for Android? | <p>I have been developing Android application, and I need to read PDF-files in my app. There are some requirements for lib:</p>
<ul>
<li><p>will the solution be able to read fairly large files? Like if the file is much larger than available memory, would it be able to read piece by piece as the user browses?</p></li>
... | java android | [1, 4] |
2,476,837 | 2,476,838 | Extend Android virtual keyboard | <p>i'm thinking in something a la Appstore's Textsastic, this is, a full row of needed keys (parenthesis, slash, etc) right above the virtual keyboard, like it was an extention of it.</p>
<p>How can i accomplish something like that in Android?
Is there at least a way to have a listener when the virtual keyboard shows?... | java android | [1, 4] |
3,375,642 | 3,375,643 | ASP.Net - Link button not rendering proper html on Chrome and Mozilla | <p>I have link button on my page which working fine on IE but is not working on Chrome and Mozilla. When I dig into , i found that its rendering html is this </p>
<pre><code><div >
<a id="ContentPlaceHolder1_Register"
href="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions
(... | c# asp.net | [0, 9] |
789,418 | 789,419 | How to use local variable of a function in different page, Vs 2005, asp.net | <p>How to use a local variable of a function of a control in a different page in Asp.net.</p>
<p>I am new, please help me out! </p>
<p>Thanks!</p>
| c# asp.net | [0, 9] |
4,769,640 | 4,769,641 | Help making a "launcher screen" for my app, and making it look right across devices | <p>I posted a question here before: <a href="http://stackoverflow.com/questions/6539578/good-way-to-make-a-launcher-screen-for-sub-apps-within-your-app">Good way to make a launcher screen for sub-apps within your app?</a>, and then started working on other parts of the app, and now I'm back to the same thing. </p>
<p>... | java android | [1, 4] |
106,787 | 106,788 | jQuery error: SyntaxError: missing : after property id | <p>I have some jQuery in my page that keeps giving the error:</p>
<pre><code>SyntaxError: missing : after property id
</code></pre>
<p>In this code.</p>
<pre><code> $(document).scroll(function(){
var t1 = $("#main-page").offset().top;
if($(this).scrollTop() >= t1) {
$('#menu-item-70'... | javascript jquery | [3, 5] |
1,539,117 | 1,539,118 | JavaScript execution order - run this(), then that() when this() has finished? | <p>If for example, I have some jQuery doing something simple like:</p>
<pre><code>$("div").fadeIn('fast');
$("div").html('Foo');
</code></pre>
<p>That would fade in the div, and set its html to "Foo" whilst it's still fading in, whereas:</p>
<pre><code>$("div").fadeIn('fast',function(){
$("div").html('Foo');
});
... | javascript jquery | [3, 5] |
678,769 | 678,770 | bitly function returning undefined | <p>I've got a basic function that I'm trying to return a shorten url from bit.ly. My username and api_key have just been removed for this post but they've been tested and I'm getting a correct response with them. We've also checked and we are geting a JSON response with the correct data. </p>
<p>The problem I'm having... | javascript jquery | [3, 5] |
4,828,054 | 4,828,055 | Replacing occurence of character in a string with jquery | <p>I need to replace occurrence of very <code>\</code> with <code>-</code> in a string. I am using the following code but it replace only for once occruence:</p>
<pre><code>var start = '1/1/12';
startNew = start.replace('/', "-");
</code></pre>
<p>Result i am getting is: <code>1-1/12</code></p>
<p>Result i want is:... | javascript jquery | [3, 5] |
5,469,275 | 5,469,276 | After clicking the nth item, how do I manipulate another nth element? | <p>I'm using jQuery and wanting to target the nth <li> in a list after clicking the nth link.</p>
<pre><code><ul id="targetedArea">
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
<div id="clickedItems">
<a></a>
<a><... | javascript jquery | [3, 5] |
1,079,451 | 1,079,452 | how to return a .htm page as a view from controller action | <p>in my .aspx page i have something like this:</p>
<pre><code> <select id="seltemp" onchange="calltemp()">
<option value="0" selected="selected">Select Template</option>
<option value="1">Template1</option>
<option value="2">Template2</option>
<option value="3">Templ... | asp.net jquery | [9, 5] |
2,493,379 | 2,493,380 | jquery v javascript | <p>I have a function which I need to appear within a jQuery <code>$(document).ready(function() {}</code> - I am <a href="http://www.thefreedictionary.com/au+fait" rel="nofollow">au fait</a> with javascript but not really worked with jQuery. How can I jQuerify this function?</p>
<pre><code>function populateContext()
{
... | javascript jquery | [3, 5] |
1,875,316 | 1,875,317 | Scroll position in Sharepoint 2010? | <p>Do you know a way to find out a scroll position in JS or jQuery on a page in Sharepoint 2010? I have a web part that is very big (high) so scroll on the page appears. But I cannot determine the scroll position in any known way using javascript - it is always 0 </p>
<pre><code>self.pageYOffset;
document.documentEle... | javascript jquery | [3, 5] |
784,505 | 784,506 | pass post data with window.location.href | <p>When using window.location.href, I'd like to pass POST data to the new page I'm opening. is this possible using JavaScript and jQuery?</p>
| javascript jquery | [3, 5] |
3,538,881 | 3,538,882 | ASP.NET Img tag | <p>I have a problem with how ASP.Net generates the <strong>img</strong> tag.
I have a server control like this: </p>
<pre><code><asp:Image runat="server" ID="someWarning" ImageUrl="~/images/warning.gif" AlternateText="Warning" />
</code></pre>
<p>I expect it to generate this: </p>
<pre><code><img id="ctl00_... | asp.net javascript | [9, 3] |
3,990,649 | 3,990,650 | Get parent formname on child window using jquery? | <p>i have below form tag on parent page from which i open a popup. i want to get form Name attribute value(i.e "cust-100" ) on popup screen</p>
<pre><code><form action="/custAction" formName="cust-100">
</code></pre>
<p>i tried below</p>
<p><code>self.opener.document.$('[name="formName"]').val()</code> but ... | javascript jquery | [3, 5] |
1,715,817 | 1,715,818 | Can scripts in iframe interact with scripts in the main page | <p>I have an editor with an SWF multi-image uploader. Since not everyone will need to upload pictures in their article, i need to dynamically load this image uploader when necessary. I have to load it in an iframe because the uploader needs some external scripts to be loaded ahead. And since i need it's callback variab... | javascript jquery | [3, 5] |
754,116 | 754,117 | How to pass commands/scripts to Linux servers from ASP.NET | <p>We are trying to pass commands or shell scripts execution to Linux server from ASP.net.</p>
<p>For example, if we pass command <code>ls</code> from ASP.NET to Linux server, then it must provide a list of files present in the respective path to ASP.NET as output.</p>
<p>Can anyone share the idea how we can achieve... | c# asp.net | [0, 9] |
798,040 | 798,041 | Android Activity with Abstract Base Class throws a compile error "is not abstract and does not overrid abstract method..." | <p>I have a base class that extends ListActivity, that I want to use to implement a lot of common code used on multiple different Activity implementations.</p>
<p>I want to make this base class abstract to enforce implementation of a method on the subclasses.</p>
<p>If I write a base implementation of the method, and... | java android | [1, 4] |
609,901 | 609,902 | Access JavaScript variable from HTML element attribute | <p>Is there a way to access a JavaScript variable from an attribute from an HTML element?</p>
<p>For example:</p>
<pre><code><a href="#" id="id1" my-attr="test">click here</a>
<script type="text/javascript">
var test="hello world!";
$("#id1").click(function() { alert($(this).attr('my-attr')) });
&l... | javascript jquery | [3, 5] |
2,778,532 | 2,778,533 | Pass PHP to Javascript | <p>I have a PHP variable I want to add in Javascript, the problem is it's not getting the variable, please help I'm new to javascript. Sorry I think I did not explain very good.</p>
<p>At the moment I have three select boxes displaying Year, month, date the value of $row_info['birth'] is 2011-04-01. When I apply date... | php javascript | [2, 3] |
5,626,212 | 5,626,213 | Jquery toggle won't work after cloning | <p>I have cloned a list item using .clone in Jquery:</p>
<pre><code> $("#coll-selected-list li:contains(" + itemName + ")").clone().addClass("avgli").appendTo("#coll-grouped-list");
</code></pre>
<p>However, when I wish to toggle the newly added list item, it won't work for some reason. Any ideas?:</p>
<pre><code>$(... | javascript jquery | [3, 5] |
3,103,852 | 3,103,853 | Having duplicate values in DropDownList selection cause mismatch selection | <p>I have a <code>DropDownList</code>, which is bound to the database. The values in the <code>DropDownList</code> list may be something like:</p>
<blockquote>
<p>Bedroom1<br>
Bedroom2<br>
Kitchen1<br>
Kitchen2 </p>
</blockquote>
<p>When these items are list in <code>DropDownList</code>, having sele... | c# asp.net | [0, 9] |
5,458,899 | 5,458,900 | Next and Previous page links | <p>I have 5 pages, as below. I would like to add a next and previous button that loops through the pages.</p>
<pre><code>http:www.mydomain/project_listing/a
http:www.mydomain/project_listing/b
http:www.mydomain/project_listing/c
http:www.mydomain/project_listing/d
http:www.mydomain/project_listing/e
</code></pre>
| javascript jquery | [3, 5] |
4,321,636 | 4,321,637 | Is it possible to send a value of a variable from a js file to a php file | <p>I have script and I'd like to know if it's possible the send the value of a variable to $_session,</p>
<pre><code> <script>
$(function() {
var delivery = 0;
$('#jcart-paypal-checkout').click(function() {
delivery = $('form#delivery2 input[type=radio]:checked').val();
if(!delivery) {
... | php javascript | [2, 3] |
5,566,006 | 5,566,007 | Can I remove just the last added class from an element with jQuery | <p>Hey guys, the question pretty much asks itself... however, for more clarity:</p>
<p>I have an element called "chuckPalahniuk" and it has classes named "choke", "fightclub" and "haunted".</p>
<p>How could I get it so when I click on the "chuckPalahniuk" element, it removes "haunted" first, then "fightclub" on the s... | javascript jquery | [3, 5] |
3,472,148 | 3,472,149 | What is the "click.smoothscroll" event in jQuery? | <p>I have seen the following code:</p>
<pre><code>$('a[href^="#"]').on('click.smoothscroll',function(e) {...}
</code></pre>
<p>I do not understand what the click.something is.
I know the function like this: </p>
<pre><code>$('a[href^="#"]').on('click',function(e) {...}
</code></pre>
<p>what is the something/smooths... | javascript jquery | [3, 5] |
2,179,864 | 2,179,865 | JAVA vs PHP for web development | <p>I am new at web developing. I know C# and java. I want to develop a site which will be in MVC framework. But I can't decide (java spring, jakarta struts) or (CakePHP, CodeIgniter, Symphony) will be better for me. As I know java, java MVC frameworks will be best for me, but how much java will fit in web development? ... | java php | [1, 2] |
2,027,962 | 2,027,963 | how do i change image src onclick with jquery, Sound/Mute buttons | <p>Hey guys i really need some help with this!
So i need to change an image when you click on it to another one. Essentially its a sound button so when its clicked it shows mute.</p>
<p>So far I'm completely baffled and have no idea where to start i know i can use Jquery/Javascript. Please help me!! here is my code:</... | javascript jquery | [3, 5] |
2,264,224 | 2,264,225 | convert the date into different format jquery/javascript | <pre><code>function loadTable() { //function
var reportedFromDate = document.IssueForm.reportedFromDate.value; //getting value from input field
alert(reportedFromDate); //displays dd-mm-yy 31-02-13
}
</code></pre>
<p>I want to convert it as <strong><code>31-FEB-13</code></strong></p>
| javascript jquery | [3, 5] |
3,501,803 | 3,501,804 | How to draw a dotted circle in android sdk? | <p>I am very new to Android sdk. I need to display a dotted circle with in the view. But My requirement is to display a dotted circle. But I don't have an idea how to do it?. Can you guys please let me know if any one know this ?</p>
<p>Thank you,
-Sek.</p>
| java android | [1, 4] |
4,602,554 | 4,602,555 | Sending information to API using Android | <p>I am trying to contact an API and get the response. As part of my debugging I want to insure that the response is being recorded, it should be an xml response.</p>
<p>Here's what I have:</p>
<p>public class http extends Activity {</p>
<pre><code>public void httpMethod(){
HttpClient httpclient = new DefaultHtt... | java android | [1, 4] |
1,300,976 | 1,300,977 | how to get text box value in page init? | <p>I am using asp.net 2.0</p>
<p>I set a hidden text box from javascript and on postback, i want to check the value stored on the text box in page init event. Here is what i tried</p>
<pre><code>string t = Request.Form["currentMode"].ToString();
</code></pre>
<p>but i get an error saying " Object reference not set t... | c# asp.net | [0, 9] |
1,999,776 | 1,999,777 | When/why would you use Linq in an application? | <p>i know how linq works but i am not getting idea where exactly i should use linq? </p>
| c# asp.net | [0, 9] |
5,977,058 | 5,977,059 | Best API model design | <p>I have offline JSON definitions (in assets folder) - and with them I create my data model. It has like 8 classes which all inherit (extend) one abstract Model class. </p>
<p>Would it be better solution if I parse the JSON and keep the model in memory (more or less everything is Integer or String) through the whole ... | java android | [1, 4] |
126,969 | 126,970 | ASP.NET 3.5, googlebot, 301 Redirect "Cannot redirect after HTTP headers have been sent" | <p>I have set up a dynamic 301 redirect routine within a custom HttpModule. The code accepts the incoming url, parses the querystring, and using a config and app specific logic, redirects to a new SEO friendly url using the following code:</p>
<pre><code>if (HttpContext.Current.Response.IsRequestBeingRedirected)
r... | c# asp.net | [0, 9] |
4,393,269 | 4,393,270 | How can i determine whether a mouse is connected or not using PHP? | <p>Is it possible to determine whether mouse or keyboard is plugged in or not in PHP? If not is it possible in Java? </p>
| java php | [1, 2] |
2,712,027 | 2,712,028 | CS1061: Compilation Error Message | <p>i have added a linkbutton to my page and get error when debugging says:
CS1061: 'ASP.uilayer_test_aspx' does not contain a definition for 'lbl_Click' and no extension method 'lbl_Click' accepting a first argument of type 'ASP.uilayer_test_aspx' could be found (are you missing a using directive or an assembly referen... | c# asp.net | [0, 9] |
5,828,249 | 5,828,250 | How to refresh android GridView | <p>I'm doing GridView activity that first show default image, then i start a new thread for netowrk task to download image from datatbase, and i would like that after the thread is finished, the GridView will automatically refresh the images in grid.</p>
<p><a href="http://stackoverflow.com/questions/8053919/how-can-i... | java android | [1, 4] |
220,211 | 220,212 | Trying to show message in asp.net using Javascript | <p>I am doing project in asp.net in C#. I am trying to show message in script format.
For that i am using the below code</p>
<pre><code>Page page = new Page();
page.ClientScript.RegisterClientScriptBlock(this.GetType(), "Key", "alert('Your Full Name Sucessfully Updated...');", true);
</code></pre>
<p>but it is not s... | c# javascript asp.net | [0, 3, 9] |
2,237,892 | 2,237,893 | Javascript or jQuery to select a option in select element | <p>I am wanting to automatically select the option with the value of fr.</p>
<pre><code><select class="goog-te-combo">
<option value="">Select Language</option>
<option value="fr">French</option>
</select>
</code></pre>
<p>Is this possible with javascript or jQuery ? </p>
| javascript jquery | [3, 5] |
3,830,877 | 3,830,878 | How can I take a different values from different tables and store in another table? | <p>I want to take the <code>customer id</code> from a <code>customer table</code>, <code>restaurant id</code> from a <code>restaurant table</code>, and <code>order id</code> from <code>order table</code>. I want to store these values in a single table detail. How might I do this?</p>
| c# asp.net | [0, 9] |
1,198,128 | 1,198,129 | how to change cached picture from javascript | <p>I have a asp image control. ImageUrl="images/avator.jpg". I'm changing this picture on the server and then setting imageUrl same as previous url on the client. but image don't changed. When i click refresh button, image changed.
How to change cached image won't changing url?</p>
| asp.net javascript | [9, 3] |
2,675,927 | 2,675,928 | Getting the proper document height with Jquery | <p>Goodevening/night </p>
<p>A small yet annoying jquery problem. I would like to get the height of my document. To do that i use the following code: </p>
<pre><code>$docHeight = $(document).height();
</code></pre>
<p>When i visit my page in a normal way (by clicking at a href at some other page) I get the correct h... | javascript jquery | [3, 5] |
2,375,062 | 2,375,063 | Any jquery plugin like twitter auto completion | <p>I need to do something like twitter. If I type <code>@</code>, it will show a list of who I am following, and then I can select one, insert name to the textarea.</p>
<p>Are there any good plugin for this?</p>
| javascript jquery | [3, 5] |
1,821,117 | 1,821,118 | $("123").ready (fn(){}) triggering no matter what | <p>I have a problem where the $().ready is triggering no matter what I put into the parameter which means that it actually triggers before the page is ready. I am using ASP.NET mixed in with EXT.NET and would like to implement jQuery to spice things up a little. As the description says, it triggers no matter what so if... | javascript jquery asp.net | [3, 5, 9] |
1,461,646 | 1,461,647 | what is python equivalent to PHP $_SERVER? | <p>I couldn't find out python equivalent to PHP $_SERVER. </p>
<p>Is there any? Or, what are the methods to bring equivalent results?</p>
<p>Thanks in advance. </p>
| php python | [2, 7] |
859,242 | 859,243 | jQuery image fade enlarge top and bottom px | <p>I want to make the effect like, after click the box, the box disappeared after expanding its both top and bottom, I did some work, but expends only on bottom. and the effects not quite good, I'd like to make the box bigger. <a href="http://jsfiddle.net/wY8Wb/" rel="nofollow">http://jsfiddle.net/wY8Wb/</a> if someo... | javascript jquery | [3, 5] |
640,690 | 640,691 | page method not working | <p>I'm calling a page method using a jquery function that's somewhat like this:</p>
<pre><code>function GetNewDate(thedateitem) {
ThisMonth = 3;
TheDay = 1;
TheYear = 2011;
DateString = TheMonth + '/' + TheDay + '/' + TheYear;
$.ajax({
type: "POST",
url: "/Pages/CallH... | jquery asp.net | [5, 9] |
711,148 | 711,149 | number of trailing zeros | <p>What <code>Integer.numberOfTrailingZeros(x)</code> does in Java, is there a similar function in C#?
tnx</p>
| c# java | [0, 1] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.