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
4,799,133
4,799,134
Html Text Editor problem
<p>Hii,</p> <p>I m using a simple HTML Text editor by providig 'contentEditable' property of a div to true. All the formatting operations are working fine. The problem is when i copy and paste some html contents from somewhere else and try to post to DB the entire content may not post in to db because of the size limi...
asp.net javascript
[9, 3]
3,249,754
3,249,755
How to automate a click on page load?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/7943287/auto-click-on-page-load">Auto click on page load</a> </p> </blockquote> <p>I need to click on the specified xy position on a page without clicking it using a mouse. I have tried many jquery and js script...
javascript jquery
[3, 5]
2,909,999
2,910,000
jQuery change callback context
<p>I am wondering how to change the context of a a jQuery callback function so that <code>this</code> is the same as it is in the parent function.</p> <p>Take the following example:</p> <pre><code>var context = this; console.log(context); element.animate(css, speed, type, function () { var new_context = this; ...
javascript jquery
[3, 5]
5,692,565
5,692,566
Parsing string to Json in the Constructor
<p>HY!!</p> <p>I have a Json class, so i will parse in the constructor the json string to JSonObject.</p> <pre><code> public class JSONParse extends JSONObject { public JSONParse(string json) { //pseudo code this.obj = new JSONObject(EntityUtils.toString(json)); } } </code></pre> <p>...
java android
[1, 4]
2,540,549
2,540,550
timestamp convertion in java (windows OLE (64 bit Double) to human readable format
<p>i want to convert windows :OLE(64 bit Double) ie.., "FBE8DF975D3FE340" to human readable format ie.., Mon, 03 December 2007 03:41:42 +0530 so there is algorithm to convert it which i am not getting. for refference <a href="http://www.digital-detective.co.uk/freetools/decode.asp" rel="nofollow">http://www.digital-det...
java android
[1, 4]
1,270,323
1,270,324
JS/PHP: Who is responsible for generating the content?
<p>Here's a situation which I have encountered, creating a form on the client side and using PHP to process. Here are some considerations</p> <ol> <li>The PHP script generates the form and send to the client side. This is because of internationalization issues</li> <li>The client side uses JavaScript to submit form; t...
php javascript
[2, 3]
2,885,150
2,885,151
validate CKEditor with jQuery Validation plugin
<p>how to validate CKeditor with jQuery validation plugin.</p> <p>This is my code</p> <pre><code>&lt;script type="text/javascript"&gt; $(document).ready(function(){ $("#newpost").validate({ debug: false, rules: { title: "required", cat_id: "required"...
php jquery
[2, 5]
353,257
353,258
Has Java just not kept up?
<p>I code C# all day, but recently made a jump to Java for hobby stuff, like writing for the BlackBerry and Android platforms. All this time I assumed that as far as language features go, Java and C# were twins of each other. </p> <p>Anyway, I discovered that Java is the equivalent of C# 1.1 or something like that. ...
c# java
[0, 1]
5,336,266
5,336,267
How to get file name from a specified folder?
<p>I want to get the file name resides under a specified folder.</p> <p>i.e. there is a file stored under two folders <code>First\Second\test.txt</code> I want have the path of the parent directory of file that is <code>First\Second\</code> in my program. Now I want to get the file name residing under the directory "S...
c# asp.net
[0, 9]
5,345,006
5,345,007
ASP.net viewstate links error
<p>When the contents is placed inside the contentplaceholder, the behavior of the links are changed, I have to refresh the page to make the download links functional. I also have to remove the form tag when I place the contentplaceholder. How do I fix the behavior of the links while having a contentplaceholder to refe...
c# asp.net
[0, 9]
4,305,012
4,305,013
Setting a greeting based on user's time (Good morning, good afternoon…)
<p>I'm sort of lost. Can anyone extrapolate on how to implement a basic "good evening" or "good morning" based on the user's time setting? </p> <p>Perhaps PHP will fetch the server time, but I'm looking to greet the site visitor with a time-based appropriate greeting that considers their time of day. </p> <p><strong>...
php javascript jquery
[2, 3, 5]
1,971,585
1,971,586
.Net HttpHandler not working in android device
<p>I have created ASP.Net httphandler to count number of visits for MP3 files. Httphandler is being used in web application as well as in ios + android application.</p> <p>It is working fine in web + ios application. If I run android application in Samsung Galaxy S then it is playing MP3 files perfectly but it is not ...
c# android asp.net
[0, 4, 9]
4,358,680
4,358,681
jquery sort multiple lists
<p>I would like to sort several ULs with jquery. The criteria is that the LI containing the text "current" must be moved to the top of that list.</p> <p>example</p> <pre><code>&lt;ul&gt; &lt;li&gt;doc1&lt;/li&gt; &lt;li&gt;doc5&lt;/li&gt; &lt;li&gt;doc3&lt;/li&gt; &lt;li&gt;doc54 (current)&lt;/li&gt; ...
javascript jquery
[3, 5]
3,772,443
3,772,444
Onmouseover running multiple times while hovering on element?
<p>Why does onmouseover run multiple times while I hover over one element?</p> <p>I'm trying to run a simple animation when the user hovers over an icon but it runs multiple times.</p> <p>I'm testing it here:</p> <p><a href="http://lujanventas.com/test.php" rel="nofollow">http://lujanventas.com/test.php</a></p> <p>...
javascript jquery
[3, 5]
2,330,492
2,330,493
external JS does not work
<p>I have the following code:</p> <pre><code>&lt;script language="javascript" type="text/javascript"&gt; $.fn.dataTableExt.oPagination.input = { "fnInit": function (oSettings, nPaging, fnCallbackDraw) { .... }, "fnUpdate": function (oSettings, fnCallbackDraw) { .... } }; &lt;/...
javascript jquery
[3, 5]
3,022,752
3,022,753
Click event on dynamically created link buttons not working
<p>I want to give option to upload multiple files and then download it. I am creating link buttons Dynamically like: </p> <pre><code> private void AddLinkButtons() { string[] fileNames = (string[])Session["fileNames"]; string[] fileUrls = (string[])Session["fileUrls"]; if (fileNames != null) { ...
c# asp.net
[0, 9]
1,744,577
1,744,578
Display Registration details in Website from Database
<p>Hi i am using a website application for registration, in that application i have inserted contols like label boxes and text boxes... And i stored these values in database...</p> <p>now i have to display the details only without controls in seperate form and the details should take from that database...</p> <p>How...
c# asp.net
[0, 9]
5,116,174
5,116,175
The process cannot access the file, because it is being used by another process
<p>I am creating a file in local drive with content by using below code. </p> <pre><code>File.WriteAllLines(path, contents); </code></pre> <p>I am attaching this file to a mail and sending acrross the team. Once mail sent I need to delete the file, to delete the file I am using below code but I am getting runtime err...
c# asp.net
[0, 9]
2,006,742
2,006,743
Created API for twitter to display latest 5 posts
<p>is there created API for twitter to display latest 5 posts for non-wordpress website? I got website coded in php/html/css (without cms), and I need to add twitter box, where there is shown latest 5 tweets, from user. Is there any created API for this already?</p>
php javascript
[2, 3]
2,711,991
2,711,992
How do I target a jquery click function where identical links exist (ie within a php foreach)?
<p>Similar to what Facebook does on its newsfeed, I want to allow commenting on numerous feed items, which I'm pulling via a php foreach statement. This is creating identical classes. So when I click .show_comments it activates everything.</p> <p>I went through SO and found something akin to what you see below...but...
javascript jquery
[3, 5]
5,125,537
5,125,538
Using variables in .css() with Jquery
<p>I'm running into a rather odd problem that I just can't seem to solve. I'm trying to use a variable in the .css() but it doesn't work. However if I type in 'background-color' directly within the .css() call it does. What gives?</p> <pre><code>var css = that.data('css'); var targets = that.data('targets'); var value...
javascript jquery
[3, 5]
594,331
594,332
how to convert time in string format into date time format using C#
<p>i have textbox that accepts time format like this 12:40 PM but would like to convert it into time format like this 12:40:00 basically without the PM or AM. Here is what i have so far:</p> <pre><code>string StartTime = ((TextBox)TestDV.FindControl("txtBST")).Text.ToString(); </code></pre> <p>thanks</p>
c# asp.net
[0, 9]
5,985,617
5,985,618
how to write client side events functions for the combobox items
<pre><code>&lt;dx:ASPxComboBox ID="ASPxComboBox2" runat="server" ClientIDMode="AutoID" SelectedIndex="-1" onselectedindexchanged="ASPxComboBox1_SelectedIndexChanged1" &gt; &lt;ClientSideEvents SelectedIndexChanged="function(s, e) { grid.SelectRows();}" /&gt; ...
c# asp.net
[0, 9]
4,609,819
4,609,820
How to enable the default highlight menus in android webview?
<p>How to enable the default text highlights menu like: Copy/Paste/Search/Share in android webview ?</p> <p><img src="http://i.stack.imgur.com/Jt89M.png" alt="enter image description here"></p>
java android
[1, 4]
4,317,653
4,317,654
javascript/jQuery: Clicking anywhere to trigger a function but on a particular button
<p>I want to trigger a function by clicking anywhere except an asp.net button.</p> <pre><code>&lt;script&gt; $(document).ready(function () { $(document).click(function () { Test(); }); }); </code></pre> <p>and</p> <pre><code>&lt;asp:Button ID="btnSave" runat="server" Text="SaveCha...
javascript jquery asp.net
[3, 5, 9]
657,350
657,351
Recentering divs on window resize gets me "Uncaught TypeErrors"
<p>I have got a modal window set-up on my page that works fine, but needs repositioning on window resize in order to stay centred. Unfortunately, I simply get the error:</p> <blockquote> <p>Uncaught TypeError: Object # has no method 'outerHeight'</p> </blockquote> <p>Am I using "this" incorrectly?</p> <pre><code> ...
javascript jquery
[3, 5]
129,965
129,966
What does this error code mean ( code attached)
<pre><code>@Override public void onCancel() { // TODO Auto-generated method stub </code></pre> <p>ERROR:The method onCancel() of type SoftKeyboard must override a superclass method SoftKeyboard.java /EmotePractice/src/com/emote line 691 Java Problem</p> <p>Superclass?? I thought @Override was mea...
java android
[1, 4]
36,340
36,341
Need help with jquery/javascript setInterval
<p>Currently im developing a user notification alert message function.</p> <p>I managed to use setInterval to control my Ajax call (to check if there's any notifcation msg for the user). But my problem is that I only wanted the notfication message only appear once on the page (Now it displays multiple notification al...
javascript jquery
[3, 5]
3,603,553
3,603,554
What's the relationship between c# and asp.net?
<p>Are the two the same thing or ?</p>
c# asp.net
[0, 9]
3,416,478
3,416,479
Change element style after .get() success
<p>I'm new to JS. I'm trying to change button's background-color after .get() success.</p> <p>Here is example: <a href="http://jsfiddle.net/csTpG/95/" rel="nofollow">http://jsfiddle.net/csTpG/95/</a></p> <p>What's wrong with my code?</p> <hr> <pre><code>$('.add').click(function() { var productID = $(this).attr(...
javascript jquery
[3, 5]
5,052,817
5,052,818
Upload multiple photos to facebook from android (facebook sdk 3)
<p>I am trying to upload all photos in my sdcard folder to facebook album . I have written the following code for the same. is the list of all the image files. But, programs runs in to exception. I am not able to figure out the reason. Any inputs in this regard are welcome .</p> <pre><code> RequestBatch requestBat...
java android
[1, 4]
4,366,968
4,366,969
Javascript for check and uncheck detection for the checkbox list control
<p>I want to write javascript logic for the check box list asp.net control, that if some condition in check box selection is true then select all, else deselect all. How to figure out this check uncheck and there value using javascript? </p>
javascript asp.net
[3, 9]
3,422,440
3,422,441
serialize and post array to a process file
<p>I'm trying to post an array to another file to be processed. The array is below and it populates rows properly. I have it initialized at the beginning of the script tag to make it global.<br> In javascript:</p> <pre><code>var locationsall = new Array(); locationsall[counter] = new Array(); locationsall[counter][0]...
php javascript
[2, 3]
4,131,205
4,131,206
How to integrate quickbook into asp.net c# website?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/7083744/what-is-the-best-way-to-integrate-with-quickbooks-from-c-sharp-code">What is the best way to integrate with quickbooks from C# code?</a> </p> </blockquote> <p>I have created a asp.net website and I want ...
c# asp.net
[0, 9]
1,707,636
1,707,637
Handling threads in Android
<p>I have an application which has some background processes, like downloading an XML from a server and parsing it, and I am performing these tasks in Threads.</p> <p>The problem comes when sometimes a thread does not get CPU time for long time, it could be anytime between 15 minutes to some hours, and then the thread...
java android
[1, 4]
3,976,622
3,976,623
problem with jquery
<p>I'm beginner in jquery.this is my first application.</p> <pre><code>&lt;head&gt; &lt;title&gt;Untitled Document&lt;/title&gt; &lt;script type="text/javascript" src="../jquery-1.6.2.min.js"&gt;&lt;/script&gt; &lt;script type=”text/javascript”&gt; $(document).ready(function(){ $("a").click(function(){...
javascript jquery
[3, 5]
4,571,632
4,571,633
using SQL to Create a Login page in Visual Studio 2010
<p>I am a beginner in .Net. I created a login page with an SQL connection in Visual Studio 2008. But I want to use the code in Visual Studio 2010.</p> <p>Please help me.</p>
c# asp.net
[0, 9]
504,506
504,507
If body class equals X then do something?
<p>I have this code running from an external script for an image slider for every page on a site. </p> <pre><code>$(document).ready(function() { $("#slideshow").show(); $('#slider1').anythingSlider({ buildNavigation: false, delay: 8000 }) </code></pre> <p>On one of the pages I don't want the image sli...
javascript jquery
[3, 5]
4,155,392
4,155,393
How to find index based on sorted elements among siblings.?
<pre><code>&lt;div id="container"&gt; &lt;div class="aa"&gt;&lt;/div&gt; &lt;div class="bb"&gt;&lt;/div&gt; &lt;div class="aa"&gt;&lt;/div&gt; &lt;div class="bb"&gt;&lt;/div&gt; &lt;div class="bb"&gt;&lt;/div&gt; &lt;div class="bb"&gt;&lt;/div&gt; &lt;div class="bb"&gt;&lt;/div&gt; &lt;/div&gt; </code></p...
javascript jquery
[3, 5]
1,804,419
1,804,420
in $.extend class how to call internal functions?
<p>Why it doesn't work,it say its not a function,why can't I call myalert() from myalert2?? How to do??</p> <pre><code>var sheepclass = function(handler) { this.handler = $.extend({ 'sizes': 'thin', 'eat': 'grass', 'color': 'white', myalert: function() { alert('Hello Wor...
javascript jquery
[3, 5]
4,428,973
4,428,974
How to check if VERTEX ARRAY is clockwise?
<p><strong>Solved</strong>, used this code:</p> <pre><code>if ( !isClockwise(TempVectArray) ) { Collections.reverse(TempVectArray); } </code></pre> <p>...</p> <pre><code>private boolean isClockwise(ArrayList&lt;Vec2&gt; arl){ Iterator&lt;Vec2&gt; it = arl.iterator(); Vec2 pt1 = (Vec2)it.next(); Vec2 firs...
java android
[1, 4]
2,426,166
2,426,167
How can I tweet in twitter account from an android imulator?
<p>Here, I have an edit text and a button, I want to tweet what i write something in edit text after clicking the button.</p>
java android
[1, 4]
2,594,700
2,594,701
Android Getting value from an Integer arraylist becomes a number
<p>I am new to Android and from what I read here most of the question goes to Imageview setting image. Here is my problem same as ImageView errors Ive created a arraylist of Integer because of some function needed Int List rather than String List. Basically like most of function I created it like this one </p> <pre><c...
java android
[1, 4]
285,767
285,768
.prevUntil not working as expected
<p>what am I doing wrong in this code..</p> <p>I should get the class name of the previous sibling using this code.. but I am getting undefined..where am I going wrong</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta charset=utf-8 /&gt; &lt;title&gt;JprevUntil&lt;/title&gt; &lt;script type=...
javascript jquery
[3, 5]
1,408,409
1,408,410
Android: resources file
<p>I have spent ages trying to find out how to get the directory of the resources file (<code>res/raw</code>) for months now... I just can't find out how to do it...</p> <p>I'm attempting to get the directory of <code>res/raw</code> so that I can use <code>listFiles()</code> to make an array containing all the files i...
java android
[1, 4]
3,149,877
3,149,878
Javascript Error onload image fadeIn
<p>I am getting an inconsistent error with my script. Often times everything works fine, however, every now and then I am getting the following error: <code>ReferenceError: fadeIn is not defined</code></p> <p>Here is the relevant code:</p> <p>In the <code>&lt;head&gt;</code></p> <pre><code> &lt;script type="text/...
javascript jquery
[3, 5]
1,760,461
1,760,462
define function within another function in javascript
<pre><code>function foo(a) { if (/*some condition*/) { // perform task 1 // perform task 3 } else { // perform task 2 // perform task 3 } } </code></pre> <p>I have a function whose structure is similar to the above. I want to abstract <em>task 3</em> into a function, <co...
javascript jquery
[3, 5]
3,064,534
3,064,535
Preloader for dynamic content
<p>I have dynamic page which takes about <strong>8 seconds</strong> to load searched data.</p> <p>Problem is, all <strong>browsers remain on old page</strong> for those 8 secs &amp; <strong>show dynamic page</strong> only after it</p> <p><strong>loads completely.</strong></p> <p>What I want is <strong>preloder image...
javascript jquery
[3, 5]
2,158,279
2,158,280
passing values from java script to php
<p>can any one please help how to get the values from the javascript to php other than while using submit button.</p> <p>scenario: i am searching for record, if the record found then, i need confrim alert asking to continue or not, if he click continue how can i say he selected continue</p>
php javascript
[2, 3]
2,048,127
2,048,128
issue calling JavaScript function from PHP
<p>basically I am trying to call a javascript function from my PHP and I am using code I know works in other situations however here is it not and I am at a loss as to why? </p> <p>It may be something stupid as I have been staring at this screen for a long time :)</p> <p>here is where I call the function:</p> <pre><...
php javascript
[2, 3]
665,682
665,683
PHP While Loop and jQuery
<p>I have created a while loop that selects random images from from my server and posts it. Now I want to add some jquery code and allow me to click on one of the images and run the slideUp() function in jQuery. Here is my problem. I can click on the first image produced in the while loop but when I click on the second...
php jquery
[2, 5]
4,105,000
4,105,001
jQuery, how do I call a url by checking a checkbox
<p>I have this:</p> <pre><code>&lt;span id="social"&gt; Facebook: &lt;input id="id_connected_to_facebook" type="checkbox" name="connected_to_facebook"&gt; &lt;br&gt; Twitter: &lt;input id="id_connected_to_twitter" type="checkbox" name="connected_to_twitter"&gt; &lt;br&gt; &lt;/span&gt; </code><...
javascript jquery
[3, 5]
2,310,041
2,310,042
wrap plain text inside a div before another html element
<p>Ok, that probably doesn't make a ton of sense... let me illustrate:</p> <p><code>&lt;div class="csl-entry"&gt; lorem ipsum yada yada yada... &lt;a title="some title" rel="external" href="http://google.com"&gt;Google&lt;/a&gt; &lt;/div&gt;</code></p> <p>I would like to wrap the "lorem ipsum yada yada yada..." in a ...
php javascript
[2, 3]
2,875,973
2,875,974
Why is jQuery .live() not working with my .ajaxForm() invocation here?
<p>I have some code that looks like the following:</p> <pre><code>jQuery("[name='myform']").live('submit', function() { $(this).ajaxForm({ target: '#someform', beforeSerialize: function(form, options) { alert("BeforeSerialize happening."); jQuery('form[name=myform] input[type=submit]').attr('di...
javascript jquery
[3, 5]
1,041,209
1,041,210
Dynamically changing photo with dropdown
<p>I am new to PHP and am trying to figure out how to code some specific functionality. I have a product page that shows a photo and has two dropdown menus, one for size and one for color. What I would like to do is when the page first loads I set a variable that has the default product SKU. When the menus change I wan...
php javascript jquery
[2, 3, 5]
3,789,536
3,789,537
Android: setPictureFormat() error
<p>I'm a beginner in Andoird, currently trying to write an application using the Camera class of Android in Eclipse. The problem is when I call the parameters.setPictureFormat() method with ImageFormat.JPEG as the argument, I get an error.</p> <p>Here's how my code looks like:</p> <pre><code> public void surfaceChan...
java android
[1, 4]
891,805
891,806
Jasmine does not add our .js file
<p>Instially I add <code>gem "jasmine"</code> this line in gem file and i execute this two cmds</p> <ul> <li><code>bundle</code></li> <li><code>rails generate jasmine:install</code> </li> </ul> <p>its work fine. what my problem is, my <code>testing.js</code> file does not add in to the jasmine file.</p> <pre><code>d...
javascript jquery
[3, 5]
3,110,751
3,110,752
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>&lt;head&gt;</code></p> <pre><code>&lt;script type="text/javascript" src="js/jquery-1.5.js"&gt;&lt;/script&gt; </code></pre>
javascript jquery
[3, 5]
3,611,406
3,611,407
What is VaryByParam in asp.net?
<p>while i am working on cache, in page directive something like VaryByParm what is this can anybody explain me. Thank you</p>
c# asp.net
[0, 9]
2,116,686
2,116,687
Needing to have sms delayed before sending
<p>I know this has been asked multiple times, but I am having problems making it work or figuring out what will work best. I need to have the sms wait 2-3 seconds between each message before sending another message. I have looked at and tried handlers, timers and thread sleep and I am not sure which one would be the be...
java android
[1, 4]
4,708,558
4,708,559
text between anchor elements in a paragraph
<p>I have a paragraph with text and anchors.</p> <p>Given an anchor <code>$myAnchor</code> within the paragraph, I can get the immediately following one: </p> <blockquote> <p><code>$nextAnchor = $myAnchor.next('a');</code></p> </blockquote> <p>How do I get the text/HTML between these two anchors?</p>
javascript jquery
[3, 5]
4,064,420
4,064,421
passing parameter from aspx to javascript issue
<p>I write code in asp.net backend to pass parameter, however, I found that it does not work if the parameter is so long. In the backend:</p> <pre><code>folderList.InnerHtml += "&lt;span onclick='AttachId(" + folder.Id + ")'&gt;" + folder.DisplayName + "&lt;/span&gt;"; </code></pre> <p>In the frontend:</p> <pre><cod...
c# javascript asp.net
[0, 3, 9]
4,847,624
4,847,625
Prevent stacking of AJAX-requests
<p>I've got a problem which I can't seem to solve. </p> <p>I'm currently implementing a an AJAX-function similar to the one Twitter uses - that fetch new posts on scrolling.</p> <p>The jQuery looks something like this: </p> <pre><code> $(window).scroll(function(){ if($(window).scrollTop() == $(doc...
php javascript jquery
[2, 3, 5]
5,162,861
5,162,862
Javascript forward backward buttons
<p>I'm using the s3Slider javascript slideshow on the homepage of a site I am developing:</p> <p><a href="http://alexisparkinn.com/" rel="nofollow">http://alexisparkinn.com/</a></p> <p>I really like this slideshow but it has no way to enable the user to go to the next or previous image.</p> <p>How can I add these bu...
javascript jquery
[3, 5]
800,539
800,540
jQuery underscore notation
<p>Could anybody give me an explanation of the underscore in a jQuery plugin function? I have no idea of what "<em>_</em>" means. Example code below:</p> <pre><code>$.fn.bgStretch=function(o){ this.each(function(){ var th=$(this), data=th.data('bgStretch'), _={ align...
javascript jquery
[3, 5]
1,120,606
1,120,607
Event to save data in ViewState before postback
<p>I am looking for an event firing before a DropdownList auto-postback to save Listbox items (populated with JS) in the ViewState.</p> <p>I tried the <code>OnSelectedIndexChanged</code> event but it's fired too late.</p> <p>Can this be done, and how?</p>
c# asp.net
[0, 9]
1,840,758
1,840,759
tinyMCE Editor: unable to open Edit HTML Source Option
<p>I have integrated tinyMCE editor in my JSP page.All option of Editor are working except Edit Source Option.</p> <p>I don't understand why it is not working. Additionally,How to open any html page in tinyMCE editor.is there is any facilities provided to it or NOT?</p> <p>i have imported all js files required for fu...
javascript jquery
[3, 5]
3,869,878
3,869,879
Popup window without address & menu bar on click of hyperlinkfield in gridview
<p>I am developing a screen in c# dot net where i have a search screen which contains a hyperlink field containing some querystring values, on clik of hyperlink field i have to open a pop up window which is working fine however i dont want adress bar or menu items to be displayed in pop up window also size should be sp...
javascript asp.net
[3, 9]
3,690,233
3,690,234
How to find readonly textfields using jquery
<p>How can i find readonly textfields in a form..i treied this..but it is not working..</p> <pre><code>$('input[readonly="readonly"]').each(function() { $(this).attr('tabindex', '-1'); } </code></pre>
javascript jquery
[3, 5]
3,106,614
3,106,615
Android: Unhandled exception type IOException Error
<p>I am total noob at Android dev. I am still learning, and I am on very first step of my app dev.</p> <p>I have this code working and it runs fine or regular Java, now I am trying to implement to Android OS.</p> <p>In my code where it says <code>TEST.openStream()</code> I get <code>Unhandled exception type IOExcepti...
java android
[1, 4]
7,913
7,914
How to remove a div if it contains a certain string in it?
<p>there's a list of items on a page, some blank, with one example being:</p> <pre><code>&lt;div class="item itemask"&gt; &lt;div class="tophead"&gt; &lt;div class="itemnumber"&gt;30&lt;/div&gt; &lt;a class="article" href=""&gt;&lt;/a&gt; &lt;/div&gt; &lt;div class="bottomhead"&gt; points by &lt;a class...
javascript jquery
[3, 5]
1,332,427
1,332,428
how to play a sound in asp.net web page?
<p>I want to play some sounds in my web page once I click a button . this is my code but it shows an error.</p> <pre><code>SoundPlayer x = new SoundPlayer(); x.SoundLocation = "WindowsBalloon.wav"; //x.Play(); x.PlaySync(); </code></pre> <p>error: Please be sure a sound file exists at the specified location.</p> <p>...
c# asp.net
[0, 9]
4,965,227
4,965,228
how to call an ASP.NET c# method using javascript
<p>Does anyone know how to call a server-side c# method using javascript? What i need to do is to stop imports if Cancel is chosen or to continue importing if ok is chosen. I am using visual studio 2010 and c# as my programming lanaguage</p> <p>This is my code:</p> <pre><code>private void AlertWithConfirmation() ...
c# javascript asp.net
[0, 3, 9]
4,843,233
4,843,234
finding all the HtmlInputCheckBox controls with master.pages with recursion
<p>I thought this would work. But it's not working. It's never getting inside of if (c is HtmlInputCheckBox)</p> <pre><code>private string GetAllCheckBoxes(ControlCollection controls) { StringBuilder sb = new StringBuilder(); foreach (Control c in controls) { if (c.HasControls()) { ...
c# asp.net
[0, 9]
1,992,013
1,992,014
Posting information and retrieving results using Ajax
<p>I would like to using (Ajax) PHP or Javascript, Post information to <a href="http://en.lernu.net/cgi-bin/vortaro.pl" rel="nofollow">http://en.lernu.net/cgi-bin/vortaro.pl</a> then read the results back (Not from lernu.net).</p> <p>I am trying to learn Ajax, PHP + Javascript, Nobody there know's how to help me. I...
php javascript
[2, 3]
4,439,777
4,439,778
Closing a tab after server side script has executed
<p>I need a little assistance. I want to close a firefox tab after a classic asp script has executed which is run at specific times of the day automatically.</p> <p>I have tried the following code without success:</p> <pre><code>&lt;% ASP SCRIPT %&gt; &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
javascript jquery
[3, 5]
801,490
801,491
How to detect Ctrl + Mouse dblckick using jquery
<p>I want to detect event like <code>Ctrl + DblClick</code> using jQuery. For <code>dblclick</code> I already have dblclick event. Is it possible to recognize the event without setting flag on keypress event?</p>
javascript jquery
[3, 5]
4,311,402
4,311,403
btnAdd_Click fires when i press F5
<p>Hi I've a simple code to insert data into db in button click event. It is executing fine and insert data into db. After inserting data if i press f5 button it is again inserting a new row into db with the same values.</p> <p>Button click event fires on each f5 button (refresh)</p> <p>Wat is the problem?</p> <p>Th...
c# asp.net
[0, 9]
4,375,088
4,375,089
what is '.tipN' sign in knockout js?
<pre><code>var InitTipsy = function () { $('.tipN').tipsy({ gravity: 'n', fade: true });} </code></pre> <p>What is the meaning of <code>'.sign'</code>?</p>
javascript jquery asp.net
[3, 5, 9]
5,099,948
5,099,949
Java vs C# - AddActionListener vs event subscription
<p>Very simple question from one somewhat new to Java: when adding an event handler (or whatever it is called in Java) to a Control, MUST it be an object? I mean, in C# I can do </p> <pre><code>control.event += System.eventHandler(methodThatHandlesEvent) </code></pre> <p>Sure, that's because we have delegate types in...
c# java
[0, 1]
5,603,530
5,603,531
Javascript code to read java variable value
<ul> <li>I have a session variable in java file.(TestConnection.java)</li> </ul> <blockquote> <p>session.setAttribute("CONNECTION_DBNAME", dbName);</p> </blockquote> <ul> <li>How to read CONNECTION_DBNAME value into javascript file.(utility.js)</li> </ul>
java javascript
[1, 3]
2,774,624
2,774,625
fields not allowed in C# interface
<p>There are quite a lot of deviations in Java and C# languages, one of which I observed was we cannot add variable constants in an interface. Being from Java background I got baffled to see compilation error when I tried this.</p> <p>Does anyone has explanation why it is so?</p>
c# java
[0, 1]
4,602,315
4,602,316
Accessing 2 values from jquery and setiing those values to different variable
<p>using html,jquery,and jsp using autocomplete am fecting name from my database using jsp and jquery, input in textbox t1: if i press A it will fetch all the data starts from A from my database and displays in drop down through this function am sending my input to jsp </p> <pre><code>&lt;script&gt; jQuery(functio...
javascript jquery
[3, 5]
4,639,776
4,639,777
Scrolling a Page after Validation showing Validation Pop Up
<p>i have a button on the bottom of the page OnClick it validates the form fields and if there is no valid field it displays a pop up message to enter the required fields using asp.net Validation Summary Control. I want that when it showing the pop up once user click on OK buttom of pop up window then it should scroll ...
javascript jquery asp.net
[3, 5, 9]
2,114,458
2,114,459
jquery selector on some element
<p>I have a an element as shown below:</p> <pre><code> &lt;tr id="test1" class="class-of-part1"&gt; &lt;td&gt;...&lt;/td&gt; &lt;/tr&gt; </code></pre> <p>I have to select the the element with id 'test1' and class which begin with 'class-of'. how to select with jquery selector? </p>
javascript jquery
[3, 5]
1,486,987
1,486,988
Can I redirect the Admin->abc.aspx to rootfolder->index.aspx using javascript?
<p>Just explaining my question in short.</p> <p>I have asp.net website with root structure as following</p> <pre><code>root Directory-&gt; Admin abc.aspx xyz.aspx index.aspx </code></pre> <p>Now I want to redirect from <code>abc.aspx</code> to <code>index.aspx</code>.</p> <p>I'm using JavaSc...
javascript asp.net
[3, 9]
666,096
666,097
if the IF statement is true view new activity
<pre><code> if(res.equals("5510")) checkback.setText("Correct version"); // else checkback.setText("Incorrect version, please update. \n Your current version is " + getString(R.string.versioncode)); </code></pre> <p>How do i get ...
java android
[1, 4]
1,346,284
1,346,285
Double-tap behaviour in android stock browser
<p>I have a page here: </p> <p><a href="http://lonbus.net" rel="nofollow">http://lonbus.net</a></p> <p>That I have disabled double-tap zoom on mobile browsers via the inclusdion of the line: </p> <pre><code>&lt;meta name="viewport" content="width=device-width, user-scalable=no" /&gt; </code></pre> <p>This was done ...
javascript android
[3, 4]
42,577
42,578
Minimalizing namespaces for custom functions
<p>I have a StringUtilities.cs file in the CommonFunctions Project that holds a UppercaseFirst function that Uppercases the first word in a string. Currently in the .aspx.cs in a separate Project (in the same Solution) that is utilizing this function is called using <strong>MyProject.CommonFunctions.StringUtilities.Up...
c# asp.net
[0, 9]
1,443,947
1,443,948
How i can i delete a selected item out of a listbox using php,javascript?
<p>I got 2 buttons. One is to add an item to the listbox. The other is to delete something out of the listbox. The filling happens with an array. So what I need to know is: how can i delete a selected item out of the listbox?</p> <p>Thanks Stijn</p>
php javascript
[2, 3]
899,784
899,785
jquery ajax file upload , parameters to be sent
<pre><code>&lt;form action="upload_file.php" method="post" enctype="multipart/form-data"&gt; </code></pre> <p>Above is the line for a form to upload a file using php.</p> <p>If i use the form as I wrote above I can get the various properties of the file to be uploaded from upload_file.php page. </p> <p>Using jquery ...
php jquery
[2, 5]
1,648,234
1,648,235
Issue's containing, "onClick" and a getIntExtra
<p>I am having issues getting this to work, here is what I am trying to get to: an onClickListener that will get the state of the radio and return a toast. But I am messing up somewhere. I am having an issue with the intent, anyone able to shed some light on this?the intent is not able to be resolved. (Yes, I obviously...
java android
[1, 4]
3,501,095
3,501,096
parsingproblem in android saxparsing
<pre><code>@Override public void characters(char ch[], int start, int length) throws SAXException { super.characters(ch, start, length); String strCharacters = new String(ch,start,length); if (itemFound==true){ // "item" tag found, it's item's parameter switch(currentState){ ...
java android
[1, 4]
1,428,663
1,428,664
how to check html tags and the replace content between those tags?
<p>Here is my code: <a href="http://jsfiddle.net/zEXrq/8/" rel="nofollow">http://jsfiddle.net/zEXrq/8/</a></p> <p>Also I need to check <code>&lt;li&gt;</code> tag and <code>&lt;h3&gt;</code> tags.</p> <p>Is it possible to check other words into those tags like <code>&lt;a onclick="word_desc(23); classChange(1, 1);" i...
php javascript
[2, 3]
5,899,763
5,899,764
Changing the behavior of a button depending on whether an activity is launched
<p>I have a transparent activity that gets launched on top of another activity. For the purposes of clarity, lets say that the transparent activity is called CommentsView, which is launched from an activity called ArticleView. </p> <p>At the bottom of the ArticleView activity is a button that launches the CommentsView...
java android
[1, 4]
3,716,896
3,716,897
Too many jquery plugins?
<p>I'm developing a website, but I realized that, in addition to the link to my main javascript file, and the link to the jquery file, it's beginning to look like I'm going to have links to three or more plugins also. I'm just wondering if this is good practice? The site I'm building is a web app, so I need a lot of fu...
javascript jquery
[3, 5]
916,044
916,045
Problem when I place javascript in $(document).ready
<p>Hi I am having following code working fine when placed without $(document).ready </p> <pre><code> &lt;asp:TextBox ID="TextBox_FirstName" runat="server"&gt;&lt;/asp:TextBox&gt; &lt;asp:TextBox ID="TextBox_LastName" runat="server"&gt;&lt;/asp:TextBox&gt; &lt;asp:Button ID="txtSubmit" Text="Validate" runat="server" ...
javascript jquery
[3, 5]
4,642,338
4,642,339
Request.UrlReferrer is null when redirected to that particular .aspx page
<p>After approve the customer I want to redirect to Admin_View_Customers.aspx page. For that purpose i wrote the following code. </p> <p>ScriptManager.RegisterStartupScript(this, GetType(), "message", "alert('The selected user has been Approved successfully.');location.href = 'Admin_View_Customers.aspx';", true);...
c# asp.net
[0, 9]
2,766,889
2,766,890
.load() jQuery with div selector causing <script> to be overlooked
<p>so I am trying to load in content with ajax jQuery and here is my script:</p> <pre><code>$('#ajaxloadcontent').load(url+' #ajaxloadcontent'); </code></pre> <p>I've done some research and learned that when a specific selector is used for a .load() function, #ajaxloadcontent, that s on that page that is being loaded...
javascript jquery
[3, 5]
192,527
192,528
how to get HiddenField Value from ascx.cs page to aspx.cs page
<p>my ascx code:</p> <pre><code>&lt;%@ Control Language="C#" AutoEventWireup="true" CodeFile="Demo.ascx.cs" Inherits="Demo" %&gt; &lt;asp:HiddenField ID="hidden1" runat="server" Value=""/&gt; &lt;asp:Label ID="lbl1" runat="server" Text="Hiii"&gt;&lt;/asp:Label&gt; </code></pre> <p>my ascx.cs code :</p> <pre><code>pr...
c# asp.net
[0, 9]