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 |
|---|---|---|---|---|---|
295,850 | 295,851 | repeat element by javascript | <p>I want to repeat these elements:
contain a cell and select menu bring data from the database through while</p>
<pre><code><div id="orginal">
<td width="99">
<select name= "certificate" id="xx"
onchange="BK.Ajax.Updates('newfile.php?id='+document.getElementById('xx').value,'ajx');" size="1"&... | php javascript | [2, 3] |
2,200,898 | 2,200,899 | Is it possible to convert this simple jQuery snippet to JavaScript? | <p>I have this simple jQuery snippet (very simple with jQuery) and I want to convert this to javascript which seems to be really hard. </p>
<p>For example, I have no idea what to do with the .each - function.</p>
<p>Hope you can help, give me a hint or solve the problem quickly.</p>
<pre><code> $("#rTab div[id^=tab]... | javascript jquery | [3, 5] |
2,913,992 | 2,913,993 | Where do I put javascript when using an asp.net user control? | <p>I have a user control with a "More Info" link. When clicking that link, I want a div to appear which gives the user more information.</p>
<p>Where do I put the javascript? It doesn't appear to work when placing at the top of my user control. How do you handle javascript and jquery when you are using a user contr... | asp.net javascript jquery | [9, 3, 5] |
2,215,800 | 2,215,801 | Using jQuery, a Dropdownlist should only be visible if at least 1 checkbox is selected | <p>I have links that when clicked, select all the checkboxes or deselect them.</p>
<p>I also have a dropdown list that I want to be made visible only if at least one of the checkboxes are selected.</p>
<p>What is the best way to do this?</p>
<p>Should I write login inside the code that selects/deleselects them or is... | javascript jquery | [3, 5] |
2,664,570 | 2,664,571 | Show more/less without stripping Html tags in JavaScript/jQuery | <p>I want to implement readmore/less feature. i.e I will be having html content and I am going to show first few characters from that content and there will be a read more link in front of it. I am currently using this code :</p>
<pre><code> var txtToHide= input.substring(length);
var textToShow= input.substrin... | c# php javascript asp.net jquery | [0, 2, 3, 9, 5] |
560,151 | 560,152 | Load up javascript files after ajax call | <p>Hi how do i go about loading up my javascript files after an ajax call has been made, reason being it seems once i click submit, some javascript functions do not end up working. I tried using "$getscript" however it was a bit buggy especially in google chrome? This is what my call looks like;</p>
<pre><code>functio... | javascript jquery asp.net | [3, 5, 9] |
594,702 | 594,703 | External javascript file not working | <p>I have some javascript that's loading just perfectly at the bottom of my site. I wanted to externalize this aforementioned js, so I'm now linking to the code externally, but now the code breaks and is pointing to an error (not within the js file but the jquery file). What changes when the js is externalized? Are va... | javascript jquery | [3, 5] |
2,991,371 | 2,991,372 | Jquery image scroller not switching to next image | <p>I have an image scroller that I am trying to implement. The image scrolling works, but it is moving vertically instead of horizontally. Here is what I got so far:</p>
<pre><code><a href = "#" id = "btnNext">Next Image</a>
$('#btnNext').click(function () {
//Calls new image with value true, meaning ... | javascript jquery | [3, 5] |
1,322,150 | 1,322,151 | Problem with jQuery | <p>I trying to create a auto-complete search script (jQuery + PHP) but I have a big problem with this script.</p>
<p>My jQuery code is:</p>
<pre><code>$(document).ready(function() {
$("#search").keyup(function() {
var search = $("#search").val();
if (search.length > 0) {
$.ajax({
type: "POS... | php javascript jquery | [2, 3, 5] |
3,180,154 | 3,180,155 | redirecting with javascript injected from code behind not working | <p>this is the property which give me site root path</p>
<pre><code>public static string SiteRootPath
{
get
{
string host = HttpContext.Current.Request.Url.GetLeftPart(UriPartial.Authority);
string appRootUrl = HttpContext.Current.Request.ApplicationPath;
if (str... | c# javascript asp.net | [0, 3, 9] |
1,314,540 | 1,314,541 | using html() to get changed content | <p>I have a div that I need to grab the HTML contents of (so naturally I use html())...</p>
<p>However, they are text fields. Whenever I grab the contents of the div (that contains the text fields), it grabs the initial HTML and not any data changed by the end user...</p>
<p>Here is JS bin version..change the input f... | javascript jquery | [3, 5] |
1,664,101 | 1,664,102 | Move list box items from one listbox to another listbox? | <p>I am trying to move listbox items between two listboxes.Before that i created two arrraylists for each listbox.so before moving the listbox item i am trying to add the items to the arraylist. here is the code</p>
<pre><code> foreach (string st in listbox1.Items)
{
arraylist1.Add(st1);
... | c# asp.net | [0, 9] |
1,509,379 | 1,509,380 | Front end Changes on backend code placement | <p>I have been at this for a little while until I realized that I can't do front end stuff in the </p>
<pre><code> page_load
</code></pre>
<p>There are no changes reflect. The following demonstrates the code which executes successfully but does not influence the front end</p>
<pre><code> if (!(X.IsAjaxRequest || ... | c# asp.net | [0, 9] |
3,705,434 | 3,705,435 | How to disable sorting on column in jQuery.tablesorter? | <p><br><br>i try to find a way how to disable sorting on column. I use jquery tablesorter.
And by default if you click on header cell it sort column data, but what i need to do if i don't need to use sorting on one or two column in four columns table.
<br><br>
Thanks in advanced.</p>
| javascript jquery | [3, 5] |
3,654,092 | 3,654,093 | Validation function with return value | <p>I have a common validation function <br></p>
<pre><code>function connect_and_update_destination() {
var flag = true;
// Validate IP
if (!validate_ip_address()) {
alert(protect.lang.enter_valid_ip);
return;
}
if ($('#pjm_alias').val() === '') {
... | javascript jquery | [3, 5] |
2,609,837 | 2,609,838 | RegisterClientScriptBlock code not executing | <p>I'm using the following code in an attempt to show a dialog with a list of errors on the client:</p>
<pre><code> if (rollout.ImportErrors.Count > 0)
{
ClientScript.RegisterClientScriptBlock(GetType(), "showErrors", "showErrors();", true);
}
</code></pre>
<p>The error count is non-zero and the... | asp.net javascript jquery | [9, 3, 5] |
3,154,990 | 3,154,991 | How to make sure a POST is requested from specific domain? | <p>Is there any property in <a href="http://msdn.microsoft.com/en-us/library/system.web.httprequest.aspx" rel="nofollow">HttpRequest</a> that can make sure if the request is a <code>POST</code> request and it is coming from specific domain?</p>
<pre><code>private bool IsRequestedFromDomain(string domain)
{
// Reques... | c# asp.net | [0, 9] |
1,051,025 | 1,051,026 | text assign to textbox onclik hyperlink | <p>i have problem on jquery onclick. when onclick happen on a link text box value should fill with the some hard coded text.</p>
<p>ex </p>
<pre><code> $('#linkBase').click(function() {
$('#txtFormula').val("txnword");
});
</code></pre>
<p>problem is i want to rep... | javascript jquery | [3, 5] |
2,459,134 | 2,459,135 | Dundas charts to be download(free) & bind with asp.net 3.5 | <p>Hello
May i know link from which i download free Dundas charts for Asp.net.
I have searched but i didnt get it.
Thank you.
Asp.net c#</p>
| c# asp.net | [0, 9] |
2,935,993 | 2,935,994 | Press home button to stop service | <p>i want to if the user press home button my service will be stop , this is my code but it's not working for me, please help me:</p>
<pre><code>@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_HOME) {
stopService(new Intent(this, MyService.class));
return true;
}
retur... | java android | [1, 4] |
331,919 | 331,920 | JQuery - clone element and change attributes for multiple attributes | <p>I have several elements like this:</p>
<pre><code> <div class="image_insert clearfix">
<label for="userfile3">Image 3</label>
<input type="file" name="userfile3" id="userfile3">
<label for="slika_naziv_eng3">Image Title</label>
<input type="text" name="slika_n... | javascript jquery | [3, 5] |
2,485,962 | 2,485,963 | jquery.val() on the page works, off the page does not? Why? | <p>I had the following: </p>
<pre><code><script type="text/javascript">
var noteid = $('#noteid').val();
</script>
<input type="hidden" name="noteid" id="noteid" value="321">
</code></pre>
<p>This works great... but now I'm trying to move the JavaScript off the page into a linked JS file like so: </... | javascript jquery | [3, 5] |
1,498,479 | 1,498,480 | How to debug javascript in firefox via Visual Studio 2008? | <p>I have scripts in my aspx page, in header section.<br />
I want to debug it(with breakpoints) in firefox.</p>
| asp.net javascript | [9, 3] |
5,032,694 | 5,032,695 | Sending emails through SMTP client using current logged in user | <p>I have web site set up that has some forms authentication through LDAP. I'm sending an email when the currently logged in user clicks a button, however the email is being sent from my address, and not the user. This creates a bit of confusion.</p>
<p>What I want to do is send emails using the logged users account w... | c# asp.net | [0, 9] |
2,649,531 | 2,649,532 | Whats the easiest way to reactive a submit() action that was cancelled with 'return false' | <p>I have some image buttons that have jQuery event handlers attached to them.</p>
<p>I want to make an AJAX call in the click() event to determine if the action should actually be allowed. Because I am doing an async ajax call I have to return 'false' to immediately cancel the event and wait for the response.</p>
<p... | javascript jquery | [3, 5] |
1,210,748 | 1,210,749 | Why do I get a ClassCastException? | <p>I am getting a <code>ClassCastException</code> on running this simple application.</p>
<p>I'm trying to use the <code>AlarmManager</code> for the first time.</p>
<pre><code>public class AlarmReciever extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
try... | java android | [1, 4] |
4,493,924 | 4,493,925 | 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,029,216 | 3,029,217 | Jquery get attribute of few ul to create another attribute | <p>I have the following HTML:</p>
<pre><code><ul actualpage=0>
<li/>
<li/>
....
</ul>
<ul actualpage=0>
<li/>
<li/>
....
</ul>
</code></pre>
<p>Im trying to get the value of actualpage of each ul and create a new attribute. Its easy but not in one jquery sentence... It... | javascript jquery | [3, 5] |
3,639,116 | 3,639,117 | Hard-coding button's width in dimension units | <p>I've got the hard-coded layout, consisting of buttons, and need to enlarge some of them. I found <code>Button</code>'s method <code>setWidth(int value)</code>, accepting width in pixels, but I need to set value in dp. So, how can I set dp value in program code?</p>
| java android | [1, 4] |
136,660 | 136,661 | Facing the error Microsoft JScript runtime error: 'BBDN' is undefined in asp.net | <p>I am facing the following errors while running the dotnet application
Microsoft JScript runtime error: 'BBDN' is undefined
Microsoft JScript runtime error: 'YAHOO' is undefined</p>
<p>I had declared at the top of page as below:</p>
<pre><code><%@ Register TagPrefix="busyboxdotnet" Namespace="BusyBoxDotNet" Asse... | javascript asp.net | [3, 9] |
2,829,107 | 2,829,108 | Calling jQuery's DOM ready function from another function | <p>Is it possible to call jQuery's <code>$(document).ready</code> function from within another Javascript function? I have a button, which when clicked should call the jQuery DOM ready function. Is this possible? </p>
| javascript jquery | [3, 5] |
1,138,277 | 1,138,278 | java from command line over and over | <p>i have a PHP application that invokes a command line to execute some specific operations.</p>
<p>The command line calls a 'java -jar somefile.jar arg1 arg2'</p>
<p>The problem is that this is slow, since it has to startup the jar every time it get's invoked.</p>
<p>Is there any way keep the java machine code in c... | php java | [2, 1] |
4,422,887 | 4,422,888 | Wrap element between two elements in JavaScript/jQuery? | <p>How can one create an element that wraps the content between two elements?</p>
<p>Here's a simplified example of the code I'm dealing with:</p>
<pre><code><p>
Some text some text <span class="foo">some more text</span> additional text.
</p>
<p>
I am bad at coming up with <span clas... | javascript jquery | [3, 5] |
5,469,486 | 5,469,487 | Javascript document load bug | <p>I have the code below in which I've added 1 alert at the start and one at the end.</p>
<p>I get the first alert but the last alert never pops up.</p>
<p>Can anyone see why ?</p>
<p>Here is the code:</p>
<pre><code><script language="javascript">
$(document).ready(function() {
alert('start');
... | javascript jquery | [3, 5] |
4,412,907 | 4,412,908 | Bluetooth paired list in android using python | <p>Suppose I have paired 3 bluetooth devices(X, Y, Z) with my android phone. Now I want to get the names and other details of X, Y, Z using python script. For that I need to the list of all the paired devices and store them in a list variable inside the python script.</p>
<p>Can you help me with some sample python scr... | android python | [4, 7] |
1,588,116 | 1,588,117 | Javascript or jQuery: Download and redirect | <p>Currently some guys programmed this in a HTML page:</p>
<pre><code><script>
location='http://example.com/downloadable.zip';
</script>
</code></pre>
<p>They want to redirect the user to another page once the file has started downloading. I can only modify this page but not the destination page.</p>
... | javascript jquery | [3, 5] |
1,166,440 | 1,166,441 | Passing gridview rows to WebMethod | <p>I want to send Gridview rows to WebMethod. What is the best way to send the collection from javascript to Code behind as a parameter?</p>
| javascript asp.net | [3, 9] |
2,414,509 | 2,414,510 | jqvmap - regionclick method not firing unless called in browser console | <p>I'm using the JQVMap plugin (http://jqvmap.com/) to create a map. The plugin has a method called onRegionClick that lets you call a function if a region on the map is selected. </p>
<p>I'm loading the map dynamically using a function called loadSlide, but for some reason the onRegionClick method isn't being calle... | javascript jquery | [3, 5] |
911,661 | 911,662 | Jquery multiple forms in same page | <p>I have the following dynamically generated HTML</p>
<pre><code><div id="1">
<form name = "inpForm">
<input name="FirstName" type="text"/>
<input type="submit" value="Submit"/>
</form>
</div>
<div id="2">
<form name = "inpForm">
<input name="FirstName" type="text"/... | javascript jquery | [3, 5] |
4,840,793 | 4,840,794 | Get value inside a text field - JavaScript - jQuery | <p>I have a page portion as below;</p>
<pre><code><input name="test1" type="text" id="test1" class="test1">
<button value="hi" id="but">hi</button>
</code></pre>
<p>I want to get data inside text field entered by user. I tried the following;</p>
<pre><code>$(document).ready(function(){
var test2 = ... | javascript jquery | [3, 5] |
1,290,412 | 1,290,413 | Allocation of digits in the price list | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1068284/format-numbers-in-javascript">Format numbers in javascript</a><br>
<a href="http://stackoverflow.com/questions/2901102/how-to-print-a-number-with-commas-as-thousands-separators-in-javascript">How to print ... | javascript jquery | [3, 5] |
2,239,757 | 2,239,758 | How can I tweet in twitter account from an android imulator? | <p>Here, I have an edit text and a button, I want to tweet what i write something in edit text after clicking the button.</p>
| java android | [1, 4] |
5,091,631 | 5,091,632 | Can't Change CSS Bottom with jQuery | <p>I'm having trouble getting the "else" bit of this working. Anyone know what the problem is?</p>
<pre><code>var navOpen = false;
if (navOpen == false) {
$("nav").click(function() {
$(this).css("bottom","0");
navOpen = true;
... | javascript jquery | [3, 5] |
5,187,079 | 5,187,080 | Doing a redirect in jQuery | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/8824141/how-to-redirect-from-one-url-to-another-url">How to redirect from one URL to another URL?</a> </p>
</blockquote>
<p>I have the following jQuery function in which I am trying to re-direct to another page ... | javascript jquery | [3, 5] |
2,010,100 | 2,010,101 | How does one add arrays of elements to the DOM in jQuery? | <p>Coming to jQuery from a functional background, I am fond (perhaps unreasonably so) of elegant chains of functions. I often find myself dealing with arrays of elements, such as those that may result from $.map, and my ability to manipulate these arrays in the DOM seems quite limited. Here's some sample code that runs... | javascript jquery | [3, 5] |
1,095,457 | 1,095,458 | Picklist Control help | <p>Sorry for the brief title, I wasn't sure how to word this. Basically I am looking for some help to create (or the source code to an existing control) that will produce and picklist as shown in the image below.</p>
<p><a href="http://img807.imageshack.us/i/picklistcontrol.png/" rel="nofollow">http://img807.imageshac... | javascript jquery asp.net | [3, 5, 9] |
1,144,633 | 1,144,634 | Jquery "Delay is Not A Function" with Jquery 1.6.4 | <p>I looked at some of the other questions on here pertaining to this problem but they were all using an older version of Jquery. I am having a problem with the latest version of jquery which I am grabbing from the goolge link:</p>
<p><a href="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js" rel="nofollow"... | javascript jquery | [3, 5] |
2,285,556 | 2,285,557 | Programmatically assigned eventhandler not showing up in HTML onClick attribute | <p>I'm currently having a problem with event handlers assigned in the code-behind not appearing in the HTML code of the .aspx page. Below is the code fragment that does that:</p>
<pre><code>HtmlTable table = new HtmlTable();
HtmlTableRow row = new HtmlTableRow();
foreach(XmlNode item in IDList)
{
LinkButton btn =... | c# asp.net | [0, 9] |
2,935,094 | 2,935,095 | EditText of input type with number of no duplicates in android | <p>Could anyone please tell me how to implement an <code>EditText</code> which only accepts numbers and won't allow any duplicated digits?</p>
<p>For example, <code>123</code> or <code>234</code> would be fine, but <code>112</code> and <code>223</code> should not be allowed.</p>
| java android | [1, 4] |
5,872,893 | 5,872,894 | Use jQuery.post() result in javascript function | <p>I've got no clue how to do the following, so I wasn't sure what to search for either.</p>
<p>For validating my registration form I've a javascript function that checkes the existence of the inserted username in the database onblur of the username textfield. </p>
<pre><code>function checkUsername(username){
$.post(... | javascript jquery | [3, 5] |
1,693,259 | 1,693,260 | Post and query mysql database | <p>on one page I have the following code:</p>
<pre><code>$("#photolist").dragsort({
dragBetween: true,
dragEnd: saveOrder,
placeHolderTemplate: "<li class='placeHolder'><div></div></li>"
});
function saveOrder() {
var data = $("#photolist li").map(function() {
return $(... | php jquery | [2, 5] |
3,382,316 | 3,382,317 | Bind('pageinit') fails to call method | <p>I'm trying to bind a page initialize event from, afaik, jquerymobile, to a method so I can set my header, this is done, because later I wish to set it dynamically.
But my event doesn't even trigger :'-(
Any help would be appreciated.</p>
<pre><code>$('#mapmode').bind('pageinit', function(event) {
initPageHeader... | javascript jquery | [3, 5] |
2,464,265 | 2,464,266 | Can you get (using jQuery if possible) the current scrolled position of an element? | <p>I am using this code on a 'down' button to scroll text in an overflowed div.</p>
<pre><code>var textHeight = text.outerHeight();
var pageDown = $('#page-down');
var pageUp = $('#page-up');
pageDown.bind('click', function() {
pageUp.fadeIn(500);
text.animate({ scr... | javascript jquery | [3, 5] |
3,021,197 | 3,021,198 | passing the value of dropdownlist into gridview | <p>I have a dropdownlist populated by my database, below is my code:</p>
<pre><code><asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="dsNames"
DataTextField="Name" DataValueField="Id">
</asp:DropDownList>
<asp:SqlDataSource ID="dsNames" runat="server"
ConnectionString="<%$ C... | c# asp.net | [0, 9] |
451,704 | 451,705 | How to keep a Bitmap in memory | <p>Following up on <a href="http://stackoverflow.com/questions/8814455/storing-a-bitmap-resource-in-a-static-variable">Storing a Bitmap resource in a static variable</a>, it seems that storing a static reference to an <code>android.graphics.Bitmap</code> in a <code>View</code> may leak a reference to that first <code>V... | java android | [1, 4] |
6,003,687 | 6,003,688 | Hiding all elements with the same class name? | <p>I'm trying to hide elements with the same class name (float_form), but I'm also trying to use the script below to show them (all of the float_form class divs are initially hidden). I've looked at a lot of jquery solutions, but I can't seem to make any of them work for this. </p>
<pre><code>function show(a) {
v... | javascript jquery | [3, 5] |
1,657,080 | 1,657,081 | Orientation change in phonegap | <pre><code>window.onresize = function(){ updateOrientation(e); }
function updateOrientation(e) {
alert("hey");
deviceWidth = $('body').width();
if (deviceWidth == 320) {
currentOrientation = "portrait";
}
else if (deviceWidth == 480) {
currentOrientat... | javascript android | [3, 4] |
2,347,757 | 2,347,758 | Using javascript var in jQuery .html | <p>Very simple question:</p>
<p>Is it possible to display a var in .html, using jQuery?</p>
<pre><code>var inscr = '<?php echo "test"; ?>';
$j('#myPlaceHolder7').html('<li class="button3">+inscr</li>');
</code></pre>
<p>Thanks!</p>
<p>Thanks everyone for the quick help!</p>
| javascript jquery | [3, 5] |
4,157,594 | 4,157,595 | variables showing as undefined in firebug when they are defined | <p>here is my site <a href="http://iadprint.com/products?product=Business%20Card" rel="nofollow">http://iadprint.com/products?product=Business%20Card</a></p>
<p>when i select a value for quantity a price is supposed to show in the pricing div on the top right.
this used to work but for some reason today in firebug und... | javascript jquery | [3, 5] |
5,121,739 | 5,121,740 | How to send and recieve an ajax request with jQuery? | <p>I am new to jquery and am having trouble following the documentation. I have a variable in javascript (that I already obtained from an html form) that I would like to send using AJAX to the server. I want to the server to do whatever it needs to do with that value and then reply with either "success" or "failure" (... | java jquery | [1, 5] |
2,214,792 | 2,214,793 | Android Spinner Issues | <p>How can make my spinner into a option list, but I want the list to be dynamic?</p>
<pre><code> private void populateList() {
Cursor cursor = getContacts();
String[] fields = new String[] {
ContactsContract.Data.DISPLAY_NAME
};
SimpleCursorAdapter adapter = new SimpleCursorAdapter(this, ... | java android | [1, 4] |
1,394,315 | 1,394,316 | Dynamically update site | <p>If I have a site with a list of words on it, say 50 words, and I send a query to delete one of these words from the database, how can I dynamically update the site to display the remaining 49 words without having to reload the page? </p>
| php javascript | [2, 3] |
1,809,884 | 1,809,885 | How to append query parameter at runtime using jQuery | <p>Through JavaScript I am appending one query parameter to the page url and I am facing one strange behaiviour.</p>
<pre><code><div>
<a href="Default3.aspx?id=2">Click me</a>
</div>
$(function () {
window.location.href = window.location.href + "&q=" + "aa";
});
</code></pre>
<p>... | javascript jquery | [3, 5] |
2,550,574 | 2,550,575 | Tool to translate old javascript into jQuery | <p>I know there are lots of tools on the net that can make our lives easier, for us, developers, including some that are quite powerful.</p>
<p>I ask if you know a tool to translate old javascript into jQuery?</p>
<p>A tool that can help make this stuff ? Because I have to translate thousands of lines of code in jQue... | javascript jquery | [3, 5] |
4,249,265 | 4,249,266 | How can I get the URL of a link? | <p>How can I get the URL of a link?</p>
<pre><code>$('.l').eq(0).href
</code></pre>
<p>is what I want to do, but it's undefined. </p>
<hr>
<p>So given a jQuery selected anchor element, how do you get the href property?</p>
| javascript jquery | [3, 5] |
359,528 | 359,529 | getElementById("blah").classname = "whatever" Not working | <p>Heya, I've got some code that I think ought to be working (though I really am fumbling around in the dark here) - I'm just trying to dynamically change a class name on a div tag. </p>
<p>I'm trying to change the div class on id "slider" from "visible" to "hidden". Everything else about this code works just fine, bu... | javascript jquery | [3, 5] |
8,181 | 8,182 | page in background while trying to open new page using code behind | <p>I am trying to open a new page from the code. For this I used the following code on button click event</p>
<pre><code>string pageURL = UIConstants.Url.PrintUserBRCs + "?" + UIConstants.ReportType + "=" + UIConstants.DetailReport;
string script = string.Format("window.open('{0}', null, 'height=600, width=800, statu... | c# javascript | [0, 3] |
2,054,129 | 2,054,130 | How stop an HTML form from submitting if user is not signed in, but allow submit if user is signed in? | <p>In my app, a user must be signed in to submit form info.</p>
<p>After a user clicks on the form submit button, my jQuery checks if a user is signed in. </p>
<p>If not signed in, then an error message pops up, requesting sign in/up.
I can now successfully stop the default action (submit). </p>
<p>However, how do I... | php javascript jquery | [2, 3, 5] |
865,763 | 865,764 | Retrieving values from dynamically created RadioButtonList | <p>My code-behind (c#) file declares RadioButtonLists dynamically for any given number of questions in my database using a while() loop:</p>
<p>I add items to each tmpRBL in a for loop.</p>
<p>I register each RadioButtonList to a child panel which I create at the beginning of each iteration of the while() loop.</p>
... | c# asp.net | [0, 9] |
3,602,223 | 3,602,224 | Jquery, Add elements every 2 seconds | <p>I'm trying to create a growth map similar to <a href="http://projects.flowingdata.com/walmart/" rel="nofollow">http://projects.flowingdata.com/walmart/</a>.</p>
<p>I am using <a href="https://github.com/marioestrada/jQuery-gMap" rel="nofollow">https://github.com/marioestrada/jQuery-gMap</a> to do the maping</p>
<p... | javascript jquery | [3, 5] |
1,931,300 | 1,931,301 | Caching asp.net pages | <p>I am bulding an app and I tried YSlow and got Grade F on most of my practices. I have loads of jscript that am working on reducing. I want to be able to cache some of these because the pages get called many times.</p>
<p>I have one master age and I wanted to cache the scripts and css files.</p>
<p>How do I achieve... | c# asp.net | [0, 9] |
2,780,882 | 2,780,883 | How to store a copy of complete web page at server side as soon as it is rendered on client browser? | <p>Requirement is to keep a copy of complete web page at server side same as it is rendered on client browser as past records.These records are revisited. </p>
<p>We are trying to store the html of rendered web page. The html is then rendered using resources like javascript, css and image present at server side. These... | java javascript | [1, 3] |
4,778,957 | 4,778,958 | How to tell if string time-A is before time-B? | <p>if I have 4 variables</p>
<p>startTime;
endTime;
startMerid;
endMerid;</p>
<p>startMarid and endMarid are either going to be 'AM' or 'PM'.</p>
<p>but startTime and endTime are going to be strings like 'dd:dd'</p>
<p>so it may be start:<code>12:30 PM</code> and end:<code>5:30 PM</code></p>
<p>How can I validate ... | javascript jquery | [3, 5] |
4,936,230 | 4,936,231 | Javascript VS C# | <p>Maybe a strange and green question, but</p>
<p>Is there anything C# can't do what javascript can...
And considering JQuery?</p>
<p>except for the fact that one is clientside, and the other serverside?
Or am I asking a very stupid question now?</p>
<p><strong>EDIT:</strong>
to be more specific: I mean web programm... | c# javascript | [0, 3] |
2,210,484 | 2,210,485 | Dealing with JavaScript in a large web application (reusability, bundling, unit testing...) | <p>Maybe somebody can advise what tool, approach, reference I can use to achieve the following goals for a large web application when it comes to JavaScript: reusability, bundling, unit testing, many developers, stuff like that. For example I've checked out browserify tool but there's practically no documentation, no ... | javascript jquery | [3, 5] |
3,472,689 | 3,472,690 | Java Thread checkAccess | <p>I was pondering, playing around with some code. I came across the following method in the Thread class: <code>checkAccess()</code>. </p>
<p>The documentation (literally) says <em>"Does nothing."</em> Why would this possibly be in the Thread class if it does nothing? - Are we possibly dealing with developer trolls?<... | java android | [1, 4] |
5,300,567 | 5,300,568 | Fail to connect to camera service | <p>I had my camera set to <code>this.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);</code> and it works fine but if I change it to <code>PORTRAIT</code> instead of <code>LANDSCAPE</code> then it crashes with the following error...</p>
<pre><code> 07-30 12:51:37.655: ERROR/AndroidRuntime(22069): F... | java android | [1, 4] |
4,291,286 | 4,291,287 | jQuery - Selecting elements from string | <p>I need to select first table and then second table from the html in string. I know this can be done by selector <code>:eq(0)</code> and <code>:eq(1)</code>, but</p>
<pre><code>var firstTable = $("table", "<table></table>").length;
</code></pre>
<p><code>firstTable == 0</code>. Why?</p>
| javascript jquery | [3, 5] |
3,685,265 | 3,685,266 | how to display and image using external jquery in my html file | <p>i am new to jquery, can anyone tell me how to display and image using external jquery in my html file.</p>
<p>i want my html to be clean and load the image where the image path is mentioned in the external jquery file.</p>
<p>my jquery file will be like this testjquery.js</p>
<pre><code> // url to load the image ... | javascript jquery | [3, 5] |
143,693 | 143,694 | How to create own jQuery-like function in JavaScript? | <p>How can i create a function which looks like the jquery callback $</p>
<p>Say i want to call a element with id= "mydiv".</p>
<p>i want to be able to call it like </p>
<pre><code>var div = $("mydiv").value;
</code></pre>
<p>i think the function should look like </p>
<pre><code>function $(element)
{
return doc... | javascript jquery | [3, 5] |
2,325,165 | 2,325,166 | JQuery: Check value of input | <p>How can I check if the number entered in the input-field is higher of even as th value in my 'min' field?</p>
<pre><code> <tr>
<td>Steeeeaak</td>
<td><input type="hidden" name="amount_5_min" value="10"/>
<input type="text" n... | javascript jquery | [3, 5] |
1,210,353 | 1,210,354 | jquery and asp.net scriptlet usage issue | <pre><code>function submitValues(url, params)
{
var form = [ '<form method="POST" action="', url, '">' ];
form.push('<input type="hidden" name="', key, '" value="', params[key], '"/>');
form.push('</form>');
jQuery(form.join('')).appendTo('body')[0].submit();
}
</code></pre>
<p>if i writ... | jquery asp.net | [5, 9] |
652,688 | 652,689 | Javascript select all button in php | <p>Hi All First of all I don't know Javascript, I got this script from the internet but can't get it to work. If someone can please be so kind and assist me. I'm trying to create a "check all" & "uncheck all" button on my form for my checkboxes, if I click the button it does not select anything. Where am I goin... | php javascript | [2, 3] |
4,982,630 | 4,982,631 | window.print() is not printing the whole page | <p>I have a page
<img src="http://i.stack.imgur.com/BqNg8.png" alt="screenShot"></p>
<p>I want to print this page. On print button i am using something like this</p>
<pre><code><input id="print" type="submit" onclick="window.print();" />
</code></pre>
<p>But the problem is it is not printing the whole page. ... | javascript jquery | [3, 5] |
171,267 | 171,268 | JS parseInt() issue | <p>I know I might be doing something wrong. Can anyone please point out why I'm getting top as object??</p>
<pre><code>$(document).ready(function(){
topwithpx='0px';
alert(topwithpx);
topstr=topwithpx.substr(0,topwithpx.length-2);
alert(topstr);
top=parseInt(topstr);
alert(top);
});
</code></p... | javascript jquery | [3, 5] |
5,265,300 | 5,265,301 | Programmatically fill field in activity of another application? | <p>How i can programmatically fill fields in activity of another application? It is possible? What is right way?
Add: My app is root-granted. I know what is package is now in foregraund. I have name of open activity and name of field in activity. Also I have my value whitch i need to push in this field.</p>
| java android | [1, 4] |
1,550,076 | 1,550,077 | Radio button value | <p>I have a dynamically generated radio button as fiven below</p>
<pre><code>echo '<tr>
<td colspan="2">Login System</td>
<td colpan="2">
<input type="radio" name="login_system'.$i.'" value="COMMON" check... | javascript jquery | [3, 5] |
42,381 | 42,382 | C# method gives me an error | <p>I have created one method in c# that has two parameters. I have just changed its parameter name but now it is giving me old parameters value. And the error is coming while runtime.</p>
<p>This is new method which i have changed its parameter</p>
<pre><code>public void UpdatePagedDataSet(string configKey, string co... | c# asp.net | [0, 9] |
3,254,074 | 3,254,075 | Dynamically changing master pages | <p>ok so I created this master page file and in its Page_PreInit added the code to change master page at run time after detecing a visitor's country:-</p>
<p>Now, while researching I came across this thread that says "Setting the master page in Page_PreInit event is against the design and spirit of MVC..what is this s... | c# asp.net | [0, 9] |
3,236,786 | 3,236,787 | How to define Variable similer to Session variable in ASP.NET | <p>I want to define a variable or object like session, to stored data about each user, and i want to access this object in many pages,
could u please tell me if there is a way.
thanks</p>
| c# asp.net | [0, 9] |
3,263,404 | 3,263,405 | Using getScript in a main.js file to reduce load size | <p>Does it make sense to make use of <code>$.getScript();</code> in jQuery to do something like the following:</p>
<pre><code>$("#action-one").click(function() {
$.getScript('scripts/action-one.js');
});
$("#action-two").click(function() {
$.getScript('scripts/action-two.js');
});
</code></pre>
<p>... | javascript jquery | [3, 5] |
2,014,252 | 2,014,253 | Apply mask a string in C# asp.net? | <p>Hi all in my project i want a currency in three formats,.</p>
<pre><code>1) ...999,999,999
2) ...999,999,999.00
3) ...999,999,99
</code></pre>
<p>The format is specified in mysql data table field. My project is in ASP.NET so I can't use MaskedTextBox . Code I tried:</p>
<pre><code>String.Format("{999,999,999}",ra... | c# asp.net | [0, 9] |
5,797,792 | 5,797,793 | Detect network connection bandwidth (Android) | <p>I need to determine programmatically the bandwith of the network connection (not the same as network type (WIFI/3G)). How can i do this? Timing a (short) download?</p>
<p>thanks</p>
| java android | [1, 4] |
3,429,504 | 3,429,505 | Width, padding giving auto in IE7 | <p>I am trying to coding for padding, width based on previousSibbling Div id.
Based On Prev Div id's Width, Padding, I will calculate current width,padding. It is working in Mozilla. But IE PrevSibbling Div's Width, padding coming as "auto" and i tried to add 10px to width. But it is not working. Div functionality work... | javascript jquery | [3, 5] |
3,245,571 | 3,245,572 | How can I execute a PHP script from Java? | <p>I have a php script which is executed over a URL.
(e.g. www.something.com/myscript?param=xy)</p>
<p>When this script is executed in a browser it gives a coded result, a negative or positive number.</p>
<p>I want to execute this script from Java code(J2EE) and store that result in some object.</p>
<p>I'm trying to... | java php | [1, 2] |
159,736 | 159,737 | android widget that download and prints bitmaps don't work | <p>I need to create a widget that will download on the sdcard some bitmaps every minute and will print them on the screen. i have tried to do with </p>
<pre><code>private class MyTime extends TimerTask
</code></pre>
<p>but is don't work. the widget don't update:(
the images have 30K in total. can you help me with thi... | java android | [1, 4] |
189,264 | 189,265 | ASP.NET EventHandling | <p>I create a servercontrol for ASP.Net. For being short and precise I
just list the things I do:</p>
<p>(1) Call EnsureChildControls in OnInit</p>
<p>(2) Create a dynamic table in CreateChildControls:</p>
<pre><code>Table aTable = new Table();
aTable.ID = this.ID + "$" + T;
TableRow aRow = new TableRow();
aRow.ID =... | c# asp.net | [0, 9] |
2,892,004 | 2,892,005 | Python data passing | <p>I need exchange data between python daemon (cluster nods send data to this daemon) and php script (apache) which, is accessed by webbrowsers. What do you recommend as technology which could establish some connection between them. Both, python daemon and apache/php is on the same machine. </p>
<p>Thank you.</p>
| php python | [2, 7] |
2,635,408 | 2,635,409 | Which one is better performance to use for .click in the below list | <blockquote>
<p>Please vote for me which one in the below list is better?</p>
</blockquote>
<p>I have HTML:</p>
<pre><code><div id="container">
<button class="btn">Click Here 1</button>
<button class="btn">Click Here 2</button>
<button class="btn">Click Here 3</but... | javascript jquery | [3, 5] |
5,696,541 | 5,696,542 | How do I use jQuery to insert PHP tags through the DOM? | <p>Here is what I'm trying to do...</p>
<pre><code>$("div").prepend("<div id='comment-number'><?php the_comment_number(); ?></div>");
</code></pre>
<p>Is there some way to get this to work?</p>
<pre><code><div class="gallery-item">
<div class="comment-number"><!--?php echo htmlspec... | php javascript jquery | [2, 3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.