Unnamed: 0
int64
302
6.03M
Id
int64
303
6.03M
Title
stringlengths
12
149
input
stringlengths
25
3.08k
output
stringclasses
181 values
Tag_Number
stringclasses
181 values
4,840,532
4,840,533
Get logged in user privileges of a windows client machine from a web application
<p>Is there any possibility to get the user account privileges who have logged in to a windows system from a web application?</p> <p>The web application as such doesn't have any login, and we want to get the client user privileges who have logged into the system.</p> <p>We want to check whether the user have got admi...
c# asp.net
[0, 9]
2,906,323
2,906,324
IE7 ignores :not-selector
<p>Internet Explorer 7 seems to ignore the :not-selector in the second line in following example, it shows and then hides the content - instead of showing the content with the right index and hiding the rest.</p> <pre><code>$('.dashboard-module-content:eq(' + indexFoo + ') .expand-collapse').show('fast'); $('.dashboar...
javascript jquery
[3, 5]
3,128,146
3,128,147
Javascript reset function won't work after successful submission of a web form
<p>I am new to JavaScript. I am working in Visual Studio with ASP.NET and I have a simple form. I also have a JavaScript function to validate the form and a JavaScript function to reset the form. The validation and submission work fine. However, after submitting the form, I cannot get the JavaScript reset function to w...
javascript asp.net
[3, 9]
3,457,933
3,457,934
Calling javascript function from dropdownlist
<p>Is it possible to call a JS function when a <strong>specific</strong> a item is selected from dropdownlist? </p>
c# asp.net javascript
[0, 9, 3]
21,643
21,644
When to use anonymous JavaScript functions?
<p>I'm trying to understand when to use anonymous JavaScript functions.</p> <p>State differences between the functions? Explain when you would use each.</p> <pre><code>var test1 = function(){ $("&lt;div /&gt;").html("test1").appendTo(body) }; function test2() { $("&lt;div /&gt;").html("test2").appendTo(body)...
javascript jquery
[3, 5]
3,485,362
3,485,363
Java AccessControlException only with LiveConnect
<p>I'm geting Access Errors, only when I call the functions with Javascript (LiveConnect).</p> <p>The applet calls a function postData and displays the response (this works great). Now if I call this function from Javascript via the applets[] array like <code>document.applets[0].postData</code> i get the Socket/Permis...
java javascript
[1, 3]
4,509,266
4,509,267
Javascript: Detect when move a browser window
<p>Is there any way to know for events when move a window with "window.open"?. </p> <p>It may be with javascript or using jQuery</p> <p>Thank you.</p>
javascript jquery
[3, 5]
1,642,497
1,642,498
Remap a key press in javascript / jquery
<p>Is there an "easy" way to map a keystroke to another key when on a page?</p> <p><strong>Background:</strong></p> <p>We are using a custom javascript grid for handling keyboard entry in a web application. Normally, the [enter] key allows the user to move to the next line, and the [tab] key allows the users to move...
javascript jquery
[3, 5]
5,870,769
5,870,770
How to count visitor of one website from another website(which are on totally different domain)
<p>I want to count the visitor of a website(which is located totally different domain) from my website.Just like <a href="http://www.alexa.com/" rel="nofollow">Alexa is counting the visitor of all website</a> . How it can be done? Any idea or implementation please. Thanks in advance.</p> <p>For all i clarify my questi...
php javascript asp.net
[2, 3, 9]
1,612,955
1,612,956
Doesn't the append function return the appended object?
<p>Assuming <code>this</code> is some existing block level element in the dom and <code>image</code> is <code>http://www.google.com/images/srpr/nav_logo25.png</code> doing the following does not work:</p> <pre><code>$(this).append('&lt;img&gt;').attr('src', image).load(function() { alert('loaded'); }); </code></pre> ...
javascript jquery
[3, 5]
3,952,643
3,952,644
Obtain static values from C++ .o file using php
<p>I have a compiled C++ object file. And that object file contains a huge list of static constant values (as a matter of fact that .o file contains only static values). Is there any way I can read those static values using php? I can not copy those values into php and need to read them directly.</p> <p>Thanks, to any...
php c++
[2, 6]
5,358,100
5,358,101
jquery clone form fields and increment id
<p>I have a block of form elements which I would like to clone and increment their ID's using jQuery clone method. I have tried a number of examples but a lot of them only clone a single field.</p> <p>My block is structured as such:</p> <pre><code>&lt;div id="clonedInput1" class="clonedInput"&gt; &lt;div&gt; &l...
javascript jquery
[3, 5]
5,392,647
5,392,648
Selecting and wrapping all occurences of a certain string with jQuery
<p>In a list of footnote references for an article, I want to select all occurences of "(en)" and wrap them in some so that I can apply bold style to them as well as a right margin.</p> <p>How to do that with jQuery ?</p>
javascript jquery
[3, 5]
4,544,195
4,544,196
Nested Repeater
<p>I Have a display that needs to be a little more dynamic than what I'm use to and can't seem to quite find the answer I need.</p> <pre><code> Customer a Customer b Customer c (and so on) savings with product a savings with product b (and so on) </code></pre> <p>I know there...
c# asp.net
[0, 9]
852,480
852,481
Jquery blur doesn't work in Firefox and Chrome but works in IE9
<p>I have this HTML code which simulates a dropdown multi-checkbox</p> <pre><code>&lt;div&gt; &lt;div class="select"&gt; &lt;span&gt;Select something&lt;/span&gt; &lt;/div&gt; &lt;div class="no-display select-list"&gt; &lt;div&gt; &lt;label class="unchecked" for="value1"&gt; ...
javascript jquery
[3, 5]
4,107,159
4,107,160
javascript how to add a variable to a string
<p>I'm using javascript and jquery, I have a string like</p> <pre><code> var apiUrlAnswer = 'https://api.stackexchange.com/2.0/answers/{ids}?order=desc&amp;sort=activity&amp;site=stackoverflow'; </code></pre> <p>I need replace the <code>{ids}</code> with a variable.</p> <p>In C# is possible to use a method called <...
javascript jquery
[3, 5]
230,221
230,222
ASP.NET - SmtpClient - Unable to connect to the remote server
<p>I am working on a project where one of the requirements is to re-write an ASP.NET application. The old ASP.NET application was based on .NET Framework 1.1. The new ASP.NET application is based on .NET Framework 3.5.</p> <p>One of the functions in the old web application was the ability to send email. The old cod...
c# asp.net
[0, 9]
3,960,170
3,960,171
Java Declaration
<p>I am new to android. i know only core java.</p> <p>I saw the declaration </p> <pre><code>ArrayList&lt;ApplicationInfo&gt; mAppInfo; </code></pre> <p>in Android sample project. Can anyone explain what is the meaning of above declaration.</p>
java android
[1, 4]
999,514
999,515
Is there any way to detect the mobile blocked screen in a web app?
<p>Is there any way to detect the mobile blocked screen in a web app? When the screen obscures. To stop a loop of Ajax requests. Another way? I use Javascript and jQuery.</p> <p>Edit: </p> <p>My web app makes Ajax request, started for a loop. This loop doesn't stop because it obtains the state of a lamp. If other win...
javascript jquery
[3, 5]
1,645,073
1,645,074
how to add Image in Grid View header after header text
<p>I am trying add an filter image in grid view header after header text in same column. I tried adding image to header but it only shows image but not the text along with it.</p> <pre><code>&lt;asp:TemplateField HeaderText="&lt;img src='.../...' alt='my image' /&gt;"&gt; .... &lt;/TemplateField&gt; </code></pr...
c# asp.net
[0, 9]
5,613,692
5,613,693
Jquery get attribute of few ul to create another attribute
<p>I have the following HTML:</p> <pre><code>&lt;ul actualpage=0&gt; &lt;li/&gt; &lt;li/&gt; .... &lt;/ul&gt; &lt;ul actualpage=0&gt; &lt;li/&gt; &lt;li/&gt; .... &lt;/ul&gt; </code></pre> <p>Im trying to get the value of actualpage of each ul and create a new attribute. Its easy but not in one jquery sentence... It...
javascript jquery
[3, 5]
333,201
333,202
next and prev button for a custom pager using PagedDataSource
<p>I am trying to get the next and prev button on my custom pager. Here is what I have so far and it's working perfect except it needs next and prev button.</p> <p><strong>What I have done</strong></p> <pre><code> PagedDataSource page = new PagedDataSource(); page.AllowCustomPaging = true; ...
c# asp.net
[0, 9]
3,728,683
3,728,684
Get unique id after the fact?
<p>I want to be able to change a button image on click which isn't the issue. Each button is unique to information that is pulled from the database and on click the button should change and send the appropriate info to the database. What I am unsure about is how I can change the specific button. Say there are five thin...
php javascript
[2, 3]
1,137,652
1,137,653
ASPX server-side function call after client-side user confirmation?
<p>Maybe I'm searching with the wrong keywords, but I can't find a solution to this.</p> <p>I've got an ASPX page on which, within an <code>&lt;asp:Repeater&gt;</code> I want to insert a button (per item) that will:</p> <ol> <li>ask (JS "confirm") the user if they really want to proceed, then</li> <li>call a method o...
c# javascript asp.net
[0, 3, 9]
3,259,241
3,259,242
calculate time difference in javascript
<p>I have a jqurey clock that gives the time from 00:00 to 23:00. Now I want to calculate the time difference between two times. Suppose In time is 11:00 and out time is 16:00 then how to calculate the time difference in javascript. Please help</p>
javascript jquery
[3, 5]
2,609,168
2,609,169
jquery's ready function not working on my laptop
<p>I'm running this simple code on "000webhost" free server:</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"&gt;&lt;/script&gt; &lt;script&gt; $(document).ready(function(){ alert("something"); }); &lt;/script&gt; &lt;/head...
javascript jquery
[3, 5]
1,851,276
1,851,277
Prototype.js creating problems with InfiniteCarousel in jQuery
<p>I have this piece of code that works fine in the webpage: </p> <pre><code>&lt;script src="http://code.jquery.com/jquery-1.7.1.min.js"&gt;&lt;/script&gt; &lt;script src="jquery.infinitecarousel3.min.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="easing.js"&gt;&lt;/script&gt; &lt;script&gt; $(funct...
javascript jquery
[3, 5]
184,873
184,874
Storing width values before animation records post animation values
<p>Its getting a bit late so excuse me if I am making a stupid mistake. For some reason the following code:</p> <pre><code>$(".myClass").each(function(){ widths[$(this).attr("id")] = $(this).width(); if ($(this).attr("id") != $(clickedExpand).attr("id")) { $(this).animate({ width: '...
javascript jquery
[3, 5]
3,151,645
3,151,646
Moving Information From ListBox to Another ListBox that are bound to datatables
<p>I have two ListBoxes bound to DataTables. When I try to move information from one ListBox to another listbox using a button click with the following code:</p> <pre><code>protected void btnAdd_Click(object sender, EventArgs e){ ListBox1.Items.Add(ListBox2.SelectedItem); ListBox2.Items.Remove(ListBox2.Selecte...
c# asp.net
[0, 9]
3,563,973
3,563,974
Saving file on disk
<p>In Java, while using Glassfish Server, we could only save files relative to our web application root. Thus you cannot directly save file on eg <code>c:\program files\abc.txt</code> whereas with php this is working. Is it valid? One should not be able to refer any location on hard disk outside web application root (u...
java php
[1, 2]
369,960
369,961
jquery control a dropdown from a checkbox
<p>i have </p> <pre><code>&lt;input type="checkbox" id="checkbox_1" name="artist" value="Yes"&gt; &lt;select id="dropdown"&gt; &lt;option value="All" selected="selected"&gt;- Any -&lt;/option&gt; &lt;option value="0"&gt;No&lt;/option&gt; &lt;option value="1"&gt;Yes&lt;/option&gt; &lt;/select&gt; </code></pre> <p>how...
javascript jquery
[3, 5]
3,482,286
3,482,287
Disable Button from being clicked when pressing enter
<p>I've got a search box at the top of my master page, and when I am trying to submit form on my content pages, the search button from the masterpage gets executed when hitting enter. It even does it when i'm typing in my content pages textfields and hitting enter..</p> <p>It seems to be a problem with the form, as i'...
c# javascript asp.net
[0, 3, 9]
4,260,657
4,260,658
Files uploading and attaching mess using asp.net
<p>Finally I give up thinking about uploading after trying different ways. Here is the requirement, I have a 3 step process where I implemented them using 3 web forms.</p> <p>In the second step I added 5 file upload control to collect the file names to upload. After submitting 2nd step I create a session to store thes...
c# asp.net
[0, 9]
671,430
671,431
Selected Spinner array into TextView
<p>I have my spinner pulling from an array,(that works).. What I want to happen is I have several textviews that will map to whatever is selected from the spinner array... e.g British Columbia. then the Texviews will all say british columbia. I figure i should be using a setText of some kind but have been on able to fi...
java android
[1, 4]
4,550,855
4,550,856
jQuery: Onclick, open a new div with ID
<p>I'm creating a footer chat bar from this tutorial here: <a href="http://www.sohtanaka.com/web-design/facebook-style-footer-admin-panel-part-1/" rel="nofollow">chat bar tutorial</a></p> <p>I'm trying to make it so when I click a username in the buddylist, it opens up a new chat box div in the chat bar itself. And, w...
php jquery
[2, 5]
1,113,328
1,113,329
How can I get the ID of my Window popup
<p>How can I get the ID of my Window ?</p> <pre><code>$(window).unload(function () { if (alterado == 1) { window.opener.location.reload(); } }); </code></pre> <p>How can I get the ID of my <code>window.opener.location</code> ? </p> <p>I need to put a block in this window like <code>$("#window").block...
javascript jquery
[3, 5]
5,961,200
5,961,201
button toggles between states
<p>I was wondering if anyone knew of some code which implements two buttons where one is just plain text and the other is say a link. When the user clicks on the link the other text becomes a button and vice versa when the user clicks the link again.</p> <p>Think of it like this: One link is active the other isn't. On...
javascript jquery
[3, 5]
4,217,306
4,217,307
Dropdown list selected item always set to default value
<p>I wish to pass values of the selected items into a database and however noticed that the selected item is not what is sent into the database you can see in the snap shot below. <img src="http://i.stack.imgur.com/RO7rh.jpg" alt="alt text"> during run time the following value is recorded. <img src="http://i.stack.img...
c# asp.net
[0, 9]
3,052,380
3,052,381
OnMouseOver this, show this but OnMouseOut, hide it
<pre><code>&lt;div class="profile-banner" onMouseOver="fadeIn('edit-banner');" onMouseOut="fadeOut('edit-banner');"&gt; &lt;div id="edit-banner"&gt; Edit Banner &lt;/div&gt; &lt;/div&gt; </code></pre> <p>(Formating is being weird on stackoverflow.. so ignore the formating.)</p> <p>Anywho, the problem ...
javascript jquery
[3, 5]
4,755,127
4,755,128
jquery on binding with dynamic div
<p>I have an issue with jquery. Say i have 2 divs in jquery,</p> <pre><code>&lt;div id='1'&gt; //static div &lt;/div&gt; &lt;div id='2'&gt; //dynamic div &lt;/div&gt; </code></pre> <p>The static div is always present in the document, but dynamic div toggle when we click over static div. N...
javascript jquery
[3, 5]
5,180,063
5,180,064
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]
5,304,162
5,304,163
How to change attribute of surrounding div/parent effectively?
<p>I have a table with some radiobuttons in it. When i click on a radiobutton, i want to update two of the sorrounding containers ID attribute (a div and a table). The problem is, i need to go 4 and 6 levels up, and the only way i know how to do this is parent().parent().parent().parent() etc. I am looking for a bette...
javascript jquery
[3, 5]
2,132,889
2,132,890
Changing the border with of a table with jQuery?
<p>I have a table generated from Sphinx that has a border of width 1.</p> <pre><code>&lt;table border="1" class="docutils"&gt; </code></pre> <p>Can I change the border width to 0 using jQuery/javascript?</p>
javascript jquery
[3, 5]
3,531,603
3,531,604
custom gridview controls that supports paging, sorting, searching
<p>i am looking for custom gridview controls that supports paging, sorting, searching. is there any controls[ that has all builtin functionality] so that i can just drag and drop this control. in the page i ll just send that datatable as paramter to the custom gridview control. all the function...
c# asp.net
[0, 9]
4,256,949
4,256,950
Boldening text "Inside" a textarea
<p>I have a textarea <code>#myarea</code> into which I'm typing text. I've typed this text.</p> <blockquote> <p>This is a sentence and only this word will end up being bolded</p> </blockquote> <p>Now I have a button on the side, like a bold button. I want to select the letters I want bolded, click the button, an...
javascript jquery
[3, 5]
5,890,267
5,890,268
how to find selected hyperlink in asp.net using C#
<p>I have a list of 10 hyperlink on default1.apx. On selecting any hyperlink it redirects to another page and all hyperlinks redirects to the same page default2.aspx. But how can i now which hyperlink is clicked from 10 hyperlinks list in asp.net using C#.</p>
c# asp.net
[0, 9]
3,989,695
3,989,696
Ajax Call executing twice?
<p>Why is this ajax call giving me back both answers? First, and in a barely noticeable way the correct answer, then the other one?</p> <p><strong>The Form page</strong></p> <pre><code> $(document).on('click','.save-action',function(){ //var text = tinyMCE.get('#action-desc').getContent(); ...
php jquery
[2, 5]
859,773
859,774
Updating TextBox on the client with Javascript and reading the value from the Server
<p>I used Javascript on the client to update an ASP Textbox control which was rendered as an HTML textbox.</p> <p>When I tried to access the value in the textbox control on the server, I wasn't too surprised that the Textbox's updated value was not accessible through the normal Text property of the TextBox server cont...
asp.net javascript
[9, 3]
2,598,475
2,598,476
How can I edit/add to the 'url' inside an 'a' tag's onclick event using javascript/jquery?
<p>I have the below element on my web page:</p> <pre><code>&lt;a target="_blank" href="http://www.fxs.dev/quote/quote.aspx" onclick="javascript:window.location='http://www.fxs.dev/quote/quote.aspx?partnumber=526-NTE3031';" return="" false;=""&gt;Request Delivery Quote&lt;/a&gt; </code></pre> <p>I would like to try an...
javascript jquery asp.net
[3, 5, 9]
1,249,575
1,249,576
Append a number if name is already used?
<p>In Javascript, I have a script that allows me to upload files to my server, then retrieve the output. One component of the output is the name of the file that was uploaded. For example, an output name might look like this:</p> <pre><code>test.pdf </code></pre> <p>The contents of <code>test.pdf</code> are then save...
javascript jquery
[3, 5]
5,812,158
5,812,159
Web page floating pointer
<p>I want to place arrows and small explanations floating over the top of my web page when they first signup to kinda teach them the basics. I want like a tooltip with an integrated pointer/arrow but is not activated on mouseover, it is just loaded on the page when it is loaded and visible. Is there a jQuery or javasc...
javascript jquery
[3, 5]
1,760,345
1,760,346
Is there any javascript library which helps me to create this table layout for viewing, editing, deleting and newing
<p>I came across this kind of table layout once upon a time (Unfortunately, I forget where I had seen this), which enable me to perform viewing, editing, deleting and newing. </p> <p><img src="http://i.stack.imgur.com/7izJf.png" alt="Useful table layout"></p> <p>Note that, click on <code>Edit</code> will turn the sta...
javascript jquery
[3, 5]
2,840,822
2,840,823
Android On Focus Change
<p>I want to update an EditText when a user changes focus from the edittext to another item I want to check the contents of the edittext eg is the number larger than 10 if so change it to 10.</p> <p>How should I do this.</p>
java android
[1, 4]
5,308,811
5,308,812
Left side frame adding in only in one page
<p>I have 30 jsp in each page. Currently I am calling premade left side frame called "frame_table" as of the code below in xml and If i call the frame from the xml, because of the exsisting jsp mapper the right hand side frame will apper in all 30 pages but my requirement is I only have to display this fram in one pag...
java javascript
[1, 3]
1,264,197
1,264,198
'Activating' JavaScript for each page in large web sites
<p>I am working on a medium size web site that has plenty of custom JavaScript written for it.</p> <p>At present all the script is stored in seperate JS files for each area of functionality. These are then minified and combined into a single, large JS file during our build process.</p> <p>For each page, the relevant ...
javascript jquery
[3, 5]
1,669,219
1,669,220
Is it not a right way to call my obj function?
<p>I have a function which is return a object. in the object i have two function to show the popup and close it. it works within the parent function, but it's not from out side.. is it not a right way to call that.. else how can i call the obj function from out side?</p> <p>my function :</p> <pre><code>var popupHandl...
javascript jquery
[3, 5]
3,137,741
3,137,742
Setting the focus on a element that was hidden
<p>I'm looking for a way to trigger a focus event that occurs after an element is recognised as focusable within the DOM.</p> <p>I'm showing form elements based on previous input. That works. Then I want to set the focus for user input.</p> <p>The following function fails to work unless I set a break point on the lin...
javascript jquery
[3, 5]
453,753
453,754
javascript variable variable names and global scope (pinesnotify)
<p>I'm using pines notify (somewhat irrelevant to my issue, I imagine) to create notifications on the change event of a drop down list. On the server side, the change is saved to a database, then when the save is complete - I wish to remove the notification (or do something else depending on the result).</p> <p>The pr...
javascript jquery asp.net
[3, 5, 9]
667,182
667,183
Display the search categories which user selects via checkbox
<p>Am building a search box on my web application. Am allowing the user to search in specific categories. This is done via a checkbox list.</p> <p>for e.g. The user wants to search for 'toyota camry' in category 'Sedans'. The category 'Sedan' is selected by the user through a checkbox. The html is as follows:-</p> <...
javascript jquery
[3, 5]
2,426,911
2,426,912
sharing a js functions between code in 2 files
<p>My jquery code is divided file is divided over 2 files. </p> <p>In one of the file, I define a function</p> <pre><code>function something(input){ //does something } </code></pre> <p>calling this function only works when the caller line is in the same file. But I need to call it from both files. </p> <p>If I sw...
javascript jquery
[3, 5]
2,569,106
2,569,107
ScrollView containing TextView does not scroll
<p>I have a textview displaying many individual words, each word is a link using Spans and setMovementMethod(LinkMovementMethod.getInstance()); The textview is wrapped by a ScrollView. </p> <p>However the ScrollView does not work as the links in the TextView are activated instead.</p> <p>Is there a way to combine a ...
java android
[1, 4]
1,450,368
1,450,369
JavaScript wrong scope
<p>I have the JS scope mixed up. I am trying to assign to values to coordinates and use them later, but for some reason i always get the coordinates as null. </p> <pre><code> var thing = (function($){ var obj = function(config) { $.extend(obj.config, config); obj.init(); }; $.extend(obj, { coordi...
javascript jquery
[3, 5]
1,301,519
1,301,520
Load C# app through C++ "Loader"?
<p>Is it possible to write a small "loader" in C++ that should load a C# app? </p> <p>The idea is to make it impossible to see the code in Reflector. </p> <p>Check the following app. The app is written in C# but somehow a loader has been built so its impossible to see the actual source code in Reflector.</p> <pre><c...
c# c++
[0, 6]
1,698,351
1,698,352
Convert 24 hr format to 12 hr format
<p>This might be really easy but I can't figure it out. I am trying to convert the 24 hr time to a 12 hr time to display on the UI.</p> <pre><code>var hrs = '&lt;%=Model.Scheduled.Value.Hour%&gt;'; var hrs12 = hrs &gt; 12 ? hrs - 12 : hrs; $("#ScheduledHour").val(hrs12); </code></pre> <p>But the above is not working ...
javascript jquery
[3, 5]
5,345,626
5,345,627
Images loading on localhost but not using IP
<p>I am using a PHP script to read some folders in directory and based on their names retrieve their posters. All of this works fine on <code>localhost</code>. However, when opening externally, this does not work and results in <code>blank</code> images.</p> <p>A screenshot from localhost:<img src="http://i.stack.imgu...
php javascript jquery
[2, 3, 5]
4,657,954
4,657,955
How to create sql connection with c# code behind, access the sql server then conditionally redirect?
<p>This is a question from an experienced beginner!</p> <p>Using ASP.NET 4 C# AND SQL server,</p> <p>I have a connection string in web.config to myDatabase named "myCS". I have a database named myDB. I have a table named myTable with a primary key named myPK</p> <p>What are the NECESSARY lines of code behind (minima...
c# asp.net
[0, 9]
5,557,476
5,557,477
How to include a script tag only if an element exists?
<p>This seems like something that should be straightforward but I'm a newbie with Javascript, so please be patient.</p> <p>I want to include a script file but only if an element exists on the page. I've tried:</p> <pre><code>var element = $('.customelement'); if(element.length() &gt; 0) { $('head').append('&lt;sc...
javascript jquery
[3, 5]
5,227,988
5,227,989
access static variable from aspx page
<pre><code> public partial class Page1 :System.Web.UI.Page { public static LGDP.LDGPSession var1 = null; private void Login(this, EventArgs e) { var1 = new LGDPSession(this, data, data); } public bool IsLoggedIn() { bool login = false; if (var1 !=...
c# asp.net
[0, 9]
2,645,705
2,645,706
Work with "Whatsapp" with computer
<p>I need to work with whatsapp with the computer, I need to read and send messages with that. does anyone know how i can do that not with an emulator ? </p>
android iphone
[4, 8]
875,458
875,459
How do you use context in classes?
<pre><code>package com.lala.image; import com.lala.ContextStore; import android.R; import android.content.Context; import android.content.res.Resources; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.view.View; public class Stationary implements Image{ View v; Context ...
java android
[1, 4]
4,719,791
4,719,792
Updating Data in the gridview
<p>I have a gridview in VS 2005. The grid is displayed in textboxes, so the user can edit. </p> <pre><code> &lt;asp:TemplateField ItemStyle-Width="50"&gt; &lt;ItemTemplate&gt; &lt;asp:TextBox ID="txtSmall" runat="server" Width="45px" Text='&lt;%#DataBinder.Eval(Container.DataItem,"Small") %&gt;' OnTex...
c# asp.net
[0, 9]
5,375,877
5,375,878
edit-in-place problem with sending GET data
<pre><code>$('.textedit').editable('/challenge/skeleton/textedit/textedit/process', { loadurl: '/challenge/skeleton/textedit/textedit/loadraw', loaddata: {id: $(this).attr('id'), client: $(this).data('client')}, submitdata: {id: $(this).attr('id'), client: $(this).data('client')}, .... }); $('#textedit...
javascript jquery
[3, 5]
3,096,585
3,096,586
Is is possible to have two virtual paths for one web application in c# asp.net?
<p>Is it possible to have two or multiple virtual paths for one web application in c# asp.net?</p> <p>e.g. <a href="http://localhost/test1/web.aspx" rel="nofollow">http://localhost/test1/web.aspx</a> and <a href="http://localhost/test2/web.aspx" rel="nofollow">http://localhost/test2/web.aspx</a></p>
c# asp.net
[0, 9]
4,120,118
4,120,119
Jquery if div doesn't exist
<p>I'm using 1 js for 2 different pages. 1 page doesn't have a div which the other does. So when I submit the values, I get a <code>$(</code> js error</p> <p>for</p> <pre><code>$('.description'+save_id+'').html(description_val).show(); //update category description </code></pre> <p>I suspect that I get the error bec...
javascript jquery
[3, 5]
104,036
104,037
Javascript - Load content, callback and loading
<p>Here is my 'getContent' functions which takes a URL:</p> <pre><code>function getContent(url, callback) { var request = new Sys.Net.WebRequest(); request.set_url(url); request.set_httpVerb("GET"); var del = Function.createCallback(getContentResults, callback); request.add_completed(del); requ...
javascript jquery
[3, 5]
2,559,740
2,559,741
How to modify javascript in a page using more javascript?
<p>I have a page with some inline javascript in it</p> <pre><code>&lt;script type="text/javascript"&gt; $('#clipboardContainer').hide(); $( '#clipboard' ).click(function() { $("#clipboardContainer").toggle( "slide", {direction: "up", mode: "hide"}, "slow" ); $("#...
javascript jquery
[3, 5]
5,508,816
5,508,817
Keyboard navigation with Jquery
<p>In Jquery, how can I set an event such that when user is browsing some pictures, and presses the left/right arrow key, it calls a function which can be used to show the previous/next photos? I only need to know how to check if the key pressed was the right/left arrrow key and ignore all other key preses.</p> <p>The...
javascript jquery
[3, 5]
2,636,877
2,636,878
inline jquery thick box does not close with javascript validation
<p>I am having issues with jquery inline thickbox in the classic asp app. The code looks like this:</p> <p>The properties of the hyperlink tags are as under:</p> <pre><code>&lt;a&gt;href="#TB_inline?height=295&amp;width=604&amp;inlineId=rev-modal" onclick="GetAuth()" id="btnAuthorize" class="thickbox"&gt;Authorize&lt...
javascript jquery
[3, 5]
1,916,730
1,916,731
Best way to return duplicate elements in an Array
<p>Here is the way I am using to return duplicate elements.. But I am facing most dangerous performance issues like browser close etc when my array have large number of items with long texts.. </p> <pre><code>var arr = [9, 9, 111, 2, 3, 4, 4, 5, 7]; var sorted_arr = arr.sort(); var results = []; for (var i = 0; i &l...
javascript jquery
[3, 5]
2,371,229
2,371,230
Is it possible to bind a custom function instead of an event to a div in JQuery?
<p>I wonder if this is possible, I was able to do this with AS3. Is it possible to bind a listener on div that only listens for mouse events. So lets say I have a div called "lion", typically this is how a mouse event is bind:</p> <pre><code> $("#mouse").bind("click", function(e) { alert(e.currentTarget.id); ...
javascript jquery
[3, 5]
5,322,963
5,322,964
What does (function($) {})(jQuery); mean?
<p>I am just starting out with writing jQuery plugins. I wrote three small plugins but I have been simply copying the line into all my plugins without actually knowing what it means. Can someone tell me a little more about these? Perhaps an explanation will come in handy someday when writing a framework :)</p> <p>What...
javascript jquery
[3, 5]
2,264,166
2,264,167
Using a rotation vector in Android
<p>Hey, For an application I'm writing, I need the sort of thing <a href="http://developer.android.com/reference/android/hardware/SensorEvent.html#values" rel="nofollow">Sensor.TYPE_ROTATION_VECTOR</a> offers. However, I assume it is from an old version of Android, as I cannot use this variable in my applications (I ge...
java android
[1, 4]
890,880
890,881
Best way to program a server status feature
<p>Some background information. - Running a java server on localhost - Running a webserver on localhost</p> <p>I would like a webpage to have a 'server status' feature which lets me know whether the server is running or not. My question, what is the best way to do this?</p> <ol> <li>When I launch the java server, I w...
java php
[1, 2]
2,789,543
2,789,544
preview of another website not thumbnails in php and javascript
<p>I am in the process of creating a site where visitors can preview(not THUMBNAILS!) another url on mypage in an input text box and click on"preview" button-</p> <p>I am using CURL from php to extract the contents of the site and have divided my page into two halves one for accepting url and the other half which wil...
php javascript
[2, 3]
1,814,333
1,814,334
Programmatically View image hash values
<p>How to Programmatically View image hashes in C# or PHP ?</p>
c# php
[0, 2]
5,269,272
5,269,273
Problem with jquery cycle slowing down with a large flash background on site in IE
<p>My problem is that I have a large flash background running in my site, and I want to add a jquery cycle and I did, it suppose to run a text horizontally in the page. But the problem is in IE. Because it has a large flash in the background, browser is slowing down no matter the machine speed is and the text dosen't ...
javascript jquery
[3, 5]
633,361
633,362
split string after comma and till string ends- asp.net c#
<p>I have a string of type </p> <blockquote> <p>ishan,training</p> </blockquote> <p>I want to split the string after "," i.e i want the output as</p> <blockquote> <p>training</p> </blockquote> <p>NOTE: "," does not have a fixed index as the string value before "," is different at different times.</p> <p>e.g is...
c# asp.net
[0, 9]
4,758,782
4,758,783
Lazy loading and dependency resolution
<p>some time ago, I was reading an article(a library built by some guy) about how his library can do </p> <ol> <li>lazy loading of JS</li> <li>resolve dependencies between JS (typically encountered when trying to "include" one js from another)</li> <li>include files only once. thought specified multiple times regardle...
javascript jquery
[3, 5]
5,264,299
5,264,300
Get parameters from TD of checked TR
<pre><code>&lt;table id="tab"&gt; &lt;tr&gt;&lt;td&gt;&lt;input type="checkbox"&gt;&lt;/td&gt;&lt;td aaa="111"&gt;sdf&lt;/td&gt;&lt;td bbb="222"&gt;sdfsd&lt;/td&gt;&lt;td ccc="333"&gt;trs&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;&lt;input type="checkbox"&gt;&lt;/td&gt;&lt;td aaa="342"&gt;hjk&lt;/td&gt;&lt;td b...
javascript jquery
[3, 5]
3,711,624
3,711,625
Make div appear and change the whole html to be darker
<p>I have a div with embedded youtube. After I click some button, I would like the div to appear (I know how to achieve this), but I want the whole background to become darker. (This is inline with overlays.) I've tried using opacity - I change the opacity of the whole html with jquery, i.e. <code>$('html').css('opacit...
javascript jquery
[3, 5]
159,496
159,497
Why am I not able to install Android SDK?
<p>I installed android sdk. When I click the android sdk manager. Then the the following error message is displayed in an alert box </p> <blockquote> <p>Failed to fetch URL <a href="https://dl-ssl.google.com/android/repository/repository.xml" rel="nofollow">https://dl-ssl.google.com/android/repository/repository.x...
java android
[1, 4]
854,317
854,318
Image upload script to start other tasks to free up UI
<p>I have an Android application that provides image upload functionality. When a user selects a photo the app initializes a php script on a remote server - while the image is uploading there is a progress dialog giving feedback to the user. The upload script is performed in an AsyncTask.</p> <p>Currently the php pr...
php android
[2, 4]
3,569,016
3,569,017
jQuery variable shadowing
<p>There is strange pattern in jQuery:</p> <pre><code>var jQuery = (function() { // Define a local copy of jQuery var jQuery = function( selector, context ) { ... return jQuery; })(); </code></pre> <p>What is the practical reason for this? Why not just expose the inner jQuery function? Is it only for name clashes ...
javascript jquery
[3, 5]
2,210,817
2,210,818
Toggle control - how to create plus minus button?
<p>My toggle control is working, but I would like to add a plus-minus button: when content appears it becomes "-" and when content is hidden it changes to "+". Can you help please?</p> <pre><code> &lt;div class='toggle'&gt; &lt;h2&gt;Read More&lt;/h2&gt; &lt;div class="togglebox"&gt; &lt;div class="conte...
javascript jquery
[3, 5]
2,574,880
2,574,881
jQuery and Object Oriented Javascript - How do I do it properly?
<p>I'm quite experienced with jQuery but I'm just getting into object oriented Javascript and want to make sure I'm doing it right.</p> <p>Here's an example of what I'm doing so far... I'd appreciate tips/advice on how I can improve my approach:</p> <pre> // create a class for collapsable fieldsets window.Collapsable...
javascript jquery
[3, 5]
1,206,211
1,206,212
javascript: Get value by clicking on current value in loop
<p>I am building datatables and by setting up total records in database I have total count of them.</p> <p>Now I am little confused about click event in JavaScript. This is how i am doing this:</p> <pre><code> for (var cnt = pageno; cnt &lt; pageno + 5; cnt++) { $("#newList").append('&lt;li id="pageno...
javascript jquery
[3, 5]
1,630,762
1,630,763
how to display image created dynamically in asp.net 3.5 c# on localhost
<p>I have to display image dynamically. I have written code for that, i got the name of the image &amp; path also from database i.e Filename &amp; filepath which i stored earlier, but I didnt get image(not displaying image even i stored path of that image). Please give me idea about how to set imageurl of image here on...
c# asp.net
[0, 9]
692,800
692,801
Removing Warning Image
<p>How to remove The warning image of the alert box in Javascript. I want to delete the warning image from the javascript alert window. Is it Possible?</p>
asp.net javascript
[9, 3]
374,286
374,287
Embedded HTML contains JavaScript function not getting called
<p>In my scenario i am making an ajax request to get some data and then passing its result to some function you can see the code.</p> <pre><code> $.ajaxSetup({ cache: false }); $.ajax({ url: chartUrl, type: 'GET', dataType: 'text', success: function(result){ UpdateCha...
javascript jquery asp.net
[3, 5, 9]
4,634,623
4,634,624
display machine IP in the URL and run the defined web services
<p>I have started learning web services. I got the entire concept. Till now I'm running through <code>localhost:1234/services.asmx</code>. It's working. But now I want to put my machine IP address instead of localhost. I'm having idea of web services. Is there any specific method to run by machine ip? plz help me. I ha...
c# java asp.net
[0, 1, 9]