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 |
|---|---|---|---|---|---|
3,434,025 | 3,434,026 | Java/Android: DatagramChannel is already set non-blocking, receive() still blocks | <p>I set the <code>datagramchannel</code> non-blocking by instance method <code>configureBlocking(false)</code>,
But when I use instance method <code>receive(buffer)</code>, it still hangs there for incoming packet. Anyone could tell me what's going on?</p>
<p>Thanks.</p>
| java android | [1, 4] |
5,347,841 | 5,347,842 | JQuery : Play notification sound : IE8 Error | <p>This code works perfect for crome and firefox.. but error in IE8</p>
<pre><code>if($('#soundcheck').is(':checked')){
//alert('checked');
var audio = document.createElement('audio');
document.body.appendChild(audio);
audio.src = system_b... | php javascript jquery | [2, 3, 5] |
1,758,253 | 1,758,254 | setInverval and delay | <p>I am trying to make a div bounce every 4 seconds and after 15 seconds fadeOut. The code bellow makes the div disappear and the bounce doesn't happen.</p>
<pre><code>$(document).ready(function(){
function salta() {
$('.recomenda').effect("bounce",{ times:4 },300);
}
setInterval(salta, 4000);
... | javascript jquery | [3, 5] |
2,944,720 | 2,944,721 | Does javascript allow me to use default parameters? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/148901/is-there-a-better-way-to-do-optional-function-parameters-in-javascript">Is there a better way to do optional function parameters in Javascript?</a><br>
<a href="http://stackoverflow.com/questions/894860/how... | javascript jquery | [3, 5] |
4,376,954 | 4,376,955 | Resources Not Found Exception | <p>I have a variable int nextvalue. This is set via</p>
<pre><code>nextvalue = b.getInt(b.getColumnIndex("nextq"));
</code></pre>
<p>It is definitely being set correctly as a following query relies on this value. The problem is occurring when I am trying something like</p>
<pre><code>text.setText(nextvalue);
</code>... | java android | [1, 4] |
5,759,385 | 5,759,386 | Caching data in fields in form input | <p>I have a small form with two fields: login + password.
I would like when a user gets connected by entering valid credentials, and when he comes back for new login, to cache data in form fieds. Like when we go to the gmail interface and find the email address and password are already in the fields and we just have to... | php javascript | [2, 3] |
664,029 | 664,030 | android: start in symbol keyboard mode, but don't restrict to numbers-only input | <p>I want to specify that Android should start the soft keyboard for a given EditText in the numeric/symbols mode. I know this can be done by setting the input type of the EditText to be numeric using EditText.setInputType() except that I do not want to restrict the input type for the EditText to numeric input only**. ... | java android | [1, 4] |
3,599,865 | 3,599,866 | asp.net, c# with mappath | <p>i have 10 rows like (E:\DocumentManager\Upload\rzgtlxvmuolmhej4ibvyif2o.pdf") already in the database. so I have dataset to pick it up, and now I want to know
how to display/show on the browser
(E:\DocumentManager\Upload\rzgtlxvmuolmhej4ibvyif2o.pdf") on the web using aspx/c# code behind.</p>
| c# asp.net | [0, 9] |
4,466,229 | 4,466,230 | How to Add Horizontal line in Javascript | <p>I would like to add a horizontal seperating line on a dynamic populated table. How do I do this? Below is a snippet.</p>
<pre><code> function addNewRow() {
$('#displayTable tr:last').after('<tr><td style="font-size:smaller;" class="dataField1"></td><td style="font-size:smaller;" class... | javascript jquery | [3, 5] |
5,856,305 | 5,856,306 | What is the way to show the progress of calculations? | <p>I would like to monitor my program which is running on the web server.
Can I draw the progress bar or simply show the percentage which is returned by my code?
The php script is spawning the external code with parameters.</p>
<pre><code> $Status="rendering...";
$cmd = "cd $rpath && $envopts /home/arm2arm/bi... | php jquery | [2, 5] |
5,458,727 | 5,458,728 | Delete old divs if there are more than 20 | jQuery | <p>I need some help with my jQuery script.
I have a page that refreshes every 10 seconds and new divs from a feed are getting appended at.</p>
<p>My script counts the divs and removes the last div when there are more than 20 divs. This works fine if the feed just appends 1 div at a time. But the feed can also append m... | javascript jquery | [3, 5] |
5,486,480 | 5,486,481 | Passing a variable specifically from one function to another in jquery without making it global | <p>I am looking for some help in a jquery script I am in the process of creating, ill try and break it down in plain english.</p>
<p>The script works off the back of a grid utilised via a <code><ul></ul></code> element, each <code><li></li></code> forms the individual component of the grid.</p>... | javascript jquery | [3, 5] |
4,234,843 | 4,234,844 | Java conversion to php? | <p>Is it possible to convert this java code snippet to php?</p>
<pre><code>public void testBalanceReturnsToZeroOnVending()
{
sodaVendor.insertCoin(50);
sodaVendor.insertCoin(20);
sodaVendor.insertCoin(5);
// The price is right!
assertEquals("We have e... | java php | [1, 2] |
2,851,839 | 2,851,840 | android scale tab image | <p>I set an image for each tab and result is as expected but on some devices (tablets or some smartphone models) image is seen bigger and above text. How to solve it? Thank you.</p>
<p>activity,</p>
<pre><code> StateListDrawable selector = new StateListDrawable();
selector.addState(new int[] { android... | java android | [1, 4] |
1,645,318 | 1,645,319 | Embedding server side javascript frameworks in a Java desktop application? | <p>I've read that it's possible to embed Rhino into your Java application. Narwhal is also built on top of it by default and I was directed to <a href="http://narwhaljs.org/" rel="nofollow">http://narwhaljs.org/</a> which actually no longer exists.</p>
<p>I would love to know of anything similar to nodejs,ringojs whic... | java javascript | [1, 3] |
1,233,775 | 1,233,776 | Changing an input fields value in jQuery on click | <p>My site searches the Spotify Library and returns a list of results. The idea is that users can click on one of the results and have it added to a playlist which will in turn be posted as part of a form submit. The code below adds the clicked song to a .selected-list container, then adds a hidden input to the DOM wit... | javascript jquery | [3, 5] |
760,851 | 760,852 | Programming Challenge using jQuery | <p>This is a follow up to a previous question which seems to have confused people so I'll purify it a bit. Here is some markup.</p>
<pre><code><div class="button width120 height30 iconLeft colorRed"></div>
<div class="button width180 height20 iconPlus colorBlue"></div>
<div class="button wid... | javascript jquery | [3, 5] |
3,761,763 | 3,761,764 | jquery open page in a tab and pass some POST values | <p>how can I open in a new window a php page and pass in some POST variable?
I am using jquery.</p>
<p>Thank you. </p>
| javascript jquery | [3, 5] |
5,627,719 | 5,627,720 | android api call return simple array | <p>i am calling an api which should return an array of length between 0 to 9. Now i am not understanding how to get that array. for getting simple string other api's
My code is:are working fine according to this code.</p>
<pre><code>private String test(String url)
{
String str = null;
int c;
try
{
... | java android | [1, 4] |
366,691 | 366,692 | Cancel a funcion in asp.net through javascript | <p>I have button that when an user click on it, if some fields are not correct, a message will be display but i would like to make that validation with javascript(or maybe someday i will) and i have no idea how to make that when the user click the button, the onclick funcion on the server side wont be execute.</p>
| c# javascript asp.net | [0, 3, 9] |
319,849 | 319,850 | distinct and grab data while receiving it in php | <p>i have a jquery script wich send a get var with id to a page named ajaxprocess,php each time a specific element is clicked . i have 20 elements.</p>
<p>the idea is create a temp table with 3 field , each time element is clicked it stores its value in field 1 , second in field 2 and third in field 3 and stop , i jus... | php jquery | [2, 5] |
4,425,944 | 4,425,945 | jQuery click on scrollbar not registering as in the element in IE? | <p>This is referring specifically to the jQuery dropkick plugin:</p>
<p><a href="http://jamielottering.github.com/DropKick/">http://jamielottering.github.com/DropKick/</a></p>
<p>Scroll to the second demo where the lists overflow and there is a scrollbar. In ever browser but IE, you can interact with the scrollbar. I... | javascript jquery | [3, 5] |
4,586,880 | 4,586,881 | difference between c# and asp.net/c# | <p>do i need to be as strong in c# as an asp.net/c# developer as i would as a c# desktop application developer? there seems to be much less c# coding involved when developing asp.net websites than desktop applications. are there certain things in c# that aren't used as often when used in asp.net websites than in deskto... | c# asp.net | [0, 9] |
1,758,882 | 1,758,883 | Label a checkbox using jquery | <p>i'm not familiar with jquery.</p>
<p>What i'm trying to do is, drag and drop a text which will be displayed as a checkbox and the checkbox should have the id and tooltip same to the dropped-text. For that i used the following code.but it's not working.please help</p>
<pre><code> <script type="text/javascript"&g... | jquery asp.net | [5, 9] |
3,781,410 | 3,781,411 | How to add the ListActivities to the ViewPager in android? | <p>I am preparing the Swipe by using ViewPager. In my application display the 4 ListActivities by using ViewPager.I Know how to add the views in ViewPager but I dont Know how to add the ListActivity in my app.
Please help me..................</p>
<pre><code> private class MyPagerAdapter extends PagerAdapter {
... | java android | [1, 4] |
485,535 | 485,536 | How to write a transaction to cover Moving a file and Inserting record in database? | <p>I want to have a transaction for copying a file and then inserting a record in database.
something like below statement, but transaction doesn't cover copying file.
What's the solution?</p>
<pre><code>using (TransactionScope scope1 = new TransactionScope())
{
// Copy a file
fileMgr.Move(srcFileName, destFil... | c# asp.net | [0, 9] |
3,884,816 | 3,884,817 | Button click event not firing within use control in ASP .Net | <p>I am developing an asp web page in which I have a drop down combobox and a place holder below that. When the user selects an item from the drop down combobox, a postback is done to the server side and server loads an asp user control to the place holder in this parent page. Everything upto now is working fine.</p>
... | c# asp.net | [0, 9] |
2,623,264 | 2,623,265 | Determine when a ScheduledExecutorService will fire next | <p>Is there a way to determine the current millisecond or other time measure of when a ScheduledExecutorService is going to fire next?</p>
<pre><code>scheduleTaskExecutorUpdate = Executors.newSingleThreadScheduledExecutor();
</code></pre>
<p>I have a longer running <code>ScheduledExecutorService(A)</code> and from a ... | java android | [1, 4] |
5,232,194 | 5,232,195 | jQuery remove() not actually removing form fields in a DIV | <p>This is driving me a little bonkers,</p>
<p>I have a form with a set of dynamic divs, each filled with several form fields. The user can remove one of these divs and when doing so I call jQuerys remove method on the container. </p>
<p>I see in firebug that the container is destroyed and removed from the DOM. Howev... | javascript jquery | [3, 5] |
3,528,877 | 3,528,878 | get values from links in html document with JavaScript and store them in an array | <p>I have a table with links in the html document and they looks something like (first link is just javascript:):</p>
<pre><code>javascript:
javascript:SelectField('{a guid}','2');return false;
javascript:SelectField('{a guid}','23');return false;
javascript:SelectField('{a guid}','1');return false;
javascript:Sel... | javascript jquery | [3, 5] |
1,337,740 | 1,337,741 | Unable to read data from the transport connection: Stream Reader Error | <p>Following code throws the error: <br/>
<i>"Unable to read data from the transport connection: The connection was closed."-System.IO.IOException.</i>
<br/>
This method receives a URL as parameter, execute it and gets response from webserver.
<br/>
<br/>While reading the response by using a Stream, the line <code>liBy... | c# asp.net | [0, 9] |
4,435,949 | 4,435,950 | prevent default on enter keypress in IE7 | <p>I'm solving the problem with default submit button in IE7. When I press "enter" key in input field, than some button on the page is clicked. So I've found the solution for this:</p>
<pre><code> $(document).bind("keypress", function(ev) {
ev.keyCode == 13 && ev.preventDefault();
});
</code></pre>
<p... | javascript jquery | [3, 5] |
370,921 | 370,922 | Display a variable in Android Widget | <p>I have a String variable that is declared and edited in the Main Activity.</p>
<p>I would like it to be display in a widget, but not sure how.</p>
<p>In the Widget file I have:</p>
<pre><code>remoteViews.setTextViewText(R.id.widgetAmount, String.valueOf(number))
</code></pre>
<p>but the number variable is declar... | java android | [1, 4] |
180,495 | 180,496 | jquery .animate() in a loop using the index on complete: | <p>I am working on a script that runs multiple animations at once, and based on when a new animation starts, the rest of the elements currently animating have to .stop() and move to another loation (this is working). So I built an array of animations that gets .animate()'ed when a new animation is added, and when each ... | javascript jquery | [3, 5] |
5,224,309 | 5,224,310 | Image change on hover | <p>Hi, I have a HTML image that is setup like this:</p>
<pre><code><input id="img" type="image" src="">
</code></pre>
<p>How can I change <code>src</code> on hover?</p>
<p>.</p>
| javascript jquery | [3, 5] |
3,008,634 | 3,008,635 | fetching client id in external javascript file | <p>How to fetch Client ID's of asp.net control in external javascript file i google it but didn't find any relevant answer if somebody can tell me or provide me some good links</p>
| javascript jquery | [3, 5] |
3,401,721 | 3,401,722 | calling javascript from c# | <p>I need to use the javascript functions to show and hide an element on my page, but calling it from within a C# method. Is this possible?</p>
<p>EDIT : I tried RegisterStartupScript (see below) but this did not hide the elements as I had hoped :</p>
<pre><code>HidePopup("CompanyHQSetup", "$('#<%=DivDataProvider... | c# javascript | [0, 3] |
5,552,726 | 5,552,727 | Dynamically changing layout in application | <p>I want my users to have the ability to choose a few buttons which would be transferred to a different page, like a "favourite buttons" page. To do this, I need to change the layout from the app. I would like the modified layout to persist even after closing the app. Is it possible to do this?</p>
| java android | [1, 4] |
742,272 | 742,273 | jQuery - double click class reveals drop down to select | <p>I am having major trouble with this.</p>
<p>I am trying to write something in jQuery, when text is double clicked it hides that element and shows a select drop down... However, when the user leaves that element, the drop down should go back to the original text.</p>
<p>I have tried so many methods, and none work. ... | javascript jquery | [3, 5] |
3,971,190 | 3,971,191 | get elementId from event in jquery | <pre><code>function barvaInfo(event) {
$(document).ready(function(){
var nid = window.event.srcElement.id;
}
</code></pre>
<p>this works in IE but not in FF. Can i use jquery for this? i try with JQuery event api but then i do not know how to get ID from it.</p>
| javascript jquery | [3, 5] |
3,340,264 | 3,340,265 | Binding a dropdown | <p>I am doing a report to display the records in Grid view based on some search parameters. In that one search filter is Drop down with Year values. The drop down should contain the years starting from 2000 to current year. If the year changes it should automatically bind the next year.
How can I achieve this?</p>
| c# asp.net | [0, 9] |
1,674,259 | 1,674,260 | jQuery check click for each link | <pre><code>$("#showKey").each(
$(this).click(function(){
alert($(this).attr("value"));
})
);
</code></pre>
<p>And</p>
<pre><code><a id="showKey" href="#" value="{{ customer.key }}">
<span class="icons icon-key"></span>
Show key
</a>
</code></pre>
<p>The alert gives and u... | javascript jquery | [3, 5] |
5,484,725 | 5,484,726 | jquery filter out specific element | <p>I'm implementing accordion-style behavior, where only one element can be displayed at one point. I thought it'd be simplistic to implement a <code>show(e)</code> function that takes an element, <code>e</code>, to be displayed and hides everything BUT <code>e</code>. It saves me the hassle of keeping track of which e... | javascript jquery | [3, 5] |
328,515 | 328,516 | JQuery extract string multiple time | <p>Given the following HTML that is in a JavaScript string variable I'd like to extract into an array the values 1234, 5678, 9012 using JQuery:</p>
<pre><code><input type="hidden" id="name" value="1234"/>
<input type="hidden" id="name" value="5678"/>
<input type="hidden" id="name" value="9012"/>
</co... | javascript jquery | [3, 5] |
2,494,308 | 2,494,309 | How do i validate a field based on the input of another field | <p>i have 2 fields and i need to make one of the fields a required fields only if the other field has content of "NO" value in it. So i have researched online and this is what i ended up having. The only question i have and need help with this is the first part of the code where it calls this: .getElementByID. How c... | c# asp.net | [0, 9] |
2,540,245 | 2,540,246 | Passing two values for ajaxForm(), using jQuery and PHP | <p>I want to pass both the values using ajaxForm, displaying both the values separately in test.php</p>
<pre><code>-------test.php-----------------------------------------
<script language="javascript" type="text/javascript">
$('#test_form').ajaxForm({
target:'#result',
success:function() {
$(... | php jquery | [2, 5] |
1,789,148 | 1,789,149 | delete record in jqgrid in asp.net | <p>i want to delete a record in jqgrid.
for this i have the image and when the user clicks on this the record is getting deleted.but i want to show the confirm box and when true then only the record should get deleted.
so any one can tell how to call javascript in jqgrid.
my jqgrid is
jQuery(document).ready(function(... | asp.net jquery | [9, 5] |
5,077,365 | 5,077,366 | Dot notation for hierarchical related string values | <p>I have a lot of constant string values in my application which I want to have as strongly typed objects in C# for code reuse and readability. I would like to be able to reference the string value like so:</p>
<pre><code>Category.MyCategory //returns a string value ie “My Category”
Category.MyCategory.Type.Private ... | c# asp.net | [0, 9] |
1,938,086 | 1,938,087 | Get Values of Dropdown based on First Dropdown selected | <p><strong>PHP/MYSQL</strong></p>
<pre><code><div style="width:810px; margin:inherit; padding-left:170px;">
<select style="width:300px;" id="n" name="userListingCateory">
<option disabled="disabled">Category...</option>
<?php while($row = $sth2->fetch(PDO::FETCH_ASSO... | php javascript jquery | [2, 3, 5] |
1,237,684 | 1,237,685 | geocoder.getLocations result in a var | <p>I've waste a lot of time, but I'm not able to do it.</p>
<p>I'll appreciate help.</p>
<p>How to get the result of the inverse geolocation in a variable?</p>
<p>here is the script:</p>
<pre><code>geocoder = new GClientGeocoder();
geocoder.getLocations('43.3372814,(-1.79548311)', showAddress);
function showAddres... | javascript jquery | [3, 5] |
4,822,658 | 4,822,659 | Eventmanager that calls other objects' functions | <p>I'm using javascript and jQuery. I have a "problem" that my web app has different views, and one action (like mouse click) should do different things in the different views.</p>
<p>I've created an ActionManager that get's notified when an click event is fired. This manager object knows about the current view. Now I... | javascript jquery | [3, 5] |
3,475,490 | 3,475,491 | How do I use JQuery to add an event to a textbox when the user pushes enter? | <p>And please don't submit the form when the user pushes enter on THAT SPECIFIC textbox.</p>
| javascript jquery | [3, 5] |
2,705,719 | 2,705,720 | Postback using javascript | <p>How to cause a postback using javascript in ASP.NET.</p>
| asp.net javascript | [9, 3] |
2,596,582 | 2,596,583 | Could this code create a potential memory leak? | <p>I'm using a custom Database class in my code to manage my database and handle transactions. Whenever I instantiate it, I pass the application context to it's constructor. Reading up on the articles at the Android developer site makes me wonder if I'm doing something that could cause a huge memory leak in my applicat... | java android | [1, 4] |
3,224,573 | 3,224,574 | Javascript Variable value in PHP | <p>I have my code look like this </p>
<pre><code>var bal=$(this).val();
var findbalance="<?=balancefromid(bal);?>";
alert(findbalance);
</code></pre>
<p>is that possible?</p>
| php javascript | [2, 3] |
5,393,223 | 5,393,224 | Jquery event binding won't work when called as a method but will when called directly in console | <p>I have a maddening problem. I have a table that contains rows consisiting of text inputs and selects. I have custom method I have definied that when called in the code, or in the console, it does not bind the click event any of the selects. Only the text inputs. However, if I copy and paste the code of the method di... | javascript jquery | [3, 5] |
4,260,115 | 4,260,116 | C# Declaring Multiple Instances of the Same Table | <p>I have a table that needs 27 drop down menus in 27 cells to accept user input. Currently I am declaring all 27 of them like this:</p>
<pre><code>DropDownList DropList1 = new DropDownList();
DropList1.ID = "TrendList1";
DropList1.AutoPostBack = true;
DropList1.SelectedIndexChanged += new EventHandler(this.Selection... | c# asp.net | [0, 9] |
1,344,681 | 1,344,682 | refreshing javascript result after some time | <p>I am making a site which displays result according to user's input. Now its based on javascript. I want to refresh this query made by javascript after some seconds and new results. This is what i want - </p>
<p>The whole page shouldn't refresh completely. only new results for the same query should appear.</p>
| javascript jquery | [3, 5] |
84,816 | 84,817 | Internal page refresh with JavaScript | <p>I have a form and everytime some performs a onchange()-event, the page should run my javascript code again (but a refresh of the page using a new url request is not an option).</p>
<p>Any idea? I know this must be very simple.</p>
<p>my javascript-code:</p>
<pre><code> $(document).ready(function(){
formObjec... | javascript jquery | [3, 5] |
2,716,566 | 2,716,567 | fetch values from cross browsers cookie | <p>Can we Fetch Values from Cross Browser Cookie ???
For Example USer Can use mozilla or chrome or any other browser </p>
<p>when we <code>print_r($_COOKIE);</code></p>
<p>All Browsers Cookie Will Print. </p>
| php javascript | [2, 3] |
4,966,536 | 4,966,537 | Android:converting int to string and passing to methods | <p>Hi I am using the android wheel and getting the values of the time as below</p>
<pre><code> //get values of the wheel
hourvalue = hours.getCurrentItem();
Log.d(TAG, "hour value" +hourvalue );
minutevalue = mins.getCurrentItem();
Log.d(TAG... | java android | [1, 4] |
488,404 | 488,405 | Is safe to put variables in a onclick definition? | <p>This is a really newbie question.</p>
<p>I've managed to get some jQuery stuff running quite smootly but i ended up having many
events like this one..</p>
<pre><code><div class="aClass" id="B436" onclick="updateSearch('B436', '','Brand','193557', 0)">My Name</div>
</code></pre>
<p>Now i'm wondering if... | javascript jquery | [3, 5] |
1,436,946 | 1,436,947 | div fades out if mouse does not hover over it | <p>I want code in which a div fades out if mouse does not hover over it. This is the code which makes the div visible. As soon as it is displayed it fades out. I want that if a user hovers over it while it is fading out it stops fading and becoming as it was initially. And then as user hovers out of it it fades again.<... | javascript jquery | [3, 5] |
2,727,964 | 2,727,965 | Subtract from a integer using jquery | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/12354458/subtract-from-an-integer-using-jquery">Subtract from an integer using jquery</a> </p>
</blockquote>
<p>I want to subtract 50 from the offset of a div.
My code is this.</p>
<pre><code>if (scroll) {
... | javascript jquery | [3, 5] |
3,693,854 | 3,693,855 | dynamically adding validators | <p>In my case I would like to dynamically add validators to my control based on given logic. For each control I first check something in my DB and if it goes aout that field is required I would like to add requiredField to that control. I firt iterate through each control and if its required I add attribute required="t... | c# asp.net | [0, 9] |
4,404,693 | 4,404,694 | c# Compilation on runtime | <p>I am working on a C# Web application which in fact the user is going to built through this application a new web application with his requirements. It is going to be like an Object relational mapping online platform. For this i will need a runtime compiler. I found some examples for winforms projects but nothing fo... | c# asp.net | [0, 9] |
3,115,349 | 3,115,350 | checkbox image replacement,nothing happend | <pre><code><?php
//require 'includes/db.inc.php';
require 'includes/configs.inc.php';
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title><?php $site_name ?></title>
<meta http-eq... | javascript jquery | [3, 5] |
3,336,211 | 3,336,212 | quick [php function] -> [javascript function] question | <p>if anyone fancies doing me a really quick favour, it would be really appreciated:</p>
<pre><code>static function make_url_safe($z){
$z = strtolower($z);
$z = preg_replace('/[^a-zA-Z0-9\s] /i', '', $z);
$z = str_ireplace(' ', '-', $z);
return $z;
}
</code></pre>
<p>what js functions should i be look... | php javascript | [2, 3] |
4,136,848 | 4,136,849 | Initializing JavaScript Variables on Server Side | <p>I am having problems setting JavaScript variables on the Server Side in ASP.Net Web Forms (Not MVC) using Master Pages.</p>
<p>Basically I want to do something like this:</p>
<pre><code><script type="text/javascript">
var z = '<%# Request.QueryString["Env"] %>';
</script>
</code></pre>
<p>Af... | javascript asp.net | [3, 9] |
5,245,600 | 5,245,601 | Read Gridview exact rows after adding a dynamically added header? | <p>I am adding a table header row dynamically as shown below. It is rendered correctly.
So now I have 2 headers.</p>
<pre><code>protected void gvCustomers_RowDataBound(object sender, GridViewRowEventArgs e)
</code></pre>
<p>{</p>
<pre><code>if (e.Row.RowType == DataControlRowType.Header)
{
GridViewRow newHeaderR... | c# asp.net | [0, 9] |
4,936,573 | 4,936,574 | fill drop down list | <p>How do i fill radio button list and drop downlist from database.</p>
| c# asp.net | [0, 9] |
736,768 | 736,769 | Can I use contains inside of a find in jQuery? | <p>I have this html:</p>
<pre><code><table>
<tr id="1"><td>test</td><td id="90">value</td></tr>
<tr id="2"><td>another</td><td id="98">somthing</td></tr>
</table>
</code></pre>
<p>and this jquery:</p>
<pre><code> $("tr td:nt... | javascript jquery | [3, 5] |
1,089,942 | 1,089,943 | Confused on scoping and this | <p>I received a code snipper from here: <a href="http://jsdude.wordpress.com/2012/12/19/jquery-event-callbacks-and-javascript-oop-methods/" rel="nofollow">http://jsdude.wordpress.com/2012/12/19/jquery-event-callbacks-and-javascript-oop-methods/</a>:</p>
<pre><code> var CounterButton = function(el){
this.$el = $(el... | javascript jquery | [3, 5] |
3,390,046 | 3,390,047 | jquery function passsing variables | <p>hi i am building a php mysql database pagination page, so i have a list of records 2 rows long at the bottom of the record i want a div which opens up when the span above it is clicked, how do i set up the jquery to make it so that it takes the id of the <code><p></code> and expands it in jquery</p>
<pre><cod... | php jquery | [2, 5] |
5,032,931 | 5,032,932 | How to update view in a cursor adapter? | <p>I have extended a cursor adapter</p>
<pre><code>public class MyAdapter extends CursorAdapter {
MyAdapter(View view, Context context, Cursor cursor) {
...
}
public void bindView(View view, Context con, Cursor c) {
if (OtherClass.currentlyPlaying.equals(ring)) {
TextVi... | java android | [1, 4] |
2,815,790 | 2,815,791 | Why isn't this code jquery working? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1970793/changing-password-field-to-text-with-checkbox-with-jquery">changing password field to text with checkbox with jquery</a> </p>
</blockquote>
<p>The code is supposed to check if a checkbox is checked, then... | javascript jquery | [3, 5] |
1,667,765 | 1,667,766 | Creating an international website | <p>The question might sound weird, but I am planning to create a asp.net website, which when fully done, will ideally cater to all countries.</p>
<p>I am currently in the architecture phase.. and is there anything that I should keep in might when doing this?</p>
<p>like<br>
saving all datetime fields in utc<br>
using... | c# asp.net | [0, 9] |
4,962,898 | 4,962,899 | What is the equivalent jQuery code to the following JavaScript which saves off onclick events? | <p>So in JavaScript I can do the following:</p>
<pre><code>var someObj = document.getElementById("foo");
var fooClick = foo.onclick;
var someOtherObj = document.getElementById("bar");
someOtherObj.onclick = fooClick;
</code></pre>
<p>I'm wondering, what is the jQuery equivalent to the code above?</p>
<p>Thanks!</p>... | javascript jquery | [3, 5] |
3,372,310 | 3,372,311 | change color of bottom boundary upto certain range | <p>hi everyone is there any way to change the color of bottom boundary of a div up-to certain distance or range (i.e. not complete bottom border). i am using the following code but it will change the color of complete bottom:</p>
<pre><code>style.borderBottom = "2px solid blue";
</code></pre>
| javascript jquery | [3, 5] |
4,228,897 | 4,228,898 | How to find extension of a file? | <p>in my web application (asp.net,c#) i am uploading video file in a page but i want to upload only flv videos. how can i restrict when i upload other extension videos help me please.</p>
| c# asp.net | [0, 9] |
1,270,621 | 1,270,622 | Jquey - Text replace on string | <p>I have code which check all the checkboxes and add or remove checked status (this part is working). I need to change text when this function is clicked from "Select All" to "De-select All".
Button to select all:</p>
<pre><code><a class="zute_strane_izmena_selektuj_sve">Select All</a>
</code></pre>
<p>J... | javascript jquery | [3, 5] |
2,549,545 | 2,549,546 | jQuery append an element more than once | <p>I'm currently trying to add n number of divs to the bottom of the body, however using this code: </p>
<pre><code>star = $('<div class="star" />');
for(i=0; i<12; i++) {
$('body').append(star);
}
</code></pre>
<p>results in just one div being appended to the bottom of the body. I'm guessing this is b... | javascript jquery | [3, 5] |
4,236,466 | 4,236,467 | Make Image visible true in a button click event | <p>I have image in my aspx page and i want to make it visible true in an button click event .
.I made it as visible false in pageload and again making visible true in the button click event...</p>
<p>Please any one can solve my problem</p>
| c# asp.net | [0, 9] |
4,415,634 | 4,415,635 | jQuery toggle help | <p>Currently, clicking on the h2 tag toggles the div with slideToggle. However, I'm trying to also fade in and out the <code>.hint_text_heading</code> that exists within the h2 tag. So, originally, what I tried to do at least, I am adding an <code>.active</code> class to the h2 tag thats open, then fading in the <code>... | javascript jquery | [3, 5] |
982,908 | 982,909 | Javascript: Add a class where class | <p>I am working with js and i need to remove one class and add another, in this case visible and invisible(self explanatory css i think), to all elements with the class 'edit'. Is it possible to use a class as a selector for adding a class?</p>
<p>I have tried:</p>
<pre><code>$(function){
$('#hide').click(functio... | javascript jquery | [3, 5] |
5,088,271 | 5,088,272 | Help with Jquery function | <p>Ok, Here is my problem:</p>
<p>I have this function in a third party javascript library defined as <code>RedirectLink(a,b,c,d,e)</code> where a,b,c,d,e are strings.</p>
<p>I also have a link in my webSite which is again autogenerated (And I can't change it)</p>
<pre><code><a href="javascript: RedirectLink("1",... | javascript jquery | [3, 5] |
5,855,833 | 5,855,834 | how to save value onDestroy or onStop and get it back with the program launch again? | <p>I wonder if I could save a value (in my program its an index) so I could call it back when the program launches back again (even if the program destroyed) and the user could start from where finish.</p>
<p>Thanks </p>
| java android | [1, 4] |
739,407 | 739,408 | Passing multiple values from MYSQL/PHP table to jQuery | <p>Basically, I have working solution for this, but I'm wondering if it could (should?) be done better in some other way.</p>
<p>I have table I'm creating in PHP with values from MYSQL. Each item in table has multiple values. In each line there is single link and clicking on this link fires up jQuery function. In each... | php jquery | [2, 5] |
3,881,397 | 3,881,398 | Target individual class function instead of the whole class group | <p>I have a script that shows more info when clicked and when clicked again it hides the info. The problem is that when clicked it shows and hides information of all the div's with the same class name instead of only the one that was clicked. I was looking around and I would think that I need to add "this" somewhere in... | javascript jquery | [3, 5] |
1,660,099 | 1,660,100 | Odd Problem With window.close() | <p>I have an odd problem with window.close() or self.close() (Both create the same issue). I have a window that pops up when a link is clicked, a simple form is submitted then a button is shown that when clicked closes the window using the aforementioned method. This works fine, the problem I'm having is when this is p... | c# asp.net javascript | [0, 9, 3] |
875,475 | 875,476 | How To: Stackoverflow / Twitter JS dialogue box | <p>I am trying to build a text-bar above the website like <a href="http://techdows.com/wp-content/uploads/2010/12/older-verison-of-twitter.png" rel="nofollow">Twitter or SO does.</a> Any advice on how to build this would be great. I do not know what you call this feature, but maybe there is a jQuery plugin to do it?</p... | javascript jquery | [3, 5] |
1,277,011 | 1,277,012 | Jquery tablesorter plugin not sorting correct | <p>I have some columns with the format:</p>
<pre><code><td>148 kr. </td>
</code></pre>
<p>The tablesorter plugin does not sort them correct. It is like random.</p>
<p>I also have columns like this one:</p>
<pre><code><td>148 kr. <br>(Oprettelse 49 kr.)</td>
</code></pre>
<p>Were I wan... | javascript jquery | [3, 5] |
5,200,246 | 5,200,247 | Listen to phone state throughout the application? | <p>I nee to liste to phone state using phone state listener .I have many activities in a project. Should I register the listener to each of the activities or else is ther a better way.</p>
<p>ps: i am not interested to use broadcast receiver</p>
| java android | [1, 4] |
4,480,494 | 4,480,495 | Android shared library which is not JNI based | <p>I am developing a library for Android applications which does not use native code (JNI). I have tried suppling the library as an external jar in my Android projects but this method does not include the library contents in the apk and thus throws class not found errors when run in the emulator or device. I have also ... | java android | [1, 4] |
1,426,659 | 1,426,660 | Making your javascript maintainable | <p>I am in the process of converting an internal application to use more Ajax via jQuery. I am moving away from the standard code behind of the current ASP.NET application and incorporating JavaScript methods that are going to run client side. My concern is what is the best method for allowing this application to stay ... | javascript jquery | [3, 5] |
4,851,986 | 4,851,987 | File Download popup overwrites the alert popup | <p>When the user clicks on the "Export to Excel" link, the standard "File download" dialog is presented to the user. <a href="http://i.imgur.com/bsXM9.jpg" rel="nofollow">See here for an example image</a>. </p>
<p>But before exporting the excel file, I want to display an alert popup. But the Save dialog is obscuring ... | c# javascript asp.net | [0, 3, 9] |
972,879 | 972,880 | Javascript - Dynamically change the contents of a function | <p>I have this function that (on page load) changes my margin using the "css" jQuery method...</p>
<pre><code>function page_change() {
var h = window.location.hash;
switch (h) {
case 'home':
$('.page-slide-box').css({marginLeft: 0});
break;
case 'history':
$('.page-slide-box').css({margi... | javascript jquery | [3, 5] |
4,161,345 | 4,161,346 | Where's the width() function in jQuery source? | <p>Where's the <code>width()</code> function in <a href="http://code.jquery.com/jquery-1.5.js" rel="nofollow">jQuery source</a>?</p>
| javascript jquery | [3, 5] |
2,700,862 | 2,700,863 | Plupload - how to open more than one time and refresh the list? | <p><strong>js:</strong></p>
<pre><code>$(".butAnexarDoc").live("click", function(){
$("#anexarArquivos").plupload({
// General settings
runtimes : 'html5,html4',
url : 'js/plupload/examples/upload.php',
max_file_size : '1000mb',
max_file_count : 20, // ... | javascript jquery | [3, 5] |
4,853,564 | 4,853,565 | How to Convert an array of jQuery Objects to an HTML String | <p>In the jQuery Infinite Carousel, it uses <code>.clone()</code> to do the infinite effect. This works great unless the code it's cloning has HTML5 Elements. IE7 and IE8 have trouble applying HTML5 Element-specific CSS rules to cloned or otherwise post-page-load inserted elements.</p>
<p>The <a href="http://jdbartl... | javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.