Unnamed: 0 int64 302 6.03M | Id int64 303 6.03M | Title stringlengths 12 149 | input stringlengths 25 3.08k | output stringclasses 181
values | Tag_Number stringclasses 181
values |
|---|---|---|---|---|---|
1,547,941 | 1,547,942 | Intercept when new rows are added to a table | <p>Within a legacy application I have a table to which initially only a subset of available rows is displayed in order to fit the current page size. When the user scroll down the div containing the table, automatically new rows are added via javascript.</p>
<p><strong>What I need to do is to be able to intercept <em>w... | javascript jquery | [3, 5] |
3,973,794 | 3,973,795 | jquery, submit form when field loses focus | <p>How can I submit a form when a field (In this case the form only has one field) loses focus?</p>
<p>I tried this, but it's not working:</p>
<pre><code>$("form").submit();
</code></pre>
<p><strong>UPDATE</strong></p>
<p>I forgot to mention that the form was created with jquery as well:</p>
<pre><code>$("div").ht... | javascript jquery | [3, 5] |
373,423 | 373,424 | Looping through HTML code in PHP/JavaScript | <p>Instead of writing:</p>
<pre><code><ul class="tabs">
<li><a href="#tab1">1-50</a></li>
<li><a href="#tab2">51-100</a></li>
<li><a href="#tab3">101-150</a></li>
<li><a href="#tab4">151-200</a></... | php javascript | [2, 3] |
2,939,816 | 2,939,817 | Jquery - Loop through Checkboxes and Multiple elements | <p>All,</p>
<p>I have a set of elements like this in a form:</p>
<pre><code><input type="checkbox" name="chk[140]">
<input type="hidden" value="3" name="ctcount[140]">
<input type="hidden" value="Apples" name="catname[140]">
<input type="checkbox" name="chk[142]">
<input type="hidden" valu... | javascript jquery | [3, 5] |
749,811 | 749,812 | Listbox scrolling to the selected item in ASP.net | <p>I wanto to make my ListBox control scroll to the selected item.</p>
<p>Here is my code:</p>
<pre><code>protected void Button2_Click(object sender, EventArgs e)
{
ListBox1.SelectionMode = ListSelectionMode.Multiple;
ListBox1.SelectedIndex = -1;
for (int i = 0; i < ListBox1.Items.Count; i++)
{
... | c# asp.net | [0, 9] |
1,228,215 | 1,228,216 | getting data out of a function | <p>Im sort of new to this, but I was wondering how I can grab the data (ie:shapeID) from this function and pass it on to other functions making it a global variable.</p>
<pre><code>$('.shapes li').click(function(shapeId){
var shapeId = $(this).find('a').attr('id');
var shapeImg = $(this).find('img');
step2... | javascript jquery | [3, 5] |
3,580,045 | 3,580,046 | Embedded JavaScript doesn't work | <p>I have embedded JavaScript in ASP.NET application:</p>
<pre><code>function HelloFromEmbedded()
{
window.alert('Hello from embedded resource.');
}
</code></pre>
<p>In AssemblyInfo.cs file:</p>
<pre><code>[assembly: WebResource("JavaScript1.Scripts.EmbeddedJavaScript.js", "text/javascript", PerformSubstitution ... | javascript asp.net | [3, 9] |
5,177,943 | 5,177,944 | How to insert additional text using jquery or javascript | <p>I want to know is it possible to insert additional text in HTML elements using jquery or javascript?</p>
<p>If there is already a text "Down" in paragraph elements, then I just want to append text "full", so that it would be "Down full". Is this possible? Which method should I use? </p>
| javascript jquery | [3, 5] |
4,712,651 | 4,712,652 | document.getElementById works, but $ is throwing an error | <p>I have this code here : </p>
<pre><code><select id="test">
<option value="1">test1</option>
<option value="2" selected="selected">test2</option>
<option value="3">test3</option>
</select>
</code></pre>
<p>In my script I have these two line of ... | javascript jquery | [3, 5] |
1,972,571 | 1,972,572 | Cancel an OnTouchListener on elapsed time | <pre><code> image.setOnTouchListener(new OnTouchListener() {
@Override
public boolean onTouch(View arg0, MotionEvent arg1) {
String serverResponse = "";
JSONObject responseToJSON = null;
try {
//if we have Inter... | java android | [1, 4] |
3,852,081 | 3,852,082 | regular expression for string that starts with 'http://' | <p>Hi guys just like in the title - I need regular expression that will match anything that starts with 'http://'</p>
| php javascript | [2, 3] |
4,591,552 | 4,591,553 | Wrap a nodeValue | <p>I try to wrap a text in this code</p>
<pre><code><div class="div">
<span></span>
<a></a>
*text I want to wrap*
<span></span>
</div>
</code></pre>
<p>I know what the text is, but I can't know what is his position in the div</p>
<pre><code>$(".div:cont... | javascript jquery | [3, 5] |
2,367,840 | 2,367,841 | How to run new window.open and auto add Ctrl key? | <p>In ff & chrome Ctrl + click the url, it will open a new tab and the screen keep on the old url.
When I try to use javascript window.open it will open a new tab too, but the screen will change to the new tab.
How to use window.open open new tab and keep the screen in the old url ??</p>
<p>Or,.. can I use jquery ... | javascript jquery | [3, 5] |
2,797,826 | 2,797,827 | How to remove the decimal part from a float number that contains .0 in java | <p>I just want to remove the fractional part of a float number that contains <strong>.0</strong>. All other numbers are acceptable..
For example : </p>
<pre><code> I/P: 1.0, 2.2, 88.0, 3.56666, 4.1, 45.00 , 99.560
O/P: 1 , 2.2, 88, 3.567, 4.1, 45 , 99.560
</code></pre>
<p>Is there any method available to... | java android | [1, 4] |
290,154 | 290,155 | JQUERY: How do I know if this element is currently open/closed (slidetoggle) | <p>Im using the following to open/close a div</p>
<pre><code>$(".alerts").click(function(){
$(this).toggleClass("active").next().slideToggle(50);
</code></pre>
<p>But I want a certain function to trigger only if the box was closed and is being opened, how can I determine this? I prefer not to use cookies or any... | php jquery | [2, 5] |
4,024,134 | 4,024,135 | The type or namespace name 'Exchange' does not exist in the namespace | <p>When I run my ASP.net app I get this error:</p>
<pre><code>Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
</code></pre>
<p>Compiler Error Message: CS0234: The type o... | c# asp.net | [0, 9] |
2,997,761 | 2,997,762 | Mac Programming to Android Programming | <p>I would like to get started programming Android apps. I don't know Java, however I do know Objective-C and the Cocoa API. What would be the best resource to learn Android programming if you don't know Java, given my experience?</p>
| java android | [1, 4] |
3,780,877 | 3,780,878 | When does an input field value equals '', null or undefined | <p>In which cases do an input field value equals <code>''</code>, <code>null</code> or <code>undefined</code>.</p>
<p>I'm trying to check empty fields</p>
<pre><code>if($('#cur').val() == 'undefined' || $('#cur').val() == '' || $('#cur').val() == 'null'){
alert('Blank');
}
</code></pre>
| javascript jquery | [3, 5] |
2,532,183 | 2,532,184 | Using .text() to select a class but having issues with spaces within the html | <pre><code>$('li.' + $(this).text()).toggle(true);
</code></pre>
<p>This code is used to take from a subnav below.</p>
<pre><code><div class="subNav">
<ul>
<li class="button">sun protective clothing</li>
</ul>
</div>
</code></pre>
<p>These are products that w... | javascript jquery | [3, 5] |
1,449,422 | 1,449,423 | How big is the Android market compared to the iPhone appstore? | <p>I'm new to app programming. I know the basics but now I want to focus on one market. Which one is usually more profitable?</p>
| iphone android | [8, 4] |
5,906,777 | 5,906,778 | Remove element by class using parent() | <p>I am making changes to a jQuery validator, when there is an error it inserts a div to the parent element. I am trying to remove an the inserted div with by the specific class name from the parent. </p>
<pre><code>$(element).parent().remove('.removeThis');
</code></pre>
<p>I thought the above code would work but it... | javascript jquery | [3, 5] |
1,918,158 | 1,918,159 | Load new image when a user clicks on a link | <p>I'm trying to figure out how to load a new image with ajax when a link is clicked on.</p>
<p>The link looks like this (there are several links like this on the page they have little image thumbnails inside them so user can know approximately what image will load when he/she clicks on the link):</p>
<pre><code><... | javascript jquery | [3, 5] |
5,059,447 | 5,059,448 | How to Know Page Location Where the Page is moving when user clicks browser back button | <p>Can Any one tell me that How to Know Page Location Where the Page is moving when user clicks browser back button....</p>
| javascript jquery | [3, 5] |
4,171,591 | 4,171,592 | How to unbind all events inside a particular div | <p>I have a parent div , say with id="to-remove"</p>
<p>This div has multiple children divs and each children div also can have in-turn multiple divs and each of them can have href and/or onclick events.</p>
<p>Is there way to remove all these events from inside this parent div using jquery..?</p>
| javascript jquery | [3, 5] |
4,453,506 | 4,453,507 | Cookie not being set in IE | <p>I am setting a cookie in js and then checking in php whether it exists or not to determine whether the user has js enabled.</p>
<p>The non-js and js users are then served a different version of certain pages. This is working fine in ff, but not in IE? in IE we are seeing the version of the page as if no js is enabl... | php javascript | [2, 3] |
1,349,645 | 1,349,646 | hover over image unwraps a hidden div | <p>I have seen these on many sites. Basically, I'm creating a portfolio and I have a number of divs (squares in grid format) showing screenshots of my projects. I want to be able to hover over each project with my mouse which will in turn slide in a previously hidden div revealing specific information about that partic... | javascript jquery | [3, 5] |
4,435,143 | 4,435,144 | history.go(-1) function not working for dropdown | <p>i am using the function history.go(-1) function on my button to go back. but i am getting a prob in value selected in dropdown. </p>
<p>the sourceview is showing the original value selected but on UI its showing the previous value</p>
<p>means when i click on back button,</p>
<p>UI shows the same value but when i... | javascript asp.net | [3, 9] |
1,992,244 | 1,992,245 | Replace a element instead another element by jQuery | <p>I want replace a(or each) element(number) instead another element(number) in a class while running page.</p>
<p>I try as following code but doesn't word true, what do i do?</p>
<p><strong>DEMO:</strong> <a href="http://jsfiddle.net/yMnDt/" rel="nofollow">http://jsfiddle.net/yMnDt/</a></p>
<pre><code><div class... | javascript jquery | [3, 5] |
5,793,666 | 5,793,667 | jQuery variable with 0 (zero) value | <p>I have a variable that I past to a function called <code>comment_test</code> that will sometimes be <code>0</code>, but it fails because I guess it reads it as <code>false</code>. I get the error <code>'ReferenceError: Can't find variable: count'</code>.</p>
<p>But, I need to know if the variable is indeed <code>0<... | javascript jquery | [3, 5] |
887,012 | 887,013 | How to hard code 7 int positions? | <p>I am using this method to retrieve some images.</p>
<p>The only problem is is where </p>
<pre><code>aURL = new URL(myRemoteImages[position]);
</code></pre>
<p>Position is i dont know how to get the position for each image in order to set the tag in my code.</p>
<pre><code> i.setTag(mImageURLs[position]);
</code>... | java android | [1, 4] |
4,421,191 | 4,421,192 | Android GUI gets hanged during registration on berkeke server | <p>I have written a code which involves media transmission between android device and a sip based phone.It works well for audio transmission.Further,I want to register the device on berkeke server but after 8seconds of launching,application gets hanged(device successfully got registered). I am unable to find whether th... | java android | [1, 4] |
4,751,041 | 4,751,042 | How to render html to image format | <p>I want to render "Hello dalvir" to image format so that hello dalvir shows in red color in image. How i can do it in C#.</p>
| c# asp.net | [0, 9] |
5,203,794 | 5,203,795 | What does it mean when your javascript is rendered like this? | <p>I was looking at the page source for an ASP.NET page I wrote and noticed that my javascript was being rendered like this:</p>
<pre><code><script type="text/javascript">
// <![CDATA[
document.write('<script src="/_layouts/myProject/js/jquery.min.js?rev=sEo7zNI93reYIUNwemPM%2BQ%3D%3D"></' + 's... | javascript asp.net | [3, 9] |
3,268,382 | 3,268,383 | Access browser close button | <p>I am in state that i need to detect browser close button where i have to show a popup , the problem is when a page is refreshed or you go back same event occurs as it does for close button does any one have idea how to accomplish this.is it possible to get co ordinates of close button of browser ? </p>
| javascript jquery | [3, 5] |
5,663,702 | 5,663,703 | custom gridview with grouping and export | <p>I am in search for gridview for my asp.net project where i can do grouping of the columns like
<a href="http://demos.devexpress.com/ASPxGridViewDemos/GroupingSorting/Grouping.aspx" rel="nofollow">http://demos.devexpress.com/ASPxGridViewDemos/GroupingSorting/Grouping.aspx</a></p>
<p>I also want to export the groupin... | c# javascript jquery asp.net | [0, 3, 5, 9] |
3,504,787 | 3,504,788 | Finding an item in a repeater control? | <p>This one might be simple, but here it is anyway.</p>
<p>I have a <code>List<Object></code> that I bind to a repeater. The repeater binds all of the fields to textboxes <strong><em>except <code>Id</code></em></strong>. In my web page, whenever a user adds a new item, I create a new <code>Object</code> in my li... | c# asp.net | [0, 9] |
5,419,138 | 5,419,139 | How to Check whether Session is Expired or not in asp.net | <p>i ve specified the session time out in web.config file..when the session is timeout im not getting redirect to login page but i am geting error saying object reference not set to an instance.</p>
<p>can any one tell me the solution for this?</p>
| c# asp.net | [0, 9] |
3,811,340 | 3,811,341 | Open a new link in a pop up is failing with unexpected T_STRING | <p>Is it possible to pop up window from a json line.</p>
<p>Example, this link works fine:</p>
<pre><code>$json['msg'] = 'Welcome. Please, <a href="http://mylink/?chat_session='.$rows['id'].'">click here</a>!';
</code></pre>
<p>But when I tried to create a pop up for it, it says errors T string parsing, ... | php javascript | [2, 3] |
4,748,919 | 4,748,920 | Retrieving some values in array | <p>Hi
I have an array of random question nos (ids). I have one form with a label for the question, a radiobutton list for their answers and a next button & checkbox to review that question. When I click the next button next(random from array) question appears. I want question id(array) those are checked for review.... | c# asp.net | [0, 9] |
3,463,103 | 3,463,104 | Clear application icon from Recent Activites? | <p>Is there any way I can remove my Application icon from the Recently opened applications that displayed when user presses and hold down the Home button? Once user closes my application I don't want it to be displayed on the recently opened application list.</p>
| java android | [1, 4] |
4,331,160 | 4,331,161 | jquery, div with table is not visible when I call show(); | <pre><code><div id="abclink">
+ click here to view
</div>
<div id="abctable" style="display: none;">
some text here, allot of text
</div>
</code></pre>
<p>So using jquery I try and do:</p>
<pre><code>$("#abclink").bind("click", function() {
$("#abctable").show();
});
</code></pre... | javascript jquery | [3, 5] |
1,318,808 | 1,318,809 | Jquery increase/decrease number in input text by up/down arrows keyboard | <p>I have a basic quantity field and would like to allow the user to increase/decrease the number within this input box based on the keyboard up/down.</p>
<p>Following on from: EndangeredMassa answer on keyboard code <a href="http://stackoverflow.com/a/375426/560287">http://stackoverflow.com/a/375426/560287</a> how wo... | javascript jquery | [3, 5] |
3,373,826 | 3,373,827 | Getting rid of the onclick when clicked with jQuery | <p>ok so i have some select tags of cities</p>
<pre><code> <select onchange="storeCity(this.value, false)" name="search[city]" id="search_city" class="left">
<option value="">== Select City ==</option>
<optgroup label="Florida"><option selected="selected" value="ft-myers-sarasota-fl">... | javascript jquery | [3, 5] |
5,882,970 | 5,882,971 | Jquery getting information from php | <p>I need to get information from a php file and put the information in jquery and i also need to know if the information has changed</p>
| php jquery | [2, 5] |
2,238,369 | 2,238,370 | Enclosing external jQuery file in $(document).ready() | <p>I have external JavaScript files that contain only jQuery. Should I enclose all of the code in each of these external files in $<code>(document).ready()</code>? What is the best practice here?</p>
<p>Thanks!</p>
| javascript jquery | [3, 5] |
1,914,795 | 1,914,796 | detect scroll up and down using javascript | <pre><code><script type="text/javascript">
function scrollFunc(e) {
userScroll=true;
if ( typeof scrollFunc.x == 'undefined' ) {
scrollFunc.x=window.pageXOffset;
scrollFunc.y=window.pageYOffset;
}
var diffX=scrollFunc.x-window.pageXOffset;
var diffY=scrollFunc.y-window.pageYOffset;... | javascript jquery | [3, 5] |
1,788,303 | 1,788,304 | Using jQuery to remove a second form element without losing the child elements | <p>I have some AJAX work that brings across an additional form element that I don't need in the DOM. I don't have the ability to remove it server side, so I'm looking for some jQuery or classic JavaScript that will allow me to capture all the child elements of the form, remove the form I don't need and finally re-appe... | javascript jquery | [3, 5] |
3,739,292 | 3,739,293 | checkbox check all option | <p>I have checkbox set with Category Subcategorywise... </p>
<pre><code>Company
Microsoft
Apple
Country
USA
UK
</code></pre>
<p>and checkbox attached to each item. So if I click on checkbox next to Company, then it should automatically mark checkboxes next to Microsoft and Apple checked, like wise... | javascript jquery | [3, 5] |
854,547 | 854,548 | disable text selection while pressing 'shift' | <p>I'm implementing item selection functionality in javascript (using jQuery). <i>item</i> is a li that contains some html.<br />
the user can click on one item (makes it selected) and then shift-click on another item to select all the items in between. this basically works OK, however the shift-click also selects (hig... | javascript jquery | [3, 5] |
3,632,733 | 3,632,734 | When is a cookie available? | <p>Hi i have a web application where i plant a cookie on my page. Then the user goes to another page, and from that page calls my page from a script, like this: </p>
<pre><code><script type="text/javascript" src="http://domain.com/page.aspx?id=6" ></script>
</code></pre>
<p>But i cant access the cookie wh... | php asp.net javascript | [2, 9, 3] |
1,136,024 | 1,136,025 | Visual Studio 2010 - Debug Breakpoint | <p>Ive just created a new web site project , added a few lines of code in my .cs file set a break point, and nada, website works, but debug point is not hit.
Any ideas?</p>
<p>Im starting the project with Debugging, running on windows 7 64bit</p>
<p>thanks</p>
| c# asp.net | [0, 9] |
4,211,289 | 4,211,290 | loading default values of combobox? | <p>i am trying to develop a website in php and i am dynamically loading a page in using its id with the help of js and that loaded page has a combo box and i want as the page load in the first option of combo box should be displayed in text box on same page. i tried onload option but it is not working as page is not ... | php javascript | [2, 3] |
5,790,742 | 5,790,743 | Jquery Initializing | <p>I am trying to load a Jplayer to my website, and the instructions say to use</p>
<pre><code>$('body').ttwVideoPlayer(myPlaylist, {options});
</code></pre>
<p>to initialize the plugin. Where do i place this code?</p>
<p>I have the player loading and all that script works, it just wont play the the files in the pl... | java jquery | [1, 5] |
799,064 | 799,065 | Loop through all checkboxes that are inside a div tag | <p>I need to loop through all checkboxes that are inside a div tag with id #abc123</p>
<p>How can I do this?</p>
<pre><code>$("#abc123").foreach( ???? )
</code></pre>
<p><b>Update</b>
my html row looks like:</p>
<pre><code><tr>
<td><input .../> </td>
<td>234</td>
</tr>
</c... | javascript jquery | [3, 5] |
1,601,021 | 1,601,022 | How to apply jQuery function .one() to element through attribute 'onclick' | <p>I want to clear an input field when it's clicked, but only the first time you click. With jQuery, you can achieve it like this: putting the following snippet anywhere in the document (assuming the element with id=<code>inputf</code> has already been loaded):</p>
<pre><code>$('#inputf').one("click", function() {
... | javascript jquery | [3, 5] |
1,141,678 | 1,141,679 | Calling Code Behind Method From Jquery | <p>I am using <code>Asp.net/C#</code> in my project , i have a requirement where in the user enters a name and the details of that person is displayed <code>asp.net gridview</code> ,,,, i am planning to use <code>html button</code> instead of <code>asp.net button</code> because the results displayed will be in tab...H... | c# jquery asp.net | [0, 5, 9] |
2,763,157 | 2,763,158 | How work the jquery oriented object? | <p>I don't understand how work an object with Jquery/javascript.</p>
<p>And how create a private method/variable with? i see on the forum a closure but i have try and not work. And how see if the method/variable is private? because when I run the website, I see always the function and variable with the own value into ... | javascript jquery | [3, 5] |
3,256,609 | 3,256,610 | How to print this javascript object? | <p>I have the following object data:</p>
<pre><code>var js_images = {
"newborn_set01_01.jpg":{"filename":"newborn_set01_01.jpg","title":"First Pic","description":"First description..."},
"newborn_set01_02.jpg":{"filename":"newborn_set01_02.jpg","title":"Second Pic","description":"Second description"},
"newborn_set01_0... | javascript jquery | [3, 5] |
1,274,377 | 1,274,378 | Alert window if there is no keydown for number of seconds? | <p>I need to know if there are no keydowns or clicks for 10 seconds and if so display an alert window, I can use jquery if it's more efficient than simple js.</p>
<p>How can I do it? Thanks</p>
| javascript jquery | [3, 5] |
4,478,752 | 4,478,753 | Running .vbs script file in asp.net using process class | <p>I need to run a vbscript file in my asp.net application. This vbscript file generate a pdf and store it in specified location. I used process class and give the command it is working fine but when i host the application in IIS 7.0 it is not working rather it does not give any error too. I am using admin user.</p>
<... | c# asp.net | [0, 9] |
3,672,927 | 3,672,928 | Adding li element only if it not already there? | <p>I am constructing an <code><li></code> element like this:</p>
<pre><code>var element = $("<li></li>")
.html(mHTML)
.attr('id', "elemid");
</code></pre>
<p>I am trying to add this element to a <code><ul></code> element only if it doesn't already exist. Any ideas on how to do this?... | javascript jquery | [3, 5] |
5,234,723 | 5,234,724 | php or jquery - How can I make a global index for my site? | <p>I've some templates in my webserver which act like a portfolio and I wanted to do something like dribbble.com, loading the index of each template inside a square.</p>
<p>What do you recommend for me?</p>
| php jquery | [2, 5] |
5,598,734 | 5,598,735 | why won't this web request go thru for valid website | <p>Given the following why are the websites <strong>Not</strong> valid? I'm getting the follwoing error message.</p>
<pre><code>try {
HttpWebRequest webReq = (HttpWebRequest)WebRequest.Create(@"http://wrtire1.tru-m.com/");
//2 websites that do this
// http://wrtire1.tru-m.com/
// http://acuraofaugusta.mobi/ind... | c# asp.net | [0, 9] |
849,139 | 849,140 | How to parse the response array in json in java script? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/4935632/how-to-parse-json-in-javascript">How to parse JSON in JavaScript</a> </p>
</blockquote>
<p>Hi I have to parse the following response using AJAX.I have been trying it but I didnt get.</p>
<pre><code>[{"S... | javascript jquery | [3, 5] |
4,106,564 | 4,106,565 | Passing Control Id from Linkbutton in a gridview | <p>How do I pass the Control ID in a gridview that is derived from a stored procedure into a variable. I will use the variable to pass into the database later on to return some results. Thanks.</p>
| c# asp.net | [0, 9] |
994,974 | 994,975 | Image not displayed in chrome and firefox using "progid:DXImageTransform.Microsoft.AlphaImageLoader" | <p>i am using "progid:DXImageTransform.Microsoft.AlphaImageLoader" to display iamge in div</p>
<p>My code is:</p>
<pre><code><body class="style_page" style="margin: 0px; background: white;" onload="onLoad()"
onunload="onUnload()" onresize="onResize()">
<div id="mediaPlayer" style="position: absolute; visibil... | c# asp.net | [0, 9] |
453,968 | 453,969 | Android conversion string | <p>I want to put the string into one of the Integer/Float/Double, but the results into a NumberFormatException..
My string is: 37,78584, how to transform them for the type I want?
First thank you for my answer.</p>
| java android | [1, 4] |
377,770 | 377,771 | jQuery check if browser support position: fixed | <p>How do I check if browser supports <code>position:fixed</code> using jQuery. I assume I have to use <code>$.support</code> I think, but how?</p>
<p>Thank you for your time.</p>
| javascript jquery | [3, 5] |
5,122,490 | 5,122,491 | Jquery help creating ajax link rendering | <p>I want to make an ajaxlink, but it is not working:</p>
<p>My html: </p>
<pre><code><td class="apris"><p><a class="current desc" href="/?direction=asc&amp;sort=pris">Pris pr. md.</a></p></td>
</code></pre>
<p>My Jquery:</p>
<pre><code>$('.apris').live('change', function() {... | javascript jquery | [3, 5] |
2,236,125 | 2,236,126 | Will Java catch up with C#? | <p>Today I posted a question asking about which language C# or Java would be better for me to study. I had some great answers. One thing that came up was that perhaps Java is now rather behind C# with new features. I saw some web links and most pointed out what C# had and what java did not have. </p>
<p>So my question... | java c# | [1, 0] |
2,215,557 | 2,215,558 | How can I select an element's parent row in a table? | <p>I have the following function:</p>
<pre><code>$("#example tbody").click(function(event) {
$(oTable.fnSettings().aoData).each(function (){
$(this.nTr).removeClass('row_selected');
});
$(event.target.parentNode).addClass('row_selected');
});
</code></pre>
<p>When a user clicks... | javascript jquery | [3, 5] |
1,525,450 | 1,525,451 | how to get the asp.net drop down list items in javascript | <p>I have one dropdownlist in my c# code behind page like
`DropDownList dl = new DropDownList();
dl.Items.Add("Item 2");</p>
<pre><code> dl.Items.FindByText("Item 2").Value="2";
dl.Items.Add("Item 3");
dl.Items.FindByText("Item 3").Value="3";`
</code></pre>
<p>I like to get that... | c# asp.net | [0, 9] |
109,629 | 109,630 | java to javascript communcation | <p>i am trying to pass value from javascript to java (applet ), but everytime its coming out to be null .</p>
<p>my java class :</p>
<pre><code>package com.vaannila.utility;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.net.MalformedURLException;
import j... | java javascript | [1, 3] |
3,947,375 | 3,947,376 | How can i create multitasking between activities? | <p>I want to display two activities at a time and can work on both simultaneously. Is it possible ? if possible please give me some example. I am working in android 2.2 froyo.</p>
<p>Thanks in advance</p>
| java android | [1, 4] |
5,217,772 | 5,217,773 | Allow one element to inherit all events of another | <p>For example say i have 2 links, A and B.
If a user hovers over A, the hover event of B will get triggered. Likewise with all other events like onlick, mouseover etc.</p>
<p>I'm not looking for adding the events manually like this: </p>
<pre><code>$('a#A').click(function(){
$('a#B').trigger('click');
});
</code><... | javascript jquery | [3, 5] |
2,722,348 | 2,722,349 | Add to array or object with INDEX | <p>how can i generate array or object with own index?</p>
<p>in php i can:</p>
<pre><code>$array = array();
foreach($users as $user){
$array[$user] = $user;
}
</code></pre>
<p>and in jQuery?</p>
<pre><code>var arr = new Array();
$('input').each(function(){
arr[$(this).val()] = $(this).val();
})
</code></pre... | php javascript jquery | [2, 3, 5] |
5,984,284 | 5,984,285 | How to get an object by anchor text? | <p>I have a list of links:</p>
<pre><code><a href="/111">AAAAA</a>
<a href="/222">BBBBB</a>
<a href="/333">CCCCC</a>
</code></pre>
<p>I would like to get object <code>$('a')</code> with the contents <code>BBBBB</code>, and in the next step I am going to do:</p>
<pre><code>$(this).... | javascript jquery | [3, 5] |
488,232 | 488,233 | jquery animate, set interval and inactive window issue | <p>So I have this weird issue that i am hitting, i have a slide show in which set interval fires up jquery animate method. all works great.</p>
<p>Until i switch tabs. If i switch back to tab with slideshow in some time, all of the sudden animation is fired repeatedly, with out any inteval in place. Like it is playing... | javascript jquery | [3, 5] |
962,145 | 962,146 | simple fade out image on link click | <pre><code> <script>
$("a").click(function () {
$("#wrapper").fadeOut("slow");
});
</script>
<div id="wrapper" >
<a href="1.html"> <img src="images/landing.png"/></a>
</div>
</code></pre>
<p>I have checked the jquery documentation but it has not solved the prob... | javascript jquery | [3, 5] |
1,188,810 | 1,188,811 | receiving string from c# to Java mistakes | <p>I want to send String from C# to Jave
I do it in C# in 2 side like this</p>
<p>Sender: C#</p>
<pre><code>NetworkStream ns1 = _client2.GetStream();
byte[] b = { (byte)2 };//this is the command that sent from client to Server
ns1.Write(b, 0, 1);
string data = "222222222";
byte[] b2 = _AC.GetBytes(data);
ns1.Write... | c# java | [0, 1] |
5,714,837 | 5,714,838 | Converting iPhone app to Android app or vice versa | <p>Is there any tool that can convert an iPhone app to an Android app or vice versa?</p>
| android iphone | [4, 8] |
4,872,166 | 4,872,167 | Automatically change JavaScript function value | <p>Here is my problem.. I have some JavaScript that I want to run, however I need it to be unique each time it gets inserted. I tried adding a variable to it that would change it, however it only changes it on the first call/display. Here is the script:</p>
<pre><code> <script type=\"text/javascript\">
... | php javascript | [2, 3] |
4,760,785 | 4,760,786 | jQuery on submit issue | <p>For some reason my submit event is not working, however, if i change it to click on the form, it works, this is my code:</p>
<p><strong>JQUERY:</strong></p>
<pre><code> <script>
(function(){
$('form').on('click',function(){
$.post("../includes/register.php", $('form').serialize(),
... | php jquery | [2, 5] |
5,941,625 | 5,941,626 | Hosting an executable within Android application | <p>I am working on an Android application that depends on an ELF binary:
our Java code interacts with this binary to get things done. This
runtime needs to be started and terminated on Application startup and
application exit / on demand. </p>
<p><strong>Questions:</strong> </p>
<ol>
<li><p>I am assuming that w... | java android | [1, 4] |
5,481,286 | 5,481,287 | How can I use/reference the selected value (TextBox) from a JavaScript Function into C# Code behind? | <h1>aspx.cs:</h1>
<pre><code><script type="text/javascript">
$(function () {
//ALPHA
$('#COLOR_ALPHA_TEXTBOX1').colorPicker({ pickerDefault: "E1E1E1", colors: ["E1E1E1", "33CC00", "FFF000", "CC0000", "996600", "FF9900", "303030", "0066FF", "F9A7B0", "9A0EEA"], transparency: true });
$... | c# javascript asp.net | [0, 3, 9] |
1,566,803 | 1,566,804 | appending info to a text file | <p>I have a web site with which I am adding records to a database and The info I am also writing to a log file which is part of the website.
The info is written to the file fine...the only question I do have is how to add information with each input into the database.
As it is at the moment the information is put int t... | c# asp.net | [0, 9] |
1,610,832 | 1,610,833 | Clicking checkbox to expand div, doesn't work in IE7 | <p>The following code works fine in FF, but doesn't in IE7 - when clicking the checkboxes in IE the divs doesn't toggle.</p>
<p>How do I troubleshoot these kind of issues - does anyone have an idea on how to go about this?</p>
<pre><code>// hide divs
$('.product-optional-toggle1').css({ display: 'none'});
$('.produc... | javascript jquery | [3, 5] |
3,242,513 | 3,242,514 | Any idea how to write code that can be easily ported to iphone, android and blackberry? | <p>I'm looking for a way to easily port content driven applications from one mobile platform to another. Currently HTML5+js seems to be the only language that can be easily reused.</p>
<p>Can you share your experience? I'm looking for a way to go forward.</p>
| iphone android | [8, 4] |
5,304,150 | 5,304,151 | News section snipits | <p>I have created a news section for a website I'm working on. I'd like to show the first few words of the article then a link to the rest. I'm kicking myself because I remember a few months ago seeing an article on exactly how to do this, but I have no idea where I found it. </p>
<p>I know how to grab the first so ma... | c# asp.net | [0, 9] |
692,182 | 692,183 | how can I add a progress bar with showing percentage level while uploading file in asp.net | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/11714858/create-file-upload-progress-bar-asp-net-and-javascript">Create File Upload Progress Bar ASP.NET and JavaScript</a> </p>
</blockquote>
<p>I have to create an web application in asp.net with C#.net in tha... | c# asp.net | [0, 9] |
749,281 | 749,282 | Differences between C++ and Java compilation process | <p>I have high level idea on the differences between C++ and Java compilation. But, I want to really understand and dive deep. can you suggest any references or blogs ?</p>
| java c++ | [1, 6] |
3,757,140 | 3,757,141 | Passing 'event' into the function as an argument | <p>I'm novice with both JS and jQuery, and I'm a little bit confused about what situations would require you to pass <code>event</code> as an argument into the function, and what situations you would <strong>not</strong> need to.</p>
<p>For example:</p>
<pre><code> $(document).ready(function() {
$('#foo... | javascript jquery | [3, 5] |
316,235 | 316,236 | How to Loop over ten questions | <p>I'm in the process of creating a simple maths game. I'm trying to create a loop that will display ten questions, one at a time, to a textview. The user will enter the answer into an edittext, press a button, and then question will be validated and the next question in the series of ten will appear in the textview.</... | java android | [1, 4] |
4,805,511 | 4,805,512 | Generate dynamic hyperlink based on querystring | <p>I wanna generate Hyperlink based on query string .Let me explain it more</p>
<p>Topics clicked rite now:(here I want my hyperlinks)....,....</p>
<p>1.Cat1</p>
<p>2.Cat2</p>
<p>3.Cat3</p>
<p>when i click cat1 it generate querystring: ?Cat=Cat1</p>
<p>when I click on cat2 it will generate querystring ?Cat=Cat2</... | javascript jquery | [3, 5] |
3,129,948 | 3,129,949 | jquery compare arrays $.getJSON | <p>I am trying to compare 2 arrays. One is taken from DOM, generated by <strong>.split(" ")</strong>, the other I would like to be retrived by <strong>$.get</strong> call. </p>
<p>All is working fine if I test the <strong>dictionary</strong> array manually. Example: </p>
<pre><code> // var dictionary = ["in", "the"]... | javascript jquery | [3, 5] |
2,289,972 | 2,289,973 | Disable button inside a GridView TemplateField | <p>I have the following gridview control </p>
<pre><code><asp:Panel runat="server" ID="pnlBeforeSave" Visible="true">
<asp:GridView ID="gvP" runat="server" AutoGenerateColumns="false" AllowPaging="false"
AllowSorting="false" CssClass="list-table" HeaderStyle-CssClass="header">
<Columns>
<as... | c# asp.net | [0, 9] |
4,000,298 | 4,000,299 | How to maintain ajax results on Back | <p>I have a page in which I have 3 tabs. a 3-step wizard.
on the last step - I have an AJAX call to fetch data.
once clicked on each of the items in this data, I am redirecting the user to another page.</p>
<p>I want to maintain the wizard status (including ajax results) when the user presses BACK on the browser.</p>
... | javascript jquery asp.net | [3, 5, 9] |
4,816,643 | 4,816,644 | Change Mouse pointer when ajax call | <p>I want to change the mouse pointer to the "Wait" symbol when we run the AJAX call and return back to default pointer after completing the call. I have tried as follows but my problem is it's just working on Firefox until I dont click/press the mouse button. Here is my code:</p>
<pre><code>function initializeAjax(ur... | javascript jquery | [3, 5] |
1,519,760 | 1,519,761 | Can I autoselect a drop down menu? | <p>I am taking text from a table via an autocomplete to pre-load information that was set to the table the last time the user was in it. I can get the information without any problem. Here is the jquery/javascript code that I am having the hard time with:</p>
<pre><code> $('#type').val(ui.item.type);
var t =... | javascript jquery | [3, 5] |
831,324 | 831,325 | 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] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.