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 |
|---|---|---|---|---|---|
3,954,512 | 3,954,513 | JavaScript organization chart without waste gaps between nodes | <p>I want to make an organization tree by using JavaScript. The tree is needed a function toggle display nodes by clicking.
I found some usefull libralies below.</p>
<p>1.jQuery Org Chart</p>
<p><a href="http://th3silverlining.com/2011/12/01/jquery-org-chart-a-plugin-for-visualising-data-in-a-tree-like-structure/" r... | javascript jquery | [3, 5] |
3,885,470 | 3,885,471 | How do I make a list of items where each item has associated information in Android? | <p>How do I make a list of items where each item has associated information in Android?</p>
<p>For example, I want to be able to have a list of countries and then be able to click on the country and find the population, language, w/e associated with that country.</p>
<p>I found this the following link with shows how ... | java android | [1, 4] |
70,844 | 70,845 | HowTo reorder items in DataView object | <p>I have a DataView object with productID and productName,
i get all items from Products Table and store them in Cache.
I want to get items that user bought in order he bought them without using another query or joining tables.</p>
<p>ie.
Products DataView
1. Foo
2. Foo2
3. Foo3</p>
<p>Filtering to ProductsBoughtB... | c# asp.net | [0, 9] |
1,332,309 | 1,332,310 | redirect using javascript without flash | <p>I trying to do the following:</p>
<p>I want to redirect to another page using javascript, but I want the page (that we redirect to) to fade in instead of being redirect to aggressively. How can Iget that done using jquery? </p>
<p>I tried the following:</p>
<pre><code>$('.splash').hide();
$('.splash').fadeIn(200... | javascript jquery | [3, 5] |
65,355 | 65,356 | preview of another website not thumbnails in php and javascript | <p>I am in the process of creating a site where visitors can preview(not THUMBNAILS!) another url on mypage in an input text box and click on"preview" button-</p>
<p>I am using CURL from php to extract the contents of the site
and have divided my page into two halves one for accepting url and the other half which wil... | php javascript | [2, 3] |
1,349,115 | 1,349,116 | Jquery Queue Change in HTML? | <p>I have a piece of jquery code:</p>
<pre><code> $('#my_span_id').fadeOut(200).html(new_count).fadeIn(600);
</code></pre>
<p>My expectation is that this code would work as follows:
Fade out element in .2 seconds
Then change text instantly
Then fade in over .6 seconds</p>
<p>However it works like this:
Change text i... | javascript jquery | [3, 5] |
5,949,456 | 5,949,457 | Passing Array of string from C# application to C++ DLL | <pre><code>string []URL = {"www.facebook.com","www.orkut.com","www.yahoo.com"};
Int32 result = URL.Length;
SetPolicyURL( URL,result );
</code></pre>
<p>this is my C# code where i am trying to pass the array of string to C++ Dll which is imported like this</p>
<pre><code> [PreserveSig]
... | c# c++ | [0, 6] |
3,866,158 | 3,866,159 | null pointer exception in GeoPoint on android | <p>in my app i am storing latitude and longitude in a List as GeoPoint as follows:</p>
<p><code>List<GeoPoint>geo;</code></p>
<p>here i convert latitude and longitude into GeoPoint and store in list. </p>
<pre><code>GeoPoint tmp;
new GeoPoint((int) ( 9.909228086471558 * 1E6), (int) ( 78.10081958770752 * 1E6))... | java android | [1, 4] |
5,980,881 | 5,980,882 | Red Black Tree and Multimap | <p>In many compilers, Data structures such as<code>Set</code>, <code>Map</code>, <code>Multimap</code> use Red-Black-Trees in behind. And a <code>multimap</code> stores multiple and duplicated keys.</p>
<blockquote>
<p>"A red-black-tree stores keys uniquely and binds just one DataValue to
each key"</p>
</blockquot... | c# java c++ | [0, 1, 6] |
5,487,465 | 5,487,466 | Why are backward slashes removed from querystring - ASP.NET & Javascript | <p>I am trying to generate a URL that contains a UNC path as one of the query string variables. The URL will open in a pop up window when an ASP.NET button control is clicked by the user. When the clicks the button, the backwards slashes are removed from the UNC path causing the page to break.</p>
<p>The button rend... | c# asp.net javascript | [0, 9, 3] |
971,034 | 971,035 | JQuery Killing Function | <p>I'm new to JQuery, so I'm a little confused here. I have a button that, onclick, runs this function. When the JQuery is commented out, the alert goes off when the button is clicked. But with the JQuery, nothing is alerted when the button is clicked. What am I doing incorrectly?</p>
<pre><code><script type="text/... | php javascript jquery | [2, 3, 5] |
1,939,326 | 1,939,327 | How to let Username column in the GridView to be opened in the Outlook? | <p>I developed a web-based training matrix that shows the training record for each employee in each division in my department in the company. The matrix will show many columns such as the employee name, username, job title... etc. what I want now is to make the username for each employee to be clickable which means whe... | c# asp.net | [0, 9] |
5,931,916 | 5,931,917 | pass php variable value to javascript | <p>Im trying to pass the value of a php variable into javascript but i just cant get it to work. Am I doing anything wrong? Below is the line of code I'm working with.</p>
<pre><code>var dist = parseInt("<?php echo json_encode($distance); ?>");
</code></pre>
| php javascript | [2, 3] |
4,823,820 | 4,823,821 | Script sometimes delays page load, how can I test/resolve? | <p>I have a website where sometimes it loads quickly, however sometimes it seems as though the page has stopped loading half way through, possibly due to a script.</p>
<p>The website is <a href="http://www.pinspired.com" rel="nofollow">http://www.pinspired.com</a> - The tabbed sidebar on the right is the problem. I am... | javascript jquery | [3, 5] |
1,587,020 | 1,587,021 | executing runOnUiThread on a seperate class. | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/7860384/android-how-to-runonuithread-in-other-class">Android how to runOnUiThread in other class?</a> </p>
</blockquote>
<p>My Asyn Classes are a separate class file. </p>
<pre><code>public class AdamTask exten... | java android | [1, 4] |
1,213,370 | 1,213,371 | How can I implement a "Related questions" feature like the one on Stack Overflow? | <p>I want to implement a feature similar to the "Related Questions" list shown when asking a question on Stack Overflow. I like how the related questions populated when the Title is filled in.</p>
<p>I am using ASP.NET and jQuery. How might I implement something like this? Can anyone point to examples?</p>
<p>I looke... | asp.net jquery | [9, 5] |
755,230 | 755,231 | jQuery Uncaught TypeError: Cannot read property 'offsetLeft' of undefined | <p>This is causing me problems with getting the position of an element and then using it to position another element to the right of it. Any help would be appriciated.</p>
<p>I'm using jQuery 2.0.0 if that makes any difference</p>
<pre><code>(function($) {
$.fn.lavaLamp = function(o) {
o = $.extend({ fx: "linear", s... | javascript jquery | [3, 5] |
2,565,421 | 2,565,422 | Find a control style in C# | <p>I am setting certain controls using this</p>
<pre><code>divCorporateId.Style.Add("Visibility", "hidden");
</code></pre>
<p>How do i check what the value is in another method?</p>
<p>I thought something like:</p>
<pre><code>if (divCorporateId.Style........ == "hidden")
{
do something
}
</code></pre>
| c# asp.net | [0, 9] |
1,789,088 | 1,789,089 | Score counter using PHP and JavaScript | <p>If I want to add a score counter to my website. for example if the user answers a question then it will be saved in a database and the correct answer is already saved in the same database table. I want to make a comparison between the answers. if the answer is correct the score raises. </p>
<p>I am planning to cod... | php javascript | [2, 3] |
1,792,956 | 1,792,957 | how to make a floating menu being pin or unpin with the same onclick event | <p>I have a floating menu in my aspx page and now I want to be able to pin or unpin it with an on-click event,it move with scroll but sometimes I prefer that be fixed and not move, is there any way that i can do this?</p>
<p>this is my jquery for this floating menu:</p>
<pre><code> <script>
$float_speed ... | javascript jquery asp.net | [3, 5, 9] |
3,630,342 | 3,630,343 | Impossible to create file on external storage Android | <p>I want to create a .txt file and store it on the external storage of the Android phone. I added the permission to my Android Manifest. When I run the code it doesn't give me any error but the file is never created. Not sure what I am doing wrong.</p>
<pre><code>public void createExternalStoragePrivateFile(String da... | java android | [1, 4] |
5,841,715 | 5,841,716 | Request.QueryString and OutputCache in ASP.NET | <p>I have a problem with Request.QueryString that returns a null value. I think that is from OutputCache</p>
<p>I have in Default.aspx (with master file)</p>
<pre><code><%@ OutputCache Duration="60" VaryByParam="button" %>
<script runat="server">
protected void Page_Load( object sender, EventArgs e ) ... | c# asp.net | [0, 9] |
4,067,047 | 4,067,048 | Difference between assigning function to variable or not | <p>I have a worked a couple different projects and I have seen two different ways of creating jquery/javascript functions. </p>
<p>The first:</p>
<pre><code>function testFunction(){
};
</code></pre>
<p>The second:</p>
<pre><code>var testFunction = function (){
};
</code></pre>
<p>Is there a difference between th... | javascript jquery | [3, 5] |
10,852 | 10,853 | String[] in a textview | <p>Hello i have a problem about this i have to put string in a String[]
and i have to use setText(String[1]) i have an error , why ?</p>
| java android | [1, 4] |
4,482,390 | 4,482,391 | Why selector ":button" doesn't work with click event? | <p>Hi I'm using the Jquery selector ":button" but doesn't work combine with click event....</p>
<pre><code>$(":button").click(function () {
alert("click");
return false;
});
</code></pre>
| javascript jquery | [3, 5] |
2,851,433 | 2,851,434 | Android Applications Development without device | <p>This question might be silly...but still:
I would like to learn the Android SDK, now I dont have an Android based phone,Can I still develop for it even if I dont own an android phone?</p>
<p>thanks</p>
| java android | [1, 4] |
554,117 | 554,118 | JavaScript / jQuery setting a content to <div> not sticking after postback | <p>This is my code:</p>
<pre><code><asp:Button ID="btnSave" runat="server" OnClick="Save" CssClass="StylizedButton" resourcekey="btnSave" />
<div id="lbltot"></div>
</code></pre>
<p>JavaScript code: </p>
<pre><code>$(document).ready(function() {
$("#<%= btnSave.ClientID %>... | javascript jquery asp.net | [3, 5, 9] |
838,263 | 838,264 | jQuery plugin function call to its own method? | <p>I am using the following code below and essentially it takes an element as input (i.e.):</p>
<pre><code>$(#someDiv).Calculator();
</code></pre>
<p>but the problem is that I want to call this plugin's function within itself, but I don't know how to get an object/handle to itself to call the function. caching off "... | javascript jquery | [3, 5] |
3,440,847 | 3,440,848 | jQuery - Uncaught TypeError: Object 0,0 has no method 'split' - Trying to split() on object | <p>I'm just trying to split an <code>object</code> using commas as a delmiter. I know there is SOMETHING to split because when I output it by itself... it successfully says (over a loop) 1,1 and other numbers.</p>
<p>Here is a JSFiddle. <a href="http://jsfiddle.net/weka/5Xtwj/" rel="nofollow">http://jsfiddle.net/weka/... | javascript jquery | [3, 5] |
4,902,922 | 4,902,923 | Convert int to int[] | <p>I have a dataset and i am trying to get all the Ids of the datset into a datarow to finally save it in a int array. Its not working for me. It says <code>"Cannot implicitly convert from type int to int[]"</code></p>
<pre><code>Dataset ds = new BusinessLogic().Getsamples(MerchantID);
Datarow dr = ds.Tables[0].Rows[... | c# asp.net | [0, 9] |
1,217,337 | 1,217,338 | jQuery code placement suggestion | <p>I <em>know</em> this is going to sound like a dumb question, but as I'm learning jQuery by example, I'm finding that the placement of the scripts and functions varies a lot from example to example. Case in point, somewhere I read that the .onReady function should be placed below everything else to insure that the w... | php jquery | [2, 5] |
3,299,718 | 3,299,719 | How do you create files with JavaScript? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/6468517/force-download-of-datatext-plain-url">Force download of ‘data:text/plain’ URL</a><br>
<a href="http://stackoverflow.com/questions/8355750/create-a-downloadable-link-from-a-vriable-in-javascript">Create a d... | javascript jquery | [3, 5] |
5,478,789 | 5,478,790 | How can I conduct a post via Javascript from jQuery? | <p>I want to conduct a <code>POST</code> request via jQuery.</p>
<p>Say I have four Javascript variables: <code>var1</code>,<code>var2</code>,<code>var3</code>,<code>var4</code> and a endpoint of URL.</p>
<p>How would I <code>POST</code> via jQuery (I would rather not be using Ajax for the sake of this example).</p>
| javascript jquery | [3, 5] |
3,921,876 | 3,921,877 | Passing variables with jQuery | <p>i'm relatively new to jquery and javascript and am trying to pass
a unique id (number) into a flickr search function (jquery.flickr-1.0-js) like so, (number is the variable where i'm storing the unique id)</p>
<pre><code><script type="text/javascript" src="javascripts/jquery.flickr-1.0.js"></script>
&... | javascript jquery | [3, 5] |
1,246,501 | 1,246,502 | jQuery.ScrollTo - how to make bg to scroll slower than the rest? | <p>i'm new to coding , and to this site, i hope you'll help me! so i'm making horizontal website, i want to add scrolling background, that scrolls with other elements clicked, but slower
like for example <a href="http://hotdot.pro/en/" rel="nofollow">http://hotdot.pro/en/</a> . How do i do that, where do i pu... | javascript jquery | [3, 5] |
3,572,158 | 3,572,159 | Convert PHP's uniqid() to real time with JavaScript(jQuery) | <p>I'm looking for a very short code to perform this in JavaScript(jQuery):</p>
<pre><code>date("r",hexdec(substr(uniqid(),0,8)));
</code></pre>
<p>Please help. Thanks.</p>
| php javascript jquery | [2, 3, 5] |
4,556,510 | 4,556,511 | Remove a param from URL using Javascript | <p>I am using this function that works great to add and edit params</p>
<pre><code>function addOrUpdateUrlParam(name, value)
{
var href = window.location.href;
var regex = new RegExp("[&\\?]" + name + "=");
if(regex.test(href))
{
regex = new RegExp("([&\\?])" + name + "=\\d+");
wi... | php javascript | [2, 3] |
1,811,395 | 1,811,396 | Infinite carousel that slides on hover | <p>What I have at the moment is a slider that has an arrow on each side of it and on click it slides the container left and is set up so that it is infinite.</p>
<p>However, I now need to get it so that it works on hover as well but a lot more subtle, ie. slowly animates left or right on hover.</p>
<p>It has done my ... | javascript jquery | [3, 5] |
70,093 | 70,094 | Change Gridview Textbox's visible property true false on DropdownLists's Selected index change event using javascript not working | <p>I am making Gridview's Textbox visible true or false when user changes Dropdownlists selectedIndexchange event for that i have done following code</p>
<p>My .CS File code is as below:</p>
<pre><code>protected void gvTaskList_RowDataBound(object sender, GridViewRowEventArgs e)
{
try
{
... | javascript asp.net | [3, 9] |
568,941 | 568,942 | Can I get value as number? | <p>I have a few elements with numeric IDs. Each ID is in a separate span. Can I get that value as a number in order to increment? I tries as text but it does not seem to work...</p>
<pre><code>var lastVal = $(".myID:last").text();
var newVal = lastVal++;
Value <span class="myID">5</span>
</code></pre>
| javascript jquery | [3, 5] |
1,569,624 | 1,569,625 | Is it possible to Embed a PDF as HTML in an email? | <p>Basically i have a PDF and either want to frame it or convert it to HTML and display it within an email. I haven't found a working solution.</p>
<p>The following is an example that i am looking for, this works in a browser, but not email. Thanks</p>
<pre><code><object data="MyPDF.pdf" type="application/pdf" wid... | c# asp.net | [0, 9] |
3,939,951 | 3,939,952 | C++ to Java Code Conversion | <p>I have in C++</p>
<pre><code>r.bits[k] &= 0xFF ^ msk;
</code></pre>
<p>So in Java </p>
<pre><code>r.bits[k] = r.bits[k] & 0xFF,
</code></pre>
<p>but what is the meaning of the caret symbol? <code>msk</code> also will contain hexadecimal values.
I know the caret symbol is a type of pointer in C++ but not... | java c++ | [1, 6] |
3,120,687 | 3,120,688 | I got an error '+=' cannot be applied to operands of type 'System.DateTime' and 'System.EventHandler' while executing the following code | <pre><code>case "Calendar":
ctrl = new Calendar();
((Calendar)ctrl).ID = GetControlId(index, itemDetails);
((Calendar)ctrl).Attributes.Add("class", "chkClass" + parentIndex.ToString());
if (itemDetails.AttachEvent == true)
{
((Calendar)ctrl).SelectedDate += new EventHandler(Item_Selected... | c# asp.net | [0, 9] |
99,821 | 99,822 | handling a POST request | <p>I am trying to POST some data but I am not achieving what I need to. </p>
<p>No matter what <code>list-item</code> I click on, it is POSTing the value of the top most <code>list-item</code>. </p>
<p>this is the jquery function: </p>
<pre><code>$(".list-item-wrap a").click(function(){
$.post("display2.php", { ... | php javascript jquery | [2, 3, 5] |
252,037 | 252,038 | Simple jquery not working | <p>This is my first time using jquery, and I don't know why this simple section won't work. I have two buttons, one which hides a div and another which shows it, but the buttons keep doing a postback even though I have set the UseSubmitBehaviour to false. </p>
<pre><code><script type="text/javascript">
$(documen... | jquery asp.net | [5, 9] |
5,673,152 | 5,673,153 | How to set jQuery this when calling a function? | <p>Using jQuery, I set a link tag's click handler like this:</p>
<pre><code>$('#lnk').click(handleClick);
</code></pre>
<p>handleClick does something like this:</p>
<pre><code>function handleClick() {
var $this = $(this);
...
}
</code></pre>
<p>Now I have a need to directly call handleClick() outside of #ln... | javascript jquery | [3, 5] |
77,017 | 77,018 | password protected zip file in c# | <p>can Zippackage class be used to find content inside a password protected zip file,
if not can it be done without using any 3rd party api</p>
| c# asp.net | [0, 9] |
4,213,314 | 4,213,315 | Selecting specific range of columns with jquery | <p>I'm looking to select columns 2-4 on the 2nd row in a table. Does jquery have any sort of "and" function in their selectors? Or would I have to do something like this?</p>
<pre><code>$('#id tr:eq(1)').find('td:lt(5)').find('td:gt(1)')
</code></pre>
| javascript jquery | [3, 5] |
4,464,344 | 4,464,345 | jquery - who is my parent listener? | <pre><code>$(".cblClaimSources").on('click', ':checkbox', function (){
alert('im : '+ $(this).attr('id') + ' and my Parent listener is '+ ?????);
});
</code></pre>
<p>is it possible for the <code>insider $(this)</code> to know who is its listener parent ? [<code>$(".cblClaimSources")</code>] ?</p>
| javascript jquery | [3, 5] |
1,422,703 | 1,422,704 | jQuery.fn - Why isn't this working? | <p>What is the problem here? (Besides having redundant code). <code>$.getJSON</code> works as expected. However <code>$.postJSON</code> isn't working. I can inspect <code>$.fn</code> via firebug and sure enough postJSON is listed. However if I try to call it, I get a no function defined error. </p>
<pre><code>jQuery.f... | javascript jquery | [3, 5] |
5,838,878 | 5,838,879 | remove unbind attribute in jquery | <p>I disabled the click event of image using unbind method. But i dont know how to recover the click event again.
Here is the code,</p>
<p><code><img src="testimg.jpg" id="sub_form"></code></p>
<p>disabled the click event of above image using the code </p>
<pre><code>$('#sub_form').unbind('click');
</code></pr... | javascript jquery | [3, 5] |
2,425,201 | 2,425,202 | Fetch Data from page and display on same page without refreshes | <p>I have a condition that i have to post the different values of checkbox to <em>page2.php</em> as well as display the value on same page. How do i do?</p>
<p><strong>Page1:</strong></p>
<pre><code><form method="post" action="">
<input name="date1" type="checkbox" value="" id="1" />
<input name="date2... | php jquery | [2, 5] |
3,314,326 | 3,314,327 | How to send mail with attachment using JS? | <p>Can anybody tell me how to send mail with an attachment using JavaScript?</p>
| javascript jquery | [3, 5] |
4,896,257 | 4,896,258 | JQuery Lightbox compatible with IE6,7,8 and easy to customize? | <p>Looking for a Lightbox which is jQuery based, compatible with IEr (and naturally all major browsers), lightweight and easy to customize (like border thickness and color) and be used for submitting forms. The form is in the lightbox. Planning to use with ASP.NET (not that it matters but a plus if it works well with i... | asp.net javascript jquery | [9, 3, 5] |
384,255 | 384,256 | Datetime format in C# | <p>I have a <code>DateTime</code> saved in <code>dtmNextPayment</code>. I want that to showed in the label in mm/dd/yyyy way. I have tried using</p>
<p><code>lbltakeeffectdate.Text = dtmNextPayment.ToString("mm/dd/yyyy");</code></p>
<p>But month is always shown as 00. I have no idea why? Please let me know what shoul... | c# asp.net | [0, 9] |
3,940,766 | 3,940,767 | ASP.Net dropdown control loses state after being set dynamically through javascript | <p>I have an asp.net dropdownlist control. There are two ways it can be selected.</p>
<p>The first is through a button that sets the value in the drop-down list via javascript.</p>
<p>The second is by manually selecting the dropdownlist option.</p>
<p>Each of these methods work by themselves.</p>
<p>If I do the fir... | asp.net javascript | [9, 3] |
4,217,206 | 4,217,207 | Using the Popup Object | <p>It seems like The popup object cannot have a textbox or any elements that can be selected inside it?
Is there any other way on accomplishing this? </p>
| javascript asp.net | [3, 9] |
5,227,748 | 5,227,749 | does jquery .data return a function | <p>I am working in some code that was left behind by an old programmer. He uses </p>
<p><code>$.data(item, "onlyIfCheckShow")();</code></p>
<p>and I am wondering if jquery.data even returns a function. It seems quite odd.
Below is the data code pulled directly from the jquery.js:</p>
<pre><code>data: function( key, ... | javascript jquery | [3, 5] |
3,735,872 | 3,735,873 | looping function every second | <p>Im making a countdown timer and I want the time to refresh every second. Im using setInterval but it only seems to be running once instead of every second. What is wrong with my code?</p>
<pre><code>var countDown = setInterval(function(){
$('#days').val(daysLeft);
$('#hours').val(hoursLeft);
$('#minutes').val(minLe... | javascript jquery | [3, 5] |
1,229,190 | 1,229,191 | asp.net website fully qualified path and assembly | <p>A requirement for a 3rd party config is that i supply it with:<br>
1. Fully.Qualified.Type.Name,<br>
2. AssemblyNameWithoutTheDllExtension<br>
of a specific class</p>
<p>now this should be easy, but I am not sure how to solve this.<br>
I have an asp.net website (web forms)<br>
All my classes live in a sub folder in... | c# asp.net | [0, 9] |
4,939,845 | 4,939,846 | jQuery basic help calling a dialog when a give class is listed | <p>I have this situation:
I have a page where I can edit users info(name, email, phone, etc...). when I click on the edit button, it calls a dialog (modal window), that loads the user data that is already set in the database.
When the user click on the Update button, I do a verification in my controller to make sure he... | javascript jquery | [3, 5] |
2,194,780 | 2,194,781 | Am I using $(this) or .click incorrectly? | <p>I am trying to build a simple FAQ page with answers that slideDown and Up when their questions are clicked. When the user clicks on a something with class "question" I want mytarget to become '#' + [that question's id] + 'ans' so the appropriate answer slides down.</p>
<p>The toggleSlide part works when I just give... | javascript jquery | [3, 5] |
3,524,801 | 3,524,802 | methods in foreach and for loops in java | <p>My question is regarding optimization in java using the Android compiler. Will map.values() in the following be called every iteration, or will the Android compiler optimize it out.</p>
<pre><code>LinkedHashMap<String, Object> map;
for (Object object : map.values())
{
//do something with object
}
</code>... | java android | [1, 4] |
9,163 | 9,164 | Create a cookie with a non url encoded value using JQuery and the Cookie plugin | <p>I am creating a cookie on the client side and adding 3 string values in it separated by commas. The string have special characters. The problem is when I am fetching the value of the cookie in my code behind, the cookie has value as follows:-</p>
<pre><code>4%2CHealth%20Related%2C%2Fmysite%2FYourKB%2FHealth-Related... | c# javascript jquery asp.net | [0, 3, 5, 9] |
8,456 | 8,457 | How to handle Yes No dialog that was pop-up using Javascript on button click | <p>I am having an update button on my from on clicking update i would like to prompt the user as Do you want to delimit the record with Yes and No buttons. If the user clicks on Yes i would like to execute the code which can delimit the record if not just update the record.</p>
<p>My sample code</p>
<pre><code>protec... | c# javascript jquery asp.net | [0, 3, 5, 9] |
6,019,601 | 6,019,602 | Remove Elements From The DOM And Add Them Back In Where They Were | <p>I've got a modal window. What I want to happen is to remove certain elements from the page when the modal opens and add them back in right where they were after the modal closes. I don't want to do display:none, because that only hides them, I need them to actually be removed from the page. So I have a bit of jQuery... | javascript jquery | [3, 5] |
3,428,274 | 3,428,275 | How to user javascript with asp.net viewstate | <p>I have UL in my page, and it is empty.
I start populating it with LI using javascript.</p>
<p>How can I use this newly added dynamic data in the asp.net in the postback phase?</p>
<p>that is because my submit button is asp.net control.
I do not want to use JS POST.</p>
<p>thanks</p>
| c# javascript asp.net | [0, 3, 9] |
3,191,416 | 3,191,417 | Multiple control instances using jQuery and ASP.NET controls | <pre><code><script type="text/javascript">
$(document).ready(function() {
$('#pHeader').click(function() {
$('#pBody').slideToggle('fast');
});
});
</script>
<asp:Panel ID="pHeader" runat="server" CssClass="cpHeader">
<asp:Label ID="lblText" runat="server" ... | asp.net javascript jquery | [9, 3, 5] |
2,453,678 | 2,453,679 | how to pass a function as part of an object in javascript without invoking the function | <p>I am trying to use .ajaxSubmit(). I want to pass it the options object. I want to create this options object based on the user's behavior. So this is how I am doing it:</p>
<pre><code>$('#my-form').ajaxSubmit(GetSearchAjaxFormOptions(param1, param2));
function GetSearchAjaxFormOptions(param1, param2) {
return... | javascript jquery | [3, 5] |
5,243,977 | 5,243,978 | What is the Spann Watcher in Java | <p>I have one edit text in and I am applying spann to different selected portion of my edit text in android.</p>
<p>My question is that when I store the edit text in database, I also want to store the position of that spann method applied to edit text, so is there any way to get the position of spann on the click even... | java android | [1, 4] |
4,017,001 | 4,017,002 | Highlighting a div element within another div | <p>I'm trying to alter the background color of a child element.</p>
<p>This is attempted with the code: </p>
<pre><code>arrdiv[i].highlight.style.backgroundColor = "black";
</code></pre>
<p>Where highlight is the name of the div i'm attempting to alter.
This is obviously incorrect, but hopefully it demonstrates what... | javascript jquery | [3, 5] |
2,996,011 | 2,996,012 | Web programming Python | <p>I'm a amateur developer with a little experience in PHP.</p>
<p>I recently learnt Python, I've to admit that it is awesome as a programming language and its great libraries, but using that for web development seems to be a big pain in the ass. As far as what i read, I've to use CGI, mod_wsgi, etc. to deploy (http:/... | php python | [2, 7] |
2,359,890 | 2,359,891 | jQuery Quote Issue with Function in OnClick | <p>Here's my code:</p>
<pre><code>jQuery("#"+code+"_2").after("<a href='#' id='"+code+"_3' onclick='addfunction('"+code+"', event); return true;'><img src='special.gif' border='0'></a>");
</code></pre>
<p>I'm getting a syntax error on addfunction(. The code is a string and I tried wrapping it in quo... | javascript jquery | [3, 5] |
5,502,900 | 5,502,901 | jQuery: Mouseover Timeout | <p>i have script like this</p>
<pre><code>$('.parent a').live('mouseover mouseout', function(event) {
if (event.type == 'mouseover'){
if ($(this).siblings('.child').css('width') == '0px' ){
$(this).siblings('.child').animate({'width': window.innerWidth}, 500);
}
}else{
if (... | javascript jquery | [3, 5] |
1,987,707 | 1,987,708 | Validator enable using Javascript | <p>I have a custom validator in each sections (rendered as tabs). when you are in one tab the other tab is hidden. so when i continue further to submit i have to disable client validation for the hidden section.
So i call ValidatorEnable(, false);</p>
<p>but it errors out as val.Style is undefined. How to fix this.. <... | javascript jquery asp.net | [3, 5, 9] |
2,244,111 | 2,244,112 | JS/JQuery: I Can't get the loop right | <pre><code>$(document).ready(function() {
$("#main-rss-link").click(function() {
$("#main-rss-link").toggleClass('on'), $("#subscribe-list").slideToggle();
});
var a = $("li.comment").attr("id");
var b = $("li.comment[id='" + a + "']");
var c = $("li.comment > div.comment-body div > p ... | javascript jquery | [3, 5] |
1,201,845 | 1,201,846 | JQuery Script Load Timing | <p>If I have a button that sets off a jquery script is there a way to make sure the button is inactive until the script completes?</p>
| javascript jquery | [3, 5] |
2,056,676 | 2,056,677 | Any Hints on getting Android Java code tutorials? | <p>I cant seem to find anywhere the Java codes are mentioned on developer.android.com's training,Please where can I get tutorials with appropriate explanation for the Java source codes because without the codes Im just a designer</p>
| java android | [1, 4] |
75,142 | 75,143 | What's the difference between Binding Data to the repeater in the mark-up or binding it programatically | <p>What's the difference between binding for example a column called ("Name") in both cases ? and is there's any performance difference ?</p>
<p>1- Assigning the data in the mark-up</p>
<p><code><asp:Label ID="Name_Lbl" runat="server" Text='<%# Eval("Name") %>' ></asp:Label></code></p>
<p>2- defini... | c# asp.net | [0, 9] |
4,085,780 | 4,085,781 | Javascript array with a mix of literals and arrays | <p>I can create the following and reference it using</p>
<pre><code>area[0].states[0]
area[0].cities[0]
var area = [
{
"State" : "Texas",
"Cities" : ['Austin','Dallas','San Antonio']
},
{
"State" :"Arkansas",
"Cities" : ['Little Rock','Texarkana','Hot... | javascript jquery | [3, 5] |
3,792,720 | 3,792,721 | JQuery callback to previously defined function | <p>I'm still learning JQuery (and as a result a little JavaScript) but I can't seem to find out how to use a previously defined function in a callback.</p>
<p>Say I have:</p>
<pre><code><script>
$(document).ready(function() {
function ajax_start() {
alert("starting...");
... | javascript jquery | [3, 5] |
4,228,313 | 4,228,314 | php equivalent of java getBytes() | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/885597/string-to-byte-array-in-php">String to byte array in php</a> </p>
</blockquote>
<p>I am trying to find a php equivalent function of java getBytes()
Havent found anything yet but found some answers, nothin... | java php | [1, 2] |
5,578,048 | 5,578,049 | Help with modifying my custom JQuery slider to allow continous scrolling | <p>You can view my custom slider here: <a href="http://www.awaismuzaffar.com/examples/index.html" rel="nofollow">http://www.awaismuzaffar.com/examples/index.html</a></p>
<p>And below is the JQuery code for it:</p>
<pre><code> $(document).ready(function() {
// Slider Function
var slideWidth = $('div... | javascript jquery | [3, 5] |
3,210,887 | 3,210,888 | Let object "invoke" function in JavaScript | <p>I wasn't sure of the title, but I hope you will be able to help me.</p>
<p>I want to use kinda the same pattern that jQuery uses for their event handlers, like click/hover/blur etc, where you use <code>this</code> inside the event handler to get the object.</p>
<p>How do I accomplish this?</p>
<pre><code>// The e... | javascript jquery | [3, 5] |
1,375,667 | 1,375,668 | Transversing the DOM in jQuery | <p>I have a bunch of these little bits of HTML code repeated over and over again:</p>
<pre><code><div class="collapse" id="any_mins">
<fieldset>
<legend><img title="Click to expand" class="plus" alt="+" src="" />Heading</legend>
<table class="mins_table">
... | javascript jquery | [3, 5] |
3,881,983 | 3,881,984 | Bind javascript with GridView button dynamically | <p>I've been trying to do this for the past hour and still got nothing. I'll try to explain it so please stay with me:</p>
<p>I'm trying to create a sort of summary shopping cart by creating an HTML table using javascript and adding rows every time an item is selected from the gridview.</p>
<p>I have a gridview with ... | c# javascript asp.net | [0, 3, 9] |
2,295,157 | 2,295,158 | jQuery.closest(); traversing down the DOM not up | <p>Afternoon peoples.</p>
<p>I am having a bit of a nightmare traversing a DOM tree properly. I have the following markup</p>
<pre><code>http://pastie.org/999519
</code></pre>
<p>...
And I am trying to traverse from input.save at the bottom right the way up to div.node... This all works well with one copy of the mar... | javascript jquery | [3, 5] |
4,427,480 | 4,427,481 | How to initialize multi dimensional array of unknown array length | <p>I am getting problems when generate multi-dimensional array with unknown size.</p>
| java android | [1, 4] |
4,577,770 | 4,577,771 | Find whether an element contains in a jquery selector | <p>Let say I have, </p>
<pre><code><a id="a123"></a>
</code></pre>
<p>Now I need to check whether $("a") selector contains $("#a123") element.</p>
| javascript jquery | [3, 5] |
4,051,202 | 4,051,203 | copy object with elements | <p>how to copy an object with some elements?</p>
<p>I want to copy this object, but each <code>elm</code> still refers to the same DOM element?</p>
<pre><code>var fields = {
account_id_ : {
name : Lang.get('HDL_ACCOUNT'),
width : 60,
elm : $('<input class="inp" type="text" style="text-a... | javascript jquery | [3, 5] |
1,622,339 | 1,622,340 | Extract values from href attribute string using JQuery | <p>I would like to extract values from href attribute string using JQuery</p>
<pre><code>$(this).attr("href")
</code></pre>
<p>will give me</p>
<pre><code>?sortdir=ASC&sort=Vendor_Name
</code></pre>
<p>What i need is these values parsed into an array</p>
<pre><code>myArray['sort']
myArray['sortdir']
</code></... | javascript jquery | [3, 5] |
4,262,415 | 4,262,416 | Hide a parent node in TreeView if there are no child nodes | <p>I have a TreeView on my .aspx page. I want to hide those parent node of a treeview when there are no child nodes.</p>
| c# asp.net | [0, 9] |
1,772,917 | 1,772,918 | The form dont include the + sign, that i write | <p>This code will submit the information from the form to a php file, everything works as it should, but when i write "hello this a text + - * " it remove the " + " sign from what i wrote, always. I dont know why, please help me out guys</p>
<pre><code> $(document).ready(function(){
$("form#submit").submit(fun... | javascript jquery | [3, 5] |
1,752,960 | 1,752,961 | (Label)this.FindControl("lbl") not working | <p>I have a script that runs and tries to input a value in a label but when ever I run it I get the following error even though the label is there and the id is correct.</p>
<blockquote>
<p>Object reference not set to an instance of an object. </p>
</blockquote>
<p>Code:</p>
<pre><code>string answerLbl = "q" + re... | c# asp.net | [0, 9] |
4,432,781 | 4,432,782 | Exclude ASP.NET from subfolders | <p>I have an application that runs on a shared hosting website - it is running ASP.NET MVC, however one of the folders within the application, /community/, is just a standalone message board application (Invision Power Board), running in php.</p>
<p>I keep getting problems with the web.config from the asp.net applicat... | php asp.net | [2, 9] |
5,799,819 | 5,799,820 | choose postal code and show city | <p>My project group got this problem in a formula.</p>
<p>We have a select option where postal code/ZIP code is chosen for our country,
and then we want the city attached to the postal/ZIP code shown in a text field next to the <code><select></code>. </p>
<p>Our teacher is telling us to write some JavaScript t... | php javascript | [2, 3] |
2,120,451 | 2,120,452 | jquery .load() does not get variable | <p>i have this code</p>
<pre><code>$(document).ready(function () {
$('a').click(function(e) {
e.preventDefault();
url = $(this).attr('href');
$("body").load(href);
});
});
</code></pre>
<p>But it does not work. Nothing loads. The only thing that works is <code>e.preventdefault()</code>... | javascript jquery | [3, 5] |
4,924,363 | 4,924,364 | Is it possible to do ".value +=" in JQuery? | <p>Classic javascript:</p>
<pre><code>var myvar = document.getElementById("abc");
abc.value += "test";
abc.value += "another test";
</code></pre>
<p>Jquery:</p>
<pre><code>$("#abc").val($("#abc").val()+"test");
$("#abc").val($("#abc").val()+"another test");
</code></pre>
<p>Is there a way to make my Jquery prettier... | javascript jquery | [3, 5] |
5,636,180 | 5,636,181 | A function to convert null to string | <p>I want to create a function to convert any null value e.g. from a database to an empty string.
I know there are methods such as if value != null ?? value : String Empty but is there a way to pass null to a method e.g.</p>
<pre><code>public string nullToString(string? value)
{
if(value == null) return empty;
... | c# asp.net | [0, 9] |
2,175,799 | 2,175,800 | Reusing socket and detecting when it needs to be re-established | <p>I'm currently writing client software for android that will repeatedly send request to a server. </p>
<p>Since I figured it would be a waste to keep reconnecting the socket everytime a request is made I tried developing a method in which the socket is used as long as it's active and when it's dead, one attempt will... | java android | [1, 4] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.