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,258,606 | 1,258,607 | How to use if or try catch block inside server tag | <p>I am wondering if it is possible to use an if statement or a try catch block within a server tag? ie:</p>
<pre><code>'<%= if(grid!=null){((DropDownList)this.grid.FindControl("SRPType")).ClientID} %>'
</code></pre>
| c# asp.net | [0, 9] |
34,633 | 34,634 | Cannot use document javascript object when running from Java | <p>I have the following javascript code that runs from java:</p>
<pre><code>var doc = document.implementation.createDocument('http://www.w3.org/1999/xhtml', 'html', null);
doc.documentElement.innerHTML = xmlResponse;
</code></pre>
<p>And I get the following error:</p>
<pre><code>Caused by: sun.org.mozilla.javascrip... | java javascript | [1, 3] |
4,965,284 | 4,965,285 | 'undefined' function when triggering a click of a link with jQuery | <p>For some reason this works in FF 11, Chrome, and even in IE but not in FF 3.6 or Safari 5.</p>
<p>Basically I'm triggering the click of a link with:</p>
<pre><code>var $currentItem = $('#' + currentId);
var modalSeriesList = $('.js-modal-series');
var index = modalSeriesList.index($currentItem);
var $nextItem = mo... | javascript jquery | [3, 5] |
6,105 | 6,106 | How to call a java script function from code behind some button click condition? | <p>i want to open a model pop up on some button click in code behind which has got a few if else condition. First of all i am unable to fix what would be best approach.
What i options i think are followign.
1) calling a jquery model pop up
2) ajax model pop up</p>
<p>It is a button which fix on some button click condi... | javascript jquery asp.net | [3, 5, 9] |
529,936 | 529,937 | jQuery: hover div set link to visible | <p>I have a that contains a link with class 'remove-project' that I want to default to hidden and set to visible when the div is hovered. So far I have this (which doesn't work)</p>
<pre><code>$('.project-container').hover(function() {
$(.remove-project).show();
},
function() {
$(.remove-project).hide();
});
... | javascript jquery | [3, 5] |
5,924,064 | 5,924,065 | Is it possible to bind two separate functions to the same event | <p>Basically I'd like to bind function A to all inputs. Something like this:</p>
<pre><code>$('input').bind('change', function() { bla bla bla });
</code></pre>
<p>And then later I would like to bind something different in addition like this:</p>
<pre><code>$('#inputName').bind('change', function() { do additional p... | javascript jquery | [3, 5] |
3,740,482 | 3,740,483 | How to live-style an user input using javascript/jquery | <p>im searching for a libary or suggestions for making a real time styler in javascript/jquery. The idea is that my users have a html text input, i need to detect in real time some patterns and apply an style to it, for example is the user writes #some_text all after the # should be considered like a tag a have to be b... | javascript jquery | [3, 5] |
3,102,503 | 3,102,504 | Asp.net Menu displaying diffrent menu items depending on access level | <p>I'm trying to create an asp menu for a website. The site will have 2 levels of user Master users (which will have more options) and Sub users which will have limited menu options. </p>
<p>I was wonder does anyone knows if a way to hide menu items? I've tried google but I can't really find much.</p>
<p>Here's the ... | c# asp.net | [0, 9] |
2,251,883 | 2,251,884 | Dynamically deny access to locations | <p>I'm looking to dynamically instruct ASP.NET to deny access to specific locations. So, instead of having something like the following in the Web.config, I'd like to do that through C# code.</p>
<blockquote>
<pre><code><location path="specialDir">
<system.webServer>
<security>
... | c# asp.net | [0, 9] |
923,063 | 923,064 | __dopostback is not working in javascript function | <p>am calling <code>__dopostback</code> function in javascript while closing event of browser but its not working in Chrome.</p>
<p>the same function is working in IE </p>
<p>can any one give me the solution.</p>
<pre><code><script type="text/javascript" language="javascript">
function doUnload()
{
var btn... | javascript asp.net | [3, 9] |
3,374,941 | 3,374,942 | jQuery ID Number Range | <p>I am trying to write a jQuery script that will add a class to list items within a certain ID range. I use numbers in my ID's and want to adjust a range of ID's.</p>
<pre><code><li id="item-15">Something</li>
<li id="item-16">Something</li>
<li id="item-17">Something</li>
<li i... | javascript jquery | [3, 5] |
5,281,915 | 5,281,916 | Simple jQuery issue - how to check if $(this) is the last $(this) clicked? | <p>I am essentially adding radio-buttons functionality to buttons with the class "tagbutton". There is a flaw with my code, because _this is never _last...</p>
<pre><code> taguid = "";
_last = "";
$('.tagbutton').live('click', function() {
_this = $(this);
if(_last) {
//There was a last objec... | javascript jquery | [3, 5] |
3,061,229 | 3,061,230 | Javascript MVC + listening and dispatching events with jQuery | <p>I'm learning javascript and have a question about listening and dispatching events with jQuery. </p>
<p>In my Model, I have a function that triggers a change event: </p>
<pre><code>Model.prototype.setCurrentID = function(currentID) {
this.currentID = currentID;
$('body').trigger('change');
}
</code></pre... | javascript jquery | [3, 5] |
4,272,707 | 4,272,708 | Delaying while loop in AJAX success function | <p>Hi guys i have the following code </p>
<pre><code>$.ajax({
url: "http://localhost/twee/chat/getnumcom",
type: 'POST',
data: form_data,
success: function(html) {
var data = parseInt(html);
page = 20 * data ;
while ( counter < page ) {
$.get("htt... | javascript jquery | [3, 5] |
1,300,609 | 1,300,610 | ASP.NET Server.Execute | <p>I'm having some problems with Server.Execute that I can't seem to find any details on.</p>
<pre><code>Page page = new WidgetProcessor(Widget);
Server.Execute(page, htmlTextWriter, true);
</code></pre>
<p>The Widget in the above code is a simple object that knows how to instantiate a usercontrol. The WidgetProcess... | c# asp.net | [0, 9] |
3,809,398 | 3,809,399 | jQuery obscurity | <p>This is kind of funky. But take a look at the code snippet below :</p>
<pre><code>$('.classname').bind('click', somefunction);
function somefunction() {
console.log($(this)); // **displays[<div>,context<div>]**
}
</code></pre>
<p>And if I tweak the above to:</p>
<pre><code>$('.classname').bind('cli... | javascript jquery | [3, 5] |
2,144,802 | 2,144,803 | how to check the first time user of my App in android? | <p>In my App, first it shows a splash screen. after that another activity, then my main activity must be show. this is my design plan. the second activity(i.e before main activity) must be show for the first time user of the app. if he/she closes the app.splash screen will redirect to main activity automatically. how t... | java android | [1, 4] |
2,935,362 | 2,935,363 | Remove statically added controls at runtime | <p><strong>The Scenario:</strong> I have an asp.net website where I show a div popup on page load for taking a few user details. When a user inputs the details, or closes the popup, I set up a flag cookie so that the popup is not displayed again for the user. The div is in the MasterPage so that it is displayed no matt... | c# asp.net | [0, 9] |
4,021,462 | 4,021,463 | Dynamic creation of divs | <p>I want to create dynamic divs in a ASP.NET application.</p>
<pre><code>protected void Page_Load(object sender, EventArgs e)
{
List<produkt> produkte = Repository.GetProductsRanged(0, 9).ToList();
}
</code></pre>
<p>As you can see, there is a of products (10 elements) and I want to put some of there attri... | c# asp.net | [0, 9] |
913,067 | 913,068 | How would you create a Fancy Panel which applies extra styles? | <p>I would like a FancyPanel Control that automatically applies styles the content in it, for example</p>
<pre><code><asp:FancyPanel runat="server" id="pnl1">
<Header>
Header Text
</Header>
<Body>
//any regular aspx markup
</Body>
<Footer>
F... | c# asp.net | [0, 9] |
2,521,266 | 2,521,267 | Differentiate between current domain and domain of requested image | <p>I want to be able to differentiate between images requested from the current domain and from external domains to deal with canvas and cross domain requests. I am currently proxying all absolutely sourced images and not proxying local ones using</p>
<pre><code>if ( $(this).attr('src').substr(0, 4) == 'http') { …
</c... | javascript jquery | [3, 5] |
2,269,629 | 2,269,630 | How to remove validation focus in particular validation control | <p>i discover final line's validation has higher priority than i set focus of first line's validation control even when i set focus it code behind.</p>
<p>want to disable some validation focus</p>
<p>discover even if i SetFocusOnError="false" on some validation, it still not scroll to the top of page</p>
<p>after t... | c# asp.net | [0, 9] |
831,807 | 831,808 | jQuery each on appended elements | <p>I'm using autocomplete plugin in jQuery and I've created a method which appens elements selected in autocomplete result.</p>
<pre><code>$("#buscar").autocomplete({
source: "procesos/buscarPersona.php",
minLength: 2,
select: function(event, ui ){
var name = ui.item.value;
var id = ui.item.id_persona;
$("... | javascript jquery | [3, 5] |
4,038,188 | 4,038,189 | how to upload file of size 500 MB or more in ASP.net aplication | <p>Please let me know the possible ways of uploading a large file (say 500 MB excel File) in an ASP.net application. This was asked in an interview and I have no idea on how to achieve this.</p>
| c# asp.net | [0, 9] |
2,556,553 | 2,556,554 | where does the Editable.append() implemented? | <p>Here is the code :</p>
<pre><code>Editable text = (Editable)mResults.getText(); //mResults is a TextView.
</code></pre>
<p>I want to know, when i call <code>text.append("***")</code>,which implements is called? I can't find where the Editable interface is implemented.</p>
| java android | [1, 4] |
1,707,917 | 1,707,918 | Save android value and retrieve it again | <p>I have the following void</p>
<pre><code>protected void onPaymentSuccess(PaymentResponse response) {
// Stuff...
}
</code></pre>
<p>I want to save a string within a void for example</p>
<pre><code>String key = "JHIJHFEIRUFHEURFGEU5";
</code></pre>
<p>And i want to be able to retrieve it again (this string to b... | java android | [1, 4] |
1,951,307 | 1,951,308 | android minutes:seconds | <p>I'm looking for a solution to display <code>minutes:seconds</code> duration from <code>1785.16 string android device</code></p>
<p>In php its simple:</p>
<pre><code><?php
$seconds = '1785.16';
$minutes = floor($seconds/60);
$secondsleft = $seconds%60;
if($minutes<10)
$minutes = "0" . $minutes;
if($seconds... | java android | [1, 4] |
1,209,439 | 1,209,440 | add slideUp and slideDown to hidden divs | <p>I'm using the below to create a fade-in and fade-out effect on a hidden div on a FAQ page. Problem is, it makes the hidden div snap open and closed which is quite irritating. I'm not too hot on javascript and can't figure out how to get <code>slideUp</code> and <code>slideDown</code> into this, as I'd like it to als... | javascript jquery | [3, 5] |
182,924 | 182,925 | using document.images.src property in javascript i want to get list of images source | <p>I am able to get it when hardcoding but throwing error while trying it with for loop.</p>
<pre><code>for(i=0;i<document.images.length;i++)
{
document.writeln(document.images[i].src);
}
</code></pre>
<p>actually after printing first index value loop is terminating
error:cannot read ob... | javascript asp.net | [3, 9] |
1,523,175 | 1,523,176 | jQuery(document).ready() load() aspx | <p>I am using jQuery 1.3.1 and saying <code>$('#somediv').load('somepage.aspx')</code> An aspx that have a Repeater which loads few images. When loading is complete a <code>cycle()</code> function (jQuery plug-in) will be called upon them.</p>
<p>Now I have this working on <a href="http://www.techlipse.net/test/agb" r... | asp.net jquery | [9, 5] |
771,455 | 771,456 | Build separate pages or not | <p>I have about 20 grid views that I have to create. All of them are pretty standard across the board. Just take IEnumerable T and display it in a grid view, that's it. </p>
<p>I would prefer to create one aspx page and have the grid view be dynamically generated by using ITemplate. And I guess for the data source use... | c# asp.net | [0, 9] |
2,717,492 | 2,717,493 | How to use JQuery selectors on a HTML String? | <pre><code>$.get(url, function(data){}
</code></pre>
<p>This JQery function returns a string with the code of the page 'url'.
How can I use the JQuery selectors on it to extract the tags informations that I need?</p>
| javascript jquery | [3, 5] |
2,499,196 | 2,499,197 | Best way to create master page that has menu and links but displays main content from other pages | <p>I've got a bunch of asp pages that I'm upgrading to asp.net. I'm trying to figure out a good way to achieve the following:</p>
<p>I basically wan't a portal page that has a menu bar and links to other sites in the company intranet but instead of redirecting to the other site when the link is clicked, it loads the p... | c# asp.net | [0, 9] |
1,633,939 | 1,633,940 | Is there internal layout with icon and text? | <p>I know that there are many iternal layouts which I can use for adapters - android.R.layout.simple_list_item_1, android.R.layout.select_dialog_item, etc. But is there any internal layout which I can use for making item with icon and text (image_<em>_</em>_text)? Why android.id should I use for it? </p>
| java android | [1, 4] |
6,013,106 | 6,013,107 | Hidden variable Vs Server variable accessing on client side in javascript | <p>I'm evaluating two options of accessing a server side data on client side. Little bit confused about the efficiency or may be you can call it as finding best approach to do it.</p>
<p>I need to access a server side data may be an integer value in javascript on client side. I know about two options to do it.</p>
<o... | c# asp.net javascript | [0, 9, 3] |
3,617,593 | 3,617,594 | How to change execution context in jQuery without invoking the function | <p>I'm a lover of MooTools, and get used to bind the callback functions, for example:</p>
<pre><code>element.addEvent('click', callback.bind(this));
</code></pre>
<p>Assume <em>this</em> is the current execution context. This statement means that, I'm binding the execution context of <em>this</em> to the function <em... | javascript jquery | [3, 5] |
5,952,167 | 5,952,168 | How to grab just one part of a page in jQuery? | <p>I have an form being submitted via AJAX. The response from the server in an entire web page (HTML). I would like to alert only the content within a span tag with the id "message" which exists on that response page. I don't want to alert the entire page. How to do this?</p>
<pre><code>$.ajax({
url: '/accounts/log... | javascript jquery | [3, 5] |
2,555,022 | 2,555,023 | can I call a javascript function in another project? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/7974131/how-can-i-call-javascript-function-from-another-project-in-same-solution">how can I call javascript function from another project in same solution?</a> </p>
</blockquote>
<p>I am using an asp.net 3.5 web... | javascript asp.net | [3, 9] |
23,206 | 23,207 | JQuery - Switch text on click not working properly | <p>If you take a look at <a href="http://mountainfoodstorage.com/index.php/media" rel="nofollow">this page here</a> you will see that I have a Youtube gallery setup which for the most part works. When you click onto a thumbnail, it switches the video but it doesn't switch the text at the right side properly. It seems t... | javascript jquery | [3, 5] |
2,682,788 | 2,682,789 | How to define function parameter with jQuery | <p>i have some syntax problem... This is my little script:</p>
<pre><code>$('.basket_details, .advanced_search_panel, .producers_major_panel').hover(function () {
mouse_is_inside = true;
}, function () {
mouse_is_inside = false;
});
$("body").mouseup(function () {
if (mouse_is_inside) {
$('.advance... | javascript jquery | [3, 5] |
2,517,460 | 2,517,461 | Registering javascipt with ScriptManager is working inconsistently | <p>I'm developing an ASP.NET page. Currently there is no AJAX on the page. in the code behind for different button click events, I am registering the script below. The purpose of the script is to scroll the window to a particular anchor tag. The method is as follows:</p>
<pre><code>public void RegisterAnchor(string an... | javascript asp.net | [3, 9] |
1,793,096 | 1,793,097 | Save form element server side | <p>How do I check and save Server Side the value of the check element (so it saves the input when user clicks back) on these form elements instead of doing this? This is not working when I click "Back" button. The check item shows as checked but in reality the action is blank.</p>
<pre><code><label>
<in... | php javascript | [2, 3] |
2,398,716 | 2,398,717 | How to cancel/undo onclick once done | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/14637427/how-to-undo-an-onclick">How to undo an “onclick”</a> </p>
</blockquote>
<p>I'm auto embedding YouTube video.</p>
<p>When clicking on the preview picture, it hides the preview and shows the video.</p>
... | javascript jquery | [3, 5] |
588,419 | 588,420 | Using ASP.Net tags in a .js file? | <p>Is it possible to embed <code><% ... %></code> tags in a javascript file and have it render the appropriate server-side code? How can this be done?</p>
| javascript asp.net | [3, 9] |
29,884 | 29,885 | scan barcode using android phone camera using ASP.net webpage? | <p>i am asp developer. i want to use android phone camera as scanner. How can i do that? the output need to goes in textbox on web page.
Is there is any API or Javascript for this?</p>
| javascript android asp.net | [3, 4, 9] |
2,527,738 | 2,527,739 | ASP .NET - How to refresh a databound DataList? | <p>I have a DataList that is bound to a SQlDataSource.
The SQLDataSource returns a stored procedure value containing the max indentity value in a table.</p>
<p>On the same page as the DataList I have a DetailsView that is used to add new records to the table. </p>
<p>The problem is that after adding a new record to ... | c# asp.net | [0, 9] |
819,968 | 819,969 | Add all elements in array | <p>I have function that is getting the width of my images in list and I need to count them all together. When I do it in foreach it brings some weird number.</p>
<p>This function is getting width of every element, I really don't care about every element, just how much width they are taking together...</p>
<pre><code>... | javascript jquery | [3, 5] |
5,660,457 | 5,660,458 | How to make a click on a child element not be considered a click on it's parent in jQuery? | <p>The question of how to detect a click on anywhere except a specified element has been answered a couple of items like here:</p>
<p><a href="http://stackoverflow.com/questions/321239/event-on-a-click-everywhere-on-the-page-outside-of-the-specific-div">Event on a click everywhere on the page outside of the specific d... | javascript jquery | [3, 5] |
338,800 | 338,801 | How to filter same name controls using JQuery | <p>I have a tabcontainer control which contains 5 tabs. Each tab contains a usercontrol if i create a button e.g btnControl1 in usercontrol of tab1 & in second tab's usercontrol i create a button with the same name btnControl1. How can i filter tab1's usercontrol's btnControl1 & tab2's usercontrol's btnControl... | jquery asp.net | [5, 9] |
4,061,740 | 4,061,741 | Android FragmentManager Listeners | <p>While searching for the best way to store and notify listeners (weak references vs strong references, anonymous listeners vs garbage collector), I took a look at how Google implement their listeners. The following code codes from the FragmentManager class:</p>
<pre><code>ArrayList<OnBackStackChangedListener> ... | java android | [1, 4] |
2,872,687 | 2,872,688 | Disable Chars in TextBox | <p>Is there a possibility to disable some Inputs like Spacebar, Linebreak etc. in an TextView / TextBox?</p>
| java android | [1, 4] |
5,679,966 | 5,679,967 | JavaScript Namespace with jQuery | <p>How do you manage namespace for a custom JavaScript library depends on jQuery?</p>
<p>Do you create your own namespace, say <code>foo</code> and add your objects there? e.g. <code>foo.myClass, foo.myFunction</code></p>
<p>Or do you add your objects to jQuery's namespace? e.g. <code>jQuery.myClass, jQuery.myFunctio... | javascript jquery | [3, 5] |
3,537,360 | 3,537,361 | javascript confirm value not working | <p>i have a confirm and alert message box.
both are getting displayed at the right time.</p>
<p>but in confirm box when i press cancel the applyaction_button_click is getting executed, which should not happen as i return false.</p>
<p>Similar is the case with alert box which returns false still applyaction_button_cli... | c# javascript asp.net | [0, 3, 9] |
3,299,384 | 3,299,385 | Append parameters to a URL based on checkboxes | <p>So I have a list of 8 checkboxes in a form. These checkboxes are supposed to control a link that will load in a frame. However I have no idea where to start...<br>
Checkbox1(appendThis1) - checked<br>
Checkbox2(appendThis2)<br>
Checkbox3(appendThis3) - checked<br>
Checkbox4(appendThis4)<br>
Checkbox5(appendThis5) - ... | php javascript | [2, 3] |
2,736,183 | 2,736,184 | Creating and assigning console.log a new object | <p>I have seen code like this in several places:</p>
<pre><code>(function() {
var method;
var noop = function noop() {};
var methods = [
'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error',
'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log',
'markTimeline', ... | javascript jquery | [3, 5] |
3,121,069 | 3,121,070 | How to load images from the local machine to JS object avoiding loading to the server | <p>I want to load an image file from the computer directly to any js object without using any server-side component. For example, I want to select a picture from the local machine and display it on a webpage. Is there a way to avoid file upload to the server?</p>
<p>In fact I want to write a kind of multiple image loa... | javascript jquery | [3, 5] |
4,502,712 | 4,502,713 | jQuery conflicts of many scripts | <p>I am asking my question after I have tried many ways to solve it but i couldn't.
I have conflicts with jQuery scripts in my site. The other I have changed the $ to jQuery and they worked but this script didn't work for me.</p>
<p>This code below works only the second script but the first script no.</p>
<pre><code... | php jquery | [2, 5] |
1,576,448 | 1,576,449 | Call onSaveInstanceState without calling super.onSaveInstanceState(outState) | <p>If I will use this code without calling super.onSaveInstanceState(outState);</p>
<pre><code>@Override protected void onSaveInstanceState(Bundle outState) {
super.onSaveInstanceState(outState);
outState.putLong(ID, mId);
}
</code></pre>
<p>like this: </p>
<pre><code>@Override protected void onSaveInstanceS... | java android | [1, 4] |
5,758,787 | 5,758,788 | Parsing a string with Jquery or Javascript | <p>How do i pull out the 30 or the 55 basically the number before the last number</p>
<pre><code>http://something.com:9090/general/35/30/205
http://something.com:9090/general/3/55/27
http://something.com:9090/general/36/30/277
</code></pre>
| javascript jquery | [3, 5] |
4,835,500 | 4,835,501 | What is the fastest way to check whether a specific UserID exists in the array using Jquery or Javascript | <p>I have an array of objects <code>gAllMedicalFilesClaimantsArray</code> with 2 properties (UserID & UserInfo)</p>
<p>For example:</p>
<pre><code>gAllMedicalFilesClaimantsArray[0].UserID = "111";
gAllMedicalFilesClaimantsArray[0].UserInfo = "AAA-111";
gAllMedicalFilesClaimantsArray[1].UserID = "222";
gAllMedic... | javascript jquery | [3, 5] |
5,029,946 | 5,029,947 | jquery click event on container and not contents | <p>I have a h3 which is clickable, (it fires a drop down).
It also contains a input check box to turn on/off a value, however I don't want it to trigger the drop down.</p>
<p>Any ideas how this can be done?</p>
<p>Here's my markup</p>
<pre><code><div id="" class="dropDownTitle">
<h3 class="h3"> Some ... | javascript jquery | [3, 5] |
3,803,726 | 3,803,727 | JavaScript: value of an object on a click event | <p>I'm working on a codecademy.com lesson that's teaching me how to build a bar graph with jQuery. The last set of instructions are to add a click event to $bar to display it's value. It explains</p>
<blockquote>
<p>Anonymous functions go like this: <code>function(arg) { code }</code>. In this
case, a .click handl... | javascript jquery | [3, 5] |
1,338,600 | 1,338,601 | "Magic" constants in C# like PHP has? | <p>I am building a logging control for a C# project and would like to be able to call it with the name of the current source code File, Line, Class, Function, etc. PHP uses "magic constants" that have all of this info: <a href="http://php.net/manual/en/language.constants.predefined.php" rel="nofollow">http://php.net/ma... | c# php | [0, 2] |
2,069,128 | 2,069,129 | How to make a textbox empty in code behind | <p>I have a textbox (txtbox1) which has some value in it. I want to empty the value of textbox. Is that possible in code behind? If yes, how?</p>
<p>Thanks!</p>
| c# asp.net | [0, 9] |
2,890,378 | 2,890,379 | how to set login control to compare the credentials stored in web.config? | <p>I have set my credential in web.config as :</p>
<pre><code><authentication mode="Forms">
<forms loginUrl="Login.aspx" name=".ASPNETAUTH" protection="None" path="/" timeout="20">
<credentials passwordFormat="MD5">
<user name="Nayeem" password="pwd"></user>
... | c# asp.net | [0, 9] |
3,507,216 | 3,507,217 | Android multitasking problem | <p>I have an android application which main view consists of a tab-bar with three tabs in it.</p>
<p>When developing and running the application on the device through adb I get the following behavior:</p>
<ul>
<li>When clicking the phone button "Home screen" and relaunching the application it seems as the application... | java android | [1, 4] |
1,495,690 | 1,495,691 | What are best practices for combining PHP and Jquery? | <p>I am building a MySQL/PHP ticketing system application for a fairly big company which will possibly have between 1000-2000 users. This is my first real enterprise application and so I really want to make sure I do things properly based on best practices. I am not what you would call a seasoned developer. I know how ... | php jquery | [2, 5] |
5,635,214 | 5,635,215 | Javascript - Regx to check for characters | <p>All,</p>
<p>I am looking for a JavaScript function that checks for the following characters (without commas) in a string. If they are present, it would return false, else returns true</p>
<pre><code><,>,(,),#,"",',:,::
</code></pre>
<p>Thanks</p>
| javascript jquery | [3, 5] |
3,797,730 | 3,797,731 | JQuery script runs twice | <p>some JQuery scripts in web page runs twice. What is all about ? Maybe somebody faced such problem ? </p>
<p>For example(code that gets total items number from DB and runs in $(document).ready(function(){}); ):</p>
<pre><code>$.post("/index/getitemscount/", {} ,function(data){
$('#items_count_div').html... | javascript jquery | [3, 5] |
2,505,146 | 2,505,147 | Child and parent simultaneous resize | <p>I am trying to make simple picture resizer on my web. However I have got one problem. Everything works fine if I am trying to resize parent. But another story is when I am trying to also resize child.</p>
<p>Those are parts of my code:</p>
<pre><code>var newElement2 = document.createElement('div');
var... | javascript jquery | [3, 5] |
3,617,468 | 3,617,469 | jQuery.scrollTop() not triggering $(window).scroll() in IE | <p>I am creating a one page website where links can scroll the page down to an element specified in the hash part of the url. In Firefox & Chrome it works fine, yet when trying it in IE the <code>scroll</code> event doesn't seem to be triggered on page load.</p>
<p>This is the code that checks the hash and scrolls... | javascript jquery | [3, 5] |
4,663,748 | 4,663,749 | How do I unserialize a jQuery-serialize value in php | <p>I am able to send jquery serialize value in php file. But I can't unserialize jquery serialize value in php. Now Please, tell me How do I unserialize jquery serialize value in php file. my jquery code is :</p>
<pre><code> <script type="text/javascript">
// index.php
function get(){
$('#age'... | php jquery | [2, 5] |
225,063 | 225,064 | Scan folder in javascript | <p>I like the JavaScript equivalence of the php funtion : echo json_encode(glob("images/*.jpg")) ?>);</p>
<p>is it possible ?</p>
| php javascript | [2, 3] |
3,062,195 | 3,062,196 | Fastest jQuery autoellipsis plugin? | <p>I'm looking for a jQuery autoellipsis plugin. (autoellipsis plugins will add <code>...</code> at the end of a multiline text.)</p>
<p>I know these plugins: <a href="http://pvdspek.github.com/jquery.autoellipsis/" rel="nofollow">autoellipsis</a> and <a href="http://dotdotdot.frebsite.nl/" rel="nofollow">dotdotdot</a... | javascript jquery | [3, 5] |
3,472,754 | 3,472,755 | bottom left & bottom right of HTML element | <p>How could I get bottom left x-y & bottom right x-y of any HTML element? I wanted to assign it to another <code><div></div></code></p>
| jquery asp.net | [5, 9] |
3,792,718 | 3,792,719 | jquery replacing special characters in a string | <p>I will replace <code>c:\pictures\picture1.png</code> to <code>c:\\pictures\\picture1.png</code> </p>
<p>i.e: </p>
<pre><code>var data="c:\pictures\picture1.png"
data=data.raplace('\','\\');
</code></pre>
<p>in asp.net it can run with</p>
<pre><code>data=data.replace('\\','\\\\');
</code></pre>
<p>when I use thi... | jquery asp.net | [5, 9] |
5,409,859 | 5,409,860 | How to get the text of several td which have same id name? | <p>i have table in that
five td which contain same id. Id="divParent" but in that different text,
i want to access all the text in array which id ="divParent" in other page using java script.
how to get this
i tried to do this using this code;</p>
<pre><code>var divParent=new Array();
divParent=window.parent... | javascript asp.net | [3, 9] |
4,222,380 | 4,222,381 | How to display data in particular gridview when particular checkbox is selected? | <p>I have 6 check boxes in 1 panel, and 6 gridviews i other seven differnt panels.
when i check checkbox 1, the data should be displayed in gridview one and so on.
How to do this?</p>
| c# asp.net | [0, 9] |
1,231,712 | 1,231,713 | Visual C# : how to login to a website(that is built via asp.net classic) and keep the user logged in .. | <p>Step 1 : Log into a website
Step 2 : navigate a a particular page
Step 3 : download a file (I suppose webclient would be ideal here) </p>
<p>would like all this to be happening silently without the user knowing it .
I do not want to use the webbrowser object for the same reason</p>
<p>Note : The Website is buil... | c# asp.net | [0, 9] |
441,657 | 441,658 | Javascript Copy Clipboard function which works perfectly on all latest browsers | <p>I have got below cocpy clipboard function which works perfectly on latest Internet Explorer as well as Latest Firefox.</p>
<pre><code>function copyToClipboardCrossbrowser(s)
{
//s = document.getElementById(s).value;
if( window.clipboardData && clipboardData.setDat... | javascript jquery | [3, 5] |
5,270,760 | 5,270,761 | PHP JSON and <script> tag | <p>I am using PHP to send a json string to jQuery ajax. I am simply using $("#id").html(data.result) to display the html from the fetched page. Now on the fetched page I am looping through MySQL results. I need to run a piece of javascript on each result so I can start a countdown timer for each result.</p>
<p>My prob... | php jquery | [2, 5] |
4,954,441 | 4,954,442 | How to handle ConnectTimeoutException Android | <p>Does anyone know how to handle a ConnectTimeoutException? i'm posting variables to a url using AsyncTask but my internet connection is shocking so i'm recieving null data back because of a ConnectTimeoutException. What are the best ways to handle this for example if time out occurs try run again etc i have not had t... | java android | [1, 4] |
4,578,650 | 4,578,651 | jQuery: Returning the text from first-child or self | <p>I am trying to get the text inside an element and I only want to get the text if it's inside the first-child of a placehoder div or if there are no childrent and it's only text inside.<br />
So the two scenarios are:</p>
<pre><code><div id="wrap">text1</div>
</code></pre>
<p>and</p>
<pre><code><div... | javascript jquery | [3, 5] |
2,244,171 | 2,244,172 | find character array length in Android | <p>to get length of string</p>
<pre><code>String str=strLenData.toString();
int ipLen= str.length();
return ipLen;
</code></pre>
<p>whatever be the value of <code>strLenData</code>, value of <code>str</code>= <em>[C@40523f80</em>. As a result, for every char[] I input, the length is shown as 11. </p>
<p>I have to us... | java android | [1, 4] |
122,941 | 122,942 | Sending JavaScript code from c# windows application to a running instance of IE does not work? | <p>I'm working on a project in which I need to send a JavaScript function from c# windows application to a running instance of internet explorer and then the IE run the script and return the result to my c# application. (Very confusing? =) )</p>
<p>Just to make it more clear, here is the case:</p>
<p>I get the <code>... | c# javascript | [0, 3] |
2,235,909 | 2,235,910 | Pass C# Values To Javascript | <p>On loading the page I want to pass a value to my javascript function from a server side variable.</p>
<p>I cannot seem to get it to work this is what I have:</p>
<p>Asp.Net</p>
<pre><code>protected void Page_Load(object sender, EventArgs e)
{
string blah="ER432";
}
</code></pre>
<p>Javascript</p>
<pre><code... | c# javascript asp.net | [0, 3, 9] |
1,159,694 | 1,159,695 | How to get the current iteration of each() loop in jQuery? | <pre><code> $('#selectDropDowns select').each(function() {
// do usual stuff
// do extra stuff only if this is the 4th iteration
});
</code></pre>
<p>In order to do the extra stuff on the 4th iteration, how can I detect it?</p>
| javascript jquery | [3, 5] |
5,644,371 | 5,644,372 | jQuery: Get related or nearly elements? | <p><strong>My codes in HTML:</strong></p>
<pre><code><p><input type="text" class="txt" id="u" /><label for="u">user</label></p>
<p><input type="text" class="txt" id="p" /><label for="p">pass</label></p>
</code></pre>
<p><strong>Javascript:</strong></p>
<pre... | javascript jquery | [3, 5] |
5,713,236 | 5,713,237 | how asp.net update panel conditional update works? | <p>I use VS2010,C# to develop a web app for a company, they want to have a music playing while user views their site, I've found some controls (flash and JavaScript) to play mp3 files, but the problem is that whenever there is a postback, music starts to play from beginning, and it is not good, music should continue pl... | javascript asp.net | [3, 9] |
2,610,893 | 2,610,894 | Basic jQuery fadeIn, fadeOut problem? | <p>Below are my code, When I click Next Box it show the Box B second box and hide Box A and so on then if Box C is loaded the last box it will show alert that "There is no Box left"</p>
<p><strong>My CSS</strong></p>
<pre><code>.hide{ display:none}
</code></pre>
<p><strong>My HTML</strong></p>
<pre><code><div cl... | javascript jquery | [3, 5] |
3,069,777 | 3,069,778 | How much of a transition is programming Java to iPhone apps? | <p>I'm a highly skilled Java dev contemplating learning iPhone development. Mac only dev aspects aside, how much of a leap would learning the mobile application stack be? Sure I understand that its closer to C in how one should approach it, and with that comes memory management and so on. </p>
<p>My queries would also... | java iphone | [1, 8] |
3,360,304 | 3,360,305 | pass several parameters to php using js | <p>I have some problems when trying to pass some parameters to PHP via JS.</p>
<p>Here's the situation:</p>
<p>HTML:</p>
<pre><code><form id="numbtns" method="post" action="imphp.php">
<button id="1" onClick="pass(this.id)">1</button>
<button id="2" onClick="pass(this.id)">2</button>... | php javascript | [2, 3] |
3,690,358 | 3,690,359 | Make checkbox and a textbox Readonly | <p>Following is my javascript code,is there a way to make checkbox and textbox readonly?</p>
<pre><code>//display textboxes and checkbox when condition is true.
if($$("id").value =="something"){
document.getElementById("textboxl").style.display="";
document.getElementById("chkbox1").style.display="";
... | javascript jquery | [3, 5] |
5,295,080 | 5,295,081 | how to enable tool bar in IE9 using JavaScript? | <p>I am using IE 9 . I need to enable tool bar in IE 9 using JavaScript <code>toolbar=yes</code> while opening a new window.</p>
<pre><code>window.open('NZFReferenceSelector.aspx?RefID=' + refID, '_self', 'toolbar=yes', false);
</code></pre>
<p>It works in IE7. </p>
<p>it shows tool bar with out left and right arrow... | javascript asp.net | [3, 9] |
4,791,165 | 4,791,166 | Generating Text box control from behind "C#" | <p>i am kinda new to asp.net, and also my english not really good, anyway i hope you still can get my point. nah i have a question here, basically i trying to integrate my app with LinkedIn, so i am using REST API, when i click a button it redirect my page to request data from LinkedIn, it returned XML data, and it con... | c# asp.net | [0, 9] |
3,890,226 | 3,890,227 | jQuery .keyup() delay | <p>I've got a search field.</p>
<p>Right now it searches for every keyup. So if someone types Windows, it will make a search with AJAX for every keypress: W, Wi, Win, Wind, Windo, Window, Windows.</p>
<p>I want to have a delay, so it only searches when the user stops typing for 200 ms.</p>
<p>There is no option for ... | javascript jquery | [3, 5] |
5,859,898 | 5,859,899 | Passing Javascript variables in php | <p>I have 2 pages: details.php and terrainChooser.php</p>
<p>Terrain Chooser creates a td tag with an element and adds to it 3 input type="hidden" with information to retrieve.</p>
<pre><code>window.opener.document.getElementById(elementID).innerHTML = "
<input readonly type='text' style='background-color:#eed8bb;... | php javascript | [2, 3] |
3,172,208 | 3,172,209 | how can I calculate number of options tag when I get the select box with $this | <p>I have a question as to how can I calculate number of options tag when I get the select box with $this.</p>
<p>Like that:</p>
<pre><code> $("select[name=rabetas]").click(function(){
var $this = $(this);
</code></pre>
<p>And...?</p>
<p>how can I do this?</p>
| javascript jquery | [3, 5] |
2,590,195 | 2,590,196 | Android - Accessing a variable in Activity (Using synchronization) | <p>I have a question in synchronization between threads in Android. </p>
<p>What I have is: </p>
<p>2 thread spawned from an activity, and each of this thread is accessing a field in the activity simultaneously. </p>
<p>What I am thinking of is to use synchronize, such as </p>
<pre><code>synchronize private voi... | java android | [1, 4] |
2,244,814 | 2,244,815 | Javascript - Browser skips back to top of page on image change | <p>I have some simple code to replace an image src. It is working correctly but everytime the image is updated, the browser skips right back to the top of the page.</p>
<p>I have several image tags in my page. All of which hidden, except for the first one. The script just iterates through them and uses the src attr... | javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.