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,312,016 | 3,312,017 | Check if element exists | <blockquote>
<p><strong>Possible Duplicates:</strong><br>
<a href="http://stackoverflow.com/questions/31044/is-there-an-exists-function-for-jquery">Is there an “exists” function for jQuery</a><br>
<a href="http://stackoverflow.com/questions/4257906/jquery-determining-if-element-exists-on-page">jQuery ... | javascript jquery | [3, 5] |
941,483 | 941,484 | Jquery - hover event disappears after mousedown event is triggered. | <p>Have an issue with a jquery script. Page loads with the script below. The hover event works fine. However, if the mousedown event fires, the hover event functionality subsequently disappears and I don't get any rollovers. Any ideas as to why and how to keep the hover event firing off each and every time? Viewin... | javascript jquery | [3, 5] |
457,496 | 457,497 | Efficiently read binary data into int[] | <p>I have binary data in a file (a list of 32-bit integer values) that I need to get into an int array efficiently. I can't see any way to do this other than loading the data into a byte[] and then converting it into an int[] one element at a time. This is too slow for the amount of data I need to load. It takes about ... | java android | [1, 4] |
4,718,584 | 4,718,585 | jquery animation issue in IE | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/6139924/jquery-not-proceeding-to-next-page">jquery not proceeding to next page</a> </p>
</blockquote>
<p>I have jquery, it works fine in FF, but issue is with IE, image is loading but animation is not happening.... | javascript jquery | [3, 5] |
3,969,527 | 3,969,528 | Adding cells in GridView | <p>How can i add cell in specific column for each row in gridview,i want to use <strong><em>RowCreated</em></strong> Events.</p>
<p>i have gridview that has 3 columns (ProductName, Price, Count) i get (ProductName, Price) from database, and i want to add value for (count), ex: (Kitkat, 2$ ) i want to add number 5 to ... | c# asp.net | [0, 9] |
5,351,505 | 5,351,506 | java.lang.RuntimeException: java.net.UnknownHostException: Host is unresolved: | <p>I am having a problem while parsing XML file,i used newsRSS parser as a reference.but i am getting this error in the real device.how to display an error message like alert for the user and let him stay on the app without crashing?</p>
<p>this is the peace of the code that do the connection and parsing:</p>
<pre><c... | java android | [1, 4] |
2,438,928 | 2,438,929 | ValidatorCalloutExtender not showing when validated control resides in jQuery dialog | <p>I have a form which is displayed in a jQuery dialog box. This form contains an ASP.Net RequiredFieldValidator and uses the AjaxToolkit's ValidatorCalloutExtender to display the error message.</p>
<p>If the form is displayed outside of the Dialog box then the ValidatorCalloutExtender works fine, but when used insid... | jquery asp.net | [5, 9] |
397,630 | 397,631 | How to check if it has class in jQuery? | <p>How can I check if a the <code>#load</code> div has a class also?</p>
<pre><code>if (cap > 20) {
$(".p" + (cap-9)).slideto({
slide_duration : 'slow'
});
}
</code></pre>
| javascript jquery | [3, 5] |
3,765,372 | 3,765,373 | .click() event when 'Open in new tab/window' | <p>When I use <code>.click()</code> on an <code><a></code> tag, the event only works when I click on the element. Otherwise, if the user does a Right Click > Open in new window or Open in new tab, it doesn't trigger the <code>click()</code> event.</p>
<p>So, my question is...how do I trigger the <code>click()</... | javascript jquery | [3, 5] |
3,080,751 | 3,080,752 | Check a table row cell for contents | <p>I want to use jQuery to check if the 2nd cell in each table row of a table contains any text, if the 2nd cell doesn't contain any text then set the table row to display: none;</p>
<p>Whats the best way to go about this?</p>
<p>HTML:</p>
<pre><code><table id="results">
<tr>
<td>Results</... | javascript jquery | [3, 5] |
708,044 | 708,045 | How to retrieve domain name from a webview? | <p>I want to be able to retrieve the domain name in a webview in which the user is able to enter in the URL. I want to post the domain name instead of the URL if this is possible. Any help is greatly appreciated.</p>
| java android | [1, 4] |
2,840,809 | 2,840,810 | Execute code within window.load if content takes longer than 7s to load | <p>As it says in the title I've got a window.load line:</p>
<pre><code>$(window).load(function() {
//Some Code
});
</code></pre>
<p>So once everything is loaded I execute <code>//Some Code</code>, however I want to make it so if content is not loaded, lets say within 7 seconds (maybe large image file, or missing ... | javascript jquery | [3, 5] |
3,239,965 | 3,239,966 | ASP.NET ID Placeholder Name | <p>When I moved some of my pages to a different server, the ASP.NET started rendering the controls ID without the master page placeholder. So, before it used to be rendered like this <code>ctl00_MainContent_control1</code> and now it is <code>MainContent_control1</code>. What could of caused this change and if there's ... | c# asp.net | [0, 9] |
2,673,494 | 2,673,495 | How to 'grep' one portion of a line out by php script? | <p>I have a little problem. I have written php script and javascript that allows me to 'grep' line using function of the 'date', but is it possible to just grep one portion of the line out only? </p>
<p>For example, I have taken out this line from report.txt(Which is simply a log file) using the date's function(2010-1... | php javascript | [2, 3] |
300,233 | 300,234 | Javascript / jquery ScrollLeft build up | <p>I've been trying to build a timeline / tube line widget. The idea being that the user is presented with something which looks like a train line on the london underground - but will be populated with dates. Anyhow, this is what I've produced so far. It sort of works...</p>
<p><a href="http://jsfiddle.net/allegris/GC... | javascript jquery | [3, 5] |
3,655,071 | 3,655,072 | Why Java could have many Main that you can decide which java file you want to run, but for C++ you are only one Main? | <p>Every time I write C++, I need put different code in to main, is there any way make it simple, like a1.cpp has main, a2.cpp has another main,
like in a1.cpp</p>
<pre><code>int main() {
printf("a1");
}
</code></pre>
<p>and in a2.cpp</p>
<pre><code>int main() {
printf("a2");
}
</code></pre>
<p>when you run... | java c++ | [1, 6] |
3,932,414 | 3,932,415 | Use Custom View In XML Layout | <p>I have a custom view:</p>
<pre><code>public class Loading extends View {
private long movieStart;
private Movie movie;
public Loading(Context context, InputStream inputStream) {
super(context);
movie = Movie.decodeStream(inputStream);
}
@Override
protected void onDraw(Canv... | java android | [1, 4] |
1,276,747 | 1,276,748 | Implementing BluetoothChat in emulator | <p>I want to implement the bluetooth chat in my Emulator while application running in Eclipse.
Plz help me. . . </p>
<p>Same way i also want to implement the Online chat threw the Emulator.
Is it possible ?
And if it is then plz give me the Sollution for it.</p>
<p>Thanks.</p>
| java php android | [1, 2, 4] |
1,741,128 | 1,741,129 | Change text inside dynamic div when on select change is made jquery | <p>I have a title for my drop down that is dynamically given and I can currently change it when the page loads. But once I select an item from the drop down it changes back. I am looking for a simple jquery js solution that can help keep the name when an item is selected.</p>
<p>I need to change the text in: #shipping... | javascript jquery | [3, 5] |
3,076,026 | 3,076,027 | What is the cleanest way to disable postback controls until the page has fully loaded? | <p>I have a website that has some intense graphics, and people with slow connections might require download time. While their browser is downloading, they have form options. And a lot of times they will fill the form out and hit submit.</p>
<p>This causes an event validation issue, because the page wasn't fully loade... | javascript asp.net | [3, 9] |
2,360,462 | 2,360,463 | Writing to a file | <p>I am extracting content from a web page using JS/JQuery and want to write the data to a comma separated file. I know javascript doesn't really support file io and I'm trying to avoid setting up a local apache server just to process the content to a file. Is there an easier way to do this?</p>
| javascript jquery | [3, 5] |
3,912,249 | 3,912,250 | How to get correct table format ? Jquery ques | <p>This code prints output as given below...
<strong>code</strong>:</p>
<pre><code>$('#calendar').append('<table><thead><tr>');
var i;
for(i=0;i<=6;i++)
{
$('#calendar').append('<td>'+week[i]+'</td>');
}
$('#calendar').append('</tr></th... | jquery javascript | [5, 3] |
4,720,794 | 4,720,795 | Android vibration intensity and damage | <p>I realize this is not strictly a code question, but I guess it belongs here anyway. If not, my apologies in advance.</p>
<p>Being as there's no inbuilt way to change the vibration intensity for the droid in code I'm using a kind of PWM control (switching the vibrator on and off at high frequency gives me a kind of... | java android | [1, 4] |
2,070,323 | 2,070,324 | Implementing "Donate" functionality | <p>I have created a free Android app, and i want to implement "donate" functionality, but have no idea how to do it? Can someone help me with that? Some tutorial or something like that? How to implement it for countries not supported bu PayPal?</p>
| java android | [1, 4] |
5,729,949 | 5,729,950 | How to make such a structure? | <p>What type of structure is this, and how to I make such using a loop?</p>
<pre><code>var movies = [
{ Name: "The Red Violin", ReleaseYear: "1998" },
{ Name: "Eyes Wide Shut", ReleaseYear: "1999" },
{ Name: "The Inheritance", ReleaseYear: "1976" }
];
</code></pre>
<p>I am using <code>each</code> for t... | javascript jquery | [3, 5] |
50,741 | 50,742 | Is there a way to receive broadcast each time any activity is launched? | <p>for android developers</p>
<p>my goal is to saved when any activity is launched...</p>
<p>For instant is there is three activity launched during the last hour, I want to save it into a database.</p>
<p>Of course I could launch a service and check every seconds what activity is launched but it would use phone batt... | java android | [1, 4] |
4,773,698 | 4,773,699 | Swap Divs onmouseover of table rows | <p>I'm looking for a way that I can swap between divs when I hover over table rows and the only solution I've found is that effect when hovering over a list. I really don't understand jquery fully yet so I'm hoping its just a simple change that can be made.</p>
<p>This is the code that I came across for hovering over... | php javascript jquery | [2, 3, 5] |
1,264,163 | 1,264,164 | How to Select All Div's which have a children image with some specfic src? | <p>Let's say I have,</p>
<pre><code><div>
<img src='aaBB_a.png' />
</div>
<div>
<img src='aaa_a.png' />
</div>
<div>
<img src='aaBB_a.png' />
</div>
</code></pre>
<p>I need to select all div's (not images) which contain a img child which src contain BB_. I... | javascript jquery | [3, 5] |
328,556 | 328,557 | javascript execution order | <p>I am starting to learn Javascript and jQuery.
I wanted to make a simple slide show with jQuery which displays list unordered list items one by one.</p>
<p>My code is here: <a href="http://jsfiddle.net/aganhuyag/wZQGq/" rel="nofollow">on jsfiddle</a></p>
<p>I thought that I'd make the slideshow by iterating over li... | javascript jquery | [3, 5] |
2,156,309 | 2,156,310 | Get last ID of dynamic div | <p>Couldn't find an answer, but Im trying to get the last ID of the last div that was created on the page. The code I'm using doesn't seem to work using .last(). My syntax is probably wrong but I can't get it to show the ID.</p>
<pre><code> jQuery(document).ready(function()
{jQuery("a.more_posts").live('click', f... | javascript jquery | [3, 5] |
3,260,633 | 3,260,634 | Can I cancel postback when user presses return in a textbox? | <p>I have a <code>textbox</code> whose input is being handled by jQuery.</p>
<pre><code>$('input.Search').bind("keyup", updateSearchTextbox);
</code></pre>
<p>When I press <code>Enter</code> in the textbox, I get a postback, which messes everything up. How can I trap that Enter and ignore it?</p>
<p>(Just to preempt... | asp.net jquery | [9, 5] |
788,271 | 788,272 | SelectedValue is invalid - doesn't exist in list - C#/ASP.NET | <p>Exception is:
'Country' has a SelectedValue which is invalid because it does not exist in the list of items.
Parameter name: value</p>
<pre><code>UserService.DsUserAttributes dsCountry = us_service.GetUserAttributeDropDown(systemId, "Country");
Country.DataSource = dsCountry.tblDropDownValues;
Country.DataTextFiel... | c# asp.net | [0, 9] |
559,495 | 559,496 | How to change the <font size> of SC Editor? | <p>I've been using SC Editor, but for font size it uses <code><font size="number"></font></code>. Is there anyway to change it to <code><span class="font+number"></span></code>?</p>
<p>I've been looking in the plugin JS, but couldn't find anything. Can anyone help?</p>
<p>Thanks in advance.</p... | php jquery | [2, 5] |
446,734 | 446,735 | How to give connection string as a key value? | <p>I want to give connection string as a key.
So I write in web.config this code.</p>
<p></p>
<pre><code> <add key="connectstring" value="Data Source=USER-PC;Initial Catalog=DBName; Integrated Security=False; providerName=System.Data.SqlClient"/>
</appSettings>
</code></pre>
<p>but there is error a... | c# asp.net | [0, 9] |
462,391 | 462,392 | Interfering jQuery scripts | <p>This DID work fine for a long time, then when i was tidying up some code today it stopped working and i can't see why...</p>
<p>This code currently works:</p>
<pre><code><script type="text/javascript" src="/sideswap/jquery.min.js"></script>
<script type="text/javascript" src="/sideswap/jquery.sidesw... | php javascript jquery | [2, 3, 5] |
4,627,075 | 4,627,076 | Dataset Sorting using C# on a column with Datetime datatype | <p>I am having a dataset (Dataset ds) and below you can find the field with demo data inside the dataset.
In my Dataset , their is column with name Date (Datatype- DateTime) and i want to sort this column.I cant do the sorting from SQl because the Dataset is a merge of 2 Different Dataset.
Please help me that how i do ... | c# asp.net | [0, 9] |
267,488 | 267,489 | jQuery: Carrying input text from tab to another tab | <p>I have an html with few tabs. In all of tabs there's an input type=text. If i type something in the input on tab1, how can it be typed to the rest of the inputs in the other tabs too?</p>
<p>I would guess its something similar here in stackoverflow when you ask a question and you get a preview box underneath but in... | javascript jquery | [3, 5] |
4,816,699 | 4,816,700 | Android - ACTION_UP not detected | <p>I am unable to figure out why the ACTION_UP event is not being fired when I move my finger away from contact in the following code.</p>
<pre><code>public boolean onTouch(View v, MotionEvent event) {
switch(event.getActionIndex()){
case MotionEvent.ACTION_UP:
Utils.log("Touch Up");
... | java android | [1, 4] |
3,121,458 | 3,121,459 | Run trough one rgba to another based on percentage | <p>Let's say i have this both rgba codes:</p>
<p><strong>rgba(150, 160, 255, 1)</strong> and <strong>rgba(195, 0, 0, 1)</strong></p>
<p>I want to pass from one to another by a 0/100 percentage.</p>
<p>0% will be <strong>rgba(150, 160, 255, 1)</strong></p>
<p>100% will be <strong>rgba(195, 0, 0, 1)</strong></p>
<p>... | javascript jquery | [3, 5] |
995,712 | 995,713 | Android dev - TextView won't show up | <p>I just started experimenting with Android app development and so I decided to give Android's own tutorials a go (this one: <a href="http://developer.android.com/training/basics/firstapp/starting-activity.html" rel="nofollow">http://developer.android.com/training/basics/firstapp/starting-activity.html</a> ) </p>
<p>... | java android | [1, 4] |
4,843,003 | 4,843,004 | Loading an image dynamically works only in Chrome | <pre><code>image = document.createElement("image");
image.src ="http://jsfiddle.net/img/logo.png";
e = document.getElementById('id');
$(image).load(function() {
$(image).hide();
e.appendChild(image);
$(image).fadeIn(1000);
});
</code></pre>
<p>What makes this code to run only in Chrome?
<a href="http:... | javascript jquery | [3, 5] |
3,195,258 | 3,195,259 | Writing a string to textfile in Android | <p>How Can I write a String to a text file,I should be able to specify the location of the file(or some how open and see its content,It is not necessary that it should be located in Computers memory), please provide me with the code snippet.
Thank you in advance for all the responses.</p>
| java android | [1, 4] |
975,255 | 975,256 | Plus sign in query string | <p>I have a webapp created using C# and asp.net. I placed a parameter value in the querystring with a plus(+) sign. But the plus sign disappear.</p>
<p>How can I include the plus sign(+) in the query string without disappearing?</p>
<p>Please advise.</p>
<p>Thanks.</p>
<p>Edit: added code with UrlEncode</p>
<pre><... | c# javascript asp.net | [0, 3, 9] |
2,131,615 | 2,131,616 | How do I use multiple selectors in jQuery? | <p>I am using the following code to apply a hover effect to a set of images within a div called toolbar:</p>
<pre><code>$("#toolbar img").hover(
function()
{
this.src = this.src.replace("_off", "_on");
},
function()
{
this.src = this.src.replace("_on", "_off");
}
);
</code></pre... | javascript jquery | [3, 5] |
1,738,333 | 1,738,334 | Does PHP allow *.properties file as in Java? | <p>Is there a way to use a *.properties file in PHP as you do in Java? I'd like to store some application-level constants in a properties or XML file and easily call them from throughout my code. Your guidance is much appreciated. Thanks.</p>
| java php | [1, 2] |
1,076,186 | 1,076,187 | how to call to javascript function in the same file using php? | <p>I have php file called "PhpCallJavascript".</p>
<p>I try to call to function <code>CreateSVG()</code> from php code.</p>
<p>it is not working should I need here ajax?</p>
<p>or somthing else?</p>
<p>thx for any help.</p>
<p>the php file:</p>
<pre><code><script src="http://ajax.googleapis.com/ajax/libs/jquer... | php javascript jquery | [2, 3, 5] |
1,144,853 | 1,144,854 | Adding items to select (list box) of html/php through jQuery or javascript | <p>Is it possible to add items to a select (list box) of html/php through jQuery or javascript when a specific action is triggered by another control in jQuery/javascript? <em>(edited by <a href="http://stackoverflow.com/users/611306/alex-thomas">Alex Thomas</a>)</em></p>
| php javascript jquery | [2, 3, 5] |
2,160,149 | 2,160,150 | Why is jquery progressbar giving the following error: Object [object Object] has no method 'progressbar'? | <p>Im trying to add a progressBar to my site. I have looked at <a href="http://docs.jquery.com/UI/Progressbar" rel="nofollow">http://docs.jquery.com/UI/Progressbar</a> and written the following code:</p>
<pre><code><div>
<h2>@Model.First().Category.category_name</h2>
<div id="progressBar"></... | javascript jquery | [3, 5] |
436,249 | 436,250 | What is the best way to identify logged user? | <p>I was looking for the efficient way to track the logged users when using <code>asp.net</code> <code>login control</code></p>
<pre><code> if (!IsPostBack)
{
if (Membership.GetUser() != null)
{
var user = Membership.GetUser();
Session["user"] = us... | c# asp.net | [0, 9] |
5,603,613 | 5,603,614 | Div created from code doesn't load classes | <p>I have div container and inside couple div with class demo and gravity like</p>
<pre><code><div id="container" style="position:relative;width=400px;height=400px;">
<div class="demo gravity" ></div>
<div class="demo gravity"></div>
<div class="demo gravity"></div>
</div&g... | javascript jquery | [3, 5] |
2,338,830 | 2,338,831 | Wait/Pause/Sleep in jQuery Each Loop between Iterations | <p>I simply want to add a pause after each iteration of a jQuery each loop, I can't seem to figure it out.</p>
<pre><code>$(".item").each(function(i){
var el = this;
var timer = setTimeout(function(){
$(el).trigger("click");
}, 500);
});
</code></pre>
<p>This is not firing every 1/2 second, but ra... | javascript jquery | [3, 5] |
3,436,120 | 3,436,121 | to Swap elemnts(with className too) when Draged & Dropped | <p><em><strong>Swapping two elements whenever one element dragged and dropped over another element. I used <a href="http://www.eslinstructor.net/demo/swappable/swappable_grid.html" rel="nofollow">Vadim's JQuery plugin</a> and it's working but i have an issue with height,Width,position & float of swapped elements.</... | javascript jquery | [3, 5] |
5,848,229 | 5,848,230 | Interop Best Practices: Should I use Static Class, or Normal Classes | <p>I have a front end C# that needs to call a C++ back end. So interop is needed. </p>
<p>I have an "interop layer", that converts the C# data structure into C++ structure, and do all the memory freeing grunt work. </p>
<p>My question is, should I write this interop layer as a <em>static</em> class, or should I wrap ... | c# c++ | [0, 6] |
577,605 | 577,606 | jQuery ready function | <p>Can anyone tell me why the document ready function needs a call to function first please? I've been told that the setTimeout in the first below example (which does not work) would be evaluated and passed to ready, but I don't see what the difference would be for the function call in the second example (which works)?... | javascript jquery | [3, 5] |
3,744,974 | 3,744,975 | Update panel and jQuery | <p>I have a paged data-source in an update panel. I have it set up that when i click a next button the next page is returned via a partial post-back. The problem is that i am using the dreaded moo-tools lightface's / update-panel combo. Using this, the update panel and moo-tools wont work.</p>
<p>Is there some way aro... | jquery asp.net | [5, 9] |
5,271,461 | 5,271,462 | Is there a way to compare 2 colors in JS, like 'If Color A is darker than #202020' | <p>The background color for one of my pages is set pulled from the background color the users set as their twitter background color. I have a page that has a rounded box with a black border. The border doesnt look good if the background color is dark, so i'd like to remove the border of the background is darker than ... | javascript jquery | [3, 5] |
2,127,026 | 2,127,027 | How can you implement android apps without android? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1994703/which-programming-languages-can-i-use-on-android-dalvik">Which programming languages can I use on Android Dalvik?</a><br>
<a href="http://stackoverflow.com/questions/3316801/which-programming-languages-can... | java android | [1, 4] |
741,796 | 741,797 | Inserting variable into array item | <p>I have an array of elements from my webpage which I am trying to then insert some html, stored as a variable into a matching array item. For example</p>
<pre><code><div class="play">
<div>
<p>Item to be inserted after this p tag</p>
</div>
</div>
var elements = $('.play'... | javascript jquery | [3, 5] |
4,065,780 | 4,065,781 | Jquery dragging tab | <p>the below is a nice dragging tab, which I would like to implement in my project. Is there any jquery plugin for this.</p>
<p><a href="http://www.blitzagency.com/our-people/#meet-the-blitizens" rel="nofollow">http://www.blitzagency.com/our-people/#meet-the-blitizens</a> </p>
| javascript jquery | [3, 5] |
3,389,417 | 3,389,418 | Pass parameters to function call in event trigger | <p>Right now I have this</p>
<pre><code>jQuery('.widget-prop').keyup(function() {
var prop = jQuery(this).attr('id');
var val = jQuery(this).val();
stuff;
}
</code></pre>
<p>and </p>
<pre><code>jQuery('.widget-prop').click(function() {
var prop = jQuery(this).attr('id');
var val = jQuery(this).v... | javascript jquery | [3, 5] |
3,667,855 | 3,667,856 | setInterval and function | <p>I have written this simple function:</p>
<p>HTML:</p>
<pre><code><div class="mhead">
<div class="mTop">
<a class="headline" title="" href="">
<img alt="" src="">
<span> </span>
</a>
</div>
<div class="tNav">
<ul id="topt" class="tUl"&... | javascript jquery | [3, 5] |
796,625 | 796,626 | jquery with index based radio button selected value help | <p>I have following generated code and tried to retrive the radio button value or checked from below html generated code </p>
<p>HTML code generated ::: </p>
<pre><code> <input type="radio" name="mergedServiceSets[0].cdaQuestionnaireresponses[0].questionnaire.value" id="SetUpTest_mergedServiceSets_0__cdaQ... | javascript jquery | [3, 5] |
2,925,097 | 2,925,098 | Combobox Add item problem | <p>I want to add new item in combobox. But this item should be top in combobox.</p>
<p>For Example;</p>
<p>In my combobox items like; a,b,c,d I want to add e but e is the top.</p>
<p>After adding new item shoukld be -> e,a,b,c,d</p>
<p>How can I do this?</p>
<p>Thanks John</p>
| c# asp.net | [0, 9] |
6,009,799 | 6,009,800 | accessing the data from the jQuery source array? | <p>I have been given this code by the ui designer and I dont know how to post the
selected source array data to a php script so I can query it with MySQL, I am sorry I
a beginner with JQuery, I would like to query the array like in a form option select style, or would it be better to use an associative a... | php javascript jquery | [2, 3, 5] |
4,523,820 | 4,523,821 | Close popup (div) jquery | <p>I have a div which appears when a textbox gets focus. DIV has <em>n</em> number of textboxes. I want to say display:none when a user Clicks anywhere in the window. Div should not close if the user is switching between textboxes. </p>
<p>All these jquery plugins, say the calendar control closes if user clicks outsid... | c# jquery | [0, 5] |
1,234,578 | 1,234,579 | How to toggle size of responsive images, with a twist | <p>I have set up a fiddle with the functionality I am after, however I cannot figure out how to achieve the same result when the images have a percentage-based width.</p>
<p><a href="http://jsfiddle.net/bs8Tw/" rel="nofollow">http://jsfiddle.net/bs8Tw/</a></p>
<pre><code>$('img').click(function() {
var toggleWid... | javascript jquery | [3, 5] |
2,977,662 | 2,977,663 | Use jQuery to navigate away from page | <p>I will only have a relative link available to me but I want to use jQuery to navigate to this rel link. I only see AJAX functionality in jQuery. How can I do this using jQuery or just pure HTML/JavaScript?</p>
| javascript jquery | [3, 5] |
3,677,255 | 3,677,256 | How I can fix MAC error in asp.net application? | <p>I have an ASP.NET application all things are working fine but after some minutes when I click on a button it gives me this error :</p>
<blockquote>
<p><strong>Validation of viewstate MAC failed. If this application is hosted by a Web
Farm or cluster, ensure that
configuration specifies
the same validationK... | c# asp.net | [0, 9] |
242,285 | 242,286 | Is storing an array of objects in ASP.NET viewstate the best solution for this? | <p>I'm wondering if storing the data in viewstate is a good idea for this given problem.
He's a simplified example of what I am trying to achieve, firstly we have a Repeater control:</p>
<pre><code><asp:Repeater id="Repeater1" runat="server">
<ItemTemplate>
<asp:TextBox id="Name" runat="server" />
&l... | c# asp.net | [0, 9] |
2,533,902 | 2,533,903 | i want to generate payperiod for each month | <p>On the first time I created pay period schedule, which is the type is Monthly, for example , Start, End, Transaction, and Functions of pay period is like below:</p>
<ol>
<li>01-Jan-12 12:00 AM, 30-Jan-08 11:59 AM, 31-Jan-08 12:00 PM</li>
</ol>
<p>The above one is first month payperiod. next month it ill create li... | c# asp.net | [0, 9] |
5,813,453 | 5,813,454 | Jquery .html() and .attr() to populate P tags | <p>I'm trying to use jquery to populate <code><p></code> tags with content based on their class. Here's my code:</p>
<pre><code><p class="header"></p>
<p class="desc"></p>
</code></pre>
<pre class="lang-javascript prettyprint-override"><code>var header = 'header content here';
var desc =... | javascript jquery | [3, 5] |
4,033,104 | 4,033,105 | ASP.NET Replace a double quote with html number | <p>Basically I am trying to do that following</p>
<pre><code>InputString = InputString.Replace(""", "&#34;");
</code></pre>
<p>But getting an error</p>
| c# asp.net | [0, 9] |
2,241,050 | 2,241,051 | Invisible listview item row | <p>i want to implement a search Text to listView,</p>
<p>i load the listView items from server.</p>
<p>Currently, everytime that user enters something to the searchText i remove all items in the listView and add them again to the listView (if they contain the user entered string)</p>
<p>However it takes alot of time... | java android | [1, 4] |
219,044 | 219,045 | Sending POST data from Android application to PHP script | <p>I'm trying to send some POST data to a PHP script from an android application. How should the PHP script look like? This is what I tried but it doesn't work;</p>
<p>Android code:</p>
<pre><code>class SendPostReqAsyncTask extends AsyncTask<String, Void, String> {
@Override
protected String doInBackgro... | php android | [2, 4] |
1,829,117 | 1,829,118 | select all html elements based on rel value | <p>I have some html elements in my code like this</p>
<pre><code><div rel="test1">item1</div>
<div rel="test1">item2</div>
<div rel="test1">item3</div>
<div rel="test2">item4</div>
<div rel="test2">item5</div>
</code></pre>
<p>and I need a way to select all ... | javascript jquery | [3, 5] |
2,435,018 | 2,435,019 | How to get the value of a multiple option dropdown? | <p>Say I have this dropdown:</p>
<pre><code><select name="color" multiple="multiple">
<option value="red">Red</option>
<option value="green">Green</option>
<option value="blue">Blue</option>
</select>
</code></pre>
<p>So basically more than 1 color can be selected. What... | javascript jquery | [3, 5] |
2,662,192 | 2,662,193 | How to load other web page in ASP.NET | <p>I want to load some fixed part from other website to my web application.
How to accomplish this?
Thanks.</p>
| c# asp.net | [0, 9] |
4,678,910 | 4,678,911 | Create an array variable for a class in Javascript | <p>The following is a Javascript class that I have created. </p>
<pre><code>(function(window){
function Project(name,description){
this.name = name;
this.description = description;
}
window.Project = Project;
}(window));
</code></pre>
<p>I know to create variables inside the class using the ... | javascript jquery | [3, 5] |
2,179,580 | 2,179,581 | How to load picture images via click on a picture? | <p>At the moment i load default images for every picture in my app. I want to load the real picture of all images in div 5 if i click on any picture of div 5. At the moment i use the onclick event of the img tag with: </p>
<pre><code>switchImg(this, "LINK_FOR_PICTURE")
</code></pre>
<p>my js snippet:</p>
<pre><code>... | javascript jquery | [3, 5] |
539,611 | 539,612 | How do I parse xml with jQuery? | <p>What is the jQuery alternative to the following JavaScript code?</p>
<pre><code>var xmlobject = (new DOMParser()).parseFromString(xmlstring, "text/xml");
</code></pre>
<p>I believe a jQuery alternative would be more cross-browser compatible?</p>
| javascript jquery | [3, 5] |
3,053,538 | 3,053,539 | Gridview PageIndex not changing on page_Load event | <p>I'm trying to change pageindex on page_Load event but its not working.
I can change page by clicking links in the page after page loaded.
If this info necessary GridView in UpdatePanel.</p>
<pre><code>protected void Page_Load(object sender, EventArgs e)
{
/*...Some Codes...*/
//I'm trying to change page l... | c# asp.net | [0, 9] |
2,876,963 | 2,876,964 | Accessing custom HTTP Response Header via C# | <p>I've created an HTTP Response Header in IIS 7. I can see it in Fiddler but I can't get its value in C#.
Response.Headers.ToString() doesn't show the custom HTTP Response Headers.</p>
<p>How can I access its value?</p>
<p>Thanks in advance</p>
| c# asp.net | [0, 9] |
3,781,168 | 3,781,169 | jquery show/hide two divs on click and hide link | <p>Im using the following JS</p>
<pre><code><a href=# onClick="if($(this).next('div').css('display') == 'none') { $(this).next('div').show('fast'); } else { $(this).next('div').hide('fast'); } return false;">Add a Street Address</a>
</code></pre>
<p>and the following html</p>
<pre><code><div id=entry&... | javascript jquery | [3, 5] |
3,179,998 | 3,179,999 | How can I handle upgrades of the database in later versions gracefully? | <p>So I have my app almost ready to go. I have just been wondering about when I update it how the upgrading of the database will work.</p>
<p>Basically it is a quiz and I will be adding and removing questions and the users personal data needs to be kept for instance. How many correct and incorrect answers and for whic... | java android | [1, 4] |
5,269,754 | 5,269,755 | Sending/receiving .txt file from Android to PC, not whole file is sent | <p>I'm trying to make an Android app that sends a .txt file to a Windows Forms application on my computer. The problem is that not the whole file gets sent (I haven't been able to find out whether the problem is on the sending or receiving side). I only get a random part from somewhere in the middle of the .txt file to... | c# java | [0, 1] |
3,135,616 | 3,135,617 | Is it possible to take C++ libraries from a future Android release (2.3.3) and use them on a previous release (2.1)? | <p>More specifics: I specifically need the BitmapRegionDecoder that was introduced in 2.3.3, but our company is currently designing for Andriod 2.1. Would it be possible, using the NDK, or some other method to package <a href="https://github.com/android/platform_frameworks_base/blob/master/core/jni/android/graphics/Bit... | java android c++ | [1, 4, 6] |
1,684,600 | 1,684,601 | How to change selected menu option using jquery | <p>Hi I am using jquery chosen plugin. I want to selected menu value by selected value from other select menu. But my code working with simple selected menu. I want it to work with jquery chosen plugin. Example <a href="http://jsfiddle.net/7vkLv/13/" rel="nofollow">code</a> </p>
<pre><code>$(".chzn-select").chosen()
... | javascript jquery | [3, 5] |
720,143 | 720,144 | jQuery closest() function doesn't work in IE | <p>Trying to insert a row after clicking a link inside a table row. This line below:</p>
<pre><code>$('<tr><td>abc</td></tr>').insertAfter(self.closest('tr'));
</code></pre>
<p>is returning </p>
<pre><code>Error: Object doesn't support property or method 'closest'
</code></pre>
<p>in IE. Wor... | javascript jquery | [3, 5] |
4,861,288 | 4,861,289 | Bugs with "Pop Images like Google Images" post made earlier | <p>Please check this post:</p>
<p><a href="http://stackoverflow.com/questions/7411393/pop-images-like-google-images#answer-7412302">Pop Images like Google Images</a></p>
<p>I was working with the codes in this post by "Roko", but I am getting a bug in the same. When you arrange the code to display your gallery, all t... | php jquery | [2, 5] |
2,897,636 | 2,897,637 | How to reuse a dropdownlist each row of a table instead of rebuilding it | <p>I have a table the uses the same dropdown list in each row. I thought that I could just create one dropdown list and then reuse it in each new row, but the table only ends up with one row unless I create "new" dropdownlist. Am I approaching this all wrong? </p>
<p>In the interest of efficiency, is there a way to... | c# asp.net | [0, 9] |
2,957,808 | 2,957,809 | Need to initialize a byte[] array with ascii blank (i.e. 0x20 OR " ") | <p>Hello all Ol' Guy Newbie here ...
I've defined a string=> final static String Blank = " " ;
and a byte array
static byte[] LU62_Partner = new byte[8] ;</p>
<p>Further down in my logic I want to initialize the byte[] array with blanks</p>
<pre><code> // Prep LU6.2 Session
for ( ndx=0 ; ndx < 8 ; ... | java android | [1, 4] |
2,995,074 | 2,995,075 | What does (button) mean? | <p>I am a beginner at Java, and have come across this line of code:</p>
<pre><code>Button orderButton = (Button)findViewById(R.id.order);
</code></pre>
<p>What does the <code>(Button)</code> mean when it is inside the parenthesis? </p>
<p>What is the term for putting it inside like that? </p>
| java android | [1, 4] |
5,905,582 | 5,905,583 | trace an asp.net website in production | <p>Is there a way that I can trace every method, basically a line trace, in an asp.net web site in production environment?</p>
<p>I don't want to go about creating db logging for every line - i see an intermittent error and would like to see every line called and performed by the website per user.</p>
| c# asp.net | [0, 9] |
1,057,055 | 1,057,056 | How to convert string to Date object? | <p>How to convert date string to Date object ?</p>
<pre><code>2011-09-19T19:49:21+04:00
</code></pre>
| javascript jquery | [3, 5] |
2,929,096 | 2,929,097 | ASP .NET - Save copy of existing data before updating in GridView | <p>I want to ensure that the websites users don't mess up the primary data table so before each update the non-updated data should be stored into a history table.</p>
<p>I am thinking of using the 'RowUpdating' event on the GridView to do this. </p>
<p>How do I manually run a insert query using my existing SQLDataSo... | c# asp.net | [0, 9] |
3,791,431 | 3,791,432 | JQuery .ajax() on username validation | <p>I was trying to validate username whether exist or not with the following code. But it somehow don't work to prevent the existing username.
**NOTE: checkusr2.php is a simple php to check wheter the username in database. </p>
<pre><code>function verifyUser() {
var usr = $("#username").val();
$.ajax( {
... | php javascript jquery | [2, 3, 5] |
4,494,291 | 4,494,292 | How to organize Javascript and AJAX with PHP? | <p>My javascript is getting out of hand for my PHP application. I have 20 tags that link to various javascript files in a javascript folder.
Each javascript file basically controls one element on the DOM. And, if the javascript file uses AJAX, then it will have a corresponding PHP file that the AJAX will call.</p>
<p... | php javascript jquery | [2, 3, 5] |
5,357,063 | 5,357,064 | Retrieve existing objects from Parse API | <p>I've been trying to use Parse lately in order to develop apps. Problem is, I can't seem to retrieve an object previously created by another user. Since Parse labels each object with a random String there is no posible way to retrieve it without knowing the String in advance; and even if I hardcode the ParseObject's ... | java android | [1, 4] |
1,470,564 | 1,470,565 | Use JQuery/JS to eagerly load a bunch of MIDI file URls and cache them to be played on demand | <p>Is it possible to have a webpage where on buttonClick, JQuery goes fetches a certain few URLs to MIDI files, and instead of them playing automatically, they are played on demand ?</p>
<pre><code><a href="bach.mid">Bach</a>
<a href="beethoven.mid">Beethoven</a>
</code></pre>
<p>I want to be... | javascript jquery | [3, 5] |
5,398,623 | 5,398,624 | JQuery: Binding the .validate plugin to .live | <p>I need to bind the <a href="http://bassistance.de/jquery-plugins/jquery-plugin-validation/" rel="nofollow">jQuery validate plugin</a> to forms that I generate on the fly. As far as I know <code>.live()</code> is the only way to do this in jQuery. It doesn't seem to work, at least the way I'm trying. I think this ... | javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.