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
5,280,571
5,280,572
how to resize image according to div tag image automatic
<p>i want to resize my image that is inside div tag according to changing my div tags size automatically.how can i achieve using j query please help us NOTE image is inside div tag.</p>
javascript jquery
[3, 5]
4,972,254
4,972,255
Adding values from C# to DIV via JavaScript
<p>The last module of my chat script is passing values from C# code to JavaScript and JavaScript will post values to the DIV. Before I used DataBinder but when using it directly C# code is taken by AJAX's update panel. Now, I need a set of Array values to be passed via Timer Tick function to JavaScript. How can I pass ...
c# javascript
[0, 3]
924,896
924,897
Capturing IP address of web stream with StreamReader returning too much data
<p>I have this piece of code:</p> <pre><code>WebClient web = new WebClient(); System.IO.Stream stream = web.OpenRead("http://url/getAddress.html"); string text = ""; using (System.IO.StreamReader reader = new System.IO.StreamReader(stream)) { text = reader.ReadToEnd(); reader.Close(); } </code></pre> <p>The...
c# asp.net
[0, 9]
5,394,635
5,394,636
JavaScrip/jQuery - How to check if a string contain specific words
<pre><code>$a = 'how are you'; if (strpos($a,'are') !== false) { echo 'true'; } </code></pre> <p>In PHP, we can use the code above to check if a string contain specific words, but how can I do the same function in JavaScript/jQuery?</p>
javascript jquery
[3, 5]
4,516,321
4,516,322
How to detect if shift has been released?
<p>I want to be able to run a function when the shift key is released.</p> <p>I know the shift key can be detected with something like:</p> <pre><code>$(window).bind("keydown keyup", function(ev) { ... }); </code></pre> <p>It works very well for detecting key combinations (e.g. <code>shift+a</code>). Problem is, if ...
javascript jquery
[3, 5]
512,932
512,933
Checking if browser is in fullscreen
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/1047319/detecting-if-a-browser-is-in-full-screen-mode">Detecting if a browser is in full screen mode</a> </p> </blockquote> <p>Is there a way to check if a browser is currently in fullscreen mode (after the user...
javascript jquery
[3, 5]
4,010,324
4,010,325
Call C# method inside a class file from javascript
<p>Is it possible to call a C# function which is inside a specific class file by javascript?</p> <p>My Function is like this</p> <pre><code> public static void PrintPDF() { } </code></pre> <p>and this function is inside a class file <code>XSLTHelper</code> In C# I can call this function by <code>XSLTHelpe...
c# javascript asp.net
[0, 3, 9]
5,602,998
5,602,999
How to call Confirmation box in IF condition from Code-Behind?
<p>I'm using a LinkButton and a DropDown.</p> <p>When I click on the LinkButton the DropDown appears.</p> <p>After selecting a DropDown value, I want a confirmation box called from JavaScript to appear, ensuring that the value is changed.</p> <p>I'm calling this script in the second <code>if</code> condition, but it...
c# javascript asp.net
[0, 3, 9]
4,420,041
4,420,042
meta tag for compatibility mode
<p>I have web app with lots of JS and jQuery code and my problem is with IE9. For some reason my JS is not responding in IE9, in all other browsers is working well including IE8.</p> <p>What is happening is that when I put <code>&lt;meta http-equiv="X-UA-Compatible" content="IE=8"/&gt;</code> the JS is working in IE9 ...
php javascript jquery
[2, 3, 5]
2,621,770
2,621,771
jQuery submit ajax form with 2 submit buttons
<p>im trying to achieve the following, in php i have a form like this:</p> <pre><code>&lt;form method="post" id="form_1" action="php.php"&gt; &lt;input type="submit" value="add" name="sub"/&gt; &lt;input type="submit" value="envoi" name="sub"/&gt; &lt;/form&gt; </code></pre> <p>the form action file is:</p> <pre><co...
php javascript jquery
[2, 3, 5]
2,758,703
2,758,704
Reading an XML Node only
<p>I am having an issue getting the value of an XML, it is loading it in the XML document when i debug, but it is not finding the value or the node i want to access. Here is the xml. The value i want to get is "Active". Now this XML is not a file or anything , is being passed as a string... (can not modify this part) h...
c# asp.net
[0, 9]
1,093,594
1,093,595
asp:linkbutton inside gridview
<p>I have a serverside dropdownlist and I am accessing it's id in jquery like this</p> <p>$('#&lt;%=ddldropdownlist.clientID%>')</p> <p>I have a asp:LinkButton inside a gridview and I want to access it's client ID.</p> <p>when I do as above in jquery it doesn't work</p> <p>I think that's not the correct way since t...
asp.net jquery
[9, 5]
4,537,123
4,537,124
whats wrong with this jquery script?
<p>so im trying to apply a basic on click show hide element but for some reason it doesnt take no effect</p> <p>im using it via an external javascript file and including the latest jquery library both included in my master page firebug shows the code so i know its picking it up </p> <p>heres the code ive tried </p> ...
javascript jquery
[3, 5]
4,149,347
4,149,348
Grab text contained within PHP-generated element
<p>I'm having trouble grabbing the actual text within a header tag that is generated by some PHP code. Here's the portion of the page that I'm grabbing.</p> <pre><code>&lt;div class="container"&gt; &lt;div class="majorContainer"&gt; &lt;h2&gt;Your results for: &lt;small&gt;"tables"&lt;/small&gt;&lt;/h2&gt; &...
php javascript jquery
[2, 3, 5]
3,546,112
3,546,113
passing arguments to click or submit function
<p>Is it possible to pass arguments to click or submit function like :</p> <pre><code>$("#example").click(function() { var myVar = x; // refering to x as passed argument }); </code></pre> <p>Maybe function inside a function ? </p> <pre><code>function Func(){ $("#example").click(function() { var myVar = x; }); ...
javascript jquery
[3, 5]
4,341,642
4,341,643
BOOT_COMPLETED broadcast not working on Android 2.3.3
<p>I was looking for a solution to a problem with BOOT_COMPLETED. The code was working file on Android 2.1, but not in 2.3.3. </p> <p>Here my Manifest:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android" package="jv.android.atm" andro...
java android
[1, 4]
3,728,040
3,728,041
How do I make my app look like a standard Android app?
<p>I notice that most android apps have some sort of standard in that they all look similar. Most of them have some sort of list of Text that are click-able. It's somewhat hard to explain but they look really nice and I was wondering is there some sort of tool or api that allows me to change the look of an app to mak...
java android
[1, 4]
1,397,870
1,397,871
Cursor : get the field value (Android)
<p>I have problems with Cursor in my Android application. I have a SQLiteDatabase that return me Cursor when I try to fetch the values with :</p> <pre> public Cursor fetchOption(long rowId) throws SQLException { Cursor mCursor = mDb.query(true, DATABASE_TABLE, new String[] {KEY_ROWID, ...
java android
[1, 4]
846,430
846,431
Rookie mistake:Trying to pass outgoing number to activity
<p>I am retrieving the outgoing number from the broadcast receiver and trying to send it to the activity thru a method getNumber() however the value is coming out null. Im my code below In the activity class the String phonenumber is null</p> <p>BroadcastReciever Class:</p> <pre><code>public class OutgoingBroadcastR...
java android
[1, 4]
5,031,444
5,031,445
Best tool for Code-Analyzement or Code-Review
<p>Which code-Analyzer or Code-Review tool do you suggest ,</p> <p>For Analyzing <strong>DotNet 2.0 &amp; 3.5</strong> code and getting</p> <p><em>All classes , Methods , Properties , Instances , Definition , Databases &amp; and their relation to code ,</em></p> <p>I want to <strong>get print-ready Information</stro...
c# asp.net
[0, 9]
3,370,558
3,370,559
Render image to a page
<p>I have a page <code>http://www.mysite.com/image.aspx</code>, that I want to load and display an image instead of rendering HTML.</p> <p>I have the ContentType of the page set to <code>image/png</code>, and here's my code:</p> <pre><code>using (Bitmap image = new Bitmap("http://www.google.com/images/img.png")) { ...
c# asp.net
[0, 9]
3,398,434
3,398,435
jQuery checkbox and span that share a click event
<p>So I have a checkbox and a span</p> <p><code>&lt;input type="checkbox" class="checker"&gt; &lt;span class="something"&gt;Label&lt;/span&gt;</code></p> <p>From which the span already has some functionality based on clicking it, I am adding a checkbox to the equation for visual aid. What I am trying to do is, when t...
javascript jquery
[3, 5]
2,088,107
2,088,108
Unknown Ajax output
<p>My jquery ajax code is like this</p> <pre><code> $(".head-text").live('click', function (event) { var url = new URI().addQuery("showlist", 1); $.ajax({ url: url, type: "GET" , success: function (data) { var $response = $(data); alert($respons...
javascript jquery
[3, 5]
493,961
493,962
jquery hide li tag
<p>I've html like this. I want to only show first <code>li</code> tags and don't want to show span. How to do this with jquery?</p> <pre><code> &lt;div id="div1"&gt; &lt;ul class="class2"&gt; &lt;li class="class3"&gt;&lt;span class="sfBreadcrumbNodeSeparator"&gt;/&lt;/span&gt; &lt;/li&gt; &l...
javascript jquery
[3, 5]
5,615,688
5,615,689
Easing the excution flow in JS/JQuery
<p>Easing the excution flow in JS/JQuery I've loop like this:</p> <pre><code>for (int i = 0; i &lt; 100; i++) { doSomething(...); // returns momentally } </code></pre> <p>I'm looking for a way to apply easing to the execution flow - by giving a total duration and an easing pattern (ex. 2 seconds &amp; easeback). ...
javascript jquery
[3, 5]
2,091,443
2,091,444
Fixed position until scrolled
<p>I was hoping someone could help me here. </p> <p>Im trying to fix a div at the bottom of the page until the user scrolls it will then scroll up too.</p>
javascript jquery
[3, 5]
3,773,077
3,773,078
jQuery replaceWith find new element
<p>I'm writing a script to replace some images with divs in jQuery. I'm currently using the <a href="http://api.jquery.com/replaceWith/" rel="nofollow"><code>replaceWith()</code></a> method, which works fine, but returns the original (removed) element instead of the new element.</p> <blockquote> <p>The .replaceWith...
javascript jquery
[3, 5]
1,578,323
1,578,324
AJAX Cascading dropdown without updatepanel?
<p>I want to make a cascading dropdown list without using an UpdatePanel. I need tips for starting out this task. Currently,</p> <ol> <li>I am using asp.net 2.0</li> <li>Will I be able to parse JSON in VSS 2005 if I use JQuery ?</li> <li>What is the recommended alternate for UpdatePanel in Visual Studio 2005 ?</li> </...
asp.net jquery
[9, 5]
4,237,859
4,237,860
How to Convert event object to string in JavaScript?
<p>I am trying to get which event is occured :: </p> <pre><code>function getEvent(){ alert(window.event); } </code></pre> <p>I am getting below event object. I want it in string to compare. if event onclick event then I want to do the action. how can I get it in string? or how can I convert event object to string...
javascript jquery
[3, 5]
1,428,326
1,428,327
Access HttpContext.Current.Application from batch process c#
<p>I have a C# ASP.NET web application which starts a thread running some methods in a class called <code>SiteCrawler.cs</code>.</p> <p>In <code>HttpContext.Current.Application</code> I want to save some value when all the threads are finished running. My problem is that the <code>HttpContext.Current</code> object is ...
c# asp.net
[0, 9]
3,840,217
3,840,218
Figuring out which page is calling a piece of JavaScript, in PHP
<p>I have a PHP file that generates a JS file, that is being included on a number of sites. I'd like to be able to check which site the file is being included from on each request. I tried using <code>$_SERVER['HTTP_REFERER']</code> in PHP, but that just returns the domain that the JS file is hosted on. </p> <p>Any id...
php javascript
[2, 3]
96,681
96,682
Loading .js file cross domain using ajax
<p>I'm trying to access a cross domain .js file using ajax:</p> <pre><code>$.ajax({ type:'get', crossDomain:true, url: "http://localhost/62588/scripts/bootStrapper.js", contentType: "application/json", dataType: 'jsonp' }).done(callback); </code></pre> <p>I have a callback at the moment:</p> ...
javascript jquery
[3, 5]
2,572,545
2,572,546
javascript/jquery- how to determine if a list/checkbox allows multiple values to be selected or not
<p>I am trying to parse through a typical form using jquery. I want to obtain all details about the various fields in the form- viz field name, field type (eg radio/checkbox/list)...</p> <p>How do I determine if a field allows multiple values to be selected? (eg in check box or list box)?</p> <p>If this cannot be don...
javascript jquery
[3, 5]
3,000,705
3,000,706
Which is the 'correct' way to do this (if statement)
<p>I've got plenty of these lying around, and I'm wondering if I'm going to face any trouble - or performance problems.</p> <p>I have method A: <pre><code> MyClass monkey; ... if(monkey != null) { ... } </pre></code></p> <p>Or method B: <pre><code> boolean hasMonkey; //This is set to TRUE when monkey is not null MyC...
java android
[1, 4]
4,847,232
4,847,233
about android calendar
<pre><code>Intent intent = new Intent(Intent.ACTION_EDIT); intent.setType("vnd.android.cursor.item/event"); intent.putExtra("beginTime",XXX); intent.putExtra("allDay",false); intent.putExtra("eventLocation",XXX); intent.putExtra("description","XXX"); startActivity(intent); </code></pre> <p>When i load this a...
java android
[1, 4]
4,185,962
4,185,963
What is jQuery(document) vs. $(document)
<p>I don't get what jQuery(document) is here. I thought you always used $(document)</p> <p>see here in his examples: <a href="http://sorgalla.com/projects/jcarousel/" rel="nofollow">http://sorgalla.com/projects/jcarousel/</a></p>
javascript jquery
[3, 5]
2,914,059
2,914,060
Javascript: How to hijack input type=submit on click behavior?
<p>I got a button: </p> <p>Whenever I click on it, it submits to a form.</p> <p>I want to hijack this behavior, so when I click, it calls a JS function instead. How do I do this? I added:</p> <pre><code>$('input.submit').live('click', addFood); </code></pre> <p>The problem is it still submits to the form. When I re...
javascript jquery
[3, 5]
3,558,878
3,558,879
How to add multiple objects of class for same key value in HashMap in java?
<p>I want to store objects of class from arraylist to hashmap, one key may contain multiple objects, how to do that </p> <p>here is my code,</p> <p><code>Map&lt;Integer, classObject&gt; hashMap = new HashMap&lt;Integer, classObject&gt;();</code></p> <pre><code>for(int i=0; i&lt;arraylist.size(); i++) { ...
java android
[1, 4]
2,792,163
2,792,164
cross page posting asp.net not returning values
<p>I have a web form as </p> <pre><code>&lt;asp:TextBox ID="txtname" runat="server" Text="Post on Next Page"/&gt; &lt;asp:Button ID="btn1" runat="server" PostBackUrl="~/Page2.aspx" Text="Post on next page" /&gt; </code></pre> <p>Now on <code>Page2.aspx</code> the code-behind is as follows:</p> <pre><code>protected v...
c# asp.net
[0, 9]
4,817,108
4,817,109
I want to parse json , but unsuccessful. Can any one check my code
<p>I created a php page which print this from the database</p> <pre><code>[{"sha_id":"2","sha_text":"This is 1st sha."},{"sha_id":"4","sha_text":"this is 2nd sha"}] </code></pre> <p>now i want to extract each variable out of this.. after googling for a while i got this</p> <pre><code>$(document).ready(function(){ ...
javascript jquery
[3, 5]
3,208,447
3,208,448
Need to change div's contents while slider changes
<p>My jquery banner needs to some fixes. I have used echo slider for banner. when banner image change to another image, we need to change the content in a div which is not inside the slider's boundary. The Div is separate div (No connection with slider ).</p> <p>I have tried with the code. i just put if statement base...
javascript jquery
[3, 5]
4,088,125
4,088,126
Javascript alert() after Response.Redirect
<p>I am calling this in my code behind: </p> <pre><code>(test.aspx) Response.Redirect("~/Default.aspx"); </code></pre> <p>I want to include a javascript alert after/before being redirected to Default.aspx, is it possible? I'm doing this because I'm passing a value to another page (test.aspx) and that page checks the ...
c# javascript jquery asp.net
[0, 3, 5, 9]
274,331
274,332
Making one unique RadioButton across multiple RadioButtonLists?
<p>I have a repeater control that makes multiple RadioButtonLists. However, I only want one RadioButton (out of all of them) to be selectable at a time. What is the most effective way to do this?</p>
c# asp.net
[0, 9]
1,393,257
1,393,258
Convert Javascript function to jQuery plugin
<p>I have already a short-hand function like so:</p> <pre><code>function myObj() {}; myObj.prototype.read = function (name) {alert(name);}; ...(more functions) </code></pre> <p>Now I would like to "convert" this to a jQuery plugin.<br> What is the best way to do so? (My function doesn't need a selector before...
javascript jquery
[3, 5]
3,975,270
3,975,271
String comparison of text files
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/1510520/compare-the-content-of-2-text-files-in-java-language">Compare the content of 2 text files in java language</a> </p> </blockquote> <p>I am trying to compare strings of two .txt files in an android applica...
java android
[1, 4]
4,915,077
4,915,078
Escape all characters that need to be escaped
<p>I am using a modal window in my asp.net application. On clicking a button I do some serverside processing and then use cs.RegisterStartupScript to close the window and return a value to the parent window. To do that I use RegisterStartupScript to run window.close. </p> <p>Now the problem i am having is that I want ...
c# javascript
[0, 3]
90,709
90,710
Code won't execute in $(document).ready but will in developer console
<p>I have some code wrapped in <code>$(document).ready(function(){ /*code*/ });</code>, and all of it works fine, except for one line. The code above it works fine, the code below it works fine, I'm not getting any errors in my console.</p> <pre><code>$('.main-right.category').height( $('.footer').height() + $('.main...
javascript jquery
[3, 5]
748,265
748,266
Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable
<p>I keep getting this error when I do this:</p> <pre><code>&lt;?php $info = $_POST['mname']; $info = ucwords($info); // Make a MySQL Connection mysql_connect("localhost", "user", "password") or die(mysql_error()); mysql_select_db("javadatest") or die(mysql_error()); // Get a specific result from the "example" tab...
php javascript
[2, 3]
2,470,805
2,470,806
How do I pass a searchstring to perform a search?
<p>again I'm stuck and asking you to help me.</p> <p>I want to enter a search string in an input-field. The search string should perform a search like <a href="https://.../=~searchstring" rel="nofollow">https://.../=~searchstring</a></p> <p>The textfield:</p> <pre><code>$(&quot;&lt;input id='field-inputSearchString'...
javascript jquery
[3, 5]
2,616,672
2,616,673
About clearing the Queue when the page load in ASP.net
<p>I'm trying to fill a queue with user's mails to send confirmation mails to them after a period of time, so every time any user fill his registration form I add him to the queue in order to send mails to them after about one minute and here is my code</p> <pre><code>public static class Gmail { private st...
c# asp.net
[0, 9]
5,005,430
5,005,431
Compensate drawing delay from the game logic updates
<p>Now I have (1: the UI-loop, there my SurfaceView is placed), (2: a second thread, there the draw function from the UI-loop is called AND the update calculations from my Engine) and (3: the engine, there all the calculations stuff are).</p> <p>Now I wonder how the best and smoothest way to do the SurfaceView indepen...
java android
[1, 4]
3,744,321
3,744,322
change a value in a php variable using javascript
<p>I have a value in a php variable <code>$thumb_path="images/Gallery1/thumbs/";</code>. I need to change this value to <code>$thumb_path="images/Gallery2/thumbs/";</code> when I am clicking on Gallery2 Link n my project. IS it possible to change a value in a php variable using JavaScript? Or Is there is any other way ...
php javascript
[2, 3]
2,078,474
2,078,475
how can i load the contents of an xml file at a url into a string?
<p>how can i load the contents of an xml file at a url into a string?</p> <p>eg there is an xml file at <a href="http://www.example.com/test.xml" rel="nofollow">http://www.example.com/test.xml</a></p> <p>I want the text of the xml to be assigned to a string. How can i do that using c#?</p> <p>thanks</p>
c# asp.net
[0, 9]
2,806,032
2,806,033
How to create a program that solves a Triangular Peg solitare - C++ / Java programming?
<p>Honestly, I only knew of such a game recently and I wonder how one can create a solving algorithm using the recursive search method?</p> <p>There are 15 holes in total in the triangular board. Making that 14 pegs with a total of 13 moves. I don't know where to start with this in C++ nor Java. I have studied C++ for...
java c++
[1, 6]
1,240,247
1,240,248
Display postback value
<p>I am working on a project and I found that the Session transferred value not being displayed in Label on first click. On clicking the button for the second time only the Session transferred value is being displayed. The sample code is below please let me know how to get the value displayed on the first click. Note: ...
c# asp.net
[0, 9]
1,329,004
1,329,005
Login with formAuthentication in Asp.net using c#
<p>How to login or authenticate using FormAuthenticate method in ASP.NET web forms and after login how to check on each page whether user is authenticaed or not.</p> <p>please give me a sample for that how to use form authentication in login page.</p>
c# asp.net
[0, 9]
1,929,876
1,929,877
Jquery Iterate over table and highlight cells that have changed
<p>I have a table that is a history of a mysql record.</p> <p>I want to add a button that will highlight the changes.</p> <pre><code>&lt;table&gt; &lt;tr&gt; &lt;td&gt;100&lt;/td&gt; &lt;td&gt;200&lt;/td&gt; &lt;td&gt;300&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;100&lt;/td&gt; &lt;td&gt;200&lt;/td&gt; ...
javascript jquery
[3, 5]
329,897
329,898
Javascript Background color switching
<p>I am trying to use javascript to control the background color of a form element, what I have so far:</p> <pre><code> &lt;script type="text/javascript"&gt; $(document).ready(function() { $('option.POIs').click(function() { $(this) .css('background-color','#EE178C') }); ...
javascript jquery
[3, 5]
3,233,371
3,233,372
jquery and jscript if else
<p>I'm using the code below to make a box appear when certain text is clicked. How do i limit it so only one box can be slid down at a time.</p> <p>E.g. if i click the first button it slides down, then if i click the second button the first box slides up again?</p> <p>Here's my code</p> <pre><code>&lt;script type="t...
javascript jquery
[3, 5]
5,323,653
5,323,654
JQuery / Javascript Add "id" to a <div> where class="x"
<p>I have a line of code which is...</p> <pre><code>&lt;div class="x"&gt; xyz &lt;/div&gt; </code></pre> <p>I want to write a script to find the div where class == "x", and change it to be...</p> <pre><code>&lt;div class="x" id="y"&gt; xyz &lt;/div&gt; </code></pre> <p><strong>any help is appreciated</strong>...
javascript jquery
[3, 5]
4,890,451
4,890,452
How to define document height is changed in javascript/jquery?
<p>I have a problem for showing a full size div over all of my HTML document. I've set the size of my div to my page width and height. and write this codes for resizing of document:</p> <pre> $(window).resize(function(){ sysSetOverlaySize(cDivOverlay);//cDivOverlay is my full size div }); </pre> <p>when my browse...
javascript jquery
[3, 5]
2,856,872
2,856,873
JQuery Detect class changes
<p>I am using a plugin that added a class <code>open</code> to <code>.slide-out-div</code> when opened.</p> <p>So I am trying to change some css if the open is detected.</p> <p>What I need to do is </p> <pre><code>IF $('.slide-out-div **open**') IS Detected then $('.otherDiv').css('top','0px'); </code></pre> <p>N...
javascript jquery
[3, 5]
5,599,001
5,599,002
Extract word from Url
<p>I have a search function, and would like to display the search term in the search input.</p> <p>My url is: <code>search-1.html?keyword=XXXXXX</code></p> <p>How do I get this, and display it in an input?</p> <p>Thank you in advance.</p>
javascript jquery
[3, 5]
5,151,000
5,151,001
How to enqueue callbacks before jQuery is loaded?
<p>I switched to using Require.JS in an app and immediately faced this problem:</p> <p>I used to use inline JS to initiate certain calls once certain part of DOM is loaded. Now apparently jQuery loads only after those calls are executed, thus resulting in errors because jQuery ($) is undefined.</p> <p>What's the best...
javascript jquery
[3, 5]
1,854,036
1,854,037
how to fill textbox from dataset?
<p>i run this and i want to fill textbox txtFname with data - but it dont do nothing</p> <pre><code> using (Conn = new SqlConnection(Conect)) { Conn.Open(); SQL = "SELECT * FROM MEN where id = '" + txtBAR.Text.Trim() + "'"; dsView = new DataS...
c# asp.net
[0, 9]
5,473,941
5,473,942
ASP.Net WebForms| Show text only to login users?
<p>So. i got a website in asp.net webforums, the thing is. </p> <p>i can easyley control who can look to each pages with :</p> <pre><code>&lt;location path="seetalktous.aspx"&gt; &lt;system.web&gt; &lt;authorization&gt; &lt;allow users="admin"/&gt; &lt;deny users="*" /&gt; &lt;/authori...
c# asp.net
[0, 9]
3,415,754
3,415,755
Rewriting Java code to c#
<p>I am busy rewriting some code to c# but i have rub into some difficulty with the following piece.</p> <pre><code> SearchControls ctls = new SearchControls(); ctls.setReturningAttributes(attrIDs); ctls.setSearchScope(ctls.SUBTREE_SCOPE); String searchBase =""; searchBase = "ou=Users,ou=ABSASAPHR,c=za"; ...
c# java
[0, 1]
253,946
253,947
jQuery add not working with HTML
<p>In the <a href="http://api.jquery.com/add/" rel="nofollow">jQuery <code>add</code> documentation</a>, it lists an <code>add(html)</code> overload which describes the <code>html</code> argument as:</p> <blockquote> <p>An HTML fragment to add to the set of matched elements.</p> </blockquote> <p>Since there is alre...
javascript jquery
[3, 5]
1,980,979
1,980,980
How can I find the (file) name of the current page in ASP.NET?
<p>How can I find the name of (default.aspx ) current page or web control in the code behind?</p> <p>I want to write a superclass that uses this name.</p>
c# asp.net
[0, 9]
4,836,341
4,836,342
ClientScript.RegisterStartupScript in footer
<p>Can we call:</p> <pre><code>ClientScript.RegisterStartupScript(typeof(Page), "KyAUIDFCS", "&lt;script language='javascript' type='text/javascript'&gt;slidershow();&lt;/script&gt;"); </code></pre> <p>in user control, how can we implement this let me know because there page object in usercontrol. Are there any alter...
c# asp.net
[0, 9]
3,210,388
3,210,389
Hide Links not containing my Keyword (Case Sensitive)
<p>I'm using this shopping cart script that sends Links to my own website. Meaning I have no control over the HTML.</p> <p>The links look like this:</p> <pre><code>&lt;a href="something.com"&gt;Yamaha 800cc motorbike&lt;/a&gt; &lt;a href="something.com"&gt;800cc Kawasaki&lt;/a&gt; &lt;a href="something.com"&gt;Motorb...
javascript jquery
[3, 5]
4,952,376
4,952,377
when i submit the form all the values which i entered gone out
<p>The values which i have entered gone out if i submit the form with any validation error. I want remaining values has to be stay in particular field except the validation error filed</p>
php javascript
[2, 3]
2,362,459
2,362,460
jQuery - passing id element to a non-anonymous callback function without using an anonymous function
<p>I'm trying to pass an element's <code>id</code> to <code>storePair</code></p> <p><code>$("#someid").click(storePair($(this).val(),$(this).attr("id"));</code></p> <p>using <code>$(this)</code> doesn't work. no value.</p> <p>Another <a href="http://stackoverflow.com/questions/948198/non-anonymous-function-for-jquer...
javascript jquery
[3, 5]
230,236
230,237
how to set builtindocument proprties of excel before saving to clientPC
<p>I am trying to set builtindocument property value to excel. Excel is created using response object and pop up the dialog box on client side to save it . I want to assign vaue to document property before the dialog box appears . I am getting exception when assigning response to new excel.application object.</p> <pre...
c# asp.net
[0, 9]
5,488,787
5,488,788
Using other web app App_GlobalResources resorces asp.net C#
<p>I cant't figure out how can i use other web app App_GlobalResources resources file in my webapp</p> <p>both are in same server.</p> <p>Thanks! </p>
c# asp.net
[0, 9]
4,628,093
4,628,094
Convert a .val() into string jQuery
<p>I have a jQuery function that gets the value from a form input text object named <code>content</code> in which a user can enter an HTML tag in the form. For example, the user types "Sample" with <code>&lt;b&gt;</code> tags. Once submit is fired, jQuery gets the value from <code>content</code>.</p> <pre><code>var co...
javascript jquery
[3, 5]
4,779,535
4,779,536
jQuery variable contains " and '
<p>is it at all possible to replace the <code>'</code> in the postbody variable with <code>&amp;#39;</code> without actually editing the postbody variable contents</p> <pre><code>var postbody = '&lt;div class="postbody"&gt;this is tom's and bill's post&lt;/div&gt;'; var postid = $('#post-content'); postid.append(postb...
javascript jquery
[3, 5]
482,533
482,534
create image from divs composite
<p>I'd like to have a div as a canvas, where users would choose images to show, out of a list. They will choose what background it would have, icons, and they will upload an image which will appear in this canvas too.</p> <p>I'm looking for solutions in PHP or ASP.NET.</p> <p>thansk</p>
php asp.net
[2, 9]
4,338,474
4,338,475
compare between input value with 0 trail
<p>I found that when jQuery get a value with 0 (for example 100)trail, it will omit it. So if I compare 5>100, the result is true. So how do I solve this? here is the HTML code:</p> <pre><code>&lt;form id="target"&gt; &lt;input type="text" id="max" value="100"/&gt; &lt;input type="text" id="number" /&gt; ...
javascript jquery
[3, 5]
5,222,071
5,222,072
parallax with 1 image
<p>I want to use parallax effect with only 1 image. Can it be done?</p> <p>Actually, it's not really parallax, I have one big image in the center of screen, so when I move my mouse to the left, I want the image slightly moves to the right, move mouse to the right, the image slightly moves to the left, move mouse up im...
javascript jquery
[3, 5]
2,421,245
2,421,246
JS to PHP conversion
<p>I've got an old JS script to retrieve my last tweet and display the date in a « X minutes ago » fashion. I want to convert it to PHP and, in the process, improve/optimize it if possible :</p> <pre><code>var dateAct = new Date(); var diff = dateAct.getTime() - dateTwit.getTime(); var min = (diff/(1000...
php javascript
[2, 3]
840,936
840,937
identifying code that compiles in both Java and C# but runs differently
<p>I am having to port code from Java to C# (and soon the other way round) by copying and pasting and then editing compiler errors. (Please accept that this is necessary; I can explain if required). Are there cases where the same code fragment runs differently in the two languages? I would include cases where order or ...
c# java
[0, 1]
4,162,168
4,162,169
Can jQuery manipulate inserted elements?
<p>I'm a freshman to jQuery. I think it's reasonable that jQuery could manipulate elements added by code, but I found it couldn't just now. </p> <pre><code>$(function(){ $("#addVideo").click(function(){ $("#publisher").append("&lt;div id='choseType'&gt;&lt;input type='button' value='video'&gt; &lt;input v...
javascript jquery
[3, 5]
5,599,795
5,599,796
Js : open new window and work with it
<p>is possible to open new window ( with external url ) with javascript or jquery and check if in that window was submited a form</p> <p>something like : <code>window.open(....)</code> then : <code>if ( POST in new window ) { document.write('in new window was submited a form ' ); }</code> ..</p> <p>Thanks in advance<...
javascript jquery
[3, 5]
889,530
889,531
hide div if clicked outside of it
<p>I’m having a little trouble with this JQuery function.</p> <p>Basically, I have a div, that when clicked, shows another Div. It’s set to a toggle, actually, so it toggles on/off when you click.</p> <p>I want to have it where if you click on anywhere outside of the opened div (that appears after you click on the fi...
javascript jquery
[3, 5]
697,951
697,952
how to reduce a latitude to 4 decimal places
<p>This is my second post on this subject. I have found dozens of posts on this subject and not a single solution that works. The location listener will provide you a latitude such as 3.734567E7. My goal is to reduce the accuracy of that latitude to four decimal places. I don't care if I truncate it or round it. t...
java android
[1, 4]
3,205,405
3,205,406
getting value from popup window
<p>is this code is write or wrong?</p> <pre><code>imgbtnProdSearch.Attributes.Add("onclick", "window.open('popUp.aspx?name=" +txtSelectProdName.ClientID+"','_new','width=1000px,height=1000px');return false"); </code></pre>
javascript asp.net
[3, 9]
1,963,644
1,963,645
how to use PyV8 and httplib to interpret javascipt
<p>I would like to write my own web test engine that will request (get/post) my wsgi application and i would like my client to interpret the return page that contains some javascript code. </p> <p>Basically it is how to use a PyV8 to make a headless browser.</p> <p>Thx</p>
javascript python
[3, 7]
4,982,482
4,982,483
Base64 string Compression
<p>I have got an ActiveX Control that gets an image from a fingerprint device as base64 string. The Active works great and I could transfer the returned base64 string to the server to be converted to a binary data and then to be saved to a database. I use ASP.NET as server side technology and JavaScript as client side ...
asp.net javascript
[9, 3]
3,305,492
3,305,493
How to do a jquery find on intially hidden element
<p>I have a div with a class name 'form'. When the page is initially loaded this div is hidden (it's an asp.net web forms Panel control). The panel is displayed when a search button is clicked to open a search form on the page. I need to capture when the user hits enter in any of the textboxes and have it click the Sea...
jquery asp.net
[5, 9]
2,683,223
2,683,224
(html/css/javascript) Trying to make my Current Page link in the navbar a different color
<p>I've been reading around and people recommending only CSS to change the current page navbar link background color but I don't get how that's possible since CSS is static and I won't be able to add/remove the <code>.currentlink</code> class on the links? So right now I'm using JS / jquery to try to add / remove class...
javascript jquery
[3, 5]
3,087,059
3,087,060
Where to store data in order to avoid database hitting?
<p>I am using webmethod which fetches data from database &amp; storing it in a static variable so that next time it will not hit the database becoz the data is being accessed frequently. Creating static variable doesn't seem to be a proper solution what is an alernative to this scenario.</p> <p>e.g</p> <pre><code>pub...
c# asp.net
[0, 9]
979,958
979,959
Max amount of elements to append
<p>What I'm trying should be easy, but I don't seem to be able to figure it out (ore google the problem)</p> <p>I have elements that I find, after finding them I want to append them to a container. But I don't want to many items so I want to be able to limit the amount of items to be appended.</p> <p>For example:</p>...
javascript jquery
[3, 5]
3,053,234
3,053,235
How to make a javascript redirect within a php if statement
<p>I am developing a personality test, and php result script now just echoes a personality description based on an if statement:</p> <pre><code>if ($i = 5 AND $alpha[$i] &gt;= 9 ) { echo " Description "; } </code></pre> <p>However, instead of this description, I would want to make a redirect to another url. Can'...
php javascript
[2, 3]
1,304,365
1,304,366
Good resource for creating a portal in aspx from design perspective
<p>I want to learn how to create a portal using asp and C#. I have learned language features of C# and asp. I want to learn how one should design a portal (like banking).</p> <p>Regards,</p> <p>Sachin</p>
c# asp.net
[0, 9]
3,114,022
3,114,023
Differentiate between admin and user login?
<p>I am designing a website, which has a login module.. here 3 users/persons (mainly) will be accessing the login page:</p> <ol> <li>Superadmin (domain owner)</li> <li>Local admin (under domain owner)</li> <li>Normal user (under local admin)</li> </ol> <p>Where domain owner has rights over local admin &amp; normal us...
c# asp.net
[0, 9]
4,033,917
4,033,918
How do I connect gridview to sql using C# in asp.net?
<p>I know how to connect, open, read, close as you see below. I also have awesome tutorial how to add update/delete etc. </p> <p>I can connect dataTable to sql using asp.net controls, but I want to learn how to manipulate it from C#.</p> <p>MasterCust is my gridview table name. How do I connect the to it?</p> <pr...
c# asp.net
[0, 9]
1,088,766
1,088,767
popup based on the result of comparison
<p>The situation is that the user enters a value in the textbox.Now whenever user enters the value, the value is to be compared to a value(field) which has been retrieved form the database.If the value the user has entered is higher than that of the database then they should be displayed with a popup.How do i do that?T...
php javascript
[2, 3]
1,044,875
1,044,876
DRY attribute selection
<p>Say I have an element on the page:</p> <pre><code>&lt;div data-name='foo'&gt; </code></pre> <p>What's the best way to get the attribute value? Is there anything more DRY than <code>$('[data-name]').attr('data-name')</code> or <code>$('[data-name]').data('name')</code>?</p>
javascript jquery
[3, 5]
777,506
777,507
Working with a narrowed down DOM using jQuery
<p>I am currently trying to figure out a way to work within a selected <code>&lt;div&gt;</code> in order to be able to send a text formatted email. </p> <p>So there is a button says "email". When a user clicks on it, it grabs a closest div as below.</p> <pre><code>var selectedDiv = $(callingElement).closest(".myClass...
javascript jquery
[3, 5]