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,937,201
1,937,202
Trying to save the status of radio groups according to a select radio button
<p>I am working on a project where I have many radio buttons in several radio groups. What I would like to do is save the configuration of all the radio groups in accordance to a specific button in the first radio group. For example the first radio group is called select and I have 4 different select radio buttons. Whe...
java android
[1, 4]
2,578,337
2,578,338
Capture all events (click, change, onmouseover, e.t.c) for a given element using jquery
<p>Is there anyway that I can check if an existing element has event handlers attached to it? Suppose a simple javascript method adds a click event to some div.example (sans jquery), so there are not attribute tags, is it possible to then, using jquery, to capture the event that was attached? I tried to accomplish th...
javascript jquery
[3, 5]
3,085,399
3,085,400
Page loading animation
<p>I want to display a loading animation while my page is loading, and when loading is complete then obviously hide it.</p> <p>I am working in ASP.NET using Masterpages, just wondering there is a a simple way of doing this using JQuery?</p> <p>Any pointers would be appreciated.</p> <p>Thanks</p>
asp.net jquery
[9, 5]
4,095,032
4,095,033
Using jQuery how can I set the contents of a textarea when the value from MySQL contains newlines
<p>To keep my code clean I am defaulting each of the elements of a form with jQuery.</p> <p>i.e My form contains elements like this..</p> <pre><code>&lt;input name="mobile" id="mobile" type="text" /&gt; </code></pre> <p>In my separate javascript file, I read data from MySQL, then use jQuery to set it, after the form...
php javascript jquery
[2, 3, 5]
2,821,811
2,821,812
http to https-- Aspx page for VS 2005
<p>I have an aspx page. That page in turn calls a UserControl(.ascx). I want this page (or control) to be https. Please let me know any specific conditions that are needed. </p> <p>I have no idea how it can be achieved! Please send me any links or so. Thanks all. Appreciate your help :)</p>
c# asp.net
[0, 9]
3,268,977
3,268,978
Can I use jquery's 'bind' without modifying 'this'?
<p>I am trying to use a classical inheritence model for a JavaScript app I am writing, and it relies on having <code>this</code> defined to be the current instace of the class that the method is being called on. This works fine.</p> <p>The problem is that I then try to bind methods of that object in JQuery, and it ove...
javascript jquery
[3, 5]
4,882,970
4,882,971
jQuery: running 2 different jQuery versions on the same website?
<p>can I run 2 different jQuery versions on the same website and avoid conflicts ?</p> <p>please don't ask me why.. it is a long story.</p> <p>Thanks!</p>
javascript jquery
[3, 5]
757,860
757,861
Function won't execute
<p>I'm trying to create a function that will execute on a click, on the condition that a variable is set to 0;</p> <p>However, the function will not execute, even if the variable is set to 0. (I am using jquery)</p> <pre><code>var menuVisible = 0 ; $('#links').click(function(){ if (menuVisible = 0) { ...
javascript jquery
[3, 5]
1,562,678
1,562,679
How to do add a label dynamically and style it?
<p>On adding the label and check box dynamically my images which were previously showing in single file horizontally on the webpage are now in vertical direction..how can I align the images in the horizontal direction and how can I show the image name + checkbox below each related image?</p> <pre><code>while (reader.R...
c# asp.net
[0, 9]
5,456,404
5,456,405
Hide submit button after submission?
<p>After submit, I want the submit button to get hide via jQuery. It hides, but soon after the page reloads... Why?</p> <p>HTML:</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;script src="js/submit_rsvp.js"&gt;&lt;/script&gt; &lt;script src="js/jquery-1.2.3.pack.js"&gt;&lt;/script&gt; &lt;script ...
javascript jquery
[3, 5]
1,559,485
1,559,486
what is the pitfall in using jquery on/off and trigger method on non-dom elements
<p>Is there a potential pitfall in using jquery on/off method and trigger to execute on non-dom elements/regular js objects.</p> <p>thanks</p>
javascript jquery
[3, 5]
3,665,196
3,665,197
fetch xml data and display in grid view using c#
<p>I want to fetch xml data and display it in grid view using c#. The xml i have is shown below.</p> <pre><code>&lt;div class="job_title1"&gt; &lt;span class="txt_green"&gt;MS CRM 4.0, MS CRM 2011, PHP, SQl server, My SQL, SSRS&lt;/span&gt; &lt;br /&gt; &lt;br /&gt; MCA (Computers), Amity Business School ...
c# asp.net
[0, 9]
2,319,533
2,319,534
Updating a progress bar in an ASP page
<p>I have an .aspx page that connects to a remote application. I want to add a progress bar to the web page to show the client, the current progress of the operation. There are many text fields in the page and I do want the content to be displayed to the user all the time. (I do not want the page to be refreshed every ...
c# javascript
[0, 3]
2,800,399
2,800,400
getting current position from DataInputStream in java
<p>Can anybody tell me how to get the current position of the index while reading the binary file from <code>DataInputStream</code>? I have seen a <code>mark()</code> method but one is <code>Boolean</code> type and the other is <code>void</code>. I need to read the indexes on separate locations to use them again.</p>
java android
[1, 4]
3,116,450
3,116,451
How can I store the front-end data using jQuery?
<p>This is a rather broad question and not code-specific. I am looking for opinions that people who know how to implement this requirement</p> <p>I am building a music application where people can queue music objects. A music object looks like</p> <blockquote> <pre><code>url: name: views: </code></pre> </blockquote> ...
javascript jquery
[3, 5]
4,871,178
4,871,179
how to do a getElementById on an ASP.NET control
<p>I have an element on my page.</p> <pre><code>&lt;asp:Button ID="buttonToFind" runat="server" OnClick="SomeProcess" /&gt; </code></pre> <p>In javascript I'm trying to find this control using:</p> <pre><code>document.getElementById("buttonToFind"); </code></pre> <p>However it can't seem to find the control. My und...
javascript asp.net
[3, 9]
5,612,465
5,612,466
jQuery: If all children have same class
<p>How do I check if all children, or all selectors, have same class?</p> <p>The class is unknown... </p> <pre><code>&lt;script&gt; $(document).ready(function() { var symbols = $("div:first-child").attr("class"); if ($("div").hasClass(symbols).length == 3) { console.log("same"); ...
javascript jquery
[3, 5]
45,152
45,153
Getting the URL of an iFrame cross domain and protocol in jQuery
<p>I am basically creating an external shopping cart system for users on my site that will lead to a secure system that I am paying for, and in their shopping pages, they auto-generate a PHP GET variable called <code>CFTOKEN</code> that I need to access so I can send cart updates.</p> <p>I am loading an iframe with th...
php javascript jquery
[2, 3, 5]
1,374,403
1,374,404
Accesing local filesystem and extracting file metadata using web app
<p>I am trying to build a web application which can do this: 1. Through the web application User selects some files present on his machine's filesystem. 2. Web application then extracts metadata of selected files like filename, size, filetype and stores it in a database at server.</p> <p>So I need two things - 1. web ...
php javascript
[2, 3]
5,721,367
5,721,368
Need help, writing my first useful Android application. A lyrics searching app
<p>I have been playing with the android SDK and I wanted to finally make something useful. </p> <p>I was thinking about developing a little android application. I have about 600 songs lyrics formatted in .text, total size about 5 Mb.</p> <p>Basically the user will search for the song lyric by number (1 to 600) or by ...
java android
[1, 4]
3,961,509
3,961,510
If one field in row is entered, all the other fields in the row are required
<p>This is a code to enter date, select in/out and location. If the user want more fields to enter i also added a addRow function.</p> <pre><code>&lt;table&gt; for($i=0;$i&lt;15;$i++){ &lt;tr&gt;&lt;td&gt; &lt;input type='datepick' name='scheduledatepick[$i]' /&gt; &lt;select name='schedulein[$i]' /&gt;&lt;optio...
php javascript jquery
[2, 3, 5]
5,635,499
5,635,500
send data to android set
<p>how to send data from a php page that is open in browser to a particular person who has android set with him.The person is connected to the Internet and me also.i know the person IMEI number.kindly tell me all the possible solutions.please i am new to android</p>
php android
[2, 4]
5,470,584
5,470,585
What does this (useless?) javascript code do?
<p>While debugging a javascript code that uses jQuery I found the following code:</p> <pre><code>[0, 0].sort(function() { baseHasDuplicate = false; return 0; }); </code></pre> <p>By my understanding of javascript this code will sort array containing two zeroes with comparison function that will always set a g...
javascript jquery
[3, 5]
921,501
921,502
How to check if a file exists?
<p>I'm trying to make a method that write a txt plain file on the external memory.. </p> <p>And it works! .. but i want to insert the Date of creation on the footer of the file thorugh the file.exists() method.</p> <p>If exists doesn't insert date and if not exists insert the date..</p> <p>My code is this..</p> <pr...
java android
[1, 4]
3,794,122
3,794,123
How can I add fade effect to this jQuery Image Swap Gallery
<p>I was wondering how can I add a fade effect when hovering using this example <a href="http://www.designchemical.com/lab/jquery/demo/jquery_demo_image_swap_gallery.htm" rel="nofollow">http://www.designchemical.com/lab/jquery/demo/jquery_demo_image_swap_gallery.htm</a> </p> <p>I was wondering if its possible to achie...
javascript jquery
[3, 5]
12,266
12,267
Calling a java script function with php on click
<p>Ok so i have paid a coder to code me a walk around map script were users can press up and down on the keyboard and walk aroud a map using jquery. But now im trying to make it so i have a up and down image and then on click it will call the up and down function. So the suer can use the up and down keys plus clicking ...
php javascript
[2, 3]
4,989,787
4,989,788
'Tilt maze' creation?
<p>For popular games like <a href="https://play.google.com/store/apps/details?id=se.illusionlabs.labyrinth.full&amp;hl=en" rel="nofollow">Labyrinth</a> I just can't seem to work out how they create the mazes? I don't believe creating a maze like that is done by an algorithm, so possibly it's created beforehand? But the...
java android
[1, 4]
3,686,360
3,686,361
Javascript jQuery replace a variable with a value
<p>I have this line of Javascript jQuery code</p> <pre><code>$.post('/blah', { comment_id: 1, description: ... }); </code></pre> <p>However, what I really need is the ability to change <code>comment_id</code> to something else on the fly, how do I make that into a variable that I can change?</p> <p><strong>EDIT</str...
javascript jquery
[3, 5]
1,628,836
1,628,837
Translating PHP fragment code to .net
<p>could anybody translate the PHP part of this code into .net? </p> <pre><code>function showonlyone() { $(‘div[name|="newboxes"]‘).each(function(index) { if ($(this).attr(“id”) == &lt;?=htmlentities($_GET['id']);?&gt;) { $(this).show(200); } else { $(this).hide(600); } }); } </code>...
php javascript jquery
[2, 3, 5]
1,567,201
1,567,202
JavaScript function is not working
<p>I have this line in a button click method on my aspx.cs file</p> <pre><code>ClientScript.RegisterStartupScript(this.GetType(), "RefreshOpener", "RefreshParent()", true); </code></pre> <p>I have this code on...
c# javascript asp.net
[0, 3, 9]
3,899,809
3,899,810
FindControl() method throws ArithmeticException?
<p>I have a line of C# in my ASP.NET code behind that looks like this:</p> <pre><code>DropDownList ddlStates = (DropDownList)fvAccountSummary.FindControl("ddlStates"); </code></pre> <p>The DropDownList control is explicitly declared in the markup on the page, not dynamically created. It is inside of a FormView contro...
c# asp.net
[0, 9]
1,616,250
1,616,251
Find all radio groups which haven't been selected
<p>I have a basic quiz/survey type application I'm working on, and I'd like to give the user a prompt before they submit if they haven't answered all the questions. All the questions are multiple choice using radio buttons:</p> <pre><code>&lt;div class="question"&gt; Q1: What is the second letter of the alphabet? ...
javascript jquery
[3, 5]
3,227,310
3,227,311
Passing an HTML string to jQuery function
<p>I'm working on an application which retrieves some HTML code from a record in a database. That strings then gets taken and inserted inside of a specific div. Right now I'm accomplishing this by passing the variable from Java and printing it within the div in the JSP. Now I'm trying to use an external jQuery function...
java javascript jquery
[1, 3, 5]
4,928,310
4,928,311
Android Service not initializing variables from settings
<p>I am running into a problem with my application that I cannot seem to figure out.</p> <p>The application has a service that starts when the phone starts, or if it has been stopped, starts when the main activity is run before everything else is done.</p> <p>In the activity's onCreate I have:</p> <pre><code>service...
java android
[1, 4]
4,125,683
4,125,684
force load from server instead of cache on session start
<p>How do I ensure that the user has the latest .js file cached in his browser? I'd like to have the app force the browser to a complete reload of all files on every session start.</p> <p>Let me know how this can be done.</p> <p>Thanks.</p>
c# asp.net
[0, 9]
3,116,638
3,116,639
Using .replaceWith() on dialog box. What's wrong?
<p>I would like to toggle the JQuery <a href="http://jqueryui.com/demos/dialog/#modal-confirmation" rel="nofollow">Dialog</a> using a button.</p> <p>To replace the text in the dialog I use <a href="http://api.jquery.com/replaceWith/" rel="nofollow">.replaceWith()</a></p> <p>The problem is, that the text isn't replace...
javascript jquery
[3, 5]
4,627,105
4,627,106
Generating a unique random number
<p>I am entering student id as a randon number into the DB </p> <pre><code> int num = r.Next(1000); Session["number"] = "SN" + (" ") + num.ToString(); </code></pre> <p>But is there any chance of getting a duplicate number?How can i avoid this?</p> <p>EDIT :: I have a identity column and the student id is separate...
c# asp.net
[0, 9]
4,612,239
4,612,240
Open WebView with result from Http post
<p>I having an issue from my HTTP Post.</p> <p>The code I'm using are working (have tested to post data to a guestbook form and it worked).</p> <p>Now what I want. I have created two EditText forms, that holds values. I have a submit button there I post this data (like the test I wrote about before), but now I want t...
java android
[1, 4]
171,109
171,110
User Interface in different language for WYSIWYG
<p>The WYSIWYG for web we have only has English Interface. For Japanese language Interface what will be the appropriate steps to make it. In future, it may requires the other language support.</p> <p>I am planning in this way-</p> <p>For Japanese language setting, in the .js file</p> <pre><code>var language={ "b...
javascript jquery
[3, 5]
319,640
319,641
jQuery simple modification to disable click on image when it was clicked once
<p>jQuery simple modification to disable clicking</p> <p>The following jQuery make use of an image submit button of a the JqPostForm form to post. </p> <p>How to change the image from image1.png to image3.png when clicked and disable further clicking ? and how to remove the Thank you message after 2 sec ?</p> <p>The...
javascript jquery
[3, 5]
2,573,148
2,573,149
When is better to use jQuery plugin instead javascript object?
<p>I was wondering in what circumstances should I write jQuery plugin instead javascript object?</p>
javascript jquery
[3, 5]
93,745
93,746
How to create Intent using a string to launch another activity?
<p>The first activity in my app needs to load a small amount of data from a text file. Two strings and an integer.</p> <p>Once I load the data, I want to use one of the strings to create an intent, that will launch the next activity.</p> <p>The current activity will not be able to have a hard-coded reference like so...
java android
[1, 4]
3,112,921
3,112,922
Is there a jQuery image cropping plugin similar to Facebook's image crop?
<p>I know there are thousands of jQuery plugins for image crop, but the one I need is similar to Facebook's image crop: a draggable fixed size square over a image, or a draggable image under a fixed size square.</p> <p>I think there's a simple elegant code for it, instead of a 10k-50k framework for image manipulation ...
javascript jquery
[3, 5]
4,771,088
4,771,089
Need the decimal to save and show three places
<p>I have this line of code in c# but i it always resets the textbox back to the format 0.00, how can i make it so that it keeps the format 0.000 ?.</p> <pre><code>NewYorkTax = Convert.ToDecimal(txtNewYorkTax.Text); //converts it but with 0.00, I need 0.000 or 7.861 etc.. </code></pre> <p>SIDE NOTE: NewYorkTax is of...
c# asp.net
[0, 9]
2,514,298
2,514,299
ASP.NET, combining conditionally included script files
<p>We are working on an ASP.NET CMS project using jQuery as the basis for our client side scripting. </p> <p>The jquery-1.2.6.js file is the only script file that is always included. Other script files are currently included depending on what components the CMS editor is using on a page or page template.</p> <p>A lot...
asp.net javascript
[9, 3]
2,108,795
2,108,796
How do I check to see if form inputs(x5) have not been left empty by the user, using JavaScript/JQuery?
<p>I am working on this code below and have had a stab at writing a IF statement around the code with <code>//*</code> .</p> <p>The <code>if</code> statement logic should say 'If all(x5) form input fields are empty then show alert message else do what's between <code>//*</code></p> <p>The user must modify at least on...
javascript jquery
[3, 5]
1,181,648
1,181,649
Calling main thread in asp.net C#
<p>I am calling method in separate thread. After sometime or after some event occurs I want to call main threads method. I am using C# in asp.net website.</p> <p>To call separate thread i am using below code</p> <pre><code> Thread thread = new Thread(new ThreadStart(threadMethod)); thread.Start(); </code></pre...
c# asp.net
[0, 9]
3,874,303
3,874,304
Add Events to Controls Nested in a Repeater ASP-C#
<p>I'm currently working with a repeater which has some number of drop down lists in it determined by how many items are databound to it. I wanted to add an event to each of these drop down lists in the scenario that a user changes the selected index. </p> <p>Here is what I have for the repeater (Note that I am doing ...
c# asp.net
[0, 9]
18,530
18,531
Method delegation in Javascript/jQuery?
<p>I have this code:</p> <pre><code>var myWidget = $('#myWidget'); </code></pre> <p>and calls like this elsewhere:</p> <pre><code>myWidget.hide(); myWidget.slideToggle(); </code></pre> <p>These work of course because jQuery adds these methods.</p> <p>Now, let's say I'm doing some refactoring to make myWidget a pro...
javascript jquery
[3, 5]
2,503,530
2,503,531
Edit in place saved to different file
<p>Hello I have a web page that users need to be able to update. They need to update text only, so I was thinking about using an edit in place script like jeditable or something. My question is this. The content on my page needs to be public for everyone to see, but I don't want the public to be able to edit it. I am j...
php javascript
[2, 3]
4,987,785
4,987,786
C#'s opposite to PHP's bin2hex()
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/311165/how-do-you-convert-byte-array-to-hexadecimal-string-and-vice-versa-in-c">How do you convert Byte Array to Hexadecimal String, and vice versa, in C#?</a><br> <a href="http://stackoverflow.com/questions/32137...
c# php
[0, 2]
5,825,511
5,825,512
Frequency from binary input
<p>Background: I have a IOIO which I am using to measure the output from an photodiode, this is the converted into a digital output. I need to find the frequency at which the signal changes between 1 and 0. Everything I have tryed so far has hanged my test app, any suggestions?</p> <p>current code:</p> <pre><code>if(...
java android
[1, 4]
1,760,518
1,760,519
javascript/jquery- how to check, if an element has text attribute or not
<p>Is there some way of determining at run time, if an element returns value for element.text() or not? Using javascript or jquery?</p> <p>I.E. some way of checking if an element is pure text, or it is some other type of element?</p> <p>Why I need a solution to the above--- </p> <p>I am trying to parse through some ...
javascript jquery
[3, 5]
1,337,461
1,337,462
Create the <li> for <ul> dynamically in C#
<p>I have to add &lt;li&gt; items dynamically, based on their value, to an unordered list (&lt;ul&gt;). How do I do that programatically?</p>
c# asp.net
[0, 9]
1,092,451
1,092,452
Facing problem from getting double and int value from binary file
<p>Can anybody please tell me how to get double and int value from a binary file. I have tried alot but its giving me wrong values. Here is my code.</p> <pre><code>InputStream iStream = getApplicationContext().getResources().openRawResource(R.raw.map); DataInputStream input; input = new DataInputStream(i...
java android
[1, 4]
3,276,327
3,276,328
jquery each function syntax update
<p>I have a number of info panels sharing the same class which I wish to show/hide using the slideToggle function. The content of the panel is pulled in dynamically through json. so Ibelevide I must use the 'live' and not 'bind' function? The following code will toggle all the panels simultaneously. I wish only one pan...
javascript jquery
[3, 5]
2,352,692
2,352,693
How do I make a div element editable (like a textarea when I click it)?
<p>This is my code:</p> <pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt; &lt;html&gt; &lt;head&gt; &lt;meta name="viewport" content="width=device-width, user-scalable=no"&gt; &lt;/head&gt; &lt;body&gt; &lt;style ty...
javascript jquery
[3, 5]
62,630
62,631
Jquery and ajax open link and div
<p>Welcome</p> <p>How can I do to Jquery shown when you click the hidden div, and opened a link in a new window at the same time.</p> <p>I am looking for an hour already and I can not find any project: (</p>
javascript jquery
[3, 5]
1,201,666
1,201,667
How can I only focus in on an "input:text" without triggering its bound focus event handler
<p>I get a input:text, I want to focus in on it, but I do not want to trigger it's binded event handler. What can I do?</p> <p>I guess:</p> <ol> <li>get the handler</li> <li>unbind it</li> <li>focus</li> <li>bind it</li> </ol>
javascript jquery
[3, 5]
278,497
278,498
Passing a string from javascript to server side code
<p>I want to get a string from javascript, pass it to server side code and then store it in a database. my problem is that i do not know which is the best way of passing a string from javascript to server side. </p> <p>From my research I found that many suggest using ajax xmlhttprequest but I haven't really found any ...
c# javascript asp.net
[0, 3, 9]
480,066
480,067
How to "relate" elements
<p>I was wondering how you could "relate" two HTML elements. For example, let's say a user clicks on a selection item and I want the element "related" to that element disappear.</p> <pre><code>&lt;div id="game1Selection"&gt;I pick team1&lt;/div&gt; &lt;div id="game2Selection"&gt;I pick team2&lt;/div&gt; &lt;div id="g...
javascript jquery
[3, 5]
5,204,269
5,204,270
Call a jquery modal box by server side event
<p>i would like to call a jquery dialog box (so html, css,javascript ) via asp.net Server Side event. Is it possible ? </p> <p>Thank you</p>
asp.net jquery
[9, 5]
4,468,558
4,468,559
Graphing API for Android Apps?
<p>I am starting an Android Application that will collect data and I would like to chart this data.</p> <p>Where are some places I could look for a good charting API for Java to use on Android?</p>
java android
[1, 4]
2,449,497
2,449,498
remove div even if single ul li empty inside the div
<p>I have following code....</p> <pre><code>&lt;div id="rem-download-ref" class="download-reference"&gt; &lt;ul&gt; &lt;li&gt;&lt;strong&gt;Download »&lt;/strong&gt;&lt;/li&gt; &lt;li&gt;&lt;asp:Image ID="imgepub" runat="server" align="absmiddle" ImageUrl="/images/icon/epub.png" Visible="false" wi...
javascript asp.net
[3, 9]
3,949,340
3,949,341
Multi language for a Website (php and javascript)
<p><br /> i try to build a language selection for my Website.</p> <p>I use php and Javascript.</p> <p>My idea is to create for every language a php file.</p> <p><strong>For example: lang_en.php</strong></p> <pre><code>&lt;?php $lang = array(); $lang[1] = "Everything is ok!"; $lang[2] = "Please select a Number.";...
php javascript jquery
[2, 3, 5]
5,414,104
5,414,105
Whant to check all kind of audio & video quality in asp.net C#
<p>How can I check the quality and bit-rate of audio &amp; video files in C# asp.net?</p>
c# asp.net
[0, 9]
1,879,339
1,879,340
SurfaceView is displaying camera feed sideways
<p>For some reason the camera feed in my program is sideways. If I hold my finger up to the camera from the bottom, it shows up as coming from the right in the surfaceview.</p> <p>I have a pretty standard implementation</p> <pre><code> surfaceView = (SurfaceView)findViewById(R.id.surfaceView); surfaceHolder = ...
java android
[1, 4]
5,351,604
5,351,605
How to convert .pdf to .png
<p>Using ImageMagick I can convert any pdf document into images by using command "convert":</p> <pre><code>convert abc.pdf abc.png </code></pre> <p>This will convert all pdf pages to png images.</p> <p>How can I implement this using PHP or Java so that I can provide this functionality on my website to enable users t...
java php
[1, 2]
2,032,653
2,032,654
How to move all comment replies under the ones replied to on my Blogspot blog?
<p>Here is the <a href="http://income-control.blogspot.com/2011/09/this-is-last-post.html#comments" rel="nofollow">location of the comments</a> I need help with on my scrap Blogger/blogspot blog.</p> <p>I'm trying to move the replies under the ones they reply to.</p> <ol> <li><p>I want to move the reply starting from...
javascript jquery
[3, 5]
5,100,821
5,100,822
jQuery - Animate & Time interval
<pre><code>&lt;script&gt; $(document).ready(function() { $.get("database.php", function(data){ var xp = data + "%"; $('#exp_bg').animate({ width: xp }, 1500, function() { }); }); }); &lt;/script&gt; </code></pre> <p>Database.php:</p> <pre><code>&lt;?php $xp = 50; $level = 100; $xp_percent = $xp * 10...
php jquery
[2, 5]
4,286,587
4,286,588
.each() > $(this).find().eq().html() is null
<p>Why don't work?</p> <pre><code>var str; $('table tr').each(function() { str = $(this).find('td').eq(6).html().trim().substring(10, 20); $(this).find('td').eq(6).text(str); }); </code></pre> <p>Need write in all 6th trim+substring+another_string_action with same value.</p> <p>Firebug write error: <strong...
javascript jquery
[3, 5]
2,176,648
2,176,649
Passing variables from cs to javascript
<p>i'm my code behind of my web application, i have this method associated to the event click</p> <pre><code>protected void Button1_Click(object sender, EventArgs e) { string pagFinal = "this is a test"; ClientScript.RegisterClientScriptBlock(this.GetType(), "variable", "&lt;script language=javascript&gt...
c# asp.net
[0, 9]
2,865,502
2,865,503
Parse everything inside <form></form> using Android from HTML code?
<p>Well, the question is pretty clear. I wanna grab the form-element and everything inside it from a web site and then load it to my own WebView. I have looked around, but since I'm quite new to parsing overall, I really need help. I've looking at some solutions; but I don't get it. Help is appreciated.</p> <p>Thank y...
java android
[1, 4]
2,875,169
2,875,170
jQuery to validate a form (check for atleast 10 characters and certain value)
<p>On my webpage I have a form where a user enters information for their article. Right now I use jQuery to check if the entered values are not empty, if they are I show an error message.</p> <p><strong>Current validation</strong></p> <pre><code>//Story Form $('.error').hide(); //Hide error message initially $(".but...
javascript jquery
[3, 5]
4,186,908
4,186,909
How can I dynamically add radio buttons to an activity?
<p>I have an activity where users can change a setting using radio buttons. There may be anywhere from 2 to 7 options, so I want to dynamically add the radio buttons in my onCreate(). With a bit of research I figured out how to do it and documented the results for my own benefit and yours.</p>
java android
[1, 4]
4,666,447
4,666,448
Add event responders to elements in a loop with Jquery
<p>Lets say I have a page with 5 images, and I get an array of them all by</p> <pre><code>var images = document.getElementsByTagName("img"); </code></pre> <p>Then I want to add a mousemove event to each one, my first instinct would be to do this:</p> <pre><code>for (var i = 0; i &lt; images.length; i++){ $(image...
javascript jquery
[3, 5]
2,612,809
2,612,810
connect over ssl without certificate
<p>I'm trying to connect to my server over SSL port 443 without a certificate.</p> <p>I'm getting an error thrown: </p> <blockquote> <p>javax.net.ssl.SSLException: Not trusted server certificate</p> </blockquote> <p>Reading other questions to solve the problem, the following code should work, but I'm still getting...
java android
[1, 4]
2,005,673
2,005,674
jQuery slider with delayed elements/content
<p>I'm looking for a jQuery slider similar to this <a href="http://www.apple.com/uk/imac/" rel="nofollow">http://www.apple.com/uk/imac/</a> or <a href="http://www.reachlocal.com/" rel="nofollow">http://www.reachlocal.com/</a>.</p> <p>I believe Apple calls theirs "hero slider".</p> <p>I was looking at easy slider whic...
javascript jquery
[3, 5]
3,626,199
3,626,200
javascript: problem with function
<p>I have this simple function:</p> <pre><code>&lt;script type="text/javascript"&gt; //&lt;![CDATA[ jQuery(function($){ function here(b){alert(b);} ; here(6); }); //]]&gt; &lt;/script&gt; </code></pre> <p>and i have this button on page:</p> <pre><code>&lt;button onclick="here(7);"&gt;TEST&lt;...
javascript jquery
[3, 5]
5,711,098
5,711,099
Copy object properties to a new object and delete the new (not by reference)
<p>I have a Javascript array of objects, which is initialised with some values. I want to copy those values to a new array of objects, but without referencing to the original one. Then i want to manipulate the new object as i wish.</p> <p>I tried <code>objectOptions.concat()</code> like in this sample code but it th...
javascript jquery
[3, 5]
2,308,651
2,308,652
Replace String while enter into textfield in android
<p>While entering String in EditText for example "Love Is Life" , after entering word "Love" enter space , then after if click the letter 'i' it automatically need to change it as Uppercase letter 'I' .</p> <p>Which means the character after every Space of String need be in Uppercase and make the change dynamically wh...
java android
[1, 4]
928,718
928,719
jQuery content slider with start/stop/resume functionality
<p>Is there a jQuery content slider plug-in out there with start/stop functionality as well as an auto-resume functionality?</p> <p>I basically want the plug-in to cycle through content and have the ability to pause it. After 5 minutes of it being paused I want the ability to auto-resume the sliding. </p>
javascript jquery
[3, 5]
4,997,972
4,997,973
count number of links in textarea using jquery
<p>I am trying to count the number of links in a textarea so I can limit the user to no more than three links. The code below is what I have so far, but it's not working. I am thinking the html is encoded and that is affecting it somehow ...or maybe not. If so, can I decode it? Any ideas? Thanks so much.</p> <pre><cod...
javascript jquery
[3, 5]
5,046,167
5,046,168
How to bind Complex Entity type to Gridview using ObjectDataSource
<p>I have an entity</p> <pre><code>class Person { public int Age{get;set;} public string Name{get;set;} public Department Dept{get;set;} } class Department { public int DeptId{get;set;} public string DeptName{get;set} } </code></pre> <p>Now I binds Collection to GridView using ObjectDataSource Control. Under the Tem...
c# asp.net
[0, 9]
3,770,797
3,770,798
How to flatten or combine member names into one list?
<p>For example if I have something like so:</p> <pre><code>var Constants = { scope:{ namespaceA: { A_X: "TEST_AX" , A_Y: "TEST_AY" }, namespaceN: { N_X: "TEST_NX" , N_Y: "TEST_NY" } } _mapping: [], getMapping: function(){...} } var flattenList = flatten(Constants.scope); //returns ["TEST_AX","TEST_AY"...
javascript jquery
[3, 5]
5,973,884
5,973,885
just add url on only address bar of browser
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/136458/change-the-url-in-the-browser-without-loading-the-new-page-using-javascript">Change the URL in the browser without loading the new page using JavaScript</a> </p> </blockquote> <p>i want just add url in ad...
java javascript jquery
[1, 3, 5]
5,249,408
5,249,409
strip part of a filename with jquery/js
<p>I am using the code below to send an ID to my page:</p> <p>The image names will always look like this 12.jpg 12-1.jpg 12-2.jpg 12-3.jpg e.t.c</p> <p>I need to alter the line below so it will only send the 12 not the -1,-2,-3 e.t.c My code below already removes the .jpg part</p> <pre><code>var id = $(this).attr('...
javascript jquery
[3, 5]
49,195
49,196
javascript to check if element visible and set "setInterval" accordingly
<p><strong>LE2. Any other ideas on how to fix this?</strong></p> <p>I have this code and can't figure why is not working properly:</p> <pre><code>$(function autorun() { if ($("#contactForm").is(":visible")){ setInterval( "refreshAjax();", 150000000000 ); } else { setInterval( "refreshAjax();", 15000 ); } setTimeo...
javascript jquery
[3, 5]
2,930,876
2,930,877
Algorithm in android's secure random
<p>The android developer's guide on securerandom says<br></p> <pre><code>Supported Algorithms SHA1PRNG: Based on SHA-1. **Not guaranteed to be compatible with the SHA1PRNG algorithm on the reference implementation.** The default algorithm is defined by the first SecureRandomSpi provider&lt;br&gt; found in the VM's in...
java android
[1, 4]
5,516,540
5,516,541
jquery addclass if image has specific alt tag
<p>I have some images, all of which have alt tags.</p> <p>I am trying to add a class to all of the images which have a certain alt tag.</p> <p>So to put it in plain terms:</p> <p>If image <code>alt</code> tag = "dog" then add class "canine"</p> <p>Any ideas?</p> <p>thanks</p>
javascript jquery
[3, 5]
1,930,935
1,930,936
How do I encapsulate a tag within another tag using jQuery or JavaScript?
<p>I have a container <code>div</code> that contains some <code>img</code> tags. When I click on a <code>img</code> tag, it returns me the index position of that <code>img</code> tag within the <code>div</code> tag. I would like to wrap this <code>img</code> tag within another <code>div</code> tag either using jQuery o...
javascript jquery
[3, 5]
85,199
85,200
Which PHP-template to load depends on javascript support
<p>I have the following scenario:</p> <p>A multiple step registration procedure. Let's say it's 4 steps, and each step depends on previous input. This could be solved with or without Javascript.</p> <p>Without JS: A "proceed"-button is attached to each step With JS: The next part is automatically revealed to the user...
php javascript
[2, 3]
5,844,028
5,844,029
How to detect the current URL and then forward based on it
<p>I have a textbox and an image button as follows</p> <pre><code>&lt;asp:TextBox ID="myText" runat="server"&gt;&lt;/asp:TextBox&gt; &lt;asp:ImageButton ID="btnExecute" runat="server" OnClick="btnExecute_Click" /&gt; </code></pre> <p>Now here is my problem, on the Page_Load there are some bindings.. and these binding...
c# javascript asp.net
[0, 3, 9]
4,833,728
4,833,729
How to translate java "?" operator in C#?
<p>I would like to know the translation of this java code in C#</p> <pre><code>n = (length &gt; 0) ? Math.min(length, buffer.length) : buffer.length;//Java code </code></pre> <p>Can it be equivalent to this in C# ?</p> <pre><code>if(length &gt;0) { n = Math.min(length, buffer.length); } else { n = buffer.lengt...
c# java
[0, 1]
3,833,551
3,833,552
How to remove all endRequest handlers in PageRequestManager?
<p>How to remove all endRequest handlers in PageRequestManager?</p>
c# asp.net
[0, 9]
1,771,214
1,771,215
Alerts are displayed in Chrome and Explorer, but not in Firefox
<p>I have a code that works correctly and displays the alerts in Chrome and Explorer but not in Firefox. However, the function do his works correctly in Firefox, but the alerts are not displayed or displayed very fast and I can't click the "Ok" button of then. Any help I receive I'll be gratefull. Sorry for mi english,...
javascript jquery
[3, 5]
1,307,785
1,307,786
How to change jQuery default context?
<p>I loaded jQuery on a Firefox addon, which causes it to load using XUL's <code>window</code>.</p> <p>I want to change the default context so it will use the correct <code>window</code> object.</p> <p>The classic example I always see is:</p> <pre><code>var $ = function(selector,context){ return new jQuery.fn.in...
javascript jquery
[3, 5]
1,622,235
1,622,236
Remove Specific Content from div with jQuery?
<p>Can you remove specific content from an element with jQuery?</p> <p>So for example, if I had </p> <pre><code>&lt;p&gt;Hello, this is a test&lt;/p&gt; </code></pre> <p>could I turn it into </p> <pre><code>&lt;p&gt;this is a test&lt;/p&gt; </code></pre> <p>with jQuery (or any Javascript)</p> <p>Please keep in m...
javascript jquery
[3, 5]
5,889,273
5,889,274
ASP.NET radio button change
<p>I am trying to figure out why this code doesn't fire the radio button change event.</p> <p>here's the ASP page code for 2 radio buttons</p> <pre><code> &lt;asp:RadioButton ID="rdoButton1" GroupName="Group1" Text="Yes" Value="Yes" runat="server" OnCheckedChanged="Group1_CheckedChanged" /&gt; &lt;asp:RadioButton...
c# asp.net
[0, 9]
1,880,364
1,880,365
disabling javascript codes using php?
<p>is there a way to disable javascript codes in a particular page using certain php codes? I need to ensure that all the javascripts used in a page should not give any result (even errors) when run.</p>
php javascript
[2, 3]