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 |
|---|---|---|---|---|---|
2,977,351 | 2,977,352 | On Android, how can i write a code that allow us to click an operating button on the first page get the result of calculation on another next page? | <p>for example: on current page we have 2 Texteditors. We enter numbers to each of the field and then click a operator button to see the result that will be shown on the next page. ^^ help...</p>
| java android | [1, 4] |
4,218,459 | 4,218,460 | How do i trigger a popup on a webpage using javascript? | <p>I know how to make the popup come up when page opens but I'd like to know how to trigger it when they try to close the page.
Help?</p>
| java javascript | [1, 3] |
3,158,813 | 3,158,814 | $(window).width() and $(window).height() return NULL -JQuery | <p>I want to get the size of browser window using <code>$(window).width()</code> and <code>$(window).height()</code> functions. However this two return null. the <code>$(window)</code> is not null, it's returning "object".
I have tried also using <code>$(document).width()</code> and <code>$(document).height()</code>, t... | javascript jquery | [3, 5] |
4,323,344 | 4,323,345 | javascript was working and now all javascripts being ignored? | <p>hi i have a page which i have a window auto close function in.
This was working fine, but now all of a sudden it's stopped working, whats more weird is i have cut and pasted javascript that i know works and completely cleared the contents of the page to see if any javascript will run in the page at all.</p>
<p>No m... | php javascript | [2, 3] |
4,845,085 | 4,845,086 | How to force attach an app to android market? | <p>When we install an app (apk file) directly via file, that app is not associated to the market, so does not appear as "installed".</p>
<p>Titanium Backup as an option to force attach to market, which works very well.</p>
<p>My question is: anyone knows how can I do something similar? I want to develop an app just t... | java android | [1, 4] |
3,879,261 | 3,879,262 | Display ticket remaining time | <p>I am programming small page and I want to display expiration time of authentication ticket. I mean not the end, but remaining time. Current code is follows:</p>
<pre><code> DateTime cas = (DateTime)ticket.Expiration.Date;
DateTime cas1 = DateTime.Now;
DateTime cas2 = cas1.Subtract(cas);
</code></pre>
<p... | c# asp.net | [0, 9] |
4,012,393 | 4,012,394 | android and SQL Server | <p>i am developing an application that reads and writes data remotely on an SQL Server, the application is ment to run on an android devices.
i know that i have to make a java server that uses socket connetion to the android app, i did that and the server connect normally using MS JDBC driver and excutes sql queries an... | java android | [1, 4] |
130,963 | 130,964 | Proper Procedure to create a n-tier Website in ASP.NET | <p>What is the correct procedure to create an n-tier Website in ASP.NET? Can this be done without setting up a server farm, and how would you be able to test it? Thx.</p>
| c# asp.net | [0, 9] |
4,073,468 | 4,073,469 | Adding new query parameter to hyperlinks dynamically | <p>I have several hyperlinks in my homepage. I would like to add a query parameter at the end of each hyperlink dynamically.</p>
<p>For example;</p>
<pre><code><a href="detail.aspx?id=2" target="_blank" >xyz</a>
<a href="detail.aspx?cid=5" target="_blank" >pqr</a>
</code></pre>
<p>will be con... | c# asp.net | [0, 9] |
5,850,926 | 5,850,927 | jQuery - Error: 'style' is null or not an object | <p>When I put jQuery on my page I get an error <code>Error: 'style' is null or not an object</code></p>
<p>All i did was add the following to the <code><head></code></p>
<pre><code><script type="text/javascript" src="js/jquery-1.5.js"></script>
</code></pre>
| javascript jquery | [3, 5] |
5,099,660 | 5,099,661 | image Url to base64encode? | <p>How convert image url into base64encode in jquery? For example image url convert to binary to pass another page </p>
| javascript jquery | [3, 5] |
1,606,568 | 1,606,569 | Flexscroll not working in show/hide div | <pre><code><div class="right_tab_content_part1_s">
<a href="javascript:void(0)" class="active" id="classtabnew1" onclick="showHideDivforTabbingBeforeaward(1)">View Provider</a>
<a href="javascript:void(0)" class="" id="classtabnew2" onclick="showHideDivforTabbingBeforeaward(2)">V... | javascript jquery | [3, 5] |
969,314 | 969,315 | Copy an attribute from one element to another with jQuery | <p>I have the following jQuery code which doesn't seem to be doing anything. When the link is clicked, I'm trying to get the value of its <code>url</code> attribute to be copied into the <code>iframe</code>'s <code>src</code> attribute. </p>
<p>Basically this is supposed to make links open up in an iframe (the content... | javascript jquery | [3, 5] |
3,330,727 | 3,330,728 | jQuery text to input? | <p>I have a simple layout with a textblock and one <code><a></code>, like:</p>
<blockquote>
<p>text1 <a href="/#">edit</a></p>
</blockquote>
<p>When I click on the <code><a></code>, I want this textblock to become text input. How is that possible with jQuery?</p>
| javascript jquery | [3, 5] |
4,299,546 | 4,299,547 | Jquery count only numbers in a string | <p>My question is: How I can count only numbers from a string, for example if I have:
(55)-555-34 to get output 7, I mean to exclude the dashes and brackets for example. Cheers!</p>
| php javascript jquery | [2, 3, 5] |
4,300,199 | 4,300,200 | How do I detect a postback in jQuery | <p>I have a form that I pre-populate with test data though jQuery.</p>
<pre><code>$('INPUT[name=subscription.FirstName]').val('Jef');
</code></pre>
<p>but I only want to do this before submit. What is the best way to test this?</p>
| javascript jquery | [3, 5] |
117,864 | 117,865 | Android: keep alert in front, so that the user must respond | <p>My application shows an alert that the user must respond to before continuing to do other things. I'm trying to figure out the best way to implement this. Using an Activity for the alert isn't quite working.</p>
<p>In my current implementation, the alert is activity (A). When another activity from the same package ... | java android | [1, 4] |
4,771,549 | 4,771,550 | How can I reference a non-global function with window[functionName]? | <p>I'm making something like a framework for JS. I want the users to be able to add functions to a specific action, just like in wordpress plugins:</p>
<pre><code>add_action("wp_head", "functionName");
</code></pre>
<p>I looked at other questions, and the most appreciated answer was</p>
<pre><code>window['functionNa... | javascript jquery | [3, 5] |
2,768,438 | 2,768,439 | How to get the selected value from a asp:DropdownList using jQuery | <p>I have the following code and it gives me the text but not the value. What is wrong and how do I fix it?</p>
<pre><code> function pageLoad() {
$('#<%=dpEmploymentStatus.ClientID%>').change(function() {
alert($('#<%=dpEmploymentStatus.ClientID%>' + ' option:selected').text());
}).... | asp.net jquery | [9, 5] |
827,689 | 827,690 | Can I override jQuery .val() for only some input elements? | <p>Suppose I'm using a "placeholder" jQuery plugin that reads the "placeholder" attribute from input elements and simulates it for browsers that don't yet support placeholders.</p>
<p>But I would still like $("input").val() to work properly -- that is, to return "" if the text in the textbox is the placeholder text. ... | javascript jquery | [3, 5] |
3,947,972 | 3,947,973 | jquery - traverse up tree and find elements with specified class | <p>I thought that the closer() function would do this for me, but seemingly not. I have the following markup and I want to add a class to all parent anchors with the class trigger:</p>
<pre><code> <ul>
<li class="selected">
<a class="trigger" href=""></a>
<a href="">&l... | javascript jquery | [3, 5] |
4,890,911 | 4,890,912 | script hash value, loss of one alphanumeric character | <p>I had to rename all of my .html files to .php so that I can use php gzip compression. Anyway the switch has broken one of my scripts. It's a script that loads in and animates content. It grabs the content from various pages and loads it into a container. That part of the script works fine.</p>
<p>When using the .ht... | javascript jquery | [3, 5] |
4,414,601 | 4,414,602 | Change Text color Onfocus Event OR when user types something | <p>I am having Form in which txt box already has some value which changes when some user clicks in inside the txt box.The Font color is slightly set to a light color. So when a user types something the Font Color Should change to a dark color and should remain dark. Is there any java script to do this. </p>
<pre><code... | javascript jquery | [3, 5] |
301,100 | 301,101 | Passing values between web pages | <p>I need to pass a dollar amount from one webpageto another webpage without letting the user modify the values when the values are passed between these pages.
ie Page 1 (entry page) to Page 2 (confirmation page)</p>
<p>What is the best way to do this?</p>
| c# asp.net | [0, 9] |
2,626,716 | 2,626,717 | Error: function is not defined | <p>I have created a <code>js</code> file which has a function.<br>
When I call that function on <code>$(document).ready;</code> it is not working. </p>
<p>I checked through firebug, It is calling the function but not going into the function.</p>
<p>Here is my JavaScript code:</p>
<pre><code>function toggelEventButt... | javascript jquery | [3, 5] |
3,618,232 | 3,618,233 | ListFragment how to get the listView? | <p>I'm porting my app from AsyncTasks to Fragements.</p>
<p>But how can I access the listView (id: list) element within my fragment?</p>
<pre><code>class MyFragment extends ListFragment {
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View... | java android | [1, 4] |
2,460,276 | 2,460,277 | How to authenticate a user using OAuth in PHP | <p>How do I implement OAuth authentication to log in a user?</p>
<p>I am making a code where I am using OAuth authentication but I am not getting the satisfactory action.</p>
| php javascript | [2, 3] |
1,462,404 | 1,462,405 | toggle/vertical slider with multiple Divs | <p>I have 2 div section one div containing video & other has tabular data. I would like to toggle them in horizontal direction i.e from right to left or vice verse. If video display table div is hide, and if table then video div will hide. </p>
<p>This is working fine in vertical direction.</p>
<pre><code><div... | jquery asp.net | [5, 9] |
1,412,522 | 1,412,523 | run event once only | <p>i have code to check for browser and at the moment it is running each time i refresh page. is it possible to run only once on each visit so if i refresh or are taken to that page by link then the code is ignored. thanks</p>
<pre><code> <script type="text/javascript">
if($.browser.msie &&... | javascript jquery | [3, 5] |
1,704,882 | 1,704,883 | Is it possible to get harddisc size using php or java? | <p>I want to detect the harddisc size of my computer and if possible the the partitions informations(partition size, free memory, used etc).Is it possible in php/java?</p>
| java php | [1, 2] |
956,776 | 956,777 | return from a function ajax | <p>I am having a problem here, if I have a data verification. More of the function $ ajax jquery not return value of true and false, know how I can fix this?</p>
<h3>Example code:</h3>
<pre><code>function ret(as){
....codes...
$.ajax({
type: "POST",
url: "../../03",
data: "as="+as,
... | javascript jquery | [3, 5] |
5,003,888 | 5,003,889 | Email Auto-Filtering | <p>I would like to use the masked edit box to let people type in input a valid email address,
What is the best mask i should use in MaskedEditExtender.Mask ?</p>
| c# asp.net | [0, 9] |
2,660,125 | 2,660,126 | copy, drag & drop bug : item stops moving | <p>I'm trying to drag and drop items on a page, but insteads of moving the item itself, I create a copy of it.</p>
<p>Here is my code. "copyDragDrop" is a div at the bottom of the page. It remains empty until the user strats dragging something.</p>
<pre><code>function coordSouris()
{
return {
x:event.clientX + doc... | javascript asp.net | [3, 9] |
1,077,922 | 1,077,923 | Javascript Accordion | <p>I have a strange bug I cant quite figure out, I've built an accordion slider that shows short content intially and when clicked then shows the long content. </p>
<p>At any one time only 1 tab should be open but when 2 opens the short content dissapears. </p>
<p>ive attached a fiddle, can anybody see whats wrong? I... | javascript jquery | [3, 5] |
1,035,758 | 1,035,759 | How to use jQuery to prevent the space key from entering a space? | <p>I thought it would be a simple thing to hijack the space key when in a form input so that it would function like a hyphen. Generally jQuery makes stuff like this really simple.</p>
<p>The code I tried is this:</p>
<pre><code> $("#StreamUrl").keydown(function (e) {
if (e.keyCode == 32) return 109... | javascript jquery | [3, 5] |
2,590,520 | 2,590,521 | Java v/s PHP, how do this technology stack up for Web Application Development? | <p>I am new to Web Programming and I hear that there are many biggies like Java, .Net and PHP for Web Application Development. </p>
<p>I would certainly appreciate if I can get some insights on how this technology stack up in comparison and in what scenarios one would prefer one technology over the other. </p>
<p>Tha... | java php | [1, 2] |
5,145,960 | 5,145,961 | Changing a Typewriter jQuery Effect from letter by letter to word by word | <p>This jQuery function works great letter by letter, but I cannot seem to get it to go word by word.</p>
<p>Any ideas, here is the function:</p>
<pre><code>//Typewriter Effect
$.fn.Typewriter = function(opts){
var $this = this,
defaults = { animDelay: 50 },
settings = $.extend(defaults, opts);
... | javascript jquery | [3, 5] |
4,480,486 | 4,480,487 | Services used to store user info and photo | <p>So recently i am building an app that will use some social functions such as users making friend request, and having a profile photo. The user will be able to create a profile and i need a service to use that will store the information of each unique user, and there photo. I am not sure how i will manage the users s... | java android | [1, 4] |
1,041,151 | 1,041,152 | AJAX request confusion in jQuery | <p>I am unable to understand that why the jquery AJAX is not fetching data from the ajax page.
Can someone please help.</p>
<pre><code><script type="text/javascript">
$(function() {
$('#lms_id').change(function(){
if ($(this).val() != "") {
// alert("1");
} else {
// al... | javascript jquery | [3, 5] |
7,181 | 7,182 | Why do I get NullReferenceException when loading controls using LoadControl(string VirtualPath)? | <p>I have a test project which is part of a solution that I am trying to unit test. One of the methods that I want to test loads custom controls using the method <code>TemplateControl.LoadControl(string virtualPath)</code> e.g. </p>
<pre><code>LoadControl(“~/CustomControl/Action/FitlerBox.ascx”)
</code></pre>
<p>My ... | c# asp.net | [0, 9] |
4,860,251 | 4,860,252 | How to read String in java that was written using python's struct.pack method | <p>I have written information to a file in python using struct.pack
eg.</p>
<pre><code>out.write( struct.pack(">f", 1.1) );
out.write( struct.pack(">i", 12) );
out.write( struct.pack(">3s", "abc") );
</code></pre>
<p>Then I read it in java using <code>DataInputStream</code> and <code>readInt</code>, <code>re... | java python | [1, 7] |
3,460,526 | 3,460,527 | Does Rhino have a future? | <p>I'm looking to add serious scripting into my Java app and JavaScript would be a great language choice. My concern though is the Rhino project and its future.</p>
<p>While Groovy/Jruby etc have seen constant updates, and engines like V8 and SpiderMonkey make continuous and significant performance boosts; Rhino langu... | java javascript | [1, 3] |
1,676,680 | 1,676,681 | Exception Details: System.Data.SqlClient.SqlException: Invalid column name 'PRC0000001' | <p>i keep getting this error, i dont know why, im still new to c#. kindly help me figure this out please. i have two dropdownlist that would populate data based on first dropdownlist selected value.</p>
<p>when i select a value on the first dropdownlist, i get that error..</p>
<p>here is my code..</p>
<pre><code>pro... | c# asp.net | [0, 9] |
5,357,198 | 5,357,199 | Equivalent verbatim operator for java | <p>Does java have an equivalent operator or language construct as the verbatim operator(@) in C#?</p>
| c# java | [0, 1] |
5,997,296 | 5,997,297 | Find days between two dates Jquery/JS | <p>I have searched far and wide for this problem and so far none of the codes I have found failed to work and ones I have made also do the same, So I am starting to worry it isnt possible.</p>
<p>We have two dates in mm/dd/yy format not dd/mm/yy so 11/30/2012 for example</p>
<p>I then use the following script:</p>
<... | javascript jquery | [3, 5] |
3,554,314 | 3,554,315 | Lightbox with ability to open dialog at same time | <p>I have a photo gallery that I am working on and trying to do something that I can't figure out how to, or whether it is possible.</p>
<p>The page is at:
<a href="http://www.randykrohn.com/gallery/pictures.php?EventID=263" rel="nofollow">http://www.randykrohn.com/gallery/pictures.php?EventID=263</a></p>
<p>When you... | javascript jquery | [3, 5] |
570,583 | 570,584 | JQuery scroll on hover or mousedown | <p>I have a gallery with thumbnails inside a container with <code>overflow:hidden</code> which I need to scroll. I already have it scrolling in steps on click, using <code>.scrollLeft()</code>. How to make it scroll smoothly on <code>mouseover</code>, or preferably on <code>mousedown</code> to the end of list? I'm look... | javascript jquery | [3, 5] |
3,497,586 | 3,497,587 | Bind ready event on javascript dom element creation | <p>i would like to know if we can bind a loaded or ready event on an item created by a script when the dom is loaded. I heard from live() but it's not something clickable, it's just an item which has to load.</p>
<p>Thanks for your help!</p>
| javascript jquery | [3, 5] |
254,875 | 254,876 | jquery question regarding text change | <pre><code><script type="text/javascript">
$(function () {
var text3;
$('.HideButton').click(function () {
text3 = $('#MessageText').text;
var theButton = $(this);
$('#disclaimer').slideToggle('slow', function () {
theButton.val($(this)... | javascript jquery asp.net | [3, 5, 9] |
3,821,835 | 3,821,836 | How to remove the duplicated part of string by comparing two string in Jquery or Javascript | <pre><code>$str1='<option value="AAA">AAA</option><option value="BBB">BBB</option><option value="CCC">CCC</option>';
$str2='<option value="CCC">CCC</option><option value="DDD">DDD</option>';
</code></pre>
<p>I would like the expected result as following. If ... | javascript jquery | [3, 5] |
5,003,472 | 5,003,473 | How to rewrite this Java snippet in C# | <p>This Java snippet apparently does what I want my C# snippet to do. I don't know Java well enough to get it to work. Could someone help me rewrite it in C#?</p>
<pre><code>int sum = 0, a[] = {2, 4, 6, 8};
for(int i: a) sum += i;
System.out.println("sum(a) = " + sum);
</code></pre>
| c# java | [0, 1] |
5,598,232 | 5,598,233 | invalid argument jquery.js | <p>Webpage error details</p>
<p>Message: Invalid argument.
Line: 116
Char: 165
Code: 0
URI: /wp-includes/js/jquery/jquery.js?ver=1.4.2</p>
<p>I've searched everyhwere for answers. I've finally determined that this error is being caused by the php called in this page: <a href="http://pittsburghweddingphotographer.whsi... | javascript jquery | [3, 5] |
2,594,952 | 2,594,953 | Length of Number in JavaScript | <p>I'm looking to get the length of a number in javascript / jquery</p>
<p>I've tried <code>value.length</code> without any success, do I need to convert this to a string first?</p>
| javascript jquery | [3, 5] |
254,640 | 254,641 | Replace issue in asp.net | <p>My string is Following:</p>
<pre><code>string mystring ="Test1234\r\ntest1234\r\ntest1234\r\ntest dhjfadhdfsfdsjfdf";
</code></pre>
<p>It comes from a database and I want to display it in a label as usual format. So, I want to replace <code>\r\n</code> to <code><br></code>.</p>
<p>I tried using <code>NewStr... | c# asp.net | [0, 9] |
5,213,705 | 5,213,706 | Best way to do a setting in ASP.net | <p>With settings, I've always had some const variable in a file somewhere. Is it possible to create a new config file with all my settings for my website? IE:</p>
<pre><code>CONST imagePrefixPath = "http://img.domain.com/"
</code></pre>
<p>Is the sort of thing I want to store and use all over my web code</p>
| c# asp.net | [0, 9] |
1,374,758 | 1,374,759 | Dataset in an If condition | <p>I am still in the process of learning Asp.Net. I have a question . I was using an if condition in which i was checking dataset values. It is throwing me an exception whenever it is checking the condition as the dataset has not got any value. How to overcome this.
Code for this is here:</p>
<p>DataSet ds = merchan... | c# asp.net | [0, 9] |
4,813,392 | 4,813,393 | Replace input value .val() with jQuery | <p>So basically here is my jsFiddle - <a href="http://jsfiddle.net/CmNFu/" rel="nofollow">http://jsfiddle.net/CmNFu/</a> .</p>
<p>And code also here -</p>
<p>HTML -</p>
<pre><code><b style="float: left; margin-right: 10px;">category 1</b><input type="checkbox" value="category1" style="float: left;" cl... | javascript jquery | [3, 5] |
2,958,012 | 2,958,013 | jQuery multi level selector does not work but .children does | <p>I have this javascript code which works fine</p>
<pre><code>var QuestionID = panel.siblings('.QuestionIDWrapper').children('input[type=hidden]').val();
</code></pre>
<p>but if I convert it to use a multi level jQuery selector like this:</p>
<pre><code>var QuestionID = panel.siblings('.QuestionIDWrapper input[type... | javascript jquery | [3, 5] |
4,223,366 | 4,223,367 | Calling javascript Method from Code behind using ScriptManager.RegisterStartupScript | <p>I am using Ajax Toolkit on my content page . I have an Javascript Code which i want to call from the code behind using <code>ScriptManager.RegisterStartupScript</code>.</p>
<p>The javaScript Code is :-</p>
<pre><code><script type="text/javascript">
function disp_confirm() {
var r = jConfirm("Your S... | c# javascript asp.net | [0, 3, 9] |
837,241 | 837,242 | how do i assign value of php variable to javascript variable | <pre><code><html>
<head>
<?php
$bldg_number=-1;
?>
<script language="javascript" type="text/javascript">
var bldg=<?php echo $bldg_number; ?>
if( bldg < 0)
{
... | php javascript | [2, 3] |
2,168,228 | 2,168,229 | Page_ClientValidate() Question | <pre><code>function Subscribe() {
if (typeof (Page_ClientValidate) == 'function') {
Page_ClientValidate();
}
if (Page_IsValid) {
// do something
CheckUser();
}
}
</code></pre>
<p>The script is tied to an asp.net button with regular expression validators. I have ano... | javascript asp.net | [3, 9] |
4,550,227 | 4,550,228 | how to find element after some text with javascript? | <p>I have a HTML file with some text (like <code>'bla-bla'</code>) inside. I want to get a specific element (like <code><a href=...</code>) after this text node.</p>
<p>How can I do that with pure JavaScript or jQuery?</p>
<p>example html:</p>
<p><div>jdlgjalfad dfaldfdalf <strong>bla-bla</strong>
fdfadf af... | javascript jquery | [3, 5] |
4,768,236 | 4,768,237 | adding functions to injected elements | <p>Okay how can i add function to injected elements(which that element dosent exist on first browser load). Please read through my example carefully , i hope you can understand.</p>
<p>For example:
i go to www.website.com , when it loads it loads up "functions.js" and "other.js" , inside "functions.js" there's a code ... | javascript jquery | [3, 5] |
360,705 | 360,706 | Activate shortcut key on a link | <p>I want to activate a "ctrl+f1" shortcut key on a link? I am using scriptish! </p>
<p>i.e when I press "ctrl+f1" on a link it start to download, I want this action to take place automatically when the page is loaded?</p>
| javascript jquery | [3, 5] |
4,130,785 | 4,130,786 | Prevent div inside of list item to slide up | <p>In my menu i have a list item with login fields : </p>
<pre><code> <li class='has-sub' onclick="LoginButtonClicked()" style="float: right">
<a href='#' id="notificationList">
<span>Log in2... | javascript jquery asp.net | [3, 5, 9] |
369,959 | 369,960 | Input Boxes validation with JQuery | <p>Hello this is my second attempt to solve this problem with JQuery<br>
I need Check that a row of input must be minor than other one in the same row for a dinamic table of "n" rows, before send my form...I need check row by row using the input "ID" property...</p>
<p>Here my Code: <a href="http://jsfiddle.net/cespin... | javascript jquery | [3, 5] |
1,026,885 | 1,026,886 | Looking for better/elegant solution to this Jquery code | <p>To continue along my elegant solution series I am trying to figure out how to do this in a better way.</p>
<p>I am cycling through all the <code>a</code> tags and trying to modify the href.</p>
<p>This code works but seems sloppy and would love to know how to do this more efficiently.</p>
<pre><code>$('a').each(f... | javascript jquery | [3, 5] |
5,791,268 | 5,791,269 | Creating a new file in the root of an ext2 file system | <p>I am creating an application for Android which enables users to create encrypted LUKS partitions and then mount them to given directories on external memory.
For the partition to be usable I create an ext2 file system using the Busybox mkfs.ext2 command. The problem occurs once a user tries to create a file/director... | java android | [1, 4] |
986,269 | 986,270 | Trying to pass an int between two classes on Android platform | <p>I'm trying to pass an int between two classes using a bundle. I have looked online and it seems like it should be easy to do, its just not working for me :( any help is much appreciated! I am trying to pass the int life from one page to another in a simple game.</p>
<p>here is the code for the first page where I am... | java android | [1, 4] |
3,428,462 | 3,428,463 | What does '!!' do in Javascript? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/784929/what-is-the-operator-in-javascript">What is the !! operator in JavaScript?</a> </p>
</blockquote>
<p>Seen in jQuery's <a href="https://github.com/jquery/jquery/blob/master/src/ajax.js" rel="nofollow" titl... | javascript jquery | [3, 5] |
737,088 | 737,089 | DHTML newbie question | <p>I have just started learning Javascript and I am absolutely overwhelmed with the number of technologies available especially on the browser side. Earlier I thought that just Javascript should suffice but now it appears that I need to understand JQuery, GWT, YUI and another dozen acronyms I do not even know the expan... | javascript jquery | [3, 5] |
4,437,555 | 4,437,556 | Call a JavaScript function depending on the value of a PHP variable | <p>I am passing a variable via the URL as <code>var=5</code> to <code>urlrun.php</code> (like <code>urlrun.php?var=5</code>). There is a JavaScript function called <code>testrun</code> in <code>urlrun.php</code>.</p>
<p><strong>Is there a way to call that JavaScript function depending on the value of that variable (<c... | php javascript | [2, 3] |
3,491,843 | 3,491,844 | jQuery click event on 1000 divs, optimize approach? | <p>I'm building a system for selling tickets to events. Right now there are about 1000 diffrent seats to choose from as a visitor. Maby one day it will be up to 5000.</p>
<p>Right now I have a div for each spot and then some jQuery to reserv the spot with ajax. So that meens that I have about 1000 divs and more alarmi... | javascript jquery | [3, 5] |
123,983 | 123,984 | Caching selectors in objects using jQuery | <p>I was writing a bit of simple UI stuff today and am only able to use jQuery for the project, no Backbone, KnockoutJS, etc...</p>
<p>So, basically I wrote some objects that look like this-ish...</p>
<pre><code>var UI = UI || {};
UI.login = (function($){
function Welcome(){
this.firstName = $("#firstName... | javascript jquery | [3, 5] |
1,411,046 | 1,411,047 | jquery/javascript wait for a function to complete | <p>I have script that performs from DOM manipulation to change the way a div looks. The way the application is, when the page loads, the div is rendered in its original state, the function manipulates the DIV. The problem is it renders the original div before rendering the changed div.</p>
<p>I tried:</p>
<pre><code>... | javascript jquery | [3, 5] |
1,202,787 | 1,202,788 | how to bulk print using asp.net, c# | <p>when i enter roll no it displays name, marks obtained in all subjects and pass/fail of the student and i can print clicking on print button. But the problem is i want to print all students record continuously by clicking only one time on [Print] button.
I used loop like this</p>
<pre><code>for(int i=1;i<studentn... | c# asp.net | [0, 9] |
3,319,392 | 3,319,393 | Postback Error? | <p>I wonder why if anyone has idea of this error?
My ASP.Net page was working fine when publish on my Win7 IIS7 and on another Server 2008 IIS7, but today when I do the same one for another Server 2008, all the ajax postback gives this error:</p>
<pre><code>#Exception Message:
Exception of type 'System.Web.HttpUnhand... | c# asp.net | [0, 9] |
610,662 | 610,663 | What does this mean? | <pre><code>function fkey(a) {
a || (a = {});
if (!a.fkey) a.fkey = $("input[name='fkey']").attr("value");
return a
}
</code></pre>
<p>I guess <code>a</code> is actually a function, but how to understand <code>(!a.fkey)</code> ?</p>
| javascript jquery | [3, 5] |
1,458,958 | 1,458,959 | How to set <s:param> value of <s:url> tag dynamically using javascript in struts2 | <p>I am new to Struts2.I unable to pass tag value dynamically through javascript.I have done this way </p>
<pre><code><s:url id="temId" action="updateProduct.action" var="productTag">
<s:param name="prodId"><s:property value="hdnId"/></s:param>
</s:url>
<s:hidden name="hdnId"/>
</... | java javascript | [1, 3] |
4,935,924 | 4,935,925 | Update json value if attempt is made to same key name | <p>I'm attempting to write a function which updates a json key value if an attempt is made to add a new key with same name</p>
<p>So in fiddle - <a href="http://jsfiddle.net/adrianjsfiddlenetuser/C6Ssa/57/" rel="nofollow">http://jsfiddle.net/adrianjsfiddlenetuser/C6Ssa/57/</a></p>
<p>When the button "Add" is clicked ... | javascript jquery | [3, 5] |
5,398,275 | 5,398,276 | How to use jQuery/Javascript to fadein/out text after a while | <p>On <a href="http://envylabs.com/" rel="nofollow">Envylabs' site</a> they have a feature where, below the logo, some text keeps changing after a few seconds. </p>
<p>I'm trying to find out what kind of JS/jquery function would do that. Can someone point to a tutorial for this?</p>
| javascript jquery | [3, 5] |
1,039,227 | 1,039,228 | click event is firing asynchronasly | <p>I have a click event attached to an anchor, and I'm using multiple anchors. The user may click these anchors randomly, and each anchor click creates a dynamic UL list. Everything is working fine except when the user clicks the anchors fast, creation of UL list is happening asynchronously. I want the events to be ord... | jquery asp.net | [5, 9] |
262,873 | 262,874 | jQuery get context? | <p>Having this code : </p>
<pre><code> $(".toggle", '.Div1').on('click',function ()
{
alert("I was clicked becuase im .toggle is under the context of _________");
});
</code></pre>
<p>I need to get the context which the <code>$(this)</code> value is under.</p>
<p>How can I get the value of <code>_______</co... | javascript jquery | [3, 5] |
3,142,743 | 3,142,744 | Manipulation of Input checkbox | <p>Is there anyone who can help me how can for this logic using jQuery?</p>
<p>I have two checkboxes in my form. Once I click the first checkbox, the second checkbox will also check and vice versa. I hope you can help me. Thank you!</p>
| javascript jquery | [3, 5] |
4,419,754 | 4,419,755 | jquery form change | <p>In jQuery, is there a simple way to test if ANY of a forms elements have changed?</p>
<p><strong>EDIT:</strong> I should have added that I only need to check on a click() event.</p>
<p><strong>EDIT:</strong> Sorry I really should have been more specific! Say I have a form. And I have a button with the following:</... | javascript jquery | [3, 5] |
2,180,857 | 2,180,858 | JQuery's .append() executes 6 times instead of 1 | <p>Basically, what I'm trying to do is create a marquee type thing by scrolling vertically through the banners and then moving each to the bottom after it is out of view. I can't figure out why the banner is being appended six times. I realize that it's not quite complete so don't make a remark about that please. If yo... | javascript jquery | [3, 5] |
3,640,194 | 3,640,195 | Is it possible to play two audios simultaneously in one media player in android..? | <p>Im developing an app where i want to play two mp3 files simultaneously one as background music and add another mp3 in the middle of the background music. </p>
| java android | [1, 4] |
5,758,732 | 5,758,733 | Using If Else in HTML page inside <%# %>tags | <p>I have to set image on the basis of fields value coming from db. I want it to achieve via. tags <%# %>. For example i have collection binded with grid. It has a Field called Online which is boolean. So if the value of Online is true then the green.png will be set as path of asp:image control else grey.png will be... | c# asp.net | [0, 9] |
1,919,652 | 1,919,653 | Javascript: parseInt() with trailing characters | <p><code>parseInt("7em", 10);</code> returns <code>7</code> in all browsers I tested [*]. But can I rely on this?</p>
<p>The reason I ask is, that I want to perform some calculations based on em, like</p>
<pre><code>/* elem1.style.top uses em units */
elem2.style.top = parseInt(elem1.style.top, 10) + 1 + "em";
</code... | javascript jquery | [3, 5] |
5,388,151 | 5,388,152 | Is it possible to bounce an image with jQuery | <p>Hi i trying to bounce a jpg with jquery but its not going anywhere you can check the code at</p>
<p><a href="http://jsfiddle.net/sethportman/WZumy/6/" rel="nofollow">http://jsfiddle.net/sethportman/WZumy/6/</a></p>
| javascript jquery | [3, 5] |
1,402,481 | 1,402,482 | Final variables finding views in android | <p>why the vast majority of examples of android declares the return variable as final in methods like findViewById(id)? For example:</p>
<pre><code>@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_list_enc_disp);
final List... | java android | [1, 4] |
1,523,767 | 1,523,768 | Why does jQuery complain about an "invalid left-hand assignment"? | <pre><code>function auditUpdate(newval) {
jQuery("#audit").val() = newval;
jQuery("#auditForm").submit();
}
</code></pre>
<p>Why do I get an error where I try to assign newval to the <code>#audit</code> value?</p>
| javascript jquery | [3, 5] |
588,111 | 588,112 | jQuery: How does one use .live() on an existing event handler (Cloud Zoom Plugin)? | <p>Not sure how to phrase this properly, so please bear with me. I have a piece of jQuery that looks like the following:</p>
<pre><code>jQuery(document).ready(function() {
$('#main-image').live('mouseover', function() {
$(this).wrap(function() {
return '<a href=' + $(this).attr('src').replace(/\bproduct... | javascript jquery | [3, 5] |
4,679,281 | 4,679,282 | Is it possible to add transparency to jpg in Java and Android | <p>I want to load some images to the cloud, but I want to add some protections when someone views the photos and saves the images; they will not see anything because of the transparency. </p>
<p>would the code be common for Java and Android? I would like to prototype it in Java first.</p>
<p>I have found some code t... | java android | [1, 4] |
891,929 | 891,930 | Variable from JavaScript to PHP | <p>Here is the code:</p>
<pre><code> $('#sousmenu a').click (function (){
startSlideshow(<?php echo json_encode(glob("photos-" .$_GET["folder"]. "/*.jpg"));?>);
return false;
});
</code></pre>
<p>The question is I like the HREF to change and get caught by PHP, now it doesn't do anything, ... | php javascript jquery | [2, 3, 5] |
1,524,634 | 1,524,635 | 3 layer design question, binding data to form | <p>I want to bind controls on form to a data from database, the binding happens in codebehind. </p>
<p>I want to use 3 layer pattern, DAL layer that will use Entity Framework, BLL that will use DAL to retrieve the data, and my form to display it.</p>
<p>Let's say there is an Entity object called Product with 3 proper... | c# asp.net | [0, 9] |
4,746,408 | 4,746,409 | How do I create my own confirm Dialog? | <p>The confirm box only has two options: ok and cancel.</p>
<p>I'd like to make one myself, so I can add a third button: save and continue. But the issue I currently don't know how to solve, is that: once the custom confirm dialog is up, how do I block the previously running script (or navigation) from running? and th... | javascript jquery | [3, 5] |
2,396,788 | 2,396,789 | Inject Javascript from asp.net code behind files | <p>Am I injecting this correctly,</p>
<pre><code> string myScriptName = "EventScriptBlock";
string myScript = string.Empty;
//Verify script isn't already registered
if (!ClientScript.IsClientScriptBlockRegistered(myScriptName))
{
Response.Write('b');
mySc... | c# javascript asp.net | [0, 3, 9] |
4,107,578 | 4,107,579 | check the 'checked' value of all children checkboxes | <p>Sorry, my JS is not the best, I need some help on something I am sure is simple.</p>
<p>Basically I have my parent node (it can change, but that's okay, I'm getting the Parent correctly), but I now need to know if every child checkbox of that parent is checked (if so return 1) or if 1 or more child checkboxes is un... | javascript jquery | [3, 5] |
4,952,548 | 4,952,549 | Calling Function in a forloop | <p>I am trying to call a function inside the FOR LOOP. Since the format is same except for names of the data passed.</p>
<pre><code>renderCharts(data1, axis1, 'mainchart1');
</code></pre>
<p>What i am doing</p>
<pre><code>var data1 = [12, 45, 30, 80];
var axis1 = ['15 Jan', '22 Jan', '29 Jan', '5 Feb'];
var data2 =... | javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.