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 |
|---|---|---|---|---|---|
628,549 | 628,550 | How to assign the value of a javascript variable to a php variable | <p>I've a form. </p>
<pre><code><form action="inc/genxml.php" method="post">
<input id="nameTxt" name="name" type="text" value="test"/>
<button id="nameSave" class="left">Save</button>
</form>
</code></pre>
<p>And a div element #name</p>
<p>When I click the save button, I wa... | php javascript jquery | [2, 3, 5] |
4,364,844 | 4,364,845 | Does Integer.parseInt(String) creates object? | <p>I am using <code>int duration = Integer.parseInt(durationInString)</code> to convert String object to primitive integer value. I am using this in a while loop and the integer conversion happens every second until the end of video duration. For example - if Video is 2 min I will call <code>Integer.parseInt</code> 120... | java android | [1, 4] |
3,112,146 | 3,112,147 | Prevent tab text highlight / disable tab text selection | <p>Here's a sample form:</p>
<pre><code><form action="#" method="post">
Name:<br />
<input type="text" name="name" value="your name" /><br />
E-mail:<br />
<input type="text" name="mail" value="your email" /><br />
<input type="submit" value="Send">
</form>
</code... | javascript jquery | [3, 5] |
1,224,539 | 1,224,540 | Clear text inside DIV | <p>I'm using the following HTML structure:</p>
<pre><code><div id="clock">5:30 AM
<div id="day">Wednesday
</div>
<div id="date">14 December
</div>
</div>
</code></pre>
<p>I update the contents of these elements using Javascript. For "day" and "date" I use <code>$("#... | javascript jquery | [3, 5] |
6,008,362 | 6,008,363 | window.setInterval - more than expected | <p>Could you guys explain more deeply window.setInterval functionality? I've been asked myself several questions while running that snippet:</p>
<pre><code>var i = 0;
window.setInterval(function(){
$('#show').html($('.questions :eq('+i+')'));
}, 1000);
</code></pre>
<p>So, i think that window.setInterval is aw... | javascript jquery | [3, 5] |
3,329,541 | 3,329,542 | jquery slider - animating timeline | <p>I'm using the jquery slider function for a timeline</p>
<pre><code>$("#content-slider").slider({
min: 0,
max: 300,
step: 1,
change: handleSliderChange,
//start: getImageWidth,
slide: handleSliderSlide
});
function handleSliderSlide(event, ui) {
$("#content-scroll").prop({scrollLef... | javascript jquery | [3, 5] |
1,899,142 | 1,899,143 | window.location.href.match Not Working | <p>Here is the code:</p>
<pre><code>$(function() {
var pathname = (window.location.href.match(/[^\/]+$/)[0]);
$('#menu dl dd a#toparrow').each(function() {
if ($(this).attr('href') == pathname) {
$(this).addClass('currenttop');
}
});
});
</code></pre>
<p>Here is a link to my ... | javascript jquery | [3, 5] |
3,141,691 | 3,141,692 | jquery: help center variable size div on image hover | <p>I have a little problem I don't understand. I made a jsfiddle to illustrate it.</p>
<p><a href="http://jsfiddle.net/sandrodz/czfGy/9/" rel="nofollow">http://jsfiddle.net/sandrodz/czfGy/9/</a> (updated to include images)</p>
<p>So when user hovers on image it should div is revealed which contains text "sunny cloudy... | javascript jquery | [3, 5] |
1,525,825 | 1,525,826 | Dynamic javascript from web resource | <p>I have written a custom web control that validates some input to a textbox client-side. The associated JavaScript is an embedded resource. As part of the validation process the JavaScript displays a confirm alert box.</p>
<p>I want to be able to set the message of the alert from a property of web control, in a simi... | javascript asp.net | [3, 9] |
5,708,267 | 5,708,268 | Get access to user control from a nested master page | <p>Is there a way to get access to a puplic property on a user control from a nested master page?</p>
<p>Let me explain further</p>
<p>I have 3 deep master pages</p>
<ol>
<li>global.master<br/></li>
<li>LargeTopNav.master (inherits global.master)<br /></li>
<li>LargeTopNav25-50-25.master (inherits LargeTopNav.master... | c# asp.net | [0, 9] |
1,012,205 | 1,012,206 | Javascript Function dont works on dynamically created ImageButton (ASP.NET) | <p>Got something like this:</p>
<pre><code> protected void Page_Init(object sender, EventArgs e)
{
LoadImageButtons();
}
private void LoadImageButtons()
{
for (int i = 1; i < 10; i++)
{
ImageButton myImageButton = new ImageButton();
myImageButton ... | c# javascript jquery asp.net | [0, 3, 5, 9] |
4,989,037 | 4,989,038 | onItemSelected property of spinner in android | <pre><code>Spinner spin1 = (Spinner) findViewById(R.id.spinner1);
spin1.setOnItemSelectedListener(this);
spin2 = (Spinner) findViewById(R.id.spinner2);
spin2.setOnItemSelectedListener(this);
ArrayAdapter<String> choice1 = new ArrayAdapter<String>(this,
android.R.layout.simple_spinner_item, data1... | java android | [1, 4] |
2,088,077 | 2,088,078 | Restrict Keyboard Input jQuery | <p>How would you go about Restricting Keyboard Input on a textbox using Jquery?</p>
| asp.net javascript jquery | [9, 3, 5] |
2,896,002 | 2,896,003 | How to export sqlite database as csv file in android? | <p>i am trying to print the content's in the table from the database .so i am trying to generate a csv file from database.. any inputs on how to do this always appreciated</p>
| java android | [1, 4] |
5,263,541 | 5,263,542 | Dynamically change a image URL based on a variable | <p>I'm currently displaying a circle graph in a project I'm working on. I'm wanting to update the circle chart by changing the image URL that is displayed, there are 100 unique images each representing one percentage point on the chart. The URLs are set up in such a fashion img/circleGraph/circleG-12.png the number (i... | javascript jquery | [3, 5] |
3,227,045 | 3,227,046 | Javascript for running code-behind code when a button is clicked | <p>i have a popup that is getting displayed when Save button is clicked. The popup has 2 buttons. Yes and No. No should cancel the popup
and yes should take you to function in the code-behind say, btnSave_Click(object sender, Eventargs e). How is it possible. Could someone help me, i am new to Javascript.</p>
<p>Below... | c# javascript asp.net | [0, 3, 9] |
5,526,623 | 5,526,624 | How to go back to previous page in asp.net while retaining the previous page data | <p>I am having problem while using onclick="javascript:history.back();" with Aspnet. In the first page i filled some data and click search button it show some results, i click on particular result for its details which navigate to the 2nd page but when i click on custom back button it refresh the page and all data set ... | javascript asp.net | [3, 9] |
2,898,015 | 2,898,016 | Javascript: Insert link into Mouse right click? | <p>I'm wondering how would I include my function on my website inside a users right click? for example function <code>hello()</code> with Title <code>Hello</code> is an option when a user right clicks on my website.</p>
<p><strong>edit:</strong> I simply wish to append to the current right click menu. Not make my own.... | javascript jquery | [3, 5] |
4,581,526 | 4,581,527 | Javascript - Select drop down element with target value | <p>I have a drop down box with values dynamically populated from a database. So, its HTML is somewhat like this:</p>
<pre><code><select id="productclass">
<option value="1">Name1</option>
<option value="7">Name2</option>
<option value="11">Name11</option>
</sel... | javascript jquery | [3, 5] |
467,622 | 467,623 | In jQuery, is there a way to manually propagate an event onto a DOM object? | <p>I know the mouseenter is coded such that it propagates mouseover to all the elements within the DOM that it is bound to.</p>
<p>So, like the question states, is there a way to manually apply this propagation to other elements that are separate from the DOM, which I bound the mouseenter event to.</p>
<p>The functio... | javascript jquery | [3, 5] |
5,991,520 | 5,991,521 | Displaying of larger initial Image | <p>I am showing the first larger Image as the page loads,
But I want to show the larger Images as I click on thumbnail image, initially I dont want to show any larger image as I load the page. only thumbnails should be shown initially.</p>
<p>This is the tried link:</p>
<p><a href="http://jsfiddle.net/L7yKp/37/" rel=... | javascript jquery | [3, 5] |
3,533,642 | 3,533,643 | List of RadioButtons on Android, Java | <p>I need create a list of RadioButtons, but if I try to do it with ListView than I can select all radiobuttons simultaneously, but I need 1 selected radiobutton simultaneously. Therefore, I can try this code:</p>
<pre><code>RadioGroup group=new RadioGroup(this);
LinearLayout layout=(LinearLayout)findViewById(R.id.lin... | java android | [1, 4] |
1,139,392 | 1,139,393 | .hide/.show jumps to top of page or shows div name in url | <p>The <code>.hide</code>/<code>.show</code> functions jump to top of page with <code>return false</code>, but shows div name in url with <code>preventDefault</code>.</p>
<pre><code><script type="text/javascript">
$(document).ready(function() {
//Default Action
$(".ar-tab-content").hide(); //Hide all content
$... | javascript jquery | [3, 5] |
4,012,160 | 4,012,161 | jQuery form action change | <p>Normally to change the action attribute of a form in jQuery I would do the following:</p>
<pre><code><form id="removeLightboxForm" action="">
...
</form>
$('#removeLightboxForm').attr("action", "view/#close");
</code></pre>
<p>But I usually use this for when the action attribute is empty on the HTML f... | javascript jquery | [3, 5] |
3,809,472 | 3,809,473 | `attr('checked', false)` not working on IE6 | <p>As the title says, I can't get <code>.attr('checked', false)</code> to work on IE6. I am cloning some HTML and then before I assign the newly cloned HTML to a element, I run through it and un-check all of the checkboxes that are in the newly cloned section, which works fine in all browsers except IE 6. </p>
<p>Here... | javascript jquery | [3, 5] |
4,113,649 | 4,113,650 | How could I do the same thing using asp.net and jquery instead of php? | <p>The author in this screencast is using jquery to submit data to a database using php. The link is here:</p>
<p><a href="http://blog.themeforest.net/tutorials/jquery-for-absolute-beginners-day-13/" rel="nofollow">http://blog.themeforest.net/tutorials/jquery-for-absolute-beginners-day-13/</a></p>
<p>How could I do ... | php asp.net jquery | [2, 9, 5] |
4,463,134 | 4,463,135 | highlighting text according to output of a text to speech. in Asp.net c# | <p>i am trying to highlight words read by the text to speech but its not working. until now i made:</p>
<pre><code> string startSpan = "<span style=" + "background-color:Yellow" + ">";
string endSpan = "</span>";
//button onclick
protected void speak_Hope(object sender, EventArgs e)
{
... | c# asp.net | [0, 9] |
3,981,973 | 3,981,974 | why can't we declare object of a class inside the same class in C++ but it is allowed in Java? | <pre><code>class A
{
A a;//why can't we do this in C++ but it is allowed in Java?
};
</code></pre>
<p>Using this <a href="http://stackoverflow.com/questions/4941629/why-cant-we-declare-object-of-a-class-inside-the-same-class">question</a>, i came to know why it is not allowed in C++ but why is it allowed in java? ... | java c++ | [1, 6] |
5,955,320 | 5,955,321 | Don't load the image until user scroll to there , possible? | <p>If I don't want the image to be downloaded from server , until user scroll to there , which event should I capture ? </p>
<p>And how ?</p>
| javascript jquery | [3, 5] |
4,007,205 | 4,007,206 | Can I send a string to a php file from my mobile Java app? | <p>I want to be able to send a parameter to a php page that contains a devices IMEI/MEID.</p>
<p>I then want the php page to take that IMEI parameter and check a list of IMEI's to see if the IMEI sent as a parameter from my Java mobile app is contained in a database, if it is then return true.</p>
<p>I only know the ... | java php | [1, 2] |
1,540,066 | 1,540,067 | JQuery - Collapsable DIV: Easy way to remember state of opened div? | <p>This is what I have for a simple collapsable div (opens/closes on click of a toggle button)</p>
<pre>
$(document).ready(function(){
$(".slidingDiv").hide();
$(".show_hide").show();
$('.show_hide').click(function(){
$(".slidingDiv").slideToggle();
});
});
</pre>
<pre><code><a href=... | php jquery | [2, 5] |
5,976,469 | 5,976,470 | Session gets time out frequently although i set timeout time in web.config | <p>Session gets time out frequently although i set timout time in web.config</p>
| c# asp.net | [0, 9] |
3,701,953 | 3,701,954 | Jquery: run code when text is selected | <p>I have a HTML document which llokes like this:</p>
<pre><code><div class="this_can_be_selected">Some text here</div>
<div>No text in the div above is selected</div>
<div class="this_can_be_selected">Some text here</div>
<div>No text in the div above is selected</div>... | javascript jquery | [3, 5] |
4,164,486 | 4,164,487 | What is the easiest way for a c# programmer to develop for i-Phone? | <p>Should I use Mono + c#? Or I'm better off learning and using objective c?
Thanks</p>
| c# iphone | [0, 8] |
4,659,178 | 4,659,179 | Android - 1 divided by 2 = 0 | <p>I have been trying to use my new IOIO for android, and needed to find a frequency of a signal.<br>
So I converted the signal to binary and then did 1 divided by the time between 1's. Although when I did this I found that I got 0 as my output. I then decided to see what 1 / 2 gave me, and to my surprise it also gave ... | java android | [1, 4] |
3,809,169 | 3,809,170 | How to limit the visible items of dropdownlist, which is populated by DataSet | <p>I have a <code>DropdownList ASP control</code>, which is populating by <code>DataSet</code>.</p>
<p>I am using <code>.net 3.5, c#.</code></p>
<p>To control the height of DropDownList, i am using the following code and it is working.</p>
<pre><code><asp:DropDownList size="1"
onMouseOver="this.size=1... | c# asp.net | [0, 9] |
5,542,226 | 5,542,227 | How to implement draft save using ckeditor/or any editor? | <p>I am integrating the ckeditor for the user to edit the content
but i am wondering whether i can add the draft save function for it</p>
<p>Actually, draft save is just saving a cookies for a period of time but not anything tricky?</p>
<blockquote>
<p>So is it no matter to use ckeditor or textarea or anything?</p... | php javascript jquery | [2, 3, 5] |
4,175,295 | 4,175,296 | Possible race condition when checking img.complete in Internet Explorer | <p>I've written a jQuery plugin that will execute a function before and after an image loads. Essentially this is so we can show a loading animation when displaying large images.</p>
<pre><code>if (typeof this.naturalWidth == "undefined" || this.naturalWidth == 0) {
return; // 1
}
// 2
if (!this.complete) {
o... | javascript jquery | [3, 5] |
97,386 | 97,387 | Best PHP validation with jQuery | <p>There are a lot of tutorials out there on how to make validation with php/jquery but they are all different... Which one is the best approach? Which one should I use? Which one is up to date? Works in every common browser, etc...</p>
<p>I would like tips... links/tutorials etc on a jQuery validation (plugin) or wha... | php jquery | [2, 5] |
1,002,605 | 1,002,606 | Bitmap getWidth returns wrong value | <p>I have a jpg image in my android application drawable folder which resolution is 1000x600.
I load that image to bitmap like this</p>
<pre><code> Bitmap bitMap = BitmapFactory.decodeResource(getResources(), R.drawable.image);
</code></pre>
<p>After this I call <code>bitMap .getWidth()</code> which returns 1500. How... | java android | [1, 4] |
5,429,825 | 5,429,826 | JavaScript, / jQuery determining if the URL contains a Min String | <p>Here's what I want to happen</p>
<p>Anything the variable hash contains: #/projects/X</p>
<p>X being anything other than blank, I want to fire an alert</p>
<p>Fires Alerts</p>
<pre>
#/projects/X
#/projects/X/boo/123/123/ads/asd/ads/ads
</pre>
<p>Does not fire an alert</p>
<pre>
#/projects/
</pre>
<p>Suggestio... | javascript jquery | [3, 5] |
1,393,832 | 1,393,833 | remember password after jquery post | <p>Here is code</p>
<pre><code><script type='text/javascript'>
$("#focusform").submit(function(event)
{
event.preventDefault();
var $form = $( this ),
usname = $form.find( 'input[name="name"]' ).val(),
uspass = $form.find( 'input[name="pass"]' ).val();
if($('#chk').is(':checked'))... | javascript jquery | [3, 5] |
1,266,314 | 1,266,315 | window.scrollTo weirdness inside Android webview | <p>I'm having a weird issue when I use window.scrollTo(0, document.body.scrollHeight) to scroll to the bottom of a page (loaded inside an Android webview). There's a huge gap of whitespace at the bottom of the page (it disappears when the page is tapped). Does anyone have any advice? Thanks.</p>
<p><img src="http://i.... | javascript android | [3, 4] |
2,420,882 | 2,420,883 | does not contain using jquery | <p>Below is the function that I am using in jquery</p>
<pre><code>function addlnkfieldmkAndyr()
{
var mymke = $('h3:contains("Make")');
var mymkeVal= $('h3:contains("Make")').closest("td").next();
var myyr= $('h3:contains("Year")');
var myyrVal= $('h3:contains("Year")').closest("td").next();
}
</cod... | javascript jquery asp.net | [3, 5, 9] |
4,441,364 | 4,441,365 | How can we do overloading in php? | <p>In java we call it overloading when we define two methods with different numbers of arguments.How do we do it in php or javascript where number of parameters passed need not be equal to arguments defined.</p>
| php javascript | [2, 3] |
68,765 | 68,766 | Unable to receive the data (recv in cpp) put into socket(write() in java) | <p>I'm new to socket programming so as to test some cases I'm using a java side client to send integer data through socket and I want ot receive that data on the server side in cpp.</p>
<p>My code on client side (java) looks like</p>
<pre><code>out=new DataOutputStream(s.getOutputStream());
ar=1;
le=1;
out.writeInt(a... | c# java android | [0, 1, 4] |
2,206,696 | 2,206,697 | .show() not working on document ready | <p>I'm triggering a onchange event that i have on a textbox when the page loads</p>
<pre><code>$(document).ready(function () {
$("input[id$=dpDeliveryDate]").each(function () {
$(this).get(0).onchange();
});
});
</code></pre>
<p>This gets fired correctly and is calling a function I have created.</p>
<p>... | javascript jquery | [3, 5] |
1,325,444 | 1,325,445 | error type or namespace name profilecommon could not be found | <p>When I compile this code, It show me this kind of error type or namespace name profilecommon could not be found. Could someone help me how to solve this?</p>
<pre><code>case "Profile":
ProfileCommon pc = Profile.GetProfile(user.UserName);
DropDownList3.Items.Clear();
foreach (SettingsProperty p in
ProfileCommon.Pro... | c# asp.net | [0, 9] |
4,963,156 | 4,963,157 | Post value pairs from jQuery to php file and save data in database | <p>I have two html text input fields and two buttons.</p>
<p>The first button saves the value pairs from the two input fields in an array.
The second button sends this array with all the input value pairs to a php file and the php file saves all these values in a database.
The user can input values so much as he can, ... | php jquery | [2, 5] |
1,106,719 | 1,106,720 | Best way from PHP to ASP.net? | <p>What all is involved if I wanted to switch from PHP to asp.net? I have basicly no knowledge of asp or other languages besides php and some javascript. </p>
<p>What would be the best place to start learning more?</p>
<p>What is needed to host an asp site?</p>
<p>What is it developed with?</p>
<p>Is there an equ... | php asp.net | [2, 9] |
772,854 | 772,855 | How to write url rewriting for [mywebsitename].com/pages/224?task=5 in asp.net | <p>I have written code required for url rewriting of </p>
<pre><code>[mywebsitename].com?type=pages&id=22
</code></pre>
<p>as </p>
<pre><code>[mywebsitename].com/pages/224.
</code></pre>
<p>Now my question is, can i use </p>
<pre><code>[mywebsitename].com/pages/224?task=5
</code></pre>
<p>so that i can u... | c# asp.net | [0, 9] |
839,925 | 839,926 | jQuery delay does not seem to give the correct delay for this kind of event | <p>I had some help today with a need and this is what I have come up with:</p>
<pre><code> $(window).keypress(function (e)
{
if (e.keyCode == 13)
{
$('#doCheck')
.css('color', '#666')
.delay(100)
.queue(function (next)
{
$(this).c... | javascript jquery | [3, 5] |
4,678,080 | 4,678,081 | How to changed a part of URL in embeded code from youtube by Query String | <p>I'm programming on ASP.NET with C#.
I want to know how to change a part of URL in embed code from youtube by Query String.
for example </p>
<pre><code><iframe width="560" height="315" src="http://www.youtube.com/embed/**5CZobYTEwaY**" frameborder="0" allowfullscreen></iframe>
</code></pre>
<p>I want to... | c# asp.net | [0, 9] |
525,595 | 525,596 | merge 2 classes into one class at runtime | <p>suppose i have Class A with some properties and Attributes, and Class B with the same, how can i merge these 2 class Properties and properties Attributes into 1 class at runtime, or better is how can i add these 2 classes into a a third class as properties of this new class with their Fields, Properties, Methods, e... | c# asp.net | [0, 9] |
5,966,868 | 5,966,869 | How Close is the Javascript Math.Round to the C# Math.Round? | <p>I know from reading <a href="http://stackoverflow.com/questions/977796/in-c-math-round2-5-result-is-2-instead-of-3-are-you-kidding-me">this Stackoverflow question</a> that the complier will look at your number, decide if the midpoint is an even or odd number and then return the even number. The example number was 2.... | c# javascript | [0, 3] |
316,661 | 316,662 | How to get screen resolution of a client system by using JavaScript | <p>I am developing a website,my webpage consist of many products. on clicking over a product i must show the details of that product in popup window.For setting the popup window to full window, i want to get client system resolution, so that it may easy to show the popup window in full screen according to resolution.
C... | c# javascript asp.net | [0, 3, 9] |
1,318,758 | 1,318,759 | jQuery code critque | <p>Thought I'd post here. My first hour on jQuery, actually first programing ever done. Would love to learn whats not right and how it could be better.</p>
<pre><code>$(function() {
function hide_me()
//A place to specify which elements you want hidden, on page load.
{
$("li.credentials").hide();
}
function firs... | javascript jquery | [3, 5] |
2,547,891 | 2,547,892 | c++ from javascript | <p>I need to call a c++ function from the javascript.
Please somebody hlp..</p>
| javascript c++ | [3, 6] |
2,099,391 | 2,099,392 | Get ID of a Clicked Link | <p>In the code below and demo here <a href="http://jsfiddle.net/jasondavis/vp2YN/3/" rel="nofollow">http://jsfiddle.net/jasondavis/vp2YN/3/</a> you can see I need to get the ID attribute of a clicked item and assign it to a variable in Javascript.</p>
<p>Right now the code returns the ID name of the first item, regard... | javascript jquery | [3, 5] |
1,391,463 | 1,391,464 | How can I call code behind fuction from Javascript | <p>I want to set permissions after Group is added, So my logic is once user add Group, I want to prompt them Confirm box asking (" Do you like to assign permissions to Group?") if yes, I want to call ModalPopupExtender with Permission otherwise nothing. How can I perform this?</p>
<pre><code>protected void ListView1_I... | javascript asp.net | [3, 9] |
5,149,728 | 5,149,729 | How to use javascript variables in jquery selectors | <p>How do I use the javascript variables as a parameter in a jquery selector?</p>
<pre><code><script type="text/javascript">
$(function(){
$("input").click(function(){
var x = $(this).attr("name");
$("input[id=x]").hide();
});
});
</script>
<input type="text" id="bx... | javascript jquery | [3, 5] |
911,976 | 911,977 | About binding record to gridview from 2 tables in asp.net c# | <p>I have one gridview. I have one table(source) that contains fields like sourceid, name and another table(target) that contains fields like targetid, from, to,date.
In that target table from & to fields are ids refer to source table's sourceid's.
So i have to bind record of target table i.e to bind fields :
from ... | c# asp.net | [0, 9] |
4,155,814 | 4,155,815 | inline to handle url redirect | <p>I am migrating a site from siteA.domain.com to siteB.domain.com. All the page paths remain the same. The problem is it's a gradual migration, and not every path is being migrated at the same time. So what I need to do is check the path the user is going to, and if it's a member of a list of migrated sites, then r... | c# asp.net | [0, 9] |
1,007,390 | 1,007,391 | JQuery find not working for tr element? | <p>Just wondering if anyone knows why the following code doesn't work (each() is not executed at all)...it works if i try td elements but not tr elements for some reason?</p>
<p>The html is returned by a php script and looks like</p>
<pre><code><tr class="my_files_row"><td>bla</td><td>bla</... | javascript jquery | [3, 5] |
3,009,102 | 3,009,103 | JQuery, how to access click object after ajax call? | <p>this seems like it should be straightforward, but I'm having trouble getting it to work.</p>
<p>I have a .click bind to many buttons of a certain class. When that button is clicked, it passes its id to a $.post call for processing.</p>
<p>When the $.post call returns successfully, I'd like to remove the button and... | javascript jquery | [3, 5] |
3,041,607 | 3,041,608 | "super of super" in extented classes (alter variable in super class of super class) | <p>The question is more Java, but I want to implement it in Android:</p>
<p>Suppose there are 3 or more classes extending each other:</p>
<pre><code>class A {
...
int color;
...
}
class B extends A {
...
}
class C extends B {
...
// I want to alter color of class A inside here
}
</code></pre... | java android | [1, 4] |
5,271,637 | 5,271,638 | Using "this" from event handler in jquery | <p>I have the following javascript code found also in this fiddle: <a href="http://jsfiddle.net/periklis/k4u4c/" rel="nofollow">http://jsfiddle.net/periklis/k4u4c/</a></p>
<pre><code><button id = "element_id" class = "myclass">Click me</button>
<script>
$(document).ready(function() {
this... | javascript jquery | [3, 5] |
2,675,405 | 2,675,406 | Javascript: check if window.fullScreen is false then open url in new window in full screen | <p>I have written a javascript on page load that</p>
<pre><code>if(!window.fullScreen) window.open(document.URL,'','fullScreen=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');}
</code></pre>
<p>but window.fullScreen always come false so it keep opening window.</p>
<p>any o... | javascript asp.net | [3, 9] |
1,838,590 | 1,838,591 | jQuery ajax post dynamic url insertion | <pre><code>$.ajax({ type: "POST", url: "OMFG.php", data: info, success: function(){ }});
</code></pre>
<p>is what I'm using atm as a test and it works fine. </p>
<p>I need to get the url from the link I'm clicking, so I do:</p>
<pre><code>var url = $(this).attr("href");
</code></pre>
<p>which works fine if I alert ... | php jquery | [2, 5] |
4,665,791 | 4,665,792 | android-php ,response is triggered twice sometimes | <p>I am using json response which connects to <a href="http://example.com/test.php" rel="nofollow">http://example.com/test.php</a> I receive response in the listview and its all good,but sometimes the php is triggered twice , eg: if has mail() function inside it sends once but rarely sends it twice ,I cannot predict w... | php android | [2, 4] |
4,744,496 | 4,744,497 | No DataTypeConverter Method option in android | <p>I want to use <strong>DataTypeConverter.printBase64Binary(.........)</strong> in my project.
But there is no option coming through intellisense. Am i missing some jar ? </p>
| java android | [1, 4] |
3,951,679 | 3,951,680 | Toggle span elements in div on hover | <p>I am still relatively new to jQuery and am trying to hide the text I have contained in a few spans within a div on a hover, then show them again on a hover out. I feel like it it something relatively easy to do, I just havent had much success. Thank you!</p>
<pre><code>$(".resultBox").hover(function() {
// P... | javascript jquery | [3, 5] |
5,957,102 | 5,957,103 | Make lingering hover repeat action in jQuery | <pre><code>$('#test').hover(
function () {
$(this).append('Blah');
}
);
</code></pre>
<p>How can I make the jQuery repeatedly append <code>Blah</code> in <code>#test</code> based on how long you are hovering over <code>#test</code>?</p>
<p>For instance, how can I append <code>Blah</code> once every second you are... | javascript jquery | [3, 5] |
5,049,610 | 5,049,611 | Populate dropdown select with array-with multiple options- using jQuery | <p>So I'm trying to populate a dropdown with the states, the value for the option should be the two characters value, and the text for the option should be the full state's name, using the code below is returning a value of 0,1,2,3... and returning all the options in the var as the text.</p>
<pre><code>var states = ["... | javascript jquery | [3, 5] |
3,812,378 | 3,812,379 | Android WeekView Calendar with google sync | <p>Hi i'm new to Android development. I'm facing a problem in getting the <code>WeekView</code> and <code>DayView</code> in <code>Calendar</code> with functionality and also sync with the <code>Google Calendar</code>. I want those in this format.</p>
<p>How should it be done?</p>
| java android | [1, 4] |
2,018,779 | 2,018,780 | Need advises how to make authentication in asp.net | <p>Im developing asp.net c# web site where i want to make user authentication. without any roles or something. </p>
<p>i have database with user table where i store all user data, this table have relationship with many other tables.</p>
<p>I like asp.net from authentication controls, but problem is that it have her c... | c# asp.net | [0, 9] |
3,163,887 | 3,163,888 | browser history for Selectable (jQuery UI) | <p>How can I keep open seletable item when I go to the other pages? When I come back I want it is already open last one, whether when I reload page or come throught "previous page" (browser history). <strong>ui-state-active</strong> is set to item which is currently open. </p>
| javascript jquery asp.net | [3, 5, 9] |
1,967,596 | 1,967,597 | How to replace document.getElementById('file-uploader') with jQuery? | <p>How to replace <code>document.getElementById('file-uploader')</code> with jQuery?</p>
<p>just </p>
<pre><code>var myElement = document.getElementById('file-uploader');
</code></pre>
<p>into jQuery expression?</p>
<p>Thanks!!!</p>
| javascript jquery | [3, 5] |
3,078,925 | 3,078,926 | how to get wrap text using div tag? | <p>I need to get the "wrap text" in div tag, here is what I'm using: </p>
<pre class="lang-html prettyprint-override"><code><div style="width:650px;height:200px;overflow-y:scroll;display: inline-block; writing-mode:lr-tb; word-wrap:break-word;white-space:normal;">
<asp:La... | c# asp.net | [0, 9] |
2,996,247 | 2,996,248 | Determine if aspx page was opened by a window.open() command | <p>Is there a way to determine in the child page's code behind that is was opened by the window.open() javascript command from the parent page?</p>
<p>The pop-up page contains a user control that is used by other pages that are not spawned from a window.open() command and I want to dynamically add functionality to clo... | c# asp.net javascript | [0, 9, 3] |
3,202,109 | 3,202,110 | Clone Table Output and Display In Popup With Jquery | <p>This might be fairly simple. I have a table that I generate dynamically with php/mysql lets just say for example;</p>
<pre><code><table id="mytable">
<tr><td>1</td><td>2</td><td>3</td></tr>
<tr><td>4</td><td>5</td><td>6</td... | php jquery | [2, 5] |
237,718 | 237,719 | Android app that already exists on iphone | <p>Can I develop an android app that already exists on iphone market(not by me of course). This is basically stealing the idea, but is this legal?</p>
<p>What do i need to check and where. Thanks in advance.</p>
| android iphone | [4, 8] |
2,267,071 | 2,267,072 | How To Override Datalist To Be Rendered Into Divs Instead Of Table? | <p>i want to render datalist to divs instead of table, and the repeat columns will fixed by float style on div.</p>
<p>so any one know a an override render method do that.</p>
<p>Thanks</p>
| c# asp.net | [0, 9] |
426,635 | 426,636 | Android - crash during phone orientation in asynctask | <p>When orientation of phone changes during loading of images from sdcard the application crashes due to</p>
<pre><code>java.lang.RuntimeException: An error occured while executing doInBackground()
</code></pre>
<p>I am using the code from
<a href="http://mihaifonoage.blogspot.com/2009/11/displaying-images-from-sd-c... | java android | [1, 4] |
4,168,999 | 4,169,000 | Determine distance from the top of a div to top of window with javascript | <p>How do I determine the distance between the very top of a div to the top of the current screen? I just want the pixel distance to the top of the current screen, not the top of the document. I've tried a few things like <code>.offset()</code> and <code>.offsetHeight</code>, but I just can't wrap my brain around it.... | javascript jquery | [3, 5] |
1,312,445 | 1,312,446 | Use for loop with if and else | <p>I have a situation where I have to do some thing like this</p>
<pre><code>for (int i = 0; i < list.size; i++) //Master for loop
{
//I need a control statement here to control list1 i.e. only if statement
if (time == list1.get(someInteger))
{
//do something
}
else
{
//do ... | c# java android | [0, 1, 4] |
4,682,946 | 4,682,947 | changing value in javascript object iterated using jquery | <p>OK So I have this piece of code :</p>
<pre><code>var el = {a:"b","isSel":true};
$.each(el,function(k,v){
if(k=="isSel"){
v=false
}
})
console.log(el);
</code></pre>
<p>but that doesn't change isSel to false... any clues?</p>
| javascript jquery | [3, 5] |
2,751,981 | 2,751,982 | Signal device with high frequency sound | <p>We are working on a mobile application for shopping.<br/>
Is it possible to find a signal device that can pop up a notification when the user who's using the application enters a store?<br/>
The mobiles are mainly <strong>Android</strong> and <strong>iPhone</strong>.<br/>
Thank you.</p>
| android iphone | [4, 8] |
1,127,556 | 1,127,557 | .NET Get logged in user | <p>My problem is that I have a asp.net solution that uses a seperate project for logging and now I want the log to save the logged in user. Windows authentication is used for the webapp and the app pool is run under a service account. So when I call the logger through a method(static) I want the logger to pick up who i... | c# asp.net | [0, 9] |
1,887,579 | 1,887,580 | How to handle a silent SEND intent with a headless activity | <p>Just as the user who asked this: <a href="http://stackoverflow.com/questions/3320930/how-does-the-default-browser-on-android-send-send-intents">How does the default browser on Android send "SEND" intents?</a>, I want my Android app to process a silent send. I implemented the proposed solution, a headless a... | java android | [1, 4] |
4,957,114 | 4,957,115 | Cannot use document javascript object when running from Java | <p>I have the following javascript code that runs from java:</p>
<pre><code>var doc = document.implementation.createDocument('http://www.w3.org/1999/xhtml', 'html', null);
doc.documentElement.innerHTML = xmlResponse;
</code></pre>
<p>And I get the following error:</p>
<pre><code>Caused by: sun.org.mozilla.javascrip... | java javascript | [1, 3] |
4,056,564 | 4,056,565 | Acessing php variable using jquery | <pre><code><script>
$(document).ready(function(){
<?php
echo 'var timeLeft = 12796;';
?>;
console.log(timeLeft);
});
</script>
</code></pre>
<p>How is jquery acessing the php variable because to create a php variable we use $ and here it is usi... | php jquery | [2, 5] |
1,038,122 | 1,038,123 | c# public string pass into function | <p>I have the code below and am trying to access the 'text' string in the lnkSave_Click function, but text doesn't seem accesible from lnkSave_Click function, it always seems empty.</p>
<pre><code>private string _text = "";
public string text
{
get { return _text; }
set { _text = value; }
}... | c# asp.net | [0, 9] |
3,779,449 | 3,779,450 | Give PHP value into Javascript in same page | <p>How can I give the ID value to Javascript in same page.</p>
<p>Example data :</p>
<pre><code><a href="" id="ctextarea<?php echo $uid; ?>"/>
</code></pre>
<p>JS :</p>
<pre><code>function recountss()
{
var maxlen=280;
var current = maxlen-$('#ctextarea').val().length;
... | php javascript jquery | [2, 3, 5] |
3,844,158 | 3,844,159 | How to display text in a textbox using jQuery and another textbox? | <p>I have a form, where there are three fields: Title, Slug, and URL.</p>
<p>I have a plugin that converts the text entered in the Title field as a slug. (For example, if I type "Joe Bloggs Goes On Holiday" would then display as "joe-bloggs-goes-on-holiday" in the slug field).</p>
<p>What I need to do now, is get the... | javascript jquery | [3, 5] |
4,795,761 | 4,795,762 | User control that returns formated text | <p>I am looking for a way to return some formatted text via a user control in ASP.NET C#. This is basically what I am looking for:</p>
<p>Call a user control such as</p>
<pre><code><mycontrol:formatedtitle id="blah" runat="server">Text to format</mycontrol:formatedtitle>
</code></pre>
<p>And then have i... | c# asp.net | [0, 9] |
4,706,183 | 4,706,184 | How to create new radiobuttonlist with question on submit? c# asp.net | <p>i have:</p>
<pre><code><div id="question">
<div style="float: left; width: 250px;">
<asp:Label ID="question" runat="server"></asp:Label></div>
<div>
<asp:RadioButtonList ID="selectdYesNo" runat="server" RepeatDirection="Horizontal">
... | c# asp.net | [0, 9] |
5,042,194 | 5,042,195 | Multi edit/save grid (hiddenfield + javascript) | <p>I got a gridview which contains 10 rows where 1 of the columns is a combobox that can be edited. When I click on an "edit" button, all of the 10 rows becomes editable and I want to keep track of which rows I have changed so that I dont save all 10 rows to the DB if there has only been made changes to 2 of them. My t... | javascript asp.net | [3, 9] |
4,177,158 | 4,177,159 | Dictionary Lookup Efficiency & Request Scoped Global Variable in ASP.NET? Accessible by global.asax and pages/etc | <p><em>I know there is a couple answered questions on here regarding "request scoped" globals, but I want to nit-pick on something specifically and maybe squeeze some extra enlightenment out of one or two of you.</em></p>
<p>I have an ASP.NET C# Website and a static Dictionary of objects (loaded from DB once on Applic... | c# asp.net | [0, 9] |
5,937,382 | 5,937,383 | Adjusting jQuery script to add height to parent element | <p>I'm using Soh Tanaka's script to toggle open and closed div content in the accordion style.</p>
<pre><code><script language="javascript" type="text/javascript">
$(document).ready(function(){
//Hide (Collapse) the toggle containers on load
$(".toggle_container").hid... | javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.