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,572,395 | 3,572,396 | Divide columns into groups (rows) based on their cumulative width with jquery | <p>I have a number of columns (of varying widths) being generated and I need to divide them into groups or rows based on their widths. Every time the cumulative width of the columns reaches 100% I'd like to group those columns in a new div. </p>
<p>I asked a friend to look into this for me and he came back with this, ... | javascript jquery | [3, 5] |
2,136,534 | 2,136,535 | How do I redirect page using Javascript to page.php#sample | <p>I want refresh page using javascript and go to div id.</p>
<p>Example what I have done is</p>
<pre><code>echo "<script type='text/javascript'>top.location.href = '" . $url . "/page.php#contact';</script>";
</code></pre>
<p>Example the <code>#contact</code> div is on half of page and it's not worki... | php javascript | [2, 3] |
2,031,104 | 2,031,105 | user control using javascript | <p>I want to make a kind of user control using javascript.</p>
<pre><code><div id="myDiv">
<input type="text" id="myText" />
</div>
</code></pre>
<p>I want to insert this div in my HTML markup, wherever I required. Purpose is to make it reusable at various places in my HTML and maintain a single p... | javascript jquery | [3, 5] |
136,984 | 136,985 | I am confused between PHP and ASP.NET to choose as a career in Indian software development context | <p>I need your help(specially from the software professionals of India). </p>
<p>I have completed MCA in 2009. After that instead of joining software company I did a Teaching job nearby by home. In the mean time I prepared myself for public sector jobs(bank). I continued my job for 1 year more and left it in 2010. </p... | php asp.net | [2, 9] |
2,919,191 | 2,919,192 | javascript stacking bug | <p>I have this code:</p>
<pre><code> $jq('.pop-tip').click( function(event) {
width = '';
height = '';
var img = new Image();
img.onload = function() {
width = 'width='+(this.width + 240);
height = 'height='+(this.height + 360);
}
im... | javascript jquery | [3, 5] |
3,312,182 | 3,312,183 | filtering the records in the second grid according to the selection in the first in .Net | <p>which control can i use?, how to do this .Net?</p>
| c# asp.net | [0, 9] |
5,721,803 | 5,721,804 | How to create jQuery if statements from php array? | <p>I have array with both image colour and image id values.</p>
<p>I can echo this info, but I don't know how to get this into js file.</p>
<p>My js file is like this:</p>
<pre><code>$(document).ready(function(){
var colour = false;
$('.options').click(function(){
colour = $(this).val();
con... | php jquery | [2, 5] |
4,749,254 | 4,749,255 | Restarting countdown clock | <p>This is how it looks currently:</p>
<pre><code>final CountDownTimer countdown = new CountDownTimer(5000, 1000) {
public void onTick(long millisUntilFinished) {
clock.setText("Seconds Remaining: " + millisUntilFinished / 1000);
}
public void onFinish() {
qcount++;
if (qcou... | java android | [1, 4] |
5,579,130 | 5,579,131 | accessing multiple instances in jquery | <p>so i have a page of products, and for each one i want to cycle through some images on mouseover, and have it stop on mouseout. the following code is my current state...</p>
<p>initially i had it working where it checked a global variable called repeatCycle to see if it should rotate to the next image. this caused... | javascript jquery | [3, 5] |
1,358,876 | 1,358,877 | JavaScript not detecting change | <p>I am sure this is easy but I've looked all over with no luck. I have written a paging jQuery script that animates a list on my page. I have next and previous buttons which I am showing/hiding depending on where you are in the list however it doesnt pick up the position change the first time. Here is my code in jsFid... | javascript jquery | [3, 5] |
3,329,622 | 3,329,623 | How check at lease one checkbox is checked inside ASP.NET repeater control in Javascript | <p>In my asp.net website; i have REPEATER control having child control checklistbox , dynamically generates in code behind.</p>
<p>I would like to know how can i write javascript function where i have to check at least one checkbox should be checked.</p>
<p>Ho can i acheive? Please Help?</p>
| javascript asp.net | [3, 9] |
3,994,155 | 3,994,156 | jQuery : displaying a div according to which image i clicked on | <p>i'm having a trouble to display text according to images i clicked on.</p>
<pre><code><ul id="boutique1">
<li><a href="#first"><img src="images/image1.jpg">nothing</a></li>
</ul>
</code></pre>
<p>When i click on these first link, i want to display that : </p>
<p... | javascript jquery | [3, 5] |
1,356,569 | 1,356,570 | Javascript IF loop takes false and execute the true loop with jquery | <p>Here is jquery code in rails app. The purpose of the code is to eval the value of #rfq_need_report and show the #rfq_report_language if need_report is true or hide if false:</p>
<pre><code>$(document).ready(function() {
var rpt = $('#rfq_need_report').val();
alert(rpt);
if (rpt) {
alert(rpt);
$('#rfq... | javascript jquery | [3, 5] |
4,103,669 | 4,103,670 | Escaping special characters in JavaScript | <p>I need a method in JavaScript to escape all characters which are not ( a-z / A-Z / 0-9 / - / _ )</p>
<p>If the character is ø it should be replaced with oe, if it's å then replaced with aa, and more.... if characters are not on the list, they should be replaced with an underscore.</p>
<p>If there are 2 underscores... | php javascript | [2, 3] |
5,101,824 | 5,101,825 | How to create a working array with images in Android? | <p>I have been struggling to work with images using an array for my android application , i had created an array with a few images but even after i use a loop only 1 image gets loaded on the imageview i.e the last image present in the array so here only 'fourofclubs.png' is getting loaded. Basically i want to load imag... | java android | [1, 4] |
2,285,108 | 2,285,109 | libEGL called unimplemented OpenGL ES Api Android | <p>I have looked through the solutions on stackoverflow and none of them seem to fix my problem. I have included the API in my manifest file:</p>
<p>
</p>
<pre><code><uses-sdk android:minSdkVersion="10" />
<uses-feature android:required="true" android:glEsVersion="0x00020000"/>
<application
android... | java android | [1, 4] |
4,064,117 | 4,064,118 | ASP.NET Button causes a postback | <p>I have an asp.net button on the page. I am trying to do this:</p>
<pre><code> $("#btn").click(function(e) {
e.preventDefault();
alert('hi');
}
</code></pre>
<p>But the alert never shows up. I have to use an ASP.NET button only and not a HTML one. </p>
| asp.net jquery | [9, 5] |
4,300,546 | 4,300,547 | Get string from url using jQuery? | <p>Say I have <code>http://www.mysite.com/index.php?=332</code></p>
<p>Is it possible to retrieve the string after <code>?=</code> using jQuery? I've been looking around Google only to find a lot of Ajax and URL vars information which doesn't seem to give me any idea.</p>
<pre><code>if (url.indexOf("?=") > 0) {
... | javascript jquery | [3, 5] |
5,961,493 | 5,961,494 | Button won't re-enable it self using jQuery | <p>I can't figure out why my button won't re-enable when another button is clicked. Any help will be most appreciated</p>
<p>My code is as follows: </p>
<pre><code>$(document).ready(function() {
$('#btnAdd').click(function() {
// enable the "remove" button
$('#btnDele').attr('disabled','');
}... | javascript jquery | [3, 5] |
2,018,371 | 2,018,372 | What's the best way to detect a 'touch screen' device using JavaScript? | <p>I've written a jQuery plug-in that's for use on all browsers and mobile devices and I wondered if there was a way with JavaScript to detect if the device has touch screen capability. I'm using the jquery-mobile.js to detect the touch screen events and it works on iOS, Android etc but I'd like to be write conditional... | javascript jquery | [3, 5] |
879,865 | 879,866 | AndroidHttpClient and DefaultHttpClient | <p>Is there much difference between those two and which one is preferably to use?</p>
| java android | [1, 4] |
1,177,159 | 1,177,160 | Measure window Non-Html Height? | <p>Is there any way of measuring the Height of the selected section by Javascript / JQuery ?</p>
<p><img src="http://i.stack.imgur.com/74hzT.jpg" alt="enter image description here"></p>
| javascript jquery | [3, 5] |
3,513,997 | 3,513,998 | android html links | <p>Using this code <code>map.put(TAG_LINK, "" + Html.fromHtml(link));</code> i am able to parse json hyperlinks into my view. But the problem is it will only show me the word and i`m not able to click on it. For example if i have </p>
<pre><code><a href="http://something"> CLICK </a>
</code></pre>
<p>, i ... | java android | [1, 4] |
2,330,565 | 2,330,566 | What's the best way to reuse Javascript routines in VS2008? | <p>Probably a dumb question, but is it still using "Include files"?</p>
| asp.net javascript | [9, 3] |
4,237,052 | 4,237,053 | Should i check if a custom object is dirty before updating | <p>So i was wondering about this today. Is there really any need to check if a custom object of mine is dirty or not before updating the object? The way i look at it is, checking and setting the object for a dirty state is just more calls the server has to make as opposed to making one call to the database. If the o... | c# asp.net | [0, 9] |
3,101,812 | 3,101,813 | Ringtone saving but have to set manually | <p>I have a soundboard app and i am wanting to get the sounds to save as ringtone or notification when the button is long clicked which works fine but then the user would have to go and set the ringtone in the sound tab.</p>
<p>I would like if its possible for the ringtone to save and be set as defualt so it overrides... | java android | [1, 4] |
11,839 | 11,840 | Is there a way to display the content of a http link in a feed? | <p>If I have www.google.com, and I am displaying it in a feed, is there a way to show the contents of that link the way facebook does? I.e. when I paste the link into the text input, it will display part of the contents of the link and a picture of it?</p>
<p>Edit:
Sorry I meant something like the attached.Do you see ... | javascript jquery asp.net | [3, 5, 9] |
1,312,807 | 1,312,808 | Keep app running in background | <p>i made an application which keep the screen awake, and it works fine until it gets killed by the system.
How can i keep my app running in background?
I see a lot of apps that uses notifications to stay running and avoid being killed, but i don't know how to implement it.
Can someone help me achieve this?</p>
| java android | [1, 4] |
628,461 | 628,462 | How to work around Response / Server which does not exist in the context? | <p>I have this C# ASP.NET 4 website.</p>
<p>I would like to have a general method in a class which will include a Response.Redirect or Server.Transfer in it to a specific page.</p>
<p>Both names, Response and Server, does not exist in the context.</p>
<p>How to work this around?</p>
<hr>
<p>as for the comment by @... | c# asp.net | [0, 9] |
142,099 | 142,100 | stream webcam via webpage asp.net | <p>H,</p>
<p>How do I stream my webcam through a webpage in c# using asp.net</p>
<p>Thanks
Sp</p>
| c# asp.net | [0, 9] |
923,332 | 923,333 | Why is the dblclick event working like the click event? | <pre><code>$('#ajax-links a').live('click', function(e) {
var url = $(this).attr('href');
url = url.replace(/^.*#/, '');
$.history.load(url);
return false;
});
</code></pre>
<p>Whenever I replace 'click' with 'dblclick' it still behaves as the click event. The demo is here (http://www.serpere.info/jqu... | javascript jquery | [3, 5] |
389,308 | 389,309 | get to the label inside an iframe | <p>Can someone please show me how to get to <strong>label1</strong> inside the iframe via JavaScript?</p>
<p><strong>WebForm1.aspx</strong></p>
<pre><code><html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" ru... | javascript asp.net | [3, 9] |
3,489,405 | 3,489,406 | Is java still a relevant language? | <p>I want to learn a nice easy to use versatile language. I do know some Java, but is it relevant? Or should I move on too JavaScript with the advent of HTML5?</p>
| java javascript | [1, 3] |
4,271,006 | 4,271,007 | how can i create dynamic page in asp.net (C#)? | <p>i add one page First.aspx in website. on First.aspx page i have one button
on click of that button the new dynamic page can be open.
how can i do this.
remember the new page is not in website this page create at runtime and dynamic also
please help me out</p>
| c# asp.net | [0, 9] |
4,796,706 | 4,796,707 | jquery ui datepicker like input widget | <p>i' like to make some jquery widget, which will have behavior like jquery ui datepicker:
it should appears when focus on input tag and this widget and should be hidden when
user mouse focus not in this widget and input tag,
can you help me to say the right way to implement this behavior</p>
<p>thanks</p>
| javascript jquery | [3, 5] |
2,207,837 | 2,207,838 | Added javascript and now links don't work | <p>I added javascript to detect when a link is clicked, which works properly, however now the links aren't working (ie. they don't take the user to the linked page).</p>
<p>HTML:</p>
<pre><code><div class="designflow" style="padding-left:50px;padding-right:0px;padding-top:0px;padding-bottom:15px;margin-top:0px;flo... | javascript jquery | [3, 5] |
4,172,497 | 4,172,498 | Creating a generic data editing user control | <p>I have a user control which has a Gridview and a listview, I want to make this control generic so that I can just pass the type of the class I want to edit, which would be a linq entity, and then it would automatically do the rest, so far I havent had any success and I was wondering if anybody knows a tutorial or so... | c# asp.net | [0, 9] |
3,254,079 | 3,254,080 | Caching data in fields in form input | <p>I have a small form with two fields: login + password.
I would like when a user gets connected by entering valid credentials, and when he comes back for new login, to cache data in form fieds. Like when we go to the gmail interface and find the email address and password are already in the fields and we just have to... | php javascript | [2, 3] |
809,897 | 809,898 | Switching Views inside a TimerTask - Android | <p>I have the following code that responds to a button click, changes the view and then after 5 seconds switches the view back:</p>
<pre><code>public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.menu);
Button test = (Button)findViewById(R.id.browseL... | java android | [1, 4] |
3,577,161 | 3,577,162 | load dynamically jquery | <p>I'm using the following script to load jquery in the head in case if is not already loaded.</p>
<pre><code><script type="text/javascript">
if(!window.jQuery)
{
var script = document.createElement('script');
script.type = "text/javascript";
script.src = "http://ajax.googleapis.com/ajax/libs/jquery/1.7... | javascript jquery | [3, 5] |
3,362,921 | 3,362,922 | AES encryption for iOS and Android | <p>We are creating same project in android and iPhone. Now the problem is that we need to send some information to php server using web service in aes encrypted form. We both have implemented it but results are different so is there a common AES encryption method which will produce same result and can be parsed at the ... | android iphone | [4, 8] |
215,484 | 215,485 | Get raw data from Http Request? | <p>I want to save the raw, full data of an <code>HttpRequest</code>. At the moment I have this:</p>
<pre><code>Request.ContentEncoding.GetString(Request.BinaryRead(int.MaxValue));
</code></pre>
<p>But this only gets the body of the HttpRequest. I also want to get the headers. In the raw form, http requests are transf... | c# asp.net | [0, 9] |
3,359,943 | 3,359,944 | javascript method extension | <p>I need to call "MyOtherFunction" when "MyFunction"(which creates an element) completes, without MyFunction knowing what MyOtherFunction is to update according to created elements.</p>
<p>The reason I need this is for extension of a jquery powered fileupload User Control that is used in several places with different... | javascript jquery | [3, 5] |
2,879,254 | 2,879,255 | Call focus() after jQuery append() is completed | <p>I have an <code>append()</code> and a <code>focus()</code> which is set to focus the first input in the appended <code>dom</code>. </p>
<p>IE is taking time to append and so the focus is not working. Is there a way (other than <code>setTimeout</code>) to set the focus after the <code>dom</code> is fully appended? <... | javascript jquery | [3, 5] |
5,286,249 | 5,286,250 | How to count online people connected to my web site with jQuery or st? | <p>i created a web site with asp.net 4.0 and now i need to count online people that connected to my web site.
how do i do this with JQuery?</p>
| jquery asp.net | [5, 9] |
3,472,883 | 3,472,884 | Public class with only public static members | <p>I have a public class that only contains public static members.</p>
<p>I know this is not the best thing to do but I was just wondering why on my Android, if I pause the application, open a few others and come back to mine, all variables seems to be (null).</p>
<p>Questions:</p>
<ol>
<li>Is it because of some kin... | java android | [1, 4] |
2,250,943 | 2,250,944 | Select some images in android | <p>I am learning touch and working on a project in which there are many images of alphabets say</p>
<p><code>X I A O W I E P</code> Now i want to select few images using touch and drag to select more than two images. Lets say i selected <code>xia</code> , now i want to show this on <code>editText field</code>. </p>
<... | java android | [1, 4] |
4,909,641 | 4,909,642 | JQuery how to apply on list of selectors | <p>I'm newby with Jquery and I'm trying to find out how to apply on a list of selectors. Sometimes I need to be able to differentiate c1,c2 and c3. For others I'd like to apply to the three something</p>
<pre><code>$c1 = $div.find('#widget-row-c').sortedList();
$c2 = $div.find('#widget-col-c').sortedList();
$c2 = $div... | javascript jquery | [3, 5] |
3,255,490 | 3,255,491 | Getting the next element with the same class during the page scroll with jQuery | <p>On a page I have 10 elements with the same class name:</p>
<pre><code><span class="simpleclass">text</span>
</code></pre>
<p>What I'm trying to do is - go to the next element with class "simpleclass" when the page is scrolled. That means that for the first time when I scroll the page I need to get a re... | javascript jquery | [3, 5] |
1,002,057 | 1,002,058 | javascript code to hide | <p>I'm trying to write javascript code where there is an object called "costCenter" which the visibility should be false. but when i click on the "computer" item on my dropdownlist it will set the "costcenter" visibility to true.</p>
<p>so far this is what i have. is this the proper use of syntax for javascript?</p>
... | javascript jquery asp.net | [3, 5, 9] |
2,319,816 | 2,319,817 | Javascript ContextMenu in IE7 | <p>We are using div tag in aspx and javascript functions to show context menu in our web application. In IE6 the sub menus in the context menu are getting displayed at the correct x and y coordinates what we have hard-coded in our application. But in IE7 and IE8, the sub menus are getting overlapped and in some machine... | asp.net javascript | [9, 3] |
4,003,627 | 4,003,628 | Collect tr ids using jquery | <p>Here I have a table structure </p>
<pre><code><table>
<tr>
<th>F name<th>
<th>L name<th>
<th>Add<th>
</tr>
<tr id="test3">
<td>ssss</td>
<td>sss</td>
&... | php jquery | [2, 5] |
5,198,555 | 5,198,556 | How to print a page content (div, form, jqgrid) using a single button click? | <p>i.e. When I click the button from my page, the desired page content should get printed in a sheet. The main goal over here is, it should not show me with the print dialog box/print preview of the page asking for OK or CANCEL button where we can also choose for multiple prints of a particular page. Thanks in advance.... | java javascript jquery | [1, 3, 5] |
1,752,458 | 1,752,459 | Save data to SQL 2000 from asp.net page using jquery (C#) | <p>I am currently looking for a good solution that implements this. I have a comments section and I want the comments posted to my database using jquery and then the section gets refreshed without having to reload the page. How feasible is this and does it have any security or performance issues?</p>
<p>Thanx</p>
| c# asp.net | [0, 9] |
4,615,399 | 4,615,400 | jQuery iframe file upload | <p>Im building a file upload with jQuery, but Im getting a jQuery error trying to set the attributes of the form:</p>
<pre><code>$(document).ready(function () {
$("#formsubmit").click(function () {
var iframe = $('<iframe name="postframe" id="postframe" class="hidden" src="about:none" /... | javascript jquery | [3, 5] |
3,159,870 | 3,159,871 | textarea auto expand | <p>Hi I have this auto expand textarea jquery code and currently, it is working somehow there except for Google Chrome. </p>
<p>The issue is when I added the style padding:3px to the textarea, whenever I type something in the box, it will expand the height. If I remove the style padding, it will work nicely. </p>
<p>... | javascript jquery | [3, 5] |
4,137,244 | 4,137,245 | let user scrolling stop jquery animation of scrolltop? | <p>I want to make it so that a webpage automatically scrolls to a certain element, however I don't want the scrolling to fight user input-- If it begins to scroll and then the user scrolls, I want the automated scrolling to stop and let the user have full control.</p>
<p>So I originally thought I could do something l... | javascript jquery | [3, 5] |
3,688,441 | 3,688,442 | Remove item after max reached w/jQuery | <p>OK, I am trying to clone table with 3 elements in it. After I make 3 clones I need to continue cloning but remove item <strong>.val3</strong>.</p>
<pre><code>$('a').click(function(e) {
var $table = $(this).prev();
$table.after($table.clone());
e.preventDefault();
var n = $(".val3").length;
if ... | javascript jquery | [3, 5] |
4,908,353 | 4,908,354 | Saving a variable in the closure scope | <p>I have the following:</p>
<pre><code>var Save = $('th:first')[0];
$('th').click(function() {
if (Save !== this) {
Save = this;
...
}
});
</code></pre>
<p>How do I put "Save" into a closure scope?</p>
| javascript jquery | [3, 5] |
2,011,255 | 2,011,256 | PHP/Jquery: Using value of clicked element in a function | <p>I have an element of label class</p>
<pre><code><li><a><span class='label'>$element</span></a></li>
</code></pre>
<p>and I want to be able to run <code>loadStuff</code> onclick. How do I get the value of the clicked element to pass in like:</p>
<pre><code>$(".label").click(load... | php jquery | [2, 5] |
3,343,582 | 3,343,583 | Setting default values in spinner in android | <p>I am using a spinner using following code</p>
<pre><code> private String `DEFAULT_CURRENCY_TYPE`;
ArrayAdapter<CharSequence> adapter = new ArrayAdapter<CharSequence>(this, android.R.layout.simple_spinner_item, currenciesDataSource.keys);
adapter.setDropDownViewResource(android.R.layou... | java android | [1, 4] |
5,519,450 | 5,519,451 | Select text from a specific table cell on another page? | <p>I have a weird question. I want to create script in javascript (or PHP if I have to, I'm just more comfortable in javascript) that reads through a table until it finds specific text (know how to do that) and then returns the text three cells to the right. </p>
<p>To be specific, I want a script that finds a row for... | php javascript jquery | [2, 3, 5] |
2,193,157 | 2,193,158 | SQL user authentication web service | <p>Is it possible to authenticate user using a SQL database, containing users
and passwords?</p>
<p>What I want to achive is:
I have as SQL database containig data for my app. This database also
contains usernames, passwords and rights which are specific for my app.
Also I have a middle tier WebService, which contains... | c# asp.net | [0, 9] |
506,707 | 506,708 | View.getId and R.id.viewLabel return different values | <p>Let's say I have a method like this into my activity, and set it as <code>onClick</code> field of different buttons into xml:</p>
<pre><code>public void onButtonPressedFromView(View button) {
switch(button.getId()) {
case (R.id.button1) :
//do something
break;
case (R.id.button2) :
//do s... | java android | [1, 4] |
1,443,678 | 1,443,679 | How to schedule downloading of files on server using ASP.NET web page | <p>How to download a file from a web server to another iis server</p>
<p>e.g. I have lot of movie files which i want to host on my website</p>
<p>the movies are uploaded on other site and I want to grab them on my own site.</p>
<p>Is it possible to schedule asynchronously downloading of files on server using ASP.NET... | c# asp.net | [0, 9] |
5,419,129 | 5,419,130 | Modify what the user typed on a text box onsubmit and select? | <p>I'm using a script to return what the user types on an inputbox without www.</p>
<p>I want the modification to work in the inputbox itself. Is this possible?</p>
<p>Like for example the user types: www.example.com and when he presses GO www. disappears from what he typed and then the text is highlighted (selected)... | javascript jquery | [3, 5] |
3,716,233 | 3,716,234 | 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] |
1,167,934 | 1,167,935 | Delete Gallery Folder on Android | <p>I would like to delete all images within a gallery folder (album). Given the URI of one image in the gallery, how can I obtain the other URIs so I can call getContentResolver.delete() on each.</p>
| java android | [1, 4] |
1,891,378 | 1,891,379 | How do I allow the user to move an absolutely positioned div? | <p>I am using jQuery to create a "dialog" that should show up in the center of the page on top of everything and should remain centered at all times unless the user moves it. It has a header area (like a title bar) and I would like the user to be able to click there and drag the dialog "window" around. It is an absolu... | javascript jquery | [3, 5] |
2,432,205 | 2,432,206 | .trigger() a .on() | <pre><code>var $forms = $('form.vote');
$forms.submit(function(){
return false;
});
$('.votebtn').on('click',function(){
$this.closest('form').trigger('vote_now', [$(this).val()]);
});
$forms.on('vote_now',function(value){
alert(value);
});
</code></pre>
<p><code>vote_now</code> should be triggered and po... | javascript jquery | [3, 5] |
4,605,279 | 4,605,280 | populating dropdownlist with hours in c# | <p>I have to 2 dropdownlists and I want to populate them with hours from 1 to 24. Then I want to make the difference between them.If i choose in the first dropdown let's say the hour 12 AND in the second 16 then the difference will be 4. How can I achieve that in c#? I'm developing a asp.net web application with c#.Thi... | c# asp.net | [0, 9] |
2,126,612 | 2,126,613 | getting value first offset name after click? | <p>How can get value <code>2011</code> in <code>input:name</code> with jquery?</p>
<pre><code><input type="text" name="hi[2011][]">
</code></pre>
<p><strong><a href="http://jsfiddle.net/QRkjs/" rel="nofollow">Example:</a></strong></p>
<pre><code><button>Click me</button>
<input type="text" name=... | javascript jquery | [3, 5] |
332,521 | 332,522 | Gridview using hyperlink field for javascript | <p>I have a grid view and i am using an hyperlinkfield. Now i need to call another web page using this hyperlink field. This page should be a pop up. </p>
<p>It has to be a javascript function. Dynamically i need to pass group_id value as a query string.</p>
<p>Can you please let me know how to do this.</p>
<p>Right... | c# javascript | [0, 3] |
1,579,823 | 1,579,824 | Proper way to decode SecurityElement.Escape using Javascript | <p>I've tried several methods to decode encoded xml using javascript. For some reason all of them ignore ' which causes it to fail. I can do a string.replace to fix the issue, but wondering why this happens or if there is some other method I should be using.</p>
<p>I've tried decodeURIComponent as well as another... | c# javascript asp.net | [0, 3, 9] |
2,869,804 | 2,869,805 | how to add object to array | <h1>how to add object to array</h1>
<p>how can add <strong>a object into a array</strong> (code in javascript or jquery)
for example
what is the problem this code?<br>
</p>
<pre><code> function(){
var a = new array();
var b = new obejct();
a[0]=b;
}
</code></pre>
<p>for example use this code for ... | javascript jquery | [3, 5] |
2,545,616 | 2,545,617 | C++ abstract classes | <p>I am new to C++, I coded in Java for an year. The equivalent in C++ for interfaces and abstract classes alike is only abstract classes. Is that supposed to be a handicap while doing factory design? There are many times I want to leave out the defining the methods to the inheriting classes and I want to enforce that.... | java c++ | [1, 6] |
624,351 | 624,352 | Header changes while the browser scroll down action | <p>I have a Header with fixed position. I need to change that header while the browser scrolls actions. See below my code. It is not working. Pls help me</p>
<pre><code><style>
body {
height: 900px;
}
#header {
height: 40px;
width: 100%;
position: fixed;
top: ... | javascript jquery | [3, 5] |
3,122,094 | 3,122,095 | Internet task which modifies the view - CalledFromWrongThreadException | <p>I want to modify the TextViews of a tabbed Activity view using a TimerTask.<br>
Here's the code of the task class: </p>
<pre><code> public class QueryServer extends TimerTask {
public void run(){
MCQuery mcQuery = new MCQuery(serverAddrress,25565);
QueryResponse response = mcQuery.basicSta... | java android | [1, 4] |
3,749,522 | 3,749,523 | How to add time to my date object? | <p><strong>How to add time to my date object which i select using DatePicker.</strong> The date picker by default set's the time to <code>00:00:00</code> to my date object, i need to add the current system time to my date object.</p>
<pre><code>Calendar now = Calendar.getInstance();
int hours = now.get(Calendar.HOUR_O... | java android | [1, 4] |
4,533,174 | 4,533,175 | How do I assign click handlers to each child with jquery? | <pre><code><div id="menu">
<div class="menuitem-on" id="home">Home</div>
<div class="menuitem-off" id="mycart">My Cart</div>
<div class="menuitem-off" id="shop">Shop</div>
</div>
</code></pre>
<p>how do I assign click handlers to each of the children of menu ... | javascript jquery | [3, 5] |
5,029,778 | 5,029,779 | Android Drag, Pinch Scale, and Rotate Objects | <p>Does anyone have a resource or suggestion on how to learn how to do pinch scale, drag/pan, and rotation of objects on Android. I have completed an app for iOS and all of these features were seamless integrated, but I'm not sure where to start with Android.</p>
<p>The purpose of the app is to simply drag images fro... | java android | [1, 4] |
745,902 | 745,903 | How to get the first name of each list? | <p>Sorry if the title isn't clear enough, I have five <code><li>'s</code> in each <code><li></code> I have <code><a></code> and a <code><div></code> and in each <code><div></code> I have a <code><ul></code>with a class of "config". Then in that I have two <code><li></code>.</p>... | javascript jquery | [3, 5] |
3,594,719 | 3,594,720 | jQuery: Global Variable Namespace Problem | <p>Is there a way to declare a global variable in jQuery in its own namespace?</p>
<p>Sure, I can declare global variables with plain old JavaScript, but they will fall in the <code>window</code>'s namespace. For example, if I had a variable named <code>document</code>, it would surely overwrite the <code>document</co... | javascript jquery | [3, 5] |
1,641,278 | 1,641,279 | Link button control using asp.net | <p>I have one link button in master page and one dropdown list in content page .
Can any one tell How to change the visibility of the dropdown list.</p>
| c# asp.net | [0, 9] |
5,208,808 | 5,208,809 | jQuery filter selector, is this right? | <p>It seems to work ok but I don't know if this can be impoved on or not.</p>
<p>I want to select any HTML tag that has a class of edit-text-NUM or edit-html-NUM and change the color of it. Here is what I am using...</p>
<pre><code>jQuery(document).ready(function(){
jQuery('*')
.filter(function() {
re... | javascript jquery | [3, 5] |
2,386,689 | 2,386,690 | Grid view SelectedRowStyle does not apply to Template Fields | <p>Markup</p>
<pre><code><asp:GridView ID="gridView_Config" runat="server" AutoGenerateColumns="False"
CssClass="gridViewStyle" OnRowDataBound="gridView_Config_RowDataBound" OnSelectedIndexChanged="gridView_Config_SelectedIndexChanged">
<Columns>
<asp:TemplateField ControlStyle-CssClass="ConfigProf... | c# asp.net | [0, 9] |
1,886,011 | 1,886,012 | Android java NullPointerException | <pre><code>public class Database extends Activity {
private TextView tvInfo = (TextView)findViewById(R.id.tvInfo);
private Button btnInfo = (Button)findViewById(R.id.btnInfo);
</code></pre>
<p>Hello guys, probably this is just an newbie error in java, but why is this throwing me a NPE? I'm just declaring those variab... | java android | [1, 4] |
3,181,646 | 3,181,647 | what's the jquery plugin that inserts text in a textbox, and it disappears upon focus? | <p>what's the jquery plugin that inserts text in a textbox, and it disappears upon focus?</p>
| javascript jquery | [3, 5] |
5,973,466 | 5,973,467 | No focus in settings menu on D-PAD use | <p>I am working on an Android handset that has a D-PAD.</p>
<p>Here is the scenario:
1) Open settings menu
2) Scroll to the bottom of the list using touch
3) Use D-PAD to scroll the list.</p>
<p>Problem: No focus/marker is shown when D-PAD is used to scroll the list items</p>
<p>I have tried to figure this out, but ... | java android | [1, 4] |
3,337,965 | 3,337,966 | JQuery shaking effect with some tilt/rotation | <p>I am trying to create an effect where on button click, the div would shake left and right and tilt about 10deg each way so it looks like a natural motion when shaking an object with two hands. I am able to create the left and right shaking effect but can't seem to tie it in with rotation. I also need this to work in... | javascript jquery | [3, 5] |
103,133 | 103,134 | Resizing Images with jquery ( nivo plugin ) | <p><a href="http://nivo.dev7studios.com/demos/" rel="nofollow">http://nivo.dev7studios.com/demos/</a></p>
<p>I am not a JS dev, I would like to know how to reduce the image in the the slider.</p>
<p>The js file that handlle this feature is jquery.nivo.slider.pack.js</p>
<p>Can some one help ?</p>
| javascript jquery | [3, 5] |
3,896,558 | 3,896,559 | sending mail along with embedded image using asp.net | <p>sending mail along with embedded image using asp.net </p>
<p>I have already used following but it can't work</p>
<pre><code>Dim EM As System.Net.Mail.MailMessage = New System.Net.Mail.MailMessage(txtFrom.Text, txtTo.Text)
Dim A As System.Net.Mail.Attachment = New System.Net.Mail.Attachment(txtImagePath.Tex... | c# asp.net | [0, 9] |
11,708 | 11,709 | Any PHP -> jQuery libraries out there? | <p>Have any bridge libraries been developed for PHP that provide access to the jQuery framework? Ideally it would be nice to have something fairly extensible so that creating jQuery-based content using PHP code would be fairly easy and customizeable. Does such a thing exist yet?</p>
| php javascript jquery | [2, 3, 5] |
2,327,271 | 2,327,272 | How to convert jquery code into javascript | <p>Yesterday I have put the question which was answered correctly but now I want to convert that same code into javascript. I have made some changes but its not work</p>
<p>working code- <a href="http://jsfiddle.net/SXzyR/8/" rel="nofollow">http://jsfiddle.net/SXzyR/8/</a></p>
<p>mycode- <a href="http://jsfiddle.net/... | javascript jquery | [3, 5] |
681,907 | 681,908 | how to copy checkboxlist item's value to listbox using jquery | <p>I have a checkboxlist in my page having item text as some languages (ex: c, c++, java, c#sharp.net etc.). I have an empty listbox called desired skills. HR recruiter will select some of the languages (items of checkboxlist) and click a button called desire to copy the selected ckeckboxes and that need to be populate... | jquery asp.net | [5, 9] |
3,938,613 | 3,938,614 | How to use device default theme for app? | <p>I have an app that I want to develop for Android 2.1, 2.2, 2.3.3, 3.0/3.1 and 4.0.x. Between those API levels, there are about 3 different types of Themes. The latest 4.0.x theme is Holo. </p>
<p>Anyways, I want my app to use the default Android theme for whatever device it's on. If it's on a 4.0.x device, I want i... | java android | [1, 4] |
1,841,599 | 1,841,600 | Expanding the dimension of an element | <p>I have a thumbnail. When i click on it, how can i enlarge it. I know there are many plugins that do this, but is there simple code that serve the purpose. </p>
| javascript jquery | [3, 5] |
286,749 | 286,750 | jQuery: Store additional/extra data/info inside a jQuery object? | <p>Is it possible and smart to store extra data inside a jQuery object?</p>
<p>Right now I have objects that contain some data but these objects also have a visual representation of that data. This works but I have a lot of code to keep them both in sync. </p>
<p>For example if you delete an object from the dom I als... | javascript jquery | [3, 5] |
3,067,941 | 3,067,942 | How to remove javascript code as gmail does? | <p>I am currently working on securing my javascript code. I am using Asp.net 4.0 When i was checking my mail on gmail I just right clicked & selected view source & It just showed me <code><html><body></body></html></code> . Can i implement this type of security in my application or any o... | javascript asp.net | [3, 9] |
5,358,042 | 5,358,043 | dynamically add clickable row to table | <p>I'm trying to add rows to a table in HTML using JavaScript that are clickable. </p>
<p>Here is my codes:</p>
<p>HTML:</p>
<pre><code><table border="1" id="example" style="cursor: pointer;">
<tr>
<th>1</th>
<th>2</th>
<th>3</th>
&l... | javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.