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 |
|---|---|---|---|---|---|
1,740,245 | 1,740,246 | myphp.php?x=8&y=8? | <p>Posted this question:</p>
<p><a href="http://stackoverflow.com/questions/5365042/if-not-a-href-javascript-then-what-e-g-mobile-phones">If Not A HREF Javascript then what [e.g. mobile phones]</a></p>
<p>Using [php]</p>
<pre><code>echo "<input type='image' src="someimage.gif" alt='Some Image' onclick='yourFuncti... | php javascript | [2, 3] |
179,453 | 179,454 | comparing two string[] | <p>throwing me an error here:</p>
<pre><code>string.Compare(list[], list1[],true); <<<<<<
</code></pre>
<p>is causing the error.</p>
<pre><code>string[] list = { "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "v", "z" };
strin... | c# asp.net | [0, 9] |
3,437,188 | 3,437,189 | Game: Algorithm for spawning enermies at game/window egdes | <p>I'm looking for an algorithm for spawning enermies at the egdes for the gameboard/window for an Android game. I'm doing the old SpaceWars/Shooting asteriods with spaceship and i need the asteroids to spawn at random locations outside the gameboard, where after they will move into the gameboard in different direction... | java android | [1, 4] |
5,907,000 | 5,907,001 | jQuery keydown event disable | <p>Is it possible to disable an specific key combination? CTRL + U for example?</p>
<p>I don't want to allow the user to press ctrl + u in order to see my javascript code. I only had disabled the left click but i would like more "protection".</p>
<p>Thanks!</p>
| javascript jquery | [3, 5] |
3,345,324 | 3,345,325 | Edit Image FaceBook Style | <p>i got a script after searching google for Edit Image FaceBook Style but found no html element in the script. so my concern is how to use it. the url is <a href="http://netindonesia.net/blogs/cipto/archive/2009/10/24/jquery-plugin-edit-image-facebook-style.aspx" rel="nofollow">enter link description here</a></p>
<p>... | jquery asp.net | [5, 9] |
3,434,429 | 3,434,430 | Button has no text | <pre><code>$(function() {
$('#enable_disable_btn').unbind('click');
if ('{{$userStatus()}}' == 'Active') {
$('#enable_disable_btn').html("Disable User");
$('#enable_disable_btn').click(DisableUser);
} else {
$('#enable_disable_btn').html("Enable User");
$('#enable_disable_btn... | javascript jquery | [3, 5] |
4,300,294 | 4,300,295 | JavaScript In UserControl Wont Run | <p>I am trying to run the following script from my usercontrol:</p>
<pre><code><script type="text/javascript" language="javascript">
function RebindUpdatePanelControls(sender, args) {
$("#divUpload2").hide();
$("#divUpload3").hide();
alert("Hi Neck");
$('#lnkMore').click(func... | javascript asp.net | [3, 9] |
5,172,711 | 5,172,712 | dynamic textbox near label in C# | <p>Sorry for reposting this but I haven't figure out how to do it.</p>
<pre><code>string str = string.Empty;
foreach (ListItem item in this.CheckBoxList1.Items)
{
if (item.Selected)
{
str += item.Value + "<br><br>";
TextBox txt1 = new TextBox();
... | c# asp.net | [0, 9] |
5,449,342 | 5,449,343 | Slideshow controls jQuery | <p>I have a slideshow im trying to make slide left and right when a control is clicked only im struggling.</p>
<p>The markup is...</p>
<p>
Left
right
</p>
... | javascript jquery | [3, 5] |
4,942,241 | 4,942,242 | Jquery how to get top leftcorner of page? | <p>I would like to mask a asp page by a div, this one have to completly cover the page.</p>
<p>I can get the size of page and resize the div with this values:</p>
<pre><code> var maskHeight = $(document).height();
var maskWidth = $(window).width();
//Set height and width to mask to fill up the whole... | asp.net jquery | [9, 5] |
4,690,836 | 4,690,837 | Altering a Jquery Drop Down Filter Plugin to Refocus on the Dropdown after applying the Filter | <p>The Plugin I'm using is direct from the Jquery site, Source Pastebin'd Here <a href="http://pastebin.com/RRr6EJhv" rel="nofollow">http://pastebin.com/RRr6EJhv</a></p>
<p>When the Filter is applied to the Select Box in Question I'd like focus to return to the drop down because the plugin automatically selects the fi... | javascript jquery | [3, 5] |
3,086,609 | 3,086,610 | Microsoft JScript runtime error: Unable to get value of the property 'style': object is null or undefined | <p>This is my code line throwing error</p>
<pre><code>$get("Panel1").style.visibility= "visible";
</code></pre>
<p>This line works well on normal page .But whenever using it on child page which owns a master page it throws the error as "Microsoft JScript runtime error: Unable to get value of the property 'style': obj... | c# javascript asp.net | [0, 3, 9] |
472,433 | 472,434 | change img src and width | <p>I change the scr of an img tag using jQuery, such as,</p>
<pre><code>$("#img1").attr("src", "pic1.png");
</code></pre>
<p>after this, I try to get the width of img (it's not set in html), </p>
<pre><code>$("#img1").width();
</code></pre>
<p>it seems the width is not changed with the src, did I miss something? t... | javascript jquery | [3, 5] |
2,549,675 | 2,549,676 | javascript passing variable to a function inside a function | <p>I have a problem getting the value of 'name' displayed with the following:</p>
<pre><code> for (var name in array) {
var hoverIn = function() {
alert(name);
};
var hoverOut = function() {
};
thing.hover(hoverIn, hoverOut);
}
</code></pre>
<p>What I ... | javascript jquery | [3, 5] |
4,959,702 | 4,959,703 | AES Encryption done on both Iphone and Android | <p>We are creating same project in android and iphone. Now problem is that we need to send user information to aspx server using webservice in encrypted form. We both have implemented it but results are diiferent so is there a common AES encryption method which will produce same result and can be parsed at server.</p>
... | android iphone | [4, 8] |
2,028,229 | 2,028,230 | Cross platform Java? Android and desktop | <p>We have a desktop/web java application and also getting into Android development.</p>
<p>Ideally we would like one app that runs both on desktop and android.</p>
<p>From what we can tell, it's not much possible to run normal java apps on android. But wondering if it can do it the other way? That is, run android ... | java android | [1, 4] |
2,172,099 | 2,172,100 | How to add multiple objects of class for same key value in HashMap in java? | <p>I want to store objects of class from arraylist to hashmap, one key may contain multiple objects, how to do that </p>
<p>here is my code,</p>
<p><code>Map<Integer, classObject> hashMap = new HashMap<Integer, classObject>();</code></p>
<pre><code>for(int i=0; i<arraylist.size(); i++)
{
... | java android | [1, 4] |
4,045,833 | 4,045,834 | Redirect a page using handler? | <p>How can I redirect a page when a session is not filled out in asp.net handler?</p>
| c# asp.net | [0, 9] |
322,187 | 322,188 | string decode utf-8 | <p>How i can decode an utf-8 string in android? I have try with this commands but output it same of input:</p>
<pre><code>URLDecoder.decode("hello&//à", "UTF-8");
new String("hello&//à", "UTF-8");
EntityUtils.toString("hello&//à", "utf-8");
</code></pre>
| java android | [1, 4] |
639,727 | 639,728 | How do I open a new window/tab and dynamically fill it with content? | <p>I am building a website that displays recipes. Each recipe appears as part of a blog entry, and will have a link at the bottom to <code>Print this recipe</code>.</p>
<p>What I want to happen is a click on the link opens a new window and fills it with a print-friendly-styled version of the recipe, which is already i... | php javascript jquery | [2, 3, 5] |
4,611,464 | 4,611,465 | Change Sender URL in ASP.NET | <p>I want to change sender PAGE URL to anything in my website. </p>
<p>For example I have a webpage named "DEFAULT.ASPX" thats got a Form tag action="http://otherpage.aspx". When I submit the form it's sending my values that are in the form to otherpage.aspx. This page is getting them and does its work.</p>
<p>But o... | c# asp.net | [0, 9] |
2,853,537 | 2,853,538 | jquery works in chrome and firefox, not IE | <p>this won't work in IE... any ideas? When clicked it just loads the new page</p>
<pre><code><script type="application/javascript" src="lib/js/photos_fb_manage.js"></script>
<ul class="photoList">
<li id="k877575065600">
<a href="/mem_fb_addphotos.php?addphoto.php?fbpid=87757506... | javascript jquery | [3, 5] |
3,557,043 | 3,557,044 | Array in jQuery? | <p>How to deploy array in jQuery and java script?
i need to explore in this topic? Can any one help me? </p>
| javascript jquery | [3, 5] |
1,489,371 | 1,489,372 | getting id of literal control | <p>I am working Asp.net and c#.</p>
<p>In my application i have a <strong>Autocomplete textbox</strong> with literal control.I need to get the <strong>Id</strong> of that literal control in my codebehind,but i couldn't get because there is no <strong>runat</strong> attribute.If i use runat attribute my Autocomplete is... | c# asp.net | [0, 9] |
1,583,921 | 1,583,922 | ASP.NET DATA TABLE Traverse Problem | <p>I am getting the Data table a output from my DataAccess Layer.</p>
<p>In My Datatable I am getting users Name,Number,Qualification</p>
<p>I want to assign a users name,number,qualification to a textbox for a particular user id,</p>
<p>How can i do that.</p>
<p>Help</p>
| c# asp.net | [0, 9] |
5,530,732 | 5,530,733 | jQuery .val() not working when setting a variable | <p>If i have an input like so:</p>
<pre><code><input type="text" id="textvalue" />
</code></pre>
<p>the following code will change its value:</p>
<pre><code>$(document).ready(function() {
$('#textvalue').val("hello");
});
</code></pre>
<p>however the following will not work:</p>
<pre><code>$(document).re... | javascript jquery | [3, 5] |
3,843,946 | 3,843,947 | Is it possible to test how many options are in a select box? | <p>I am using the jQuery 1.6.2.</p>
<p>I am dynamically populating a select box using ColdFusion and jQuery.</p>
<p>When the options are returned and stuffed inside the select box, I'd jQuery to figure out how many options there are and adjust the size attr as needed. </p>
<pre><code>// load the options into the sel... | javascript jquery | [3, 5] |
3,576,156 | 3,576,157 | jQuery Sliding Tabs: control options- NEXT/PREVIOUS | <p>I am trying to control tabs with a next/previous options. This is my <a href="http://jsfiddle.net/kFNtX/1/" rel="nofollow">JSFIDDLE EXAMPLE</a>. I have spent hours researching and found the method NEXT/PREVIOUS function in this <a href="http://css-tricks.com/jquery-ui-tabs-with-nextprevious/" rel="nofollow">WEBSITE<... | javascript jquery | [3, 5] |
3,693,691 | 3,693,692 | Is there a OnExit or Leave event on ASP.NET textbox? | <p>I need to run some code on server when user leaves the Textbox, it will do some calc over what's been typed. I'd rather avoid doing it with jQuery, because it would involve creating a JSON server, etc.</p>
<p>Isn't there a way to do a postback for such an event?</p>
| c# asp.net | [0, 9] |
4,996,574 | 4,996,575 | Android record exists() in database? | <p>I am looking to the fastest and the correct way to check if a record exists in the database:</p>
<pre><code>public boolean Exists(String _id) {
Cursor c=db.query(TABLENAME(), new String[] {"1"}, "_ID="+_id, null, null, null, null);
if (!c.equals(null))
return c.moveToFirst();
return false;
}
</c... | java android | [1, 4] |
1,519,757 | 1,519,758 | jQuery - chaining a native function | <p>Can anyone explain why I can chain a native JavaScript function to a jQuery function like so:</p>
<pre><code>$('#search').val().replace("00:00:00", "")
</code></pre>
<p>In this case, replace is the native JavaScript function.</p>
<p><a href="http://www.w3schools.com/jsref/jsref_replace.asp" rel="nofollow">http://... | javascript jquery | [3, 5] |
2,836,069 | 2,836,070 | Email validation in createuser wizard | <p>I'm using createuser wizard for creating new users. I'm not using any membership provider. While creating a new user, the user has to enter the email address in the createuser wizard. How to know that the entered email address is correct? If a user enters the email as abcd@abcd.com, how to know that it is a valid em... | c# asp.net | [0, 9] |
3,257,284 | 3,257,285 | How to fetch image without image tag in RSS parsing? | <p>I am parsing XML of a RSS feed, in the main web site there are images in all items, but in the RSS feed there is no image tag or link. How can I merge the parsed data from RSS and a image from the main website? Is there any way?</p>
| java android | [1, 4] |
2,382,038 | 2,382,039 | Cloning an element and adding it to Dom multiple times | <pre><code>//I am cloning a dom element and inserting it in dom element multiple times
<div class='toBeCloned'>some text</div>
<div id='target'></div>
var _clone=$('.toBeCloned').clone(true);//create clone
var _target=$('#target'); //this is target
_target.append(_clone); ... | javascript jquery | [3, 5] |
3,080,449 | 3,080,450 | Data persistence and updates in ASP.NET Web Forms | <p>I'm currently working on a web app/game using C# and ASP.NET(3.5). However, I'm running into a problem of variables used in the main page being reset to null whenever I click a button on the web form. I'm wondering if there was a way to allow to variables to persist for the life cycle of the entire application, as w... | c# asp.net | [0, 9] |
1,809,817 | 1,809,818 | jQuery plugin to choose thumbnails from external links (like facebooks "attach link")? | <p>I am looking for a jQuery plugin with PHP script to do the same as in facebook "attach link" action, where facebook gives the user a list of thumbnails from the external link to represent the link. thanks!</p>
| php jquery | [2, 5] |
2,835,585 | 2,835,586 | Does python have a call_user_func() like PHP? | <p>Does python have a function like <code>call_user_func()</code> in PHP?</p>
<p>PHP Version:</p>
<pre><code>call_user_func(array($object,$methodName),$parameters)
</code></pre>
<p>How do I achieve the above in Python?</p>
| php python | [2, 7] |
1,652,315 | 1,652,316 | Problem With Custom Control on Page Using a MasterPage | <p>I have a content page which has a related master page.
I register a prefix <%@ TagPrefix ..... and can load other custom controls at that namespace.
However, one particualar control at the same namespace, when added to the aspx page, breaks it.
The control in question inherits from asp:Panel, has a parameterless ... | c# asp.net | [0, 9] |
5,234,626 | 5,234,627 | How to use php and mysql functions inside javascripts | <p>Here is my javascript code which is added in the tag of my php/html page:</p>
<pre><code><script type="text/javascript">
$(document).ready(function() {
$('#status').change(function(){
var status = $('#status').val();
var html = ''; //string variable ... | php javascript | [2, 3] |
2,343,241 | 2,343,242 | iframe resizing | <p>I'm using the jQuery plugin: <a href="http://plugins.jquery.it/project/jquery-iframe-resizer" rel="nofollow">http://plugins.jquery.it/project/jquery-iframe-resizer</a></p>
<p>However it seems to be working only within the same domain...</p>
| javascript jquery | [3, 5] |
1,356,422 | 1,356,423 | How to get div height value in JavaScript or jQuery? | <p>I need to get a <code>div</code>'s height in JavaScript or jQuery and change it's value in CSS.</p>
<p>How could I do this in jQuery or JavaScript?</p>
| javascript jquery | [3, 5] |
1,032,618 | 1,032,619 | File-drop hover like gmail | <p>I have the following html:</p>
<pre><code><div class="drop_window">
<input class="drop_target" type="file" class="crop locale" size="800" />
<div class="file_name">{{ video.original_file_name }}</div>
</div>
</code></pre>
<p>To have the drop_window change color on hover, I can... | javascript jquery | [3, 5] |
720,127 | 720,128 | jQuery: How to capture the TAB keypress within a Textbox | <p>I want to capture the TAB keypress, cancel the default action and call my own javascript function.</p>
| javascript jquery | [3, 5] |
185,949 | 185,950 | jQuery content slider | <p>I am just delving into using jQuery and I want to start off by using good coding logic. I am developing an upload site where users can select "upload from computer" or "upload from url". I have two links above the content where users can choose to upload from their computer or from a url, and I want the content to c... | javascript jquery | [3, 5] |
1,399,453 | 1,399,454 | Multiple jQuery jPages plugin divs on single page | <p>I am trying to figure out how to get jPages to display two unrelated lists on a single page.</p>
<p>The plugin supports multiple navigation panels and I think this may be causing the problem.
Even though the panels control their respective lists they still act as if linked - so for example moving to page two on one... | javascript jquery | [3, 5] |
1,315,722 | 1,315,723 | Returning values from Asynctask | <p>Okay I have been trying to get this to work for some time now. I want to be able to have my user login without having the UI hang until the server responds. When the doinbackground is complete I want it to pass an int value or perhaps a boolean value to the postexecute and then the rest of my code will execute. For ... | java android | [1, 4] |
1,642,237 | 1,642,238 | Dynamically capture an image of a specific url in asp.net C# | <p>I want to capture an image of a specific URL in asp.net C#. I can't find any thing on the web.</p>
| c# asp.net | [0, 9] |
4,211,711 | 4,211,712 | Strange bug with tabbed content box, prevent click and multiple instances | <p>I have a page which is going to have multiple tabbed content boxes on but I cant seem to get my box working when theres more than one, Also i need to disable the "A" tag with the class disable on only for some reason everything Ive tried I cant seem to prevent the event! </p>
<p>Ive made a fiddle if anyone can help... | javascript jquery | [3, 5] |
4,063,639 | 4,063,640 | Evaluating params before serializing | <p>I'm building some functions to retrieve data whether you supply some params or don't. It will be used mostly with a geolocator function. Since it may provide (or not) the location, the function should be able to handle that but I'm not able to do that.</p>
<p>Here is the code:</p>
<pre><code>function getData(posit... | javascript jquery | [3, 5] |
4,288,333 | 4,288,334 | jQuery's return value is Array, but constructor is Object. how? | <p>for example,</p>
<pre><code>$(document) // [ #document ] : document object in array
typeof $(document) // "object"
$(document).constructor // function Object() { [native code] } or function (a,b) { return some function; }
</code></pre>
<p>If value is array, it have to be Array constructor. </p>
<p>It's not an arr... | javascript jquery | [3, 5] |
5,071,138 | 5,071,139 | calling javascript from codebehind or dopastback in javascript | <p>i have a button1_click() function which runs on page load,,now i want to call this function from javascript,,for that purpose i need to do dopostback in javascript,,can nyone tell how can i do that..as u can see my pageload function that button1_click() runs on postback</p>
<pre><code>protected void Page_Load(objec... | c# asp.net javascript | [0, 9, 3] |
4,312,408 | 4,312,409 | Move focus to a particular field | <p>I have a button that will add show a form on the page. how can I move the focus to the first field of the form when that button is clicked?</p>
<p>simple example:</p>
<p>HTML:</p>
<pre><code><form style="display:none;" id="newForm">
<input type="text" id="firstField">
</form>
<input type="... | javascript jquery | [3, 5] |
3,116,806 | 3,116,807 | Click event handler and ready handler defined in different js file - not working | <p>click event handler on add button is not working if i do following(click event defined in add.js and ready event is present in index.js).</p>
<p>If i put click event handler and ready handler in index.js, click event works (alert popup).</p>
<p>Please help me.</p>
<p>Note: #add_button is a static button ( present... | javascript jquery | [3, 5] |
897,674 | 897,675 | PHP empty function in python | <p>I have the following PHP code, and for the life of me I can't think of a simple & elegant way to implement around the empty() function in python to check if the index is defined in a list.</p>
<pre><code>$counter = 0;
$a = array();
for ($i=0;$i<100;$i++){
$i = ($i > 4) ? 0 : $i;
if empty($a[$i]){
... | php python | [2, 7] |
1,028,927 | 1,028,928 | Create array of values from array of objects | <p>Is there any tool to to create: </p>
<pre><code>[ 'John', 'Sam', 'Marry' ]
</code></pre>
<p>from:</p>
<pre><code>[ { name: 'John' }, { name: 'Sam' }, { name: 'Marry' } ]
</code></pre>
<p>?</p>
| javascript jquery | [3, 5] |
2,004,308 | 2,004,309 | Javascript Call from ASP.NET GridView - Parameter not getting passed | <p>I use a jQuery popup window to show a new page with a parameter in the query string.</p>
<pre><code> <script language="javascript" type="text/javascript">
function ShowProfile(clickedItem) {
$.fn.colorbox({ html: '<iframe SCROLLING="Yes" frameborder="0" src="SiteVP.aspx?siteid="' + cli... | javascript asp.net jquery | [3, 9, 5] |
625,314 | 625,315 | Grab URL parameters to maintain search form options using jQuery or javascript | <p>I have a set of search filters that set a URL string (for further processing). As the page reloads to show the results, the options selected by the user are lost. I was wondering if it's possible to use jquery to capture the parameters from the url and 'remember' what options had been selected?</p>
<p>For example, ... | javascript jquery | [3, 5] |
5,040,799 | 5,040,800 | I have a string which contains a decimal point e.g. "10.00" and I want to hide it using jQuery? | <p>I have a string which contains a decimal point e.g. "10.00" and I want to hide it using jQuery? I need to trim it to "10" from "10.00".</p>
| javascript jquery | [3, 5] |
5,213,826 | 5,213,827 | online payment process in radio button | <p>hi guys im developing in my own website.every thing works fine.i want to know if i clicks the any one of the radio button that value change correspondingly.can any one please post some code i tried this below code. my website is http:spsmobile.co.uk just check the link
in this page u just go to phone unlock and clic... | javascript jquery | [3, 5] |
4,693,561 | 4,693,562 | Is it possible to step through the members of a C++ struct? | <p>I want to step through the members of a C++ struct and print out their values. I can easily code this explicitly, but is there any way of doing it without actually knowing what's in the struct?</p>
<p>I suppose I'm looking for a C++ equivalent of C#'s foreach command.</p>
<p>Thanks for any help.</p>
<p>ADD: I'm d... | c# c++ | [0, 6] |
1,709,102 | 1,709,103 | Stop jQuery functions when ASP.NET autopostback controls are used | <p>Is there in easy way to stop the default settings of jQuery functions when clicking an ASP.NET button? It seems there should be an easy way to stop the function from running when autopostback controls are used.</p>
| jquery asp.net | [5, 9] |
565,228 | 565,229 | Uncaught SyntaxError: Unexpected token } | <p>I have a piece of jQuery code which appends an input button to the body and then assigns an onclick function to it. The function that is meant to be called has been defined elsewhere and takes two arguments which are variables that have been defined just before.</p>
<p>This is the code I'm currently using:</p>
<pr... | javascript jquery | [3, 5] |
5,864,263 | 5,864,264 | How to hide Saturday and Sunday from the asp:calendar? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/554111/how-can-i-hide-weekends-when-using-the-asp-net-calendar-control">How can I hide weekends when using the ASP.NET Calendar control?</a> </p>
</blockquote>
<p>I am using an <code>asp:calendar</code> and I ne... | c# asp.net | [0, 9] |
2,436,307 | 2,436,308 | passing more than one variable to another page in asp.net | <p>I want to pass more than one variable to other web pages.</p>
<p>I try this code</p>
<p><code>string adi = TaskGridView.SelectedRow.Cells[3].Text;</code></p>
<p><code>string soyadi = TaskGridView.SelectedRow.Cells[3].Text;</code></p>
<p><code>Response.Redirect("Default2.aspx?adi=" + adi);</code></p>
<p><code>Re... | c# asp.net | [0, 9] |
2,767,885 | 2,767,886 | Add comma to textbox after spacing in jQuery | <p>I need to create a script that adds a comma and space (after the comma) to a textbox when a user presses the space bar.
If no text has been inserted then a comma should not be added. I have looked everywhere to find a solution.</p>
<p><strong>Example</strong></p>
<pre><code>This, Is, A, Keyword
</code></pre>
<p><... | javascript jquery | [3, 5] |
4,549,407 | 4,549,408 | asp.net,c#.net Read Only Field | <p>I have a textbox.Texbox is readonly. And on Page_Load the Texbox automaticlly displayed
with a value from the data base.i have a 'if' loop for check the text box value is null
or not.But i cant retrive the textbox value.What may be the reason for that?
my web page code is</p>
<pre><code><asp:TextBox ID = "text1"... | c# asp.net | [0, 9] |
1,935,472 | 1,935,473 | How to include return values from a different file in a variable | <p>I can return a value from embedded php within the variable (as below), but in this case I would like to get the output of a php file e.g. result.php.</p>
<pre><code>var jsVar = "<?php echo 'thisisfromphp' ?>";
</code></pre>
<p>So running 'result.php' would produce a result to be returned. How could I grab th... | php javascript | [2, 3] |
1,579,090 | 1,579,091 | what is the best strategy to handle messages between UI code (Activities) and business logic code | <p>I'm looking the best way to Implement the messages and notifications between activities and the business logic code, I used listeners but I had to register and unregister to avoid that activity do any thing while it is not active.have any body use better strategy </p>
| java android | [1, 4] |
155,358 | 155,359 | Is `Response.Flush()` meaningful if i use `Response.End()` directly afterwards? | <p>I use to end my transmission to the client by flushing and ending as in the code below.</p>
<pre><code>Response.Flush();
Response.End();
</code></pre>
<p>However, it just hit me that <code>Response.End()</code> flushes the buffered contents to the client. So is there any point using both in a sequence?</p>
| c# asp.net | [0, 9] |
2,945,472 | 2,945,473 | java android decode and scale image not work for gif images | <p>I'm using this method for decoding and scale image. This method work fine for png and jpg images, but for gif images not work!
Can some one tell me how to modify this method to work and for gif images??</p>
<pre><code> private Bitmap decodeFile(File f){
try {
//decode image size
BitmapFactor... | java android | [1, 4] |
47,498 | 47,499 | How to run separate application from Android button click | <p>I tried to add two buttons in my Android application to select an application from separate two applications Order system and Inventory system.As shown in the image.</p>
<p><img src="http://i.stack.imgur.com/PslmY.jpg" alt="enter image description here"></p>
<p>I have implemented these two applications as separate... | java android | [1, 4] |
4,044,927 | 4,044,928 | Passing and getting hyperlinks into a single JQuery function | <p>What I would like to do is to take several links that may be on a page and send only the link that was clicked on to a PHP script to be parsed.</p>
<pre><code><a href="?something=2&id=100&somethingelse=55" class="link">My First Link</a>
<a href="?something=3&id=400&somethingelse=65" c... | javascript jquery | [3, 5] |
1,707,301 | 1,707,302 | Save Page / Print Page buttons for the page that iframe src is linking to | <p>Assuming I have outerpage.html</p>
<pre><code><html>
<head>
</head>
<body>
<input type="button" id="printPage" name="printPage" />
<input type="button" id="savePage" name="savePage" />
<iframe src="someOtherPage.html"></iframe>
</body>
</html>
... | javascript jquery | [3, 5] |
437,863 | 437,864 | How to make tooltip in JQuery for a textbox? | <p>Anyone knows how to make tooltip for textbox? Like the image below: </p>
<p><img src="http://i.stack.imgur.com/dz8X8.png" alt="enter image description here"></p>
<p>I want the tooltip be positioned at the near-right of the textbox, plus with some animation.<br>
Any suggestion will be appreciated.</p>
| javascript jquery | [3, 5] |
5,637,438 | 5,637,439 | Store jQuery objects in an array/object | <p>I want to create a JS array that contains jQuery objects like this:</p>
<pre><code>var oFormFields = new Object;
oFormFields.label = $(document.createElement('label'));
oFormFields.input = $(document.createElement('input'));
</code></pre>
<p>Since this crashes my code, i expect this is not possible. Any alternativ... | javascript jquery | [3, 5] |
2,348,090 | 2,348,091 | document.getElementById works, but $ is throwing an error | <p>I have this code here : </p>
<pre><code><select id="test">
<option value="1">test1</option>
<option value="2" selected="selected">test2</option>
<option value="3">test3</option>
</select>
</code></pre>
<p>In my script I have these two line of ... | javascript jquery | [3, 5] |
4,229,822 | 4,229,823 | How to show a loading message while preloading images in a for loop? | <p>I'm using this code to preload all the images I need</p>
<pre><code>var cache = [];
function preloadImages() {
var i;
$("#loading").html("loading...");
for (i = 0; i <= 180; i++) {
var src = source.replace("###", i);
var cacheImage = document.createElement("img");
cacheImage... | javascript jquery | [3, 5] |
927,129 | 927,130 | Converting a byte swapping/shifting code snippet from C++ to .NET | <p>I have a short code snippet in C++ and I need to have the same functionality in C#:</p>
<pre><code>typedef enum {eD=0x0, eV=0x1, eVO=0x2, eVC=0x3} eIM;
#define htonl(x) ( ( ( ( x ) & 0x000000ff ) << 24 ) | \
( ( ( x ) & 0x0000ff00 ) << 8 ) | \
( ( ( x ) ... | c# c++ | [0, 6] |
5,331,631 | 5,331,632 | Manipulation of Input checkbox | <p>Is there anyone who can help me how can for this logic using jQuery?</p>
<p>I have two checkboxes in my form. Once I click the first checkbox, the second checkbox will also check and vice versa. I hope you can help me. Thank you!</p>
| javascript jquery | [3, 5] |
2,175,229 | 2,175,230 | asp.Net prevent server side link with javascript | <p>I have an ImageButton as follows</p>
<pre><code><asp:ImageButton OnClientClick="javascript:merge();" ID="MenuLinkMerge" Text="Merge" ToolTip="Merge" SkinID="Merge32" runat="server" onclick="MenuLinkMerge_Click" />
</code></pre>
<p>merge() will call</p>
<pre><code>function merge() {
if (IDList.length >... | javascript asp.net | [3, 9] |
2,000,940 | 2,000,941 | Search engine logic with pagination, working with large result set | <p>i've got a website with internal search engine that searches for users with specific parameters like age, height.... There are thousands of users so i've decided to use advanced CTE in order to retrieve 10 records each time to reduce load on MSSQL server.</p>
<p>In this CTE i get results by pages (ie. 10 records pe... | c# asp.net | [0, 9] |
3,460,583 | 3,460,584 | Help submitting an asp.net form with jquery | <p>I'm trying to post the entire asp.net form to a certain url.</p>
<p>I have tried:</p>
<pre><code>$.post("http://www.someaddress.com", $("form").serialize());
</code></pre>
<p>I have also tried:</p>
<pre><code>$.ajax({
type:"POST",
url:"http://www.someaddress.com",
data: $('form').serialize(),
suc... | asp.net jquery | [9, 5] |
4,097,708 | 4,097,709 | dynamically added div will not work when being called on | <p>I am trying to create a list of divs. When the new layer button is clicked, there is a new div created with a unique ID. When I try to call on these dynamically added divs, there is no response. I am confused because the preexisting divs work. </p>
<pre><code><input type="submit" id="newLayer" value="New Layer"&... | javascript jquery | [3, 5] |
1,603,133 | 1,603,134 | how to set textbox value in jquery | <p>How do I properly load the a certain value into a textbox using jquery?Tried the one below but I get the <code>[object Object]</code> as output. Please enlighten me on this, I'm new to jquery.</p>
<pre><code> proc = function(x,y) {
var str1 = $('#pid').value;
var str2 = $('#qtytobuy').value;
va... | javascript jquery | [3, 5] |
2,996,010 | 2,996,011 | asp.net TreeView and jquery | <p>How can I get selected node text and value of asp.net treeview via jQuery?</p>
| asp.net jquery | [9, 5] |
1,597,194 | 1,597,195 | line break in alert popup | <p>I am trying to add a new line Javascript alert message. I tried '\n' and 'Environment.NewLine'. I am getting Unterminated string constant error. Could you please let me know what could be the problem? I appreciate any help. I also tried \r\n.</p>
<pre><code>string msg = "Your session will expire in 10 minutes. \n P... | c# javascript asp.net | [0, 3, 9] |
250,333 | 250,334 | Hierarchy from char delimited string | <p>I have been doing a lot of research on my problem and can't seem to come up with a good solution.</p>
<p>the problem I have a list containing the following</p>
<pre><code>a
a/b
a/b/c
a/b/c/d
a/b/f
a/1
a/2
t
t/1
</code></pre>
<p>I need to parse that into a class that can handle parent child hierarchy. Knowing that... | c# asp.net | [0, 9] |
3,825,964 | 3,825,965 | how to convert datetime? to datetime | <p>I have filed <code>txtb_dateOfService</code> is required to complete the form but if <code>txtb_dateOfService</code> is emapty return null if not TryParse the date <code>></code> I had this error I don't know how to fix it</p>
<blockquote>
<p>The best overloaded method match for
'System.DateTime.TryParse(st... | c# asp.net | [0, 9] |
2,206,979 | 2,206,980 | (Why) does this ajax queue overwrite response data? | <p>I use the ajax-request queue as posted here: <a href="http://stackoverflow.com/questions/3709597/">Wait until all jquery ajax request are done?</a> </p>
<p>Now i wrote the following code to implement it: </p>
<pre><code>for (var i=0; i<3; i++) {
$.ajaxQueue({
url: '/action/',
data: {action... | javascript jquery | [3, 5] |
4,837,400 | 4,837,401 | Remove HTML tags from a javascript string | <p>I have this code :</p>
<pre><code>var content = "<p>Dear sms,</p><p>This is a test notification for push message from center II.</p>";
</code></pre>
<p>and I want to remove all <code><p></code> and <code></p></code> tags from the above string. Just want to display the string val... | javascript jquery | [3, 5] |
3,289,255 | 3,289,256 | JavaScript, JQuery Problem: Function triggered automatically when page load! | <p>I'm a newbie in jQuery, so excuse me for asking such a simple question. I want to use <a href="http://plugins.jquery.com/project/spin-button" rel="nofollow">jQuery Spin</a> library and get notified when the value is changing. Here is my code:</p>
<pre><code><script>
$(document).ready(function(){
$.spin.im... | javascript jquery | [3, 5] |
3,787,932 | 3,787,933 | Trying to pass a selector but on second pass the object is passed | <p>I am trying to write a function to change the image every half second 10 iterations. On the last iteration the image src will be set to the actual value. This works for the first loop but the first time the <code>setTimeout</code> fires it passes the <strong>object</strong> <code>mo456</code> instead of the <strong... | javascript jquery | [3, 5] |
436,001 | 436,002 | The name 'xxx' does not exist in current context user control | <p>I have this statemen at the beginning:</p>
<pre><code><%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucCreditCard.ascx.cs"
Inherits="UserControls_Common_ucCreditCard" %>
</code></pre>
<p>in ucCreditCard.ascx.cs I have this:</p>
<pre><code>using System;
using System.Text;
using System.Text.Re... | c# asp.net | [0, 9] |
3,599,407 | 3,599,408 | Android kill any internet activity | <p>Is there any way to ensure that internet activity ceases for an app when the app is closed (finish()). Though all my streams appear to be getting closed before the app exits, I have signs that tell me streams are still alive even after I close the app.</p>
| java android | [1, 4] |
2,456,586 | 2,456,587 | Weird Behavior of Jquery Children | <p>The first children call alerts the id of the form's direct children which is ul's id : "mainId". As far as I understand then this is the expected behavior of children but the second call subscribes the change event of both checkboxes which are not the direct children of the form. How come?</p>
<pre><code><!DOCTY... | javascript jquery | [3, 5] |
1,362,920 | 1,362,921 | jQuery scroll to a certain number of pixels (or other units) above a particular element | <p>I have a page that scrolls to a particular element. Problem is, the page scrolls all the way to the top of the element... I would like to have a bit of a "buffer" between the top of the page and the element. I am currently doing:</p>
<p><code>$("html,body").animate({scrollTop: $("#elementID").offset().top},"slow");... | javascript jquery | [3, 5] |
3,800,741 | 3,800,742 | how to send mp3 file to an android app from a website | <p>i was wondering how this can be coded -</p>
<ol>
<li>My android app has a link to my website which hosts mp3 files - ex: abc.com/xxx.mp3</li>
<li>my website gets the request from the app for xxx.mp3, and sends the mp3 file back </li>
<li>the app sort of downloads the mp3 file to its local storage, and then plays th... | php javascript android | [2, 3, 4] |
5,194,606 | 5,194,607 | Second Ajax Request problem in IE | <pre><code> var xmlhttp;
if (window.XMLHttpRequest)
{ // code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{ // code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.open("GET" , "rajax_calls.php?"+form_data , ... | php javascript | [2, 3] |
5,251,436 | 5,251,437 | Is there a way to input values on a web site's text box using a database table values? | <p>I have a table with username and passwords that I want to input in Hotmail's username and password box. Is there a way to actually program this? Are you allowed to manipulate text boxes of someone else's webpage? Not for illegal purposes, just to make my job easier and to not have to input values manually one by one... | java php javascript | [1, 2, 3] |
105,600 | 105,601 | Can we change the font size through code behind? | <p>I need to change the font size of bold thing below. I have a css for use but this bold part needs font changed to 8px instead of 10(css). i want someone to help me with how to change in Code behind.</p>
<pre><code>string newpackname = dschkdowngraded.Tables[0].Rows[0]["ChangedTo"].ToString();
DateTime dt = Convert.... | c# asp.net | [0, 9] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.