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 |
|---|---|---|---|---|---|
5,858,924 | 5,858,925 | compare values of cells in different rows in table using jquery | <p>I have a dynamically generated table with php that has same rows. Need to get value from cell 1 in row 1 and value from cell 1 in row 2 and compare them. If they are the same remove entire row or hide... Do that for the whole table... Any help is appreciated.. Thanks!!</p>
<p>Haave this so far:</p>
<pre><code>var ... | php jquery | [2, 5] |
400,400 | 400,401 | Javascript iframe loading time function for many urls | <p>Got a very simple function that checks the loading time of an iframe:</p>
<pre><code>function loadTime() {
var beforeLoad = (new Date()).getTime();
$('#loading_iframe').one('load', function () {
var afterLoad = (new Date()).getTime();
var result = (afterLoad - beforeL... | php javascript | [2, 3] |
5,038,743 | 5,038,744 | The remote server returned an error: 227 Entering Passive Mode (89,202,213,212,6,32) | <p>Briefly,<br>
I'm trying to read 5000 xml files from ftp but it throws
The remote server returned an error: 227 Entering Passive Mode (89,202,213,212,6,32) on reading 1500th xml file. what shall i do somebody help me. </p>
<pre><code>string[] files;
files = GetFileList();
foreach (string file in files)
{
xml... | c# asp.net | [0, 9] |
2,631,397 | 2,631,398 | If it is final then why put static? | <p>Sometimes I see something like :</p>
<pre><code>public class MainActivity extends Activity
{
public static final String url_google = "http://www.google.com";
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main... | java android | [1, 4] |
5,564,736 | 5,564,737 | jquery get last each if value | <p>I have this code, </p>
<pre><code>$(function () {
$.post("fetch_data.php?url="+$('#url').val(), { }, function(response){
var arrValues = [ <?php echo $js_img_arr; ?> ]; //output from php
$.each(arrValues, function( intIndex, objValue ) {
var img = new Image(); //creating four Imag... | javascript jquery | [3, 5] |
4,757,930 | 4,757,931 | Repeater DataBind error | <p>Half a day spent on this one...</p>
<p>On a page, I have two repeaters like so:</p>
<pre><code><% if (String.IsNullOrEmpty(Request.QueryString["id"])) { %>
<asp:Repeater ID="auth_items" runat="server">
<ItemTemplate>
<a href="/admin/auth.aspx?action=view&amp;id=&l... | c# asp.net | [0, 9] |
2,010,417 | 2,010,418 | Jquery - techniques for extending 'perimeter' for mouseout? | <p>I would like to implement behaviour such that a mouseover/hover event is triggered when the mouse pointer hovers over a certain div, but such that the mouseout event tiggers not when the pointer leaves the div, but when it leaves the area 10px ourside the div.</p>
<p>Is there any way of achieving this that doesn't ... | javascript jquery | [3, 5] |
2,201,285 | 2,201,286 | want to show / hide only the specified elements in jQuery iteration | <p>I have the following code where I want to show / hide different text based upon a mouseover. I am using a data-global-id value and want to iterate through the children of the item-list and hide all but specified value (item-1 for data-global-id=1 for example): </p>
<pre><code><script>
$(document).ready(fun... | javascript jquery | [3, 5] |
5,299,844 | 5,299,845 | how to register user clicked on link ads | <p>I want to register user clicked on ads and save users info to database without change ads operation.</p>
<pre><code><div>
<a>ads link</a> // without modify ads
<a>ads link</a>
<a>ads link</a>
<a>ads link</a>
</div>
</code></pre>
<p>how to update user inf... | php javascript jquery | [2, 3, 5] |
4,558,209 | 4,558,210 | Iterate through and delete empty HTML table rows with jQuery | <p>I am attempting to iterate through a HTML table using jQuery and delete empty rows. The page is driven by ASP.NET and with certain permission, items in the table will be hidden. Therefore, I wanted to create this script to remove the empty rows and get rid of the space between the other items that are still displaye... | javascript jquery | [3, 5] |
1,283,964 | 1,283,965 | How to properly get String from resources? | <p>Hey, I have a lot of Strings so I put them on a .xml, And I also have an ExpandableListView, and each child refers to a String.<br>
I have named each String in the xml like: "String3_1" .. which means this String is for Group 3 Child 1 in the the ExpandableListView..<br>
When switching activity after clicking in one... | java android | [1, 4] |
5,949,893 | 5,949,894 | jquery how to get Name of parent | <p>im searching for the Element whicht Provides the Name of a Parent. This:</p>
<pre><code> $('.Item').click(function(){
var a = $(this).parent();
alert(a[0].tagName);
});
</code></pre>
<p>just says "DIV", but I need the real name of a Element. Thanks</p>
| javascript jquery | [3, 5] |
1,956,879 | 1,956,880 | What should I focus my attention on? PHP or Java | <p>For the long run (next decade) : Which is better to learn?</p>
<ol>
<li><p>Php</p></li>
<li><p>Java</p></li>
</ol>
<p>I already have a bit of a background in php, but no background in java.</p>
<p>What would you say is more "marketable" and "futureproof" in the next 10 years?</p>
| java php | [1, 2] |
2,323,085 | 2,323,086 | Countdown timer get time from client's machine, need server time | <p>I'm using this javascript code in order to calculate the difference between the current time and targeted time.</p>
<p>the counter is working fine, but according to client time, not Server side time.</p>
<p>Here is the code I'm using:</p>
<pre><code> function StartCountDown(myDiv,myTargetDate)
{
var dthen = new... | php javascript | [2, 3] |
4,895,226 | 4,895,227 | How to get size of an image that is held in a byte array in KB | <p>I want to find out the size of an image that is held in a byte array in KB </p>
<pre><code>Bitmap bm = BitmapFactory.decodeResource(getResources(), R.drawable.mPicture);
ByteArrayOutputStream baos = new ByteArrayOutputStream();
bm.compress(Bitmap.CompressFormat.JPEG, 100, baos); //bm is the bitmap object
byte[] ... | java android | [1, 4] |
5,175,550 | 5,175,551 | Prevent scroll to top --Issue | <p>Ok, I am trying to prevent the page from scrolling to the top of the page when I click on an anchor. </p>
<p>I have done this many times before, but I am not understanding what I am missing this time. </p>
<p>Please have a look at this code:</p>
<pre><code>$('#regionMapNav a').click(function(event){
event.pr... | javascript jquery | [3, 5] |
5,805,119 | 5,805,120 | What is the best way to create a wizard for web? | <p>I want to create a wizard that includes a few steps, that in the final steps
we need to include all the steps and save to the data base.
What is the best design to do this ?</p>
<p>Is there an implementation for jquery ?
Do I need to save the steps in session till the final save ?</p>
| c# jquery | [0, 5] |
1,086,917 | 1,086,918 | How to assign ID to the dynamically created rows | <p>I am creating rows dynamically in javascript.As the controls in all rows have same id, i need to assign an id to that control when it is creating.can anyone help me how to assign ID to that control
this is my code</p>
<pre><code>function AddNewRow(tblrowdetails) {
var table = $("tblrowdetails"); //getting th... | c# javascript | [0, 3] |
5,155,249 | 5,155,250 | Need some suggestion to buys books of javascript and jquery | <p>May be this question duplicate or redundant but i want to elaborate my question so:</p>
<p><strong>i have tried looking to google and flipkar,amazon that ...but by just looking at the book you can't really judge how it will be...and it's always good ask someone who has experience...because i can't keep on buying to... | javascript jquery | [3, 5] |
3,639,515 | 3,639,516 | Easiest way to get element parent | <p>Suppose i have this structure of elements:</p>
<pre><code><div class="parent">
<div class="something1">
<div class="something2">
<div class="something3">
<div class="something4"></div>
</div>
</div>
</... | javascript jquery | [3, 5] |
4,708,324 | 4,708,325 | Using jQuery .change() to change values in a <p> element | <p>I have a select element with a few options for currencies, and then a <code><p></code> element at the bottom that currently prints the current exchange rate for USD to another currency. What I'm trying to do, is upon <code>.change()</code> of the select element value, I want to insert the value of the select e... | php jquery | [2, 5] |
3,072,462 | 3,072,463 | google map api v2 | <p>I've problem calling gdrirection.load(),if I specified the values it'll work ,but if I pass them through text boxes it doesn't work.
here's my code </p>
<pre><code>var map;
var directionsPanel;
var directions;
function initialize() {
if (GBrowserIsCompatible()) {
map = new GMap2(documen... | javascript asp.net | [3, 9] |
49,303 | 49,304 | Converting a C# snippit to Java | <p>The Java code should have the same functionality as the C# code. Is this code the same?</p>
<p>This is the code in C# code:</p>
<pre><code>byte[] hashBytes;
UnicodeEncoding encoding = new UnicodeEncoding();
hashBytes = encoding.GetBytes(inputstr.Text.ToUpper().Trim());
SHA1 sha1 = new SHA1CryptoServiceProvider()... | c# java | [0, 1] |
2,737,763 | 2,737,764 | My asmx webservice works locally but not when deployed on remote IIS 7 | <p>I have developped an asmx webservice with visual studio and I deploy on IIS 7 which has 3.5 Framework by copying all the files.</p>
<p>When testing it says</p>
<blockquote>
<p>Could not load file or assembly
'System.Web.Extensions,
Version=1.0.61025.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35' or
... | c# asp.net | [0, 9] |
882,571 | 882,572 | Form validation is not working | <p>Please see my demo <a href="http://neginph.com/mysite/test" rel="nofollow">here</a>. <code>required_valid()</code> doesn't work after I click on the "Click Me" button. There are two <code><form></code> elements after I click on "Click Me", I use of two form, how can I fix this problem?</p>
<pre><code>....
$... | javascript jquery | [3, 5] |
874,434 | 874,435 | confirm box using javascript | <p>how to get confirmation before a export button is cliked.if yes then then export function has to be done if no it should not be done</p>
| c# javascript asp.net | [0, 3, 9] |
1,684,278 | 1,684,279 | jquery: post input values to PHP without serializing | <p>Trying to do very simple thing.</p>
<p>Have too many of these fields:</p>
<pre><code><input name="itempriceqty0" /><input name="itemprice0" /><br />
<input name="itempriceqty1" /><input name="itemprice1" /><br />
<input name="itempriceqty2" /><input name="itemprice2" /&... | php jquery | [2, 5] |
3,000,158 | 3,000,159 | my jQuery script is not working with images, but working with all other elements | <p>I have created a jQuery script to drag elements over the document. I done the script and is working perfectly. but when I add an image the script fails. Why I cant drag an image over my document, I can drag other elements such as div, span etc . I am not interested to use jQuery UI for this purpose</p>
<p>my code f... | javascript jquery | [3, 5] |
201,439 | 201,440 | Preventing overlapping elements during animation | <p>I am creating an addition and subtraction game where a sum is randomly generated and displayed at the top of the container. Numbers then animate from bottom to top and the idea is to click on the correct one.</p>
<p>Numbers are given a random "x" position at the start and then animate to the top at the same speed.<... | javascript jquery | [3, 5] |
3,272,596 | 3,272,597 | jquery function doesn't work after typing in textbox | <pre><code> $('.quote').live('click', function() {
var quote = "test";
$("#msg").append(quote).scrollTop($('#msg')[0].scrollHeight).focus();
});
</code></pre>
<p>This function just copies "test" to the textbox. Since it will be a multi-quote function I used the append() function. It works fine. Even when I... | javascript jquery | [3, 5] |
2,689,460 | 2,689,461 | JQuery frontend with Java and C# backends: design choices | <p>I have to build a multibrowser web app which should be able to be installed in both Windows and Linux servers.</p>
<p>I've thought of using a single client-side frontend built with JQuery, and two different backends, built with java and c# respectively. The client then would use ajax calls with json to communicate ... | c# java jquery | [0, 1, 5] |
1,835,588 | 1,835,589 | How to get the values from a text box | <p>My web page looks like this</p>
<pre><code>name(textbox1)
email(textbox2)
age(textbox3)
phoneno(textbox4)
submit(button) showfile(hyperlink)
</code></pre>
<p>How can I get the values of textboxes saved in "showfile" web page after <code>onclick</code> in the submit button? Can anyone he... | c# asp.net | [0, 9] |
1,051,954 | 1,051,955 | how can i Pass element values 'val[]' from parent window to child layer window element 'sel_value' for each corresponding click? | <p>her this DIV is the new layer window with one form.
showModal('modal') is a simple java script to hide/show new layer window</p>
<pre><code><div id="modal" style="border:3px solid black; background-color:#9999ff; padding:25px; font-size:150%; text-align:center; display:none;">
This is a hidden layer(only show... | php javascript jquery | [2, 3, 5] |
4,896,589 | 4,896,590 | Is there a way to check how many screens are plugged into one computer (JS/PHP)? | <p>I don't have code for this question. However I've been searching around trying to find a way to detect how many screens a visitor currently has. What I am trying to achieve is a JS or jQuery slideshow between 2 monitors. I am thinking the best way to go about doing this is to first find out how many screens, and the... | php javascript jquery | [2, 3, 5] |
3,473,442 | 3,473,443 | jquery redirect issues | <p>I am having problems in redirecting page with jquery. I have a variable <code>url</code> which contains <code>localhost/abc#123</code>. When i write <code>document.location.href = url;</code>, the page redirects to <code>localhost/abc</code> leaving <code>#123</code>. How to resolve this issue</p>
| javascript jquery | [3, 5] |
5,723,320 | 5,723,321 | jQuery extension: why does it not work on all matching elements? | <p>I have an extension going like:</p>
<pre><code>$.fn.crazything = function() {
var self = $(this);
// do some crazy stuff
return self;
}
</code></pre>
<p>And when I call it like:</p>
<pre><code>$("div.crazydiv").crazything();
</code></pre>
<p>It works, but only on the first matching div. If I have mor... | javascript jquery | [3, 5] |
3,063,978 | 3,063,979 | $(this) in plugin options | <p>I'm new to writing jQuery plugins, and I'm confused as to how to let users use $(this) in their options. As a simple (and redundant) example, say I wanted to let a user append their selection's text to an element they supply in their options, like so:</p>
<pre><code>$(function() {
$('#stuff').appender({ 'placeme... | javascript jquery | [3, 5] |
5,127,461 | 5,127,462 | Changing color of TextView | <p>I want to change the color of a <code>TextView</code> inside my <code>Activity</code>s <code>ListView</code> by java code. <code>ListView</code> contains multiple rows which are fed by a <code>MatrixCursor</code> and an <code>ArrayAdapter</code>. The color of the <code>TextView</code> should be green or white which ... | java android | [1, 4] |
4,900,852 | 4,900,853 | How to dynamically load jQuery in a javascript function, call another function, and return that function's return value? | <p>I have a function which uses jQuery. I need to dynamically inject jQuery with JavaScript and have that function return that function’s return value. I would like to do something like</p>
<pre><code>(function(){
var jQueryLoaded = false;
var returnValue;
if (!window.jQuery) {
var script = documen... | javascript jquery | [3, 5] |
1,067,573 | 1,067,574 | Open PDF in new browser full window | <p>How to open PDF document in new browser window? Window should be full and withouth menu.
Just pdf dicument in clean full window with native js or jQuery.</p>
<p>Thank You</p>
| javascript jquery | [3, 5] |
221,599 | 221,600 | Reload div on parent page from iframe | <p>So, I'm making a small application, but I ran into a problem. Basically, I have a page which consists of header and an iframe. Application itself runs in the iframe, while header stays the same, but here's the thing. Header displays some data from database which is updated from the application. In order for data in ... | javascript jquery | [3, 5] |
3,037,704 | 3,037,705 | java script, jquery | <pre><code> <body>
<button> Change </button>
<div id="mydiv" style="margin:25% 0% 0% 37%">
<a href="#" onclick="alert('buhaha');" style="width:50px; height:50px; background-color:#99CC99; padding:10px; margin:5px">One</a>
<a href="#" onclick="alert('buhaha');" style="w... | javascript jquery | [3, 5] |
4,265,303 | 4,265,304 | Checking if array contains a number (Issue with 0) | <p>I have an array of numbers. The array may contain a zero.</p>
<p>How can I check if the array contains a number or not? I am currently doing that:</p>
<p><code>if (Number(arr. value(pos)) != false)</code></p>
<p>This however, considers <code>0</code> as false too. So if a 0 is in the array, it will consider it as... | javascript jquery | [3, 5] |
493,594 | 493,595 | How do I focus on a javascript radio button or any other items on specific jquery tabs? | <p>I have javascript validation that validates items such as textboxes, radio buttons etc. How do I use focus() on the text box or other item located in a specific tab governed by tags? </p>
<p>Sample of the javascript code:</p>
<pre><code>if (theForm.radbtnProg.checked && theForm.ddlProg.selectedIndex == 0)... | javascript jquery | [3, 5] |
3,807,811 | 3,807,812 | Can we have the OR operator in the string variable in asp.net? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/2912476/using-c-sharp-to-check-if-string-contains-a-string-in-string-array">Using C# to check if string contains a string in string array</a> </p>
</blockquote>
<p>Can we have the multiple strings in a single st... | c# asp.net | [0, 9] |
4,561,550 | 4,561,551 | With jQuery, can I make it so the submit button won't "work" unless the required fields are filled out | <p>I want the user to be able to click submit, but if the correct fields aren't filled out it will not go through and errors will appear. Is this possible? I know how to do the errors part, but the blocking submit part is annoying.</p>
| php jquery | [2, 5] |
3,023,331 | 3,023,332 | auto-refreshing div with jquery | <p>how exactly do you make an auto-refreshing div with javascript (specifically, jQuery) ?
I knew about the setTimeout method, but is it really a good practice ? Is there a better method ?</p>
<pre><code>function update() {
$.get("response.php", function(data) {
$("#some_div").html(data);
});
window.setTimeo... | javascript jquery | [3, 5] |
739,110 | 739,111 | Changing parent page's title from user control | <p>Am a newbie to asp.net
I've an asp.net page which uses a user control.
On Page_Load event of this control,I want to change the title of parent aspx page.
Need help on this please.</p>
| c# asp.net | [0, 9] |
5,959,447 | 5,959,448 | trigger jquery with php? | <p>my php code will check after a condition. if the condition is true i want it to trigger a jquery code that displays a box.</p>
<p>i wonder how i can trigger a jquery code with php?</p>
| php jquery | [2, 5] |
3,496,822 | 3,496,823 | "click" event handler not firing | <p>I have a php page that prints out a div having multiple anchor tags with different IDs. Here is a sample code:</p>
<pre><code>echo "<div id=\"pageLinks\">";
echo " <a href=\"javascript:;\" id=\"1\"><<</a> ";
echo "another link...."
echo "</div">;
</code></pre>
<p>The javascript code t... | javascript jquery | [3, 5] |
5,864,153 | 5,864,154 | Get a process response | <p>I am looking for a way to get a response in a form of a javascript alert after a form has been submitted using a php script. I guess ajax should do this but Im not an Ajax guy yet. A simple sample code would help a lot. Thanks for reading</p>
| php javascript | [2, 3] |
4,613,567 | 4,613,568 | problem in showing listview in horizontal layout? | <p>I am trying to show a list view with calendar view in a linear layout. when i am using vertical layout then list view appears but in horizontal layout the same listview disaappears. I solved the problem using relative layout, but can i do this using linear layout.here is my xml...</p>
<pre><code><?xml version="1... | java android | [1, 4] |
4,561,411 | 4,561,412 | No data retrieved while calling a stored procedure | <p>I am trying to call a stored procedure from VC++.</p>
<p>Here is what the stored procedure looks like:</p>
<pre><code>public static void SqlStoredProcedure2(string name, out byte[] backup)
{
using (SqlConnection conn = new SqlConnection("context connection=true"))
{
SqlCommand cmd = new SqlCommand(... | c# c++ | [0, 6] |
5,951,251 | 5,951,252 | How to remove div element with jQuery | <p>when I want to remove div element, I have the following code:</p>
<pre><code><div class='text-field'>
<input type='text' />
<input type='button' class='remove-btn' />
</div>
<div class='text-field'>
<input type='text' />
<input type='button' class='remove-b... | javascript jquery | [3, 5] |
4,899,206 | 4,899,207 | how to retain a button1 clicks action with a sleep against another button2 click action without sleep | <p>My problem is I have two labels and two buttons in two different update panel in ASP.Net. The update panels contains two buttons. When buttons are clicked it will update the corresponding label text. The issue is, suppose I gave a delay of 5 seconds in my button1_click() method, when I click button1 and button2 imme... | c# asp.net | [0, 9] |
2,305,828 | 2,305,829 | How to set popup on page load first time only? | <p>How to set a popup window that open when first time the page load? i m using this code for my popup how to set session for this popup? is there any way to use ip as session?</p>
<pre><code> <script>
!window.jQuery && document.write('<script src="fancybox/jquery-1.4.3.min.js"><\/scr... | javascript jquery | [3, 5] |
2,649,079 | 2,649,080 | Message Alert Tone | <p>I am working on an App that gets sms alerts and would like to control volume of alert tone based on device volume. How do I adjust alert notification sound in alignment with device master volume. Following code doesn't change volume of alert in my app based on device volume. Thank you.</p>
<pre><code> volume = ... | java android | [1, 4] |
1,475,354 | 1,475,355 | How to remove invalid characters from a string? | <p>I have no idea how to remove invalid characters from a string in Java. I'm trying to remove all the characters that are not numbers, letters, or ( ) [ ] . How can I do this?</p>
<p>Thanks</p>
| java android | [1, 4] |
5,155,961 | 5,155,962 | How do I get the first child of each of these rows? | <p>I have 2 rows, each with 2 text inputs. How do I go through each row w/ class "myRow" and, within each row, get the first child that has class "This"? I can get the first "This" class of row 1 but can't seem to get row 2.</p>
<p><a href="http://jsfiddle.net/qkPZm/" rel="nofollow">My fiddle</a></p>
<pre><code><!... | javascript jquery | [3, 5] |
3,184,833 | 3,184,834 | Overriding instantiateItem(...) won't compile | <p>I am trying to use a PageAdapter. I found out that <code>public Object instantiateItem( View pager, int position )</code> has been deprecated. So I am trying up update but ran into a problem. The new definition changes the deceration to <code>public Object instantiateItem( ViewPager pager, int position )</code>, whe... | java android | [1, 4] |
3,571,121 | 3,571,122 | How do I format a timestamp in Javascript to display it in graphs? UTC is fine | <p>Basically, I receive raw timestamps and I need to format them into HH:MM:SS format.</p>
| javascript jquery | [3, 5] |
3,326,140 | 3,326,141 | Jquery parsing JSON response | <p>I have a jQuery function - this is the response that is it is getting</p>
<pre><code> {"d":"{\"res\":\"\\u003cdiv class=\\\"accordian_head\\\"\\u003e\\u003cdiv class=\\\"plus\\\"\\u003e\\u003c/div\\u00..........."NewTags\":\"\\........
</code></pre>
<p>when the response is just {"d":" response..." } I have no t... | jquery asp.net | [5, 9] |
4,099,227 | 4,099,228 | Android Hashmap Failed in showing up inside the listView | <p>I am stuck in this hashmap problem when copying the key. (Android)</p>
<p>Initially I had a xml file similar to this</p>
<pre><code><many_people>
<people>
<id>1</id>
<name>Johnson</name>
<tel_num>12345678</tel_num>
</people>
.
.
... | java android | [1, 4] |
232,821 | 232,822 | scraping website with javascript cookie with c# | <p>I want to scrape some things from the following site: <a href="http://www.conrad.nl/modelspoor" rel="nofollow">http://www.conrad.nl/modelspoor</a>.</p>
<p>This is my function:</p>
<pre><code>public string SreenScrape(string urlBase, string urlPath)
{
CookieContainer cookieContainer = new CookieContainer();
... | c# javascript | [0, 3] |
4,587,990 | 4,587,991 | jQuery: On document load check if checkbox is selected and do function | <p>I have few <code><li></code>'s with a checkbox on each <code><li></code> which the value of it is saved into a database. On document load, the <code><li></code>'s that have the checkbox selected, I want to add a class <strong>'.done'</strong>.</p>
<p>I tried this:</p>
<pre><code>if (currentTODO.f... | javascript jquery | [3, 5] |
6,010,345 | 6,010,346 | How do I slide down one tab and close any others that are open (JQuery/JavaScript) | <p>Here is my code:</p>
<pre><code><script>
$(document).ready(function () {
$('#t1').click(function() {
$('#p1').slideToggle('slow');
$("#pm1, #pm1h").toggle(0);
removeContainer();
$("#loa... | javascript jquery | [3, 5] |
5,572,831 | 5,572,832 | Carousel Jquery/Javascript | <p>I have been using <a href="http://www.bkosborne.com/jquery-waterwheel-carousel/options" rel="nofollow">this</a> carousel to load images dynamically in my homework project of ASP .NET.
In the documentation of this carousel , there is an option called "activeClassName" which is used to get the center item (if I have ... | javascript jquery | [3, 5] |
5,770,298 | 5,770,299 | Screen scape altered info from another website | <p>I'm trying if it is possible to get the result of another site after clicking some items and altering some data on that site.</p>
<p>For example, you have a site which asks you first for some input and then gives a result. This result i want to have and save it to a database and display it on my own site. Is there ... | c# asp.net | [0, 9] |
846,059 | 846,060 | Why jquery trigger doesn't work? | <p>This part should trigger click on image when #X is present in browser url... but it never happens....</p>
<pre><code>//
var hash = window.location.hash.slice(1);
if (hash) {
$("#barely_slide img[data-imgnum='"+ hash +"']").trigger("click");
} else {
move_slide();
}
</code></pre>
<p>Actuall part that needs ... | javascript jquery | [3, 5] |
3,642,649 | 3,642,650 | Different uses of $(document).ready | <p>What is the difference/advantages of using the $(docu...) with your variables and functions defined inside, from using it with a function and then calling it inside the $(docu...)</p>
<pre><code>$(document).ready(function (){
initialize();
});
function initialize(){
hello
}
</code></pre>
<p>over using this... | javascript jquery | [3, 5] |
5,238,114 | 5,238,115 | How might you grab information from a page that only populates AFTER that page executes javascript? (C#) | <p>Hey there. I have a CE program which needs to get information from a website. I can't simply grab the source code, because the information is only displayed after the page's javascript is executed. Is there a way to view a page's information/source/links after javascript has fully load the information? Thanks! ... | c# javascript | [0, 3] |
2,728,239 | 2,728,240 | hard to read javascript code - single line logic to "demystify" | <p>Can someone demystify this line for me? <br />
It's javascript and it works fine, I just don't understand the exact logic behind the code. Maybe it would help to split the code into several lines or write it in c# or delphi for "comparison".<br /><br />
(I got it from here: <a href="http://www.learningjquery.com/200... | javascript jquery | [3, 5] |
4,346,669 | 4,346,670 | Value of this.id for same element is different between browsers | <p>I'm using Raphael.js to handle an SVG map. It does great in all desktop browsers. I have a click function to fire off a few things when a given area on the map is clicked. It relies on grabbing the (this.id) of the clicked object and spitting back some results. </p>
<p>Problem is that it works on desktop browsers S... | javascript jquery | [3, 5] |
549,314 | 549,315 | query a database on onblur textbox event asp.net C# | <p>I want to query database on onblur event of a textbox.
Simple I want is that when I enter the ID in first textbox and after onblur event occurs, the name of the respective ID from database is shown in another textbox or label.</p>
| c# asp.net | [0, 9] |
4,219,345 | 4,219,346 | Javascript: Interpolating variables inside strings | <p>I have the following jquery code which loads the <code>#content</code> div from <em>another</em> page, into the <code>#result</code> div on the <em>current</em> page:</p>
<pre><code>$('a').click(function(event){
$('#result').load('abother_page.html #content');
});
</code></pre>
<p>As you can see, I'm hard-coding... | javascript jquery | [3, 5] |
2,015,750 | 2,015,751 | How do I add an element to an existing property map in JavaScript? | <p>I'm using this piece of code to create a property map that I will pass to jQuery:</p>
<pre><code>var myMap = {"one": 1, "two": 2, "three": 3};
</code></pre>
<p>However, this isn't complete. I want to iterate through a <code>for</code> loop and create a complex property map, that looks like this:</p>
<pre><code>[.... | javascript jquery | [3, 5] |
4,957,716 | 4,957,717 | Media player not playing any sound | <p>I am developing a simple calculator for a device, there I am using mediaplayer to play some sound when a button is pressed using</p>
<pre><code>media=MediaPlayer.create(this, R.raw.wipe);
media.start();
</code></pre>
<p>and in a reset button i am releasing it with</p>
<pre><code>media.release();
</cod... | java android | [1, 4] |
1,341,270 | 1,341,271 | how to call a variable in code behind to aspx page | <p>i know i have seen this but cant recall the correct way of doing it... basically i have a string variable called "string clients" in my .cs file.. but i wasn't to be able to pass it to my aspx page something like</p>
<pre><code><%=clients%>
</code></pre>
<p>please correct me, i do not recall or not sure ho... | c# asp.net | [0, 9] |
658,697 | 658,698 | Use C or C++ libraries as PHP extension | <p>Minutes back I read something like "it should be possible to link the C++ library as a php extension". </p>
<ul>
<li>Is it really possible? </li>
<li>if yes, which is better, newly written extension or a linked library (efforts and performance wise). </li>
<li>Also can you guys point me to some How-to or related... | php c++ | [2, 6] |
671,308 | 671,309 | How to uniquely identify the jQuery function on checkBox change click? | <p>In my program i display one question at a time and on next click it is post and get the second question. But i apply some logic for check box list for each question in Jquery, and i call it like this</p>
<pre><code> $(document).ready(function () {
$("input:checkbox").change(function () {
var t... | javascript jquery asp.net | [3, 5, 9] |
5,738,569 | 5,738,570 | Make onFling() work on a text view with scrollingMovemetMethod | <p>I have an app on which I have implemented <code>textView.setMovementMethod(new ScrollingMovementMethod());</code> But the <code>onFling()</code> is not working. Before implementing this scrolling, it was working. Can someone point me in the right direction?</p>
| java android | [1, 4] |
1,487,438 | 1,487,439 | Remove all the 'tr' if the any of the 'td' does not have given text | <p>I have a table with many rows . first row is the header.</p>
<p>i want to delete all the rows if any of its td does not have given text.</p>
<pre><code><tr>
<td id="1" class="links">Madia</td>
<td id="" class="edit_client" >Press</td>
</tr>
<tr>
<td id="2"... | javascript jquery | [3, 5] |
2,668,128 | 2,668,129 | date picker which displays date like thursday, Febraury 9, 2012 | <p>Can any one please suggest me a datepicker which displays date like thursday, Febraury 9, 2012 after user selects date from date picker.And is it possible to place the next and previous functionalities.</p>
<p>I am using Javascript on client side. PHP on server side.
<img src="http://i.stack.imgur.com/pJcEb.png" al... | php javascript | [2, 3] |
935,157 | 935,158 | Load javascript via jQuery ajax | <p>is it possible to use jQuery %Json function to load a javascriptfile.js asynchronously?</p>
| javascript jquery | [3, 5] |
828,280 | 828,281 | Easy way to use FindControl("") | <p>C#</p>
<p>Hi,</p>
<p>I've been developing c# web applications for a couple of years and there is one issue I keep coming upagainst that I can't find a logical way to solve.</p>
<p>I have a control I wish to access in code behind, this control is deep within the markup; burried within ContentPlaceHolders, UpdatePa... | c# asp.net | [0, 9] |
1,093,601 | 1,093,602 | force load from server instead of cache on session start | <p>How do I ensure that the user has the latest .js file cached in his browser? I'd like to have the app force the browser to a complete reload of all files on every session start.</p>
<p>Let me know how this can be done.</p>
<p>Thanks.</p>
| c# asp.net | [0, 9] |
2,824,068 | 2,824,069 | jQuery: children count = 0 and ajax | <p>I'm working on a jQuery that gets a list of elements from a server, appends it to an element, and then loops in the newly appended elements to transform them (make them jEditable).</p>
<p>I'm having trouble with the loop. The appending works alright, so I have a list of elements like :</p>
<pre><code><div id="i... | javascript jquery | [3, 5] |
5,620,384 | 5,620,385 | Toggle going wrong? | <p>I have made some menu with a slide down submenu. It should work fine but for some reason it doesn't work. I mean if you look at this fiddle: <a href="http://jsfiddle.net/yJdFu/2/" rel="nofollow">http://jsfiddle.net/yJdFu/2/</a> , you'll see that the big menus don't slide down when the submenu toogles.</p>
<p>Can yo... | javascript jquery | [3, 5] |
710,334 | 710,335 | JQuery and ASP.NET: preventDefault() called on click but normal operation does not return when returning true | <p>I am having a JQuery/ASP issue that I hope someone can help me with.</p>
<p>Scenario: ASP.net application already built and deployed, but in the interest of keeping all clients on the same version (easier to update), I've injected a lot of JQuery to customize the ASP application for this client to avoid recompilin... | jquery asp.net | [5, 9] |
648,198 | 648,199 | Escape quotes in a variable with PHP | <p>I use this code to genefate html</p>
<pre><code>echo "<input type='button' onclick=\"myFunc('$param');\" />";
</code></pre>
<p>Everything would be OK unless $param contains <code>'</code> or <code>"</code> character. How should it be implemented to handle these situations?</p>
<p>ps. mysql_real_escape_strin... | php javascript | [2, 3] |
2,070,920 | 2,070,921 | Syntax error. Help with one small JS snippet :( | <p>Hey guys. I don't know much JS, but I wanted to do some quick work with jQuery.</p>
<p>But I've been staring at this for about an hour and I don't understand what I missed:</p>
<pre><code><script type="text/javascript">
$('#qty_6035').change(function () {
var substractedQty, stockQty, remQty;
... | javascript jquery | [3, 5] |
114,998 | 114,999 | how to register user clicked on link ads | <p>I want to register user clicked on ads and save users info to database without change ads operation.</p>
<pre><code><div>
<a>ads link</a> // without modify ads
<a>ads link</a>
<a>ads link</a>
<a>ads link</a>
</div>
</code></pre>
<p>how to update user inf... | php javascript jquery | [2, 3, 5] |
2,865,360 | 2,865,361 | Any specific order for Java script and jquery | <p>I am using one java script and one jquery in my html file in head tag,
but my problem both the scripts are not working, i have used one slide show script and one nav menu script, in this both only one is working , is there any specific order to write these scripts ,
please find the below script order i have used , ... | javascript jquery | [3, 5] |
1,086,997 | 1,086,998 | checkbox value assigns some value to hidden text field | <p>I have a hidden checkbox whose value (either 1 or 0) is gotten from the url via GET:</p>
<p><code>if (isset($_GET['somecheckboxid'])) {
$valuehere = urldecode($_GET['somecheckboxid']);
}</code></p>
<p>in the form, the hidden checkbox value is inserted via echo:</p>
<p>input name="somecheckboxid" id="somecheckb... | php javascript | [2, 3] |
129,773 | 129,774 | How to get the android APK installation progress? | <p>I am using Android Tool "adb.exe" to install apk files to android phone.
The code is: <code>abd.exe install xxx.apk</code></p>
<p>I want to use a C# progressBar to show the progress of installation. How can I get the progress?</p>
| c# android | [0, 4] |
3,727,880 | 3,727,881 | How do i manipulate select box using jquery? | <p>I have some select boxes like the following:</p>
<pre><code><select id="my_box1" rel="cal_10">
<option value="A"></option>
</select>
<select id="my_box2" rel="cal_10.50">
<option value="A"></option>
</select>
....
<select id="my_boxn">
<option ... | javascript jquery | [3, 5] |
1,241,783 | 1,241,784 | How to redirect to dynamic URL with serbarmeli mobile redirection js script? | <p>my local URL on dev PC is localhost:8080/hs</p>
<p>when I access it on my iPhone its 10.xxx.xxx.xx:8080/hs</p>
<p>Using</p>
<pre><code> <script>
SA.redirection_mobile ({
tablet_redirection : "true",
mobile_url : "localhost:8080/hs/m/home.jsp",
mobile_prefix : "http"
});
... | javascript jquery | [3, 5] |
5,979,870 | 5,979,871 | Convert C# method to Java | <p>I am looking to convert the following bit of C# code to Java. I having a hard time coming up with a equivalent.</p>
<h2>Working C# Code:</h2>
<pre><code>private ushort ConvertBytes(byte a, byte b, bool flip)
{
byte[] buffer = new byte[] { a, b };
if (!flip)
{
return BitConverter.ToUInt16(buffer... | c# java | [0, 1] |
5,062,697 | 5,062,698 | Why is it not possible to tell the compiler to override onClick | <p>I am making an Android application, and I have some buttons.
I want to add some listeners to them, so I have implemented <code>android.view.View.OnClickListener</code>, and added listeners to the buttons.</p>
<p>However, at the <code>onClick</code> method, I can't add the <code>Override</code> annotation like this:... | java android | [1, 4] |
1,041,011 | 1,041,012 | Replacing a part of text inside a td | <p>I have a <code>td</code> with this format:</p>
<pre><code><td>
Business Owner - Delivery Director <br>
<a href="mailto:me@business.com">me@business.com</a>
</td>
</code></pre>
<p>How can I only replace the text <code>"Business Owner - Delivery Director"</code> with something e... | javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.