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 |
|---|---|---|---|---|---|
1,549,135 | 1,549,136 | About select option value | <p>Hmm...this question may sounds silly , hope you all don't mind...</p>
<p>If I have a drop list:</p>
<pre><code> <select name="myoption" onchange="document.textbox.value=this.value">
<option value="1">A</option>
<option value="2">B</option>
<option value="3">C</option>
... | php javascript | [2, 3] |
4,425,337 | 4,425,338 | how to call function from another page in java? | <p>i have defined all my java files in packages... i have one function which i have defined on some page and i just want to use it on another page... how would i do that...</p>
| java android | [1, 4] |
2,900,446 | 2,900,447 | How to make a slideup selectable box for user to pick a defined theme color with Jquery? | <p>I would like to find out how to make a selectable theme image, such that when you on hover the image it will scroll up a selectable/clickable defined theme color.</p>
<p>It will be something like that on default: </p>
<p><img src="http://i.stack.imgur.com/LdHtv.png" alt="Image on default"></p>
<p>After you hover ... | javascript jquery | [3, 5] |
4,097,844 | 4,097,845 | url referral difference between internet explorer and google chrome browser | <p>when i am referring a page using response.redirect in my web page, it is working with Internet Explorer. However, the same is not working when I browse my website using Google Chrome. Even when I am trying to print the values using response.write it is not working in Google Chrome. (I am using asp.net with c#)</p>
| c# asp.net | [0, 9] |
1,217,112 | 1,217,113 | Set image of a button to apps icon | <p>I have a button in my app that launches another app (the user can choose which one with a longClick like this)</p>
<pre><code>btnNavigation.setOnLongClickListener(new View.OnLongClickListener() {
@Override
public boolean onLongClick(View v) {
// Pick an application
Intent mainI... | java android | [1, 4] |
3,156,011 | 3,156,012 | Date Validation not working using JavaScript | <p>I have two two date fields - from date and to date, and i need to validate 3 things</p>
<ul>
<li>Both the values are entered or not</li>
<li>Date datatype check </li>
<li>To date must be greater than from date.</li>
</ul>
<p>But my script is not working.</p>
<p>can some body please check?</p>
<p>Thanks</p>
<pre... | javascript jquery | [3, 5] |
487,104 | 487,105 | jquery <-> php logic on which side | <p>I have a question about where to put the logic between jquery and php. I´m writing a small website where users can input different values. Those values are added together and multiplied with an value saved in a mysql database and outputed again to the user.</p>
<p>My question is whats the better way for doing this.... | php jquery | [2, 5] |
5,109,690 | 5,109,691 | How do I make the website execute links? | <p>I'm making a small webpage that is going to execute links, en specifics magnet links. But the webserveruserrole does not carry enough mojo (rights, <code>Process.Start()</code>) to make that happen.</p>
<p>I've tried to look for this user role but could not find it.</p>
<p>How do I make the webserver execute/start... | c# asp.net | [0, 9] |
2,510,256 | 2,510,257 | Organizing Javascript with callbacks | <p>I am trying to figure out the best way to organize a bunch of AJAX methods on my site. The problem is that I want to run a bunch of callbacks after each one is received. Here's an example (assume each method runs asynchronously):</p>
<pre><code>Log_in_user
if response received and call was successful
ge... | javascript jquery | [3, 5] |
1,591,319 | 1,591,320 | How can delete Click event? | <p>How can I completely delete the $(selector).click() event?</p>
<p>I created option buttons and I would like to stop the click event so that the user won't be able to change the option already selected.</p>
<p>How to complete the overriding of the click (or any other) event on jquery?</p>
| javascript jquery | [3, 5] |
1,070,164 | 1,070,165 | add jquery click event to asp:button prevents button from entering code behind event? | <p>I must be loosing it, but i'm not sure what :-)</p>
<p>i have a standard asp:button control with a code behind click event.</p>
<p>then, to prevent double click i disable the button on client click:</p>
<pre><code>$('#<%=BTN_GCR_CheckCardValue2.ClientID %>').bind('click', function () {
$('#<%=BTN_GCR_Ch... | jquery asp.net | [5, 9] |
5,003,242 | 5,003,243 | Calling Pagemethod | <p>Hi i have the following pagemethod, however it dues not seem to be working, i tried debugging it and it does not hit the method. Here is what my method looks like;</p>
<pre><code>function InsertStatus() {
var fStatus = document.getElementById('<%=txtStatus.ClientID %>').value;
PageMethods.InsertStatusUpd... | c# jquery asp.net | [0, 5, 9] |
1,371,724 | 1,371,725 | How to wrap similar classes from different packages | <p>I develop an app for android which uses standard <em>android.database.sqlite.SQLiteDatabase</em> as well as <em>net.sqlcipher.database.SQLiteDatabase</em>.</p>
<p>These classes are very similar but I have to duplicate some pieces of code just to handle these different types, even if I need to call the same methods.... | java android | [1, 4] |
2,466,470 | 2,466,471 | On clicking the anchor tag the outermost div must hide along with its child elements | <p>I have a div tag, which contains a div tag, which contains a ul tag which then contains many li tags. On of these li tags contains an anchor element, which when clicked causes the outermost div to hide.</p>
<p>for example</p>
<pre><code><div class="object" id="123">
<div>
<ul>
<li&... | javascript jquery | [3, 5] |
2,759,807 | 2,759,808 | Why is the FileContent zero bytes on all Attachment objects except the first one? | <p>I have one form through which ,Sender text his email-id and password and selects attachment </p>
<p>using fileupload,recipients's email id i am getting from database table,email is reaching to recipients fine..but </p>
<p>problem is that when i attach a attachment ,attachment's size goes 0 except 1st email-id </p... | c# asp.net | [0, 9] |
2,812,125 | 2,812,126 | jQuery Lightbox/Modal Windows for a Pop-Up Web Screen | <p>Within my web application, I was thinking of creating a pop-up screen of a page for a user to do some processing in.</p>
<p>I basically want this page to be like a drill-down window of displaying detailed reords based on a button you press from a top-level summary record.</p>
<p>Instead of a pop-up, I was thinking... | javascript jquery | [3, 5] |
2,043,711 | 2,043,712 | AJAX Control Toolkit Control Editor Javascript Access | <p>In my aspx, I have the following snippet of code, which correctly renders the Editor Control from the AjaxToolkit</p>
<pre><code><div>
<ajaxToolkit:Editor ID="Editor" runat = "server" />
</div>
</code></pre>
<p>In C#, to access the content of the Editor is simply:</p>
<pre><code>Editor.Conte... | javascript jquery asp.net | [3, 5, 9] |
5,976,068 | 5,976,069 | how to null a variable of type float | <p>My code is working if my float variable is set to 0, but I want my code to work if my variable is null. How could I do that? Here is a code snippet I wrote:</p>
<pre><code>float oikonomia= (float)((float)new Float(vprosvasis7.getText().toString()));
if(oikonomia==0){
</code></pre>
<p>... | java android | [1, 4] |
2,383,920 | 2,383,921 | assign columns value on rowdatabound in gridview | <p>I am facing a problem in grid view, basically what i am trying to achieve is below:
I have a grid view in which my first column is a link button, i have to put a condition where value from my 2nd column is taken and is input to a c# method for poulating a value which i need to assign into my first column.</p>
<p>I ... | c# asp.net | [0, 9] |
4,704,537 | 4,704,538 | how to add a javascript alert with a PHP script? | <p>let's say i have an input form, wherein, it's use for an email address. this form is part of a long form so i use an alert box instead when other inputs got errors....my question now is, if I checked the email input string via php, if it has been taken , how will I put the message like e.g "this email has been taken... | php javascript | [2, 3] |
1,062,620 | 1,062,621 | set outer scoped variable from inner scope in javascript | <pre><code>var lat = 0.0;
var lng = 0.0;
var jsonData = null;
var geocoder = new google.maps.Geocoder();
var miles = $('#milesAway').val();
// find what the user is locating by
if ($('#zipCode').is(':visible'))
{
var zipText = $('#zipCode').val();
if (isValidUSZip(zipText))
{
geocoder.geocode( {
... | javascript jquery | [3, 5] |
5,872,135 | 5,872,136 | Help converting a string date to a DateTime | <p>I'm using the Ajax control toolkit calendar extender on a textbox with a submit button. Simple.</p>
<p>The debugger shows that the text is properly being transferred to calling method, but this line of conversion code converts textbox text to 1/1/0001 12:00:00 AM. The text box date is this: 4/15/2011</p>
<pre><cod... | c# asp.net | [0, 9] |
5,687,016 | 5,687,017 | how to convert javascript function to jquery | <p>I am having a javascript function. Which does the show/hide in onChange. I would like to convert it in jquery, how to do it.</p>
<p>Javacript function</p>
<pre><code>function assocWindowOnLoad()
{
var option=document.getElementsByName("select_id");
document.getElementById('conent1').style... | javascript jquery | [3, 5] |
573,961 | 573,962 | app loads the pdf file from res/raw/pdf file | <p>HI im trying to load apdf file from the raw folder but when i press the buttin nothing happen please help me with that
. This is the code</p>
<p>public class openpdf extends Activity
{</p>
<pre><code>@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentV... | java android | [1, 4] |
4,010,136 | 4,010,137 | How to order scripts registered by ScriptManager's Register Script | <p>I want to alert <code>1</code> registering the scripts in this order</p>
<pre><code>ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "a", "alert(a);", true);
ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "b", "var a = 1;", true);
</code></pre>
<p>But doing this causes a error saying a ... | c# asp.net | [0, 9] |
461,748 | 461,749 | jQuery iPhone 3gs performance | <p>I have a performance related question; specifically to iPhone 3gs.
I have a jQuery Mobile site that responded well on my friend's iPhone 3gs until a recent change I've made.
Since the change, on the 3gs, the page in question seems to be very slow.....almost unusable.
The page still runs great on a galaxy S2, but aft... | jquery iphone | [5, 8] |
5,426,401 | 5,426,402 | On Click, knowing if the element clicked is a checkbox? | <p>I used to use the following to know if a clicked item was a checkbox:</p>
<pre><code>if ($(e.target).className === 'checkbox') {}
</code></pre>
<p>After upgrading to the latest version of jQuery this now returns undefined for Chrome, Safari and Firefox.</p>
<p>What is the best way to determine if a click happened... | javascript jquery | [3, 5] |
4,504,320 | 4,504,321 | Is it possible to include a folder of javascripts files instead of adding them one by one? | <p>Is it possible to include a folder of javascripts files instead of adding them one by one?</p>
<p>Something like this:</p>
<pre><code> <script language="javascript" type="text/javascript"
src='<%# Page.ResolveUrl("~/Scripts/?.js></script>
</code></pre>
<p>instead of:</p>
<pre><code><scrip... | javascript asp.net | [3, 9] |
4,201,117 | 4,201,118 | Is there any way we can do append on the next element? | <p>Like, we have <code><div id='target'></div><div id='footer'></div></code></p>
<p>i just want to append <code><div id='target'></div></code> , the result will be like</p>
<pre><code><div id='target'></div><div id='target'></div><div id='footer'></... | javascript jquery | [3, 5] |
3,019,137 | 3,019,138 | Default TextBox values | <p>Problem:
There are 4 text boxes. If the user does not wish to fill all of them out, then it should display "0" and get saved.</p>
<p>For example:
I only fill out two textboxes out of the four. I hit Save.
It should automatically save the default values ("0") for those two empty textboxes.</p>
<p>Here is the code (... | javascript asp.net | [3, 9] |
5,230,549 | 5,230,550 | Replace a element instead another element by jQuery | <p>I want replace a(or each) element(number) instead another element(number) in a class while running page.</p>
<p>I try as following code but doesn't word true, what do i do?</p>
<p><strong>DEMO:</strong> <a href="http://jsfiddle.net/yMnDt/" rel="nofollow">http://jsfiddle.net/yMnDt/</a></p>
<pre><code><div class... | javascript jquery | [3, 5] |
1,493,815 | 1,493,816 | document.referrer encoding issue | <p>referrer` and saving the value in a cookie. The result is coming like this with strange characters: </p>
<pre><code>http%3A//www.rzammit.com/props/testpage.asp%3Fadv%3D123%26loc%3D45
</code></pre>
<p>How I can remove those strange characters so the link will show correctly please?</p>
<p>thanks</p>
| javascript jquery | [3, 5] |
2,440,034 | 2,440,035 | Fire event at a certain time of the day | <p>Is it possible with javascript (jQuery solutions are fine too) to fire an event/call a function at certain times of the day e.g.</p>
<p>call myFunctionA at 10:00</p>
<p>call myFunctionB at 14:00
etc..</p>
<p>Thanks</p>
<p>Mark</p>
| javascript jquery | [3, 5] |
4,801,494 | 4,801,495 | C# static function with this as parameter to Java function | <p>I got a C# project which needs to be rewritten to java. Unfortunately the original programmer cannot be reached and I have some troubles with some of the C# specific things in the project.</p>
<p>Lets say we have a class in C# like:</p>
<pre><code>public static class MySampleClass : Object
{
...
public static ... | c# java | [0, 1] |
4,462,251 | 4,462,252 | How can i apply java script to access the client id or a control placed in the grid view? | <p>I want to access a dropdown asp control client id placed in the gridview.</p>
<pre><code>function validate(){
var ddl = document.getElementById("ctl00_ContentPlaceHolder1_grdProducts_ctl02_ddlSelectSize");
}
</code></pre>
<p>I want a generalized way to access above id on a rowcommand event click of a gridview tha... | javascript asp.net | [3, 9] |
1,353,429 | 1,353,430 | I want to display this json value to html table | <p>I need to show the the Json value in html table</p>
<pre><code>var a=({ "productToShopList" : [ { "ourPrice" : 5750.0,
"product" : { "category" : "External Hard Drive",
"id" : 2471,
"productName" : "Seagate 1TB F A GOFLEX 2.5\"USB 3.0"
}
)
</code></pre>
<p>plz give advice</p>
| java javascript | [1, 3] |
5,930,460 | 5,930,461 | how to make Dynamic Scrolling list in asp.net | <p>how to make Dynamic Scrolling list in asp.net ?</p>
<p>i have a text file that contain sentences, and i want</p>
<p>to show those sentences in dynamic scrolling list in my webform (like news)</p>
<p>how to do it ?</p>
<p>can i get any sample code ?</p>
| c# asp.net | [0, 9] |
3,041,832 | 3,041,833 | Calling JavaScript function from C# UserControl | <p>I have developed a user control using C# and embedded it in a lotus domino web page by using below code:</p>
<pre><code><OBJECT id="myUserControl" name="myUserControl" classid="clsid:eb6yhhh-f4db-480b-9c75-8d962790dfd34"></OBJECT>
</code></pre>
<p>I would like to know how can i call a javascript functi... | c# javascript | [0, 3] |
2,750,456 | 2,750,457 | Restrict single and double quotes in textbox in ASP.NET | <p>I want to restrict sinqles qoutes and double quotes to enter to a Textbox in Asp.net. How can i achieve it? How can i validate the textbox?</p>
| c# asp.net | [0, 9] |
4,667,303 | 4,667,304 | Dropdown binding and postbacks - ASP.NET | <p>I have a rather complex page. The ASPX page loads a user control which in turn loads a child User control.</p>
<p>Parent Control</p>
<pre><code>protected override void OnInit(EventArgs e)
{
//Loads child control
}
</code></pre>
<p>In the child user control, I use custom control that inherits from <code>System.W... | c# asp.net | [0, 9] |
663,198 | 663,199 | Specific Button Click | <p>I got a quick question:</p>
<p>I want every link in the div to alert a message, but only the anchors. I dont want the div to initiate the alert function. </p>
<p>Html:</p>
<pre><code><div id="abc">
<a href='#'> Button 1 </a>
<a href='#'> Button 2</a>
</div>
</code></pre>
<... | javascript jquery | [3, 5] |
571,569 | 571,570 | Why does my "if (p.exitValue() != 0)" code run twice? | <p>When I execute a shell script using the method below, my "if (p.exitValue() != 0)" code runs TWICE when it is successful... anyone know why? Also, when the shell script fails, the else code runs once, and then the success code runs again anyway. What am I doing wrong? </p>
<pre><code>void exec(String commander){
... | java android | [1, 4] |
3,837,091 | 3,837,092 | Binding a treeview Dynamically and getting selected nodes | <p>I am trying to dynamically (i.e. via code) bind a directory to a asp.net Treeview control and once the data is bound and displayed to the user i want to get a list of nodes the select.</p>
<p>I have got the binding and displaying of checkboxes to work fine , but when i query the Treeview1.CheckedNodes it always ret... | c# asp.net | [0, 9] |
41,442 | 41,443 | how can I intercept a click for all img's ? I have a bunch of images, each needs to reply to a click. | <p>I would like to present images to my users, where they can select them. I need them to select a limited number, say 5, so:
The images are shown in a matrix, and the user can click them.
I thought:</p>
<pre><code>function boom()
{
this.css('background-color','#fff');
this.data('clicked','yes');
// I should also m... | javascript jquery | [3, 5] |
1,943,286 | 1,943,287 | Download XML to string | <p>I tried to download XML by using the code below:</p>
<pre><code> @Override
protected String doInBackground(String... params) {
try {
URL url = new URL("http://xx.xx.xx.xx/1.xml");
URLConnection ucon = url.openConnection();
ucon.setRequestProperty("Accept", "application/xm... | java android | [1, 4] |
2,702,241 | 2,702,242 | Can I get the image height from jquery prior to displaying it? | <p>I'm loading around 50 images from json data returned from PHP. To avoid the extra call of PHP getting the image size I'd like to do this on the client side. Is this possible?</p>
<p>Here's my current jquery call to build the image list:</p>
<pre><code>// Create HTML for the images.
var html = '';
$.each(data.pr... | php jquery | [2, 5] |
5,854,256 | 5,854,257 | Android, using Edittext | <p>I've got a few questions about edittext.. </p>
<p>I'm trying to create a login screen on Android. I'm taking in a username and a password and then sending the results to another method. I've just got a few questions about it...</p>
<p>1) If I have two edittext's and the user enters values in both and then hits a "... | java android | [1, 4] |
3,155,469 | 3,155,470 | javascript iframe contents loading issue? | <p>I have one <code>Iframe</code> in my website.I initialized it <code>src</code> at <code>document.ready event</code>. I placed <code>iframe</code> inside the <code>jquery UI</code> dialog, now every time when we open the dialog, Iframe load its contents, but i want that this loading process happens only once at <code... | javascript jquery | [3, 5] |
628,393 | 628,394 | How do I write an extension method in JavaScript? | <p>I need to write a few extension methods in JS. I know just how to do this in C#. Example:</p>
<pre><code>public static string SayHi(this Object name)
{
return "Hi " + name + "!";
}
</code></pre>
<p>and then called by:</p>
<pre><code>string firstName = "Bob";
string hi = firstName.SayHi();
</code></pre>
<p>... | c# javascript | [0, 3] |
810,828 | 810,829 | Jquery blinking title | <p>So, i need to have a blinking title, this code should work, but for some reason it doesn't.</p>
<p>Now console keeps showing me correct title, but title in my browsers doesn't change, what could be wrong?</p>
<pre><code>var blink = true;
setInterval(function(){
if(blink){
$("title").text("test");
... | javascript jquery | [3, 5] |
1,880,254 | 1,880,255 | Loading a JSON file with jQuery.getJSON | <p>I am a newbie in JS and I am trying to do something very simple.</p>
<p>I have a JSON file named "data.json" and I want to load it, so, I do this:</p>
<pre><code>$.getJSON("data.json",function(data){
console.log(data);
});
</code></pre>
<p>And then I pass that loaded JSON to a function in library that does th... | javascript jquery | [3, 5] |
2,728,354 | 2,728,355 | How to retrieve InputStream from FTPFile using FTPClient? | <p>I'm making application which needs to read strings from file on FTP Server. I use apache.commons.net.FTPClient for it. I have following code:</p>
<pre><code> Log.e("sizzeee", String.valueOf(mClient.listFiles().length));
InputStream stream=mClient.retrieveFileStream(f.getName());
DataInputStre... | java android | [1, 4] |
860,976 | 860,977 | In jquery: Use attr(“class”) value as a selector? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/4096834/in-jquery-use-attrclass-value-as-a-selector">In jquery: Use attr(“class”) value as a selector? </a> </p>
</blockquote>
<p>I have fields with multiple classes. I want to use one of those class... | javascript jquery | [3, 5] |
347,287 | 347,288 | Converting flv file into swf using c# | <p>I have been trying to convert a flv file into swf file. How can I convert the flv video into swf file using C#?</p>
| c# asp.net | [0, 9] |
548,764 | 548,765 | How can DOM DocumentFragments help in optimizing dom manipulation? | <p>We are thinking of using <code>DOMDocumentFragments</code> as a candidate for optimizing the dom manipulation code . What do you guys think ?</p>
| javascript jquery | [3, 5] |
411,689 | 411,690 | Jquery/javascript check if the div finished loading? | <p>I have a facebook like button on my website like that:</p>
<pre><code><div class="fb-like" data-href="https://www.facebook.com/xxx"
data-send="false" data-width="300"
data-show-faces="true">
</div>
</code></pre>
<p>I want to use jQuery or java script to check if this div is 1... | javascript jquery | [3, 5] |
515,085 | 515,086 | Jquery .get() - How to pass the value of a text box into the data parameter? | <p>There is one form with a <code>textbox id="name"</code> and a button.</p>
<p>After the user clicks the button, I want to execute the <code>$.get()</code> to capture the reply. (I got the .click() correctly so far)</p>
<p>How to I pass the value the user enters to the text box as the {data} parameter in the get fun... | javascript jquery | [3, 5] |
762,868 | 762,869 | Set position for new window | <p>hello i open a new window with:</p>
<pre><code><a href ="javascript:NewWindow =window.open('Default.aspx', 'NewWindow' , 'width=400, height=450'); NewWindow.focus()">Hilfe</a>
</code></pre>
<p>at the moment the new window appears in the upper left corner. how can i set the position, so it appears somew... | asp.net javascript | [9, 3] |
3,964,937 | 3,964,938 | Should I Learn C# or C++? | <p>When I first became interested in programming, I took a class that introduced me briefly to C++ for a semester (this class mostly focused on topics like "what is a variable", so I know very little about what C++ is capable of). Up next was a year of AP Computer Science, where I learned Java. Don't get me wrong, I lo... | c# java c++ | [0, 1, 6] |
430,333 | 430,334 | tokeninput jquery plugin - preventDuplicates not working | <p>I am using jquery plugin Tokeninput. I need to prevent user from entering duplicate values, the Js code is as follows:</p>
<pre><code>$(document).ready(function () {
// Configure Tags
$('#Tags').tokenInput(tagSource(),
{
prePopulate: selectedTags(),
theme: "facebook",
propertyTo... | javascript jquery | [3, 5] |
1,116,771 | 1,116,772 | how to identify whether the OS is Linux desktop or Android? | <p>Hi I wanted to know what the OS is pro grammatically in Android? what i have tried is to get the system property of "os.name". but it returns the value as "Linux". but this does not help. i wanted to know whether it is Android or not? how to do this?</p>
| java android | [1, 4] |
3,767,943 | 3,767,944 | Getting class value | <p>I have an image, onclick on wich i make some <code>ajax</code> requests.
i need to pass a variable from <code>$_GET[]</code> to my onclick function, so i deside to do the following</p>
<pre><code><img id="img1" class="<?=$_GET['value']"?> />
</code></pre>
<p>and jquery</p>
<pre><code>$("#img1").click(... | javascript jquery | [3, 5] |
677,840 | 677,841 | jquery: assigning event from string | <p>I'm using ASP.net and it creates a pager for a gridview that has the following HTML:</p>
<pre><code><td><a href="javascript:__doPostBack(.....)" class="MyLink">pagenumber</a></td>
</code></pre>
<p>The problem is that when the user clicks on the cell but not the actual content of the cell, t... | jquery asp.net | [5, 9] |
1,539,901 | 1,539,902 | Make a form-in-a-div appear on top of content | <p>I am sure this has been asked before but my google-fu was not able to find an answer.</p>
<p>I have a page of content and I want it so when a user presses a link or a button a form appears on top of the content. Once filled out and submitted it would get passed on to the ajax to process it.</p>
<p>I am sure this ... | javascript jquery | [3, 5] |
5,241,880 | 5,241,881 | How do I add fade in effect when I click expand on this script? | <p>I found this content expand/collapse jQuery plugin. I want to add fade-in effect to this plugin when I click on the EXPAND button. </p>
<p>How do I do this?</p>
<pre><code>$(document).ready(function () {
var maxlines = 15;
var lineheight = 15; // line height in 'px'
var maxheight = (maxlines * lineheight);
var al... | javascript jquery | [3, 5] |
3,879,242 | 3,879,243 | Can you get (using jQuery if possible) the current scrolled position of an element? | <p>I am using this code on a 'down' button to scroll text in an overflowed div.</p>
<pre><code>var textHeight = text.outerHeight();
var pageDown = $('#page-down');
var pageUp = $('#page-up');
pageDown.bind('click', function() {
pageUp.fadeIn(500);
text.animate({ scr... | javascript jquery | [3, 5] |
4,432,645 | 4,432,646 | Enter url code javascript player? | <p>When I put url even youtube,vimeo or what ever, then video is playing. Please tell me that player all in one like that. Thanks in advance</p>
| javascript jquery | [3, 5] |
574,259 | 574,260 | Android action bar items on the left side of the action bar | <p>I am required to create an action bar that has its items split: four of them on the right side and four on the left (it's a tablet-only application). In portrait mode they shouldn't be split. Is it possible to implement without using a custom view for the left side of the action bar, as it seems inconsistent?</p>
<... | java android | [1, 4] |
6,016,546 | 6,016,547 | how to draw the scribling using canvas in android? | <p>I want to draw the scribling using canvas in android. I use three options touchesdown, touchesmove and touchesup. The scribling path is appeared when I remove my hand from mouse button.</p>
<pre><code>x = motionEvent.getX();
y = motionEvent.getY();
switch (motionEvent.getAction())
{
case MotionEvent.ACTION_DOWN... | java android | [1, 4] |
3,690,850 | 3,690,851 | Search Up DOM from a given element using jquery | <p>In jquery, I'm trying to find a way to search up the dom until it finds the selector. For example.</p>
<p>Provided this structure:</p>
<pre><code><span data-type="contact" data-filter="4" id="buyer-lookup" class="uneditable-input contact-lookup" data-original-title="" title="">Jeff</span>
<div clas... | javascript jquery | [3, 5] |
452,134 | 452,135 | Android - Text on Button | <p>I need to show the <strong>text on button's both left & right side</strong>, whenever I touch the left side that should call an intent , and when I touch the right side that should call a separate intent . Is it possible to do like that? Please anyone suggest me.</p>
| java android | [1, 4] |
3,565,629 | 3,565,630 | How to revert back to a page if no userInteraction for timeInterval | <p>I have a HomePage and a PayYourBill page, on the PayYourBill page, the user is going to enter critical information, Is it possible to revert back to HomePage if there is no interaction for 'x' periodOfTime, do I have to use <code>session</code>, or is it possible without it?</p>
| c# asp.net | [0, 9] |
2,778,156 | 2,778,157 | Cross domain and google CDN for jquery | <p>Doesn't using Google CDN for jquery break the rule of not using cross domain requests on the webpage. Do we trust Google enough to do this?</p>
| javascript jquery | [3, 5] |
2,163,275 | 2,163,276 | what's the best approach for implementing a bilingual website? | <p>I've got an approach for implementing a bilingual website. it divides a table into to tables that contain localized columns and non-localized columns. like this :</p>
<h2>Category</h2>
<p>CategoryId</p>
<h2>Category_Local</h2>
<p>ID
CategoryId
Culture
Title</p>
<p>I would like to know whether or not it's the be... | c# asp.net | [0, 9] |
879,945 | 879,946 | how can i execute large mysql queries fast | <p>I have 4 mysql tables and have a single query with JOIN on multiple tables and I am requesting it via jquery ajax, but it takes much too long, from about 1-3 minutes while I want to execute them on average 2-5 seconds.</p>
<p>Is there any special way to execute the queries fast?</p>
| php jquery | [2, 5] |
4,752,709 | 4,752,710 | JQuery .post() not returning data | <p>I am trying to pass parameters to the <a href="http://www.tinypaste.com/" rel="nofollow">TinyPaste</a> API. I have the following JQuery script in an HTML file,</p>
<pre><code>$.post("http://tinypaste.com/api/create.json",
{
"paste": "This is test paste",
"title": "Test",
"is_code": 0,
"is... | javascript jquery | [3, 5] |
980,695 | 980,696 | Is it possible to set height and width of image which was assigned to a label dynamically | <p>Hi all i am using the code below to append image to a <code>label</code> text </p>
<p><code>lblPopUp.Text = "<img src='Popup(Images)/notfound.png' />&nbsp;&nbsp;&nbsp;&nbsp; Access Denied,Contact Administrator";</code></p>
<p>This results me as follow when loaded</p>
<p><img src="http://i.st... | c# asp.net | [0, 9] |
1,785,671 | 1,785,672 | Echo PHP variable inside jQuery SwitchCase? | <p>I have a jQuery script that I am including on a PHP page that takes mt content and creates facebook/myspace share links. I am having trouble echoing PHP code inside of the swith case statement that builds the share URL's. Here's my code:</p>
<p>case 'facebook':
this.href += '?t=' + document.title + '&u=ht... | php javascript jquery | [2, 3, 5] |
2,968,852 | 2,968,853 | remove text from string array with javascript/jquery | <p>Using <code>.each()</code> to go through an array, and trying to use <code>replace()</code> to find all the "<code><br></code>" and replace with " " (pretty simple) but nothing happens - no errors, it just doesn't replace.</p>
<pre><code>//get values of each td in row
var values = '';
var tds = $(this).find('... | javascript jquery | [3, 5] |
4,303,539 | 4,303,540 | Manipulating database output in Android strings | <p>I'm trying to manipulate the output of an SQLite query so into two parts - KEY_DATE and KEY_ROWID + KEY_TYPE. Here's the code without the KEY_TYPE bit: </p>
<pre><code> DataBaseAdapter db = new DataBaseAdapter(this);
db.open();
// get last test date
int whichItem = 1;
int upDown = 1; // use 1 fo... | java android | [1, 4] |
279,983 | 279,984 | Suggestion for learning Javascript and jquery | <p>I want to learn JavaScript. For this recently I had purchased a book named “<em>JavaScript The Good Parts</em>” from OReilly’s. Though this book is pretty old, but I got some good feedback about this book. I want to learn to write plain JavaScript code from scratch and then move to jquery. Is there any suggestion wi... | javascript jquery | [3, 5] |
1,556,274 | 1,556,275 | in mail column in my gridview - how to send mail? | <p>i have gridview in my form that has column that bind to mail field on </p>
<p>my database.</p>
<p>i see this mail in my gridview, but how to do that in mouse press i'll send mail ?</p>
<p>(i try the hyperlink - but still no working)</p>
<p>thanks</p>
| c# asp.net | [0, 9] |
3,097,365 | 3,097,366 | jquery event is not working properly | <p>i have a Invoice form and a jquery function.
In Invoice if i enter the quantity greater then the available quantity then i have to alert the user.</p>
<p>My problem is: Let the max quantity is 5, if i input data as 7 (single digit>max avail quantity) then my code is working fine. But if i enter two digigist number ... | javascript jquery | [3, 5] |
3,858,380 | 3,858,381 | I want to check if `id` has no content | <p>I want check between id that get in <code>var span</code>, if empty was between it put css for input but it not work. how can fix it?</p>
<pre><code>var span = '#'+$('.valid').closest('.auto_box').find('span').attr('id');
if ($(span+':empty').length != 0) {
//alert('ok')
(this).closest('.auto_box').find('in... | javascript jquery | [3, 5] |
1,617,673 | 1,617,674 | javascript onclick function not working | <p>So I adapted this code from another function that does work and is used on the same page. I don't know if that could do anything to it, so I thought I'd mention that, and also that both have id="replace" in them, which I don't know if it could interfere.</p>
<p>Anyway, the code to call the function is this:</p>
<p... | php javascript | [2, 3] |
3,586,562 | 3,586,563 | Add custom information to text fields to use with javascript | <p>I´m making a google instant-type of remote suggestion script with ajax on a site I'm making.</p>
<p>now I have this:</p>
<pre><code><input type="text" name="spanishtitle" onkeyup="suggest(this, 'title_es');" onblur="fill();" />
</code></pre>
<p>and I would like to move that onkeyup script to a jquery call, ... | javascript jquery | [3, 5] |
5,345,201 | 5,345,202 | Reversing jQuery code function | <p>I have the following code which when used in a link goes forward to the next link ... so I'm basically using it to do the function of a next button.</p>
<p>What I need to do is to create a reverse version so I can use it as a Back button.</p>
<p>Here is the code:</p>
<pre><code><script>
$("a.mytrigger")... | javascript jquery | [3, 5] |
3,548,414 | 3,548,415 | check for at least 2 char sequence before whitespace in javascript / jQuery | <p>Well like the title says, how can i check it?
i have started something like this:</p>
<pre><code> for (var i = 0; i < elm.val().length; i++) {
if (elmVal.charAt(i) !== '') {
//do something
}
}
</code></pre>
<p>For example:</p>
<p>if the string is: "g g g" OR "gg g " it shou... | javascript jquery | [3, 5] |
1,567,173 | 1,567,174 | Problem in event generation of dynamically generated CheckBox | <p>I have a datagrid with dynamically generated checkbox column..I am not able to
generate the checkedChanged event for the checkbox..</p>
<p>Here is my code:</p>
<pre><code>public class ItemTemplate : ITemplate
{
//Instantiates the checkbox
void ITemplate.InstantiateIn(Control container)
{
Check... | c# asp.net | [0, 9] |
519,772 | 519,773 | Click checkbox by clicking in the surrounding td | <p>I have a table that in one column has a checkbox. I want the user to be able to check (or uncheck) the checkbox by clicking on the checkbox OR the surrounding td. To complicate (possibly) things a little further, the checkbox has an onchange event set on it (i've put doSomething() in here just for clarity). </p>
... | javascript jquery | [3, 5] |
5,676,679 | 5,676,680 | Get dropdown value selected using Jquery | <p>I have a drop-down which is auto-built by jQuery. It's running fine.</p>
<p>When the user selects a value from the drop-down I would like to know what the value is.
Currently I'm using:</p>
<pre><code>var employee= $('#emplist').find('option:selected').text();
</code></pre>
<p>but this seems to always return null... | javascript jquery | [3, 5] |
5,312,942 | 5,312,943 | Change JS alerts to show/hide jQuery alert div? | <p>The title is confusing, so I'll elaborate..</p>
<p>I am working on a FaceBook box for my website, and when the comment is successfully posted, it displays an <code>alert()</code>. I am wanting to get rid of the <code>alert()</code> and instead, via jQuery, show and then fade out a div which will say the same thing ... | javascript jquery | [3, 5] |
5,462,051 | 5,462,052 | Confirm box when link is clicked | <pre><code><script type="text/javascript">
$("a.route").live('click', function() { // live is better
$("#results").load( $(this).attr('href') );
return false;
});
</script>
</code></pre>
<p>That's the code, how can I incorporate the code you just gave me?</p>
| javascript jquery | [3, 5] |
2,633,238 | 2,633,239 | Android and C++: Necessary? | <p>Just checking out Android development very superficially, and it seems that most everyone is working in Java. Yet</p>
<blockquote>
<p>Android includes a set of C/C++
libraries used by various components
of the Android system. These
capabilities are exposed to developers
through the Android application
f... | java c++ android | [1, 6, 4] |
428,029 | 428,030 | Getting the text of all inputs in a form using jquery | <p>I am trying to consolidate all inputs on my form into one string, but my code just overwrites the var on each loop leaving me with only the text from the last input on the form... How can I fix this?</p>
<pre><code>$(':input').each(function() {
var output = $(this).val();
$('#output').html(output);
});
</co... | javascript jquery | [3, 5] |
323,363 | 323,364 | progressbar for form | <p>As some will know on here, we are heavily into forms at the moment. So got me thinking, and I do know of various progress bars out there.</p>
<p>Such as: <a href="http://t.wits.sg/misc/jQueryProgressBar/demo.php" rel="nofollow">Wits</a></p>
<p>and jquery.progressbar itself.</p>
<p>What I havent seen as yet, is ..... | javascript jquery | [3, 5] |
4,030,494 | 4,030,495 | Catching event with stopped propagation | <p>Is it possible to somehow catch event, if it's propagation was stopped?</p>
<p>$('span').click(function(e) {
e.stopPropagation();
});</p>
<p>Maybe there are some kind of global handler? Like:</p>
<p>Event.registerHandler('click', function(e) {
alert('thanks');
});</p>
<p>There should be no additional code fo... | javascript jquery | [3, 5] |
1,359,137 | 1,359,138 | JQuery callback function flow | <p>i am very new in jquery. so i was searching google for jquery callback function and i got a code but i did not understand the flow of the code. so please anyone help me to understand the coding flow.</p>
<p>here is the code</p>
<pre><code>function mightyplugin(foo, callback){
// big code block here
callback.ap... | javascript jquery | [3, 5] |
5,774,932 | 5,774,933 | __EVENTTARGET not populating after button click + C#/ASP.NET | <p>I have an asp button that produces this html: </p>
<pre><code><input type="submit" name="ctl00$m$g_a2ba5666_c8e9_4bd7_a44a_f9407dbe2199$ctl00$btnAddWebPart" value="Add Report" id="ctl00_m_g_a2ba5666_c8e9_4bd7_a44a_f9407dbe2199_ctl00_btnAddWebPart" />
</code></pre>
<p>When the button is submitted and the page... | c# asp.net | [0, 9] |
4,178,450 | 4,178,451 | Problem in getting the parseInt(data) return NaN | <p>I am having a peculiar problem with getting an integer from an ajax response. Whenever I call the following code, parseInt(data) returns NaN despite data being a string.</p>
<pre><code>function(data) //return information back from jQuery's get request
{
$('#progress_container').fadeIn(... | javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.