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
2,044,062
2,044,063
Calling JavaScript in a WebBrowser control from C#
<p>For example: 1) In webBrowser1 page index.html is loaded. 2) This page has the following code:</p> <pre><code>... &lt;a id="activity_text" href="#" onclick="activity_editor.show();return false;"&gt;now status&lt;/a&gt; ... </code></pre> <p>3) As I can in the program way to change "now status"?</p> <p>I tried so:<...
c# javascript
[0, 3]
5,373,545
5,373,546
Get system ip code not working in server
<p>This code works on my system not in server please help me to fix this error. am not sure what is error..</p> <p>This is my partial code...</p> <pre><code>private IPAddress getMyCurrentIP() { IPHostEntry host = Dns.GetHostEntry(Dns.GetHostName()); if (host.AddressList.Length == 1) myCurrentIP = host...
c# asp.net
[0, 9]
3,786,920
3,786,921
how to get dynamically created textarea's value in POST array?
<p>I am creating few textareas on-the-fly by replacing the content and adding that content in textarea. Please review the code below:</p> <pre><code> &lt;script type="text/javascript" language="javascript"&gt; $(document).ready(function(){ $("#content").find(".editable").each(function(count){ ...
php javascript jquery
[2, 3, 5]
5,482,594
5,482,595
Adding WebUserControl To Gridview in asp.net
<p>I want to add a webusercontol which contains a textbox and a label to the gridview control. I am binding a gridview with a datatable dynamically.</p> <p>Here is my code:</p> <pre><code>@ Register Src="CompareBox.ascx" TagName="CompareBox" TagPrefix="objCompareBox" %&gt;&lt;br&gt; &lt;asp:GridView ID="grdfoneBoxCon...
c# asp.net
[0, 9]
643,518
643,519
select items in a checkbox list based on their text
<p>i have a check box list in my asp.net page ...i need to select the check box based on their text...am getting these string values form the database and storing it in a array.....the below code works fine for a single text ..What should i do in case of array..how should i pass the array values in the if loop</p> <pr...
c# asp.net
[0, 9]
2,177,678
2,177,679
How to echo or print to test the if else condition in ASP.NET
<p>i am trying to do a simple time calculating program in ASP.NET , where people enter amount and annual interest and payment per month , need to get time in months when the debt is paid of along with interest, and i want to test if the monthly payment amount is smaller than the monthly interest amount using if else co...
c# asp.net
[0, 9]
5,315,155
5,315,156
How to close a popup window in a parent window?
<p>I need to close a popup window which has been loaded by a parent window.</p> <p>This popup window is a <code>Documentviewer</code> window in my webapp.</p> <p>I need to close this viewer by clicking a logout button which is in master page.</p> <p>My code:</p> <pre><code>public string MySession //server side code...
c# javascript asp.net
[0, 3, 9]
4,849,012
4,849,013
Exchange rate of variable currency in a variable Date in C#
<p>Hi Anyone knows any free Web service which can give me ability to convert my variable currency of into different currency in a variable date. I have tested this web service (http://www.webservicex.net/CurrencyConvertor.asmx) but it is not giving me option for previous date. Please guide me!</p> <p>Kind Regards Sye...
c# asp.net
[0, 9]
3,315,391
3,315,392
I need help starting out with programming
<p>A couple of days ago, I began learning c++. I downloaded visual studio, looked at tutorials, and wrote some simple programs. I was doing good until I got the pointers. Whats the point of "pointing" to a variable when you can just reference the actual variable. It was really confusing me.</p> <p>So I began looking o...
c# java python
[0, 1, 7]
4,114,757
4,114,758
Google annotated timeline
<p>I want to use Google Annotated Time Line to generate a graph using values generated from a PHP script, so far I have:</p> <p></p> <pre><code> google.load('visualization', '1', {'packages':['annotatedtimeline']}); google.setOnLoadCallback(drawChart); function drawChart() { var data = new google.visualizati...
php javascript
[2, 3]
393,953
393,954
Android, Strings, Quotes
<p>i want to create an android app which basically shows some quotes and those quotes are able to be shared to social platforms(e.g facebook and twitter). How do I go about doing that? Thanks in advance..</p>
java android
[1, 4]
4,890,246
4,890,247
Why cant i combine javascript and php in my code?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/168214/pass-a-php-string-to-a-javascript-variable-and-escape-newlines">Pass a PHP string to a Javascript variable (and escape newlines)</a> </p> </blockquote> <p>I am quite new to the concepts of Javascript/jQue...
php javascript
[2, 3]
5,112,569
5,112,570
How do I handle screen orientation changes when a dialog is open?
<p>I have an android app which is already handling changes for orientation, i.e. there is a <code>android:configChanges="orientation"</code> in the manifest and an <code>onConfigurationChange()</code> handler in the activity that switches to the appropriate layout and preps it. I have a landscape / portrait version of ...
java android
[1, 4]
2,832,442
2,832,443
jquery click event ONLY when wrapped element clicked
<p>I have the following html:</p> <pre><code>&lt;ul class="treeList2"&gt; &lt;li class="topLevel marked checked"&gt;&lt;div class="tlWrap clearfix"&gt;&lt;input type="checkbox" checked="checked" class="checkbox"&gt;&lt;strong&gt;Level name here blah blah &lt;span&gt;(3)&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;/li...
javascript jquery
[3, 5]
5,681,809
5,681,810
Select ListItem in ListBox based on Text from TextBox
<p>I am trying to select an item in a ListBox based on text entered in a textbox using jquery. If the length of the text entered in the textbox is greater than 1 I would like to loop through the items in the ListBox and compare the value of each item and if it matches the numbers entered in the textbox I need to selec...
jquery asp.net
[5, 9]
2,953,031
2,953,032
What type of data can be stored in cookies?
<p>I am learning ASP.net using C# and I would like to know if we can store data other than strings, in cookies, like date/time or decimal or double.</p>
c# asp.net
[0, 9]
4,576,751
4,576,752
Tracking mouse movements
<p>This should be typically easy, I want to perform tracking of mouse movements. I'm capable of capturing the XY co-ords. </p> <p>However, as far as I'm aware, this will vary according to the browser size, right ? </p> <p>If so, can anyone recommend other things to track to ensure my results are accurate? </p> <p>P....
javascript jquery
[3, 5]
5,056,966
5,056,967
What's the difference between jQuery.bind() and jQuery.on()?
<p>And why is .on() now preferred in jQuery 1.7?</p>
javascript jquery
[3, 5]
5,275,116
5,275,117
How to pass multiple checkboxes to PHP through JQUERY
<p>I HAVE modified my code, i used firebug console.log to detect weather the the php gets the array passed or not. and firebug displays this - rescheck[]=2&amp;rescheck=1&amp;rescheck=3</p> <p>I think php gets the array if THATS what an array in php supposed to be like.</p> <p>SO guys, if thats correct how to insert...
php jquery
[2, 5]
5,847,952
5,847,953
Count length of an array and create the same amount of HTML elements with JS/jQuery
<p>Is it possible to query the length of an array and then use JS/jQuery to create the same amount of new HTML elements client side?</p> <p>The code I have for the array is:</p> <pre><code>var psC1 = [ 'item1', 'item2', 'item3' ]; alert(psC1.length); </code></pre> <p>Which will alert that there's 3 items in the arr...
javascript jquery
[3, 5]
3,444,764
3,444,765
how to render a .htm page into .aspx page
<p>i have aspx page which has to render .htm page how can it be done</p> <p>if possible then i want added feature that is i want to call a JavaScript after that .htm page is rendered</p> <p>pls help</p>
javascript asp.net
[3, 9]
5,886,373
5,886,374
understand inherit abstract method in java
<p>I'm new to Java but not to programming. I'm reading the book "Beginning Android Games" and there is an <a href="http://code.google.com/p/beginning-android-games/source/browse/trunk/ch06-mrnom/src/com/badlogic/androidgames/framework/impl/AndroidGame.java" rel="nofollow">abstract class</a> that gets instantiate <a hre...
java android
[1, 4]
797,166
797,167
Can't find the way to move an image (or others clickable objects)
<pre><code> public class FirstTest extends Activity { public FirstTest() { // TODO Auto-generated constructor stub } RelativeLayout currentLayout; static int[] Deck = { R.drawable.img1, R.drawable.img2, R.drawable.img3, R.draw...
java android
[1, 4]
981,521
981,522
DNS setup Impact the AD authentication in C#
<p>Since I saw lot of posts about the exception which is shown below, And most of guys were stuck with it painfully.</p> <pre><code>Exception Message: "The server is not operational" Source: "System.DirectoryServices" </code></pre> <p>Recently It happened on me. But finally I figure it out .I thought I should share m...
c# asp.net
[0, 9]
5,037,935
5,037,936
How do I check if attribute is empty?
<p>I have a few select menus that include blank options. When both are blank (usually on the first page load), I would like to show some hidden div.</p> <p>This is what I have:</p> <pre><code> $('.variant_options select').each(function() { if ($(this).attr('value') === '') { // some code here to show ...
javascript jquery
[3, 5]
946,164
946,165
"Syntax error, unrecognized expression" error whilst using jQuery. What am I doing wrong?
<p>I have <a href="http://google.com/search?q=Syntax+error,+unrecognized+expression" rel="nofollow">Googled this exception</a>, and it seems to mostly boil down to people using the old <code>option[@select]</code> style attribute selector.</p> <p>My problem, however, is a little different.</p> <p>When I get the error...
javascript jquery
[3, 5]
4,660,230
4,660,231
JavaScript alert not working in Android WebView
<p>In my application I am using WebView and in that I am using JavaScript alert( ) method but its not working, no pop-up appears.</p> <p>in my manifest file I have added </p> <pre><code>&lt;uses-permission android:name="android.permission.INTERNET"&gt;&lt;/uses-permission&gt; </code></pre> <p>and in activity file I ...
javascript android
[3, 4]
2,715,596
2,715,597
jQuery: Issue Using Bind & Click Methods
<p>Any idea why this click event isn't working? (I'm sure the answer is obvious - I'm just not seeing it).</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;title&gt;&lt;/title&gt; &lt;script type="text/javascript" src="jquery.js"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; ...
javascript jquery
[3, 5]
1,530,106
1,530,107
Calling Javascript on a loaded site
<p>How would I call a function in Javascript on a loaded site in a Windows Form Application web browser? For those that have used Chrome, I'm looking to call Javascript like you can with the Javascript console.</p>
c# javascript
[0, 3]
3,219,991
3,219,992
jQuery hide/reveal image banner
<p>I am hoping someone can provide assistance with a jQuery issue I have. I have been asked to produce a banner which hides/reveals part of an image or div. I am a designer who's skills are limited to HTML and CSS and have no great experience in coding jQuery.</p> <p>The overall banner is 100% in width split into two ...
javascript jquery
[3, 5]
5,975,926
5,975,927
PHP code to open new resized window
<p>I am not very well versed in PHP code, but I have an overall goal I hope someone can help me with. I have this code snippet from my site:</p> <pre><code>$show = false; if($this-&gt;_general['post_ci_linkedin_show']) { $url = urlencode(get_permalink($post-&gt;ID)); $title = urlencode($post-&gt;post_title); ...
php javascript
[2, 3]
2,243,768
2,243,769
split the message into array
<pre><code>RadikalGenc.aspx?phonenumber=5552451245&amp;message=ISTAN-ALL-123;Emly,Foz,Praia,Sol,Luna,Trabalha string number = Request.QueryString["phonenumber"].ToString(); string textMessage = Request.QueryString["message"].ToString(); </code></pre> <p>I need the textMessage splitted int array Like this:</p> <p>IST...
c# asp.net
[0, 9]
1,159,408
1,159,409
how to get click event of asp linkbutton which is created using literal?
<p>I dynamically created linkbutton using literal in csharp. i want its click event.</p> <pre><code>for (int i = 0; i &lt; dataset.Tables[0].Rows.Count; i++) { Literal literal = new Literal(); literal.Text = @" &lt;asp:LinkButton runat='server' ID='addtocart' Text='' ...
c# asp.net
[0, 9]
2,270,336
2,270,337
Trying to fetch values on gridview
<p>I am trying to fetch values on a GridView with the following code:</p> <pre><code>protected void GridView1_RowUpdating(object sender, GridViewUpdateEventArgs e) { GridViewRow row = GridView1.SelectedRow; string Username = row.Cells[3].Text; string Password = row.Cells[4].Text; string Email = row.Cel...
c# asp.net
[0, 9]
1,515,170
1,515,171
detect java not installed and provide a link from Javascript
<p>I have this panorama viewer that makes use of java, </p> <p>but when trying to acces from firefox and java not installed, it warns that some plugin is needed but it doesn't specify whitch one or where to download if from...</p> <p>So, can i, from javascript, detect if user hasn't installed java and provide him wit...
java javascript jquery
[1, 3, 5]
2,473,344
2,473,345
Jquery .html, Firefox encodes qoutes in attributes
<p>I have a hotfix app which generates HTML slides. The modules are built in Jquery with the background as inline CSS (the best solution i could come up with since they are unique per instance). </p> <p>The problem is that firefox converts the quotes in the style attribute into:</p> <pre><code>&lt;div style="backgrou...
javascript jquery
[3, 5]
3,778,984
3,778,985
Java Generics: Why does an explicit cast cause a compiler error, but variable assignment does not
<p>This block compiles properly:</p> <pre><code>ArrayList&lt;Baz&gt; list = savedInstanceState.getParcelableArrayList("foo"); bar(list); </code></pre> <p>But this block errors stating that <code>ArrayList&lt;Parcelable&gt;</code> can not be cast to <code>ArrayList&lt;Baz&gt;</code>:</p> <pre><code>bar((ArrayList&lt;...
java android
[1, 4]
4,403,609
4,403,610
Jquery dialog to open multiple windows
<p>I'm trying to make system of multiple dialogs in one page using jquery dialog... </p> <p>Functions looks like... </p> <pre><code> function open_w(id){ $('.opened').dialog('close'); $(id).addClass('opened'); $(id).dialog({position: 'center', modal:true, width: '750px' }); }; ...
javascript jquery
[3, 5]
3,930,873
3,930,874
javascript error
<pre><code>var a=asdf; var b=asdfs; //var a = new String("asdf"); if (a.equals(b)) { $("#package").show(); } else { $("#package").hide(); } }); </code></pre>
javascript jquery
[3, 5]
4,793,196
4,793,197
TableRow with two TextView in separate line
<p>I have the following code:</p> <pre><code>TextView name = new TextView(this); name.setText(venues.get(j).name); name.setLayoutParams(new LayoutParams( LayoutParams.FILL_PARENT, LayoutParams.WR...
java android
[1, 4]
3,004,202
3,004,203
Import ordering of js file
<p>A library is imported on a jsp file : </p> <pre><code>&lt;script type="text/javascript" src="mylibrary.js"&gt;&lt;/script&gt; </code></pre> <p>Code is then executed further in the .jsp which requires this library : </p> <pre><code>&lt;script type="text/javascript"&gt; //various calls take place to myLibrary.js &l...
javascript jquery
[3, 5]
1,142,438
1,142,439
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]
4,723,087
4,723,088
jQuery Tooltip not working with detach(), appendTo, etc?
<p>I'm trying to use this jQuery Tools <a href="http://flowplayer.org/tools/tooltip/index.html" rel="nofollow">ToolTip widget</a>.</p> <p>It works great in a situation like this:</p> <pre><code> ... &lt;a id="A1"&gt;trigger&lt;/a&gt; &lt;script&gt; $(document).ready(function () { $("#trigger").tooltip...
javascript jquery
[3, 5]
3,510,902
3,510,903
How to retrieve already shorted URLs from Bitly API
<p>I have thousands of Long URLs that were shortened with the Bitly API. I know wish to store those shortened URLS in a database. Does any one knows how to retrieve the already shortened Bitly URL from a long URL?</p>
c# asp.net
[0, 9]
2,670,593
2,670,594
What is the difference between .length and [0] to check if an element with an ID exists
<p>I have seen two ways to check if an element with a specific ID exists on the page and I was wondering why the second way works.</p> <p>One way I have seen is the following and I think I understand it:</p> <pre><code>if ( $('#elementID').length &gt; 0 ) { //Do something } else { //Do something else } </code></p...
javascript jquery
[3, 5]
4,868,666
4,868,667
PHP to Python Code Differences - Arrays, Foreach Loops
<p>I hope this question is phrased appropriately to the policies of this site.</p> <p>I am trying to convert a piece of Python Code to PHP code. I have gotten almost every function translated except I cannot figure out how Arrays and Foreach loops are different in PHP vs Python. </p> <pre><code>qstid = dbinputsurvey...
php python
[2, 7]
437,610
437,611
Problem refresh in asp.net
<p>I create Button. Add event Click. in event function AddToDataBase.</p> <p>I press Button, event work, run function - data good add to database.</p> <p>more I press F5 event wirk and function AddToDataBase start working.</p> <p><strong>It is not correct. how to fix it?</strong></p>
c# asp.net
[0, 9]
3,442,039
3,442,040
Getting error: String reference not set to an instance of a String. Parameter name: s (asp.net c#)
<p>I am using this code to truncate datetime from my database into its year and time components. The variables YearOfRelease and Runtime contain datetime of the format "dd/MM/yyyy hh:mm:ss" It was working fine previously but its now giving the error: </p> <p><strong>String reference not set to an instance of a S...
c# asp.net
[0, 9]
3,865,973
3,865,974
What is the optimal way to share code between Activities with different base classes?
<p>I have the following problem:<br> I have an abstract <em>Activity</em> class, lets call it <em>MyAbstractActivity</em>, that contains some code I'd like to reuse (for example: a standard service binder, common menu items, common initialization code, etc. etc.). Normally I would just use it to subclass my concrete ac...
java android
[1, 4]
124,580
124,581
how to load jquery and other javascript file
<p>This is my first time using lightbox which uses jquery framework. But when I paste jQuery and Lightbox javascript files into my html page, my current javascript code doesn't work properly. Is the way I set them up wrong? Thank you. This is the order I put my js files </p> <p>the error I got is:<br> Uncaught TypeErr...
javascript jquery
[3, 5]
3,162,588
3,162,589
TelephonyManager.getDeviceId() returns a constant value?
<p>I'm generating a key for obfuscate information. </p> <p>That key must change between devices so for the generation I was using:</p> <ul> <li><code>Secure.getString(getContentResolver(), Secure.ANDROID_ID)</code></li> <li><code>TelephonyManager.getSimSerialNumber()</code></li> <li><code>TelephonyManager.getDeviceId...
java android
[1, 4]
1,233,312
1,233,313
Passing parameters to jQuery function via link
<p>I have a jQuery function:</p> <pre><code>$(function(){ function InitDialog(c,b){ /* some code */ } $('a[name=dialog]').click(function(e) { InitDialog(caption, bodyText); fadeInCommon(e,this); }); }); </code></pre> <p>And al...
javascript jquery
[3, 5]
2,136,928
2,136,929
position of div in particular div
<p>i have one card window div in which</p> <pre><code> &lt;div id="cards_window" class="popup_window ui-dialog ui-corner-all" title="Cards"&gt; &lt;div id="cards_title"&gt; Cards &lt;div id="cards_window_close" class="ui-button ui-icon ui-icon-circle-close popup_close"&gt;&lt;/div&gt...
javascript jquery
[3, 5]
1,868,291
1,868,292
How can I scroll to the div automatically when I click the button?
<p>I Have a button at the top, 4 tables in the middle and a div (id="MasterDiv") on the bottom of a page. How can I scroll to the div automatically when I click the button? Thanks</p>
javascript jquery
[3, 5]
2,053,530
2,053,531
How to append elements into dom in one go
<p>How do I append elements into the dom in one go? As you can see from the code below I'm appending stuff into a root element(tr_next) inside a loop.</p> <pre><code>$('.abc').each(function(){ //create element code here var tr_next = $("&lt;tr&gt;"); var td_contact_fname = $("&lt;td&gt;").attr({"width" : "190px"...
javascript jquery
[3, 5]
2,534,154
2,534,155
jQuery cannot see a dynamic element?
<p>I've a simple code as following:</p> <pre><code>&lt;html&gt; &lt;body&gt; &lt;div id="div1"&gt; &lt;input class="input1" type="text" value="click me 1" /&gt; &lt;/div&gt; &lt;script type="text/javascript"&gt; $('.input1').click( function() { alert('clicked'); }); $('#div1'...
javascript jquery
[3, 5]
1,932,644
1,932,645
what is the best way to make sure javascript is running when page is fully loaded?
<p>I am trying to run my javascript in my asp.net webform page but I am not sure it runs properly because all the elements are not loaded yet. How can I make sure my script is at the very bottom of the page with using jquery? So it can run when the page is loaded?</p>
javascript jquery asp.net
[3, 5, 9]
2,239,035
2,239,036
How to send clientid of asp.net control via JavaScript
<p>I am trying to send the control id on button click in my following asp.net code:</p> <pre><code> &lt;asp:TextBox ID="empid" runat="server" CssClass="input_box" onFocus="if (this.value == this.title) this.value='';" onBlur="if (this.value == '')this.value = this.title;" value="Enter employee ID" title="Enter employ...
javascript asp.net
[3, 9]
1,623,004
1,623,005
how to do fadeout in jquery asp.net
<p>I have the below ASP.NET code. When I click on the button, for one or two times at the beginning, the text inside the div <strong>div1</strong> was disappearing for a moment, and was displayed again. But then, when I try it now, it never disappears. The text inside the div just stays.</p> <pre><code>&lt;head runat=...
jquery asp.net
[5, 9]
546,634
546,635
How to disable the onmousedown function using jQuery?
<p>HTML: &lt;<code>td class="ewPointer" onmousedown="ew_Sort(event,'sampple.asp?order=brgy%5Fid&amp;amp;ordertype=ASC',1);"&gt;</code></p> <p>I just want to disable the onmousedown function and replace it with my jquery function.</p> <p>I used this code but didn't work.</p> <pre><code>$('.ewPointer').live('click'...
javascript jquery
[3, 5]
4,602,798
4,602,799
How to use jquery with variable assigned
<p>How can I use a variable in jQuery. as you see in script snippet, I assign a variable "divname" with value, and when i use 'Jquery" to fade out. it is not working. What I really need is, when image is hover, the description will be show up as fading in, when mouse is gone, the the description should be gone. thanks ...
javascript jquery
[3, 5]
5,562,845
5,562,846
how to prevent dublicate record on run time
<p>This code cause double record... i checked my insert code for all tables and it works fine...</p> <p>and this is insert code:</p> <pre><code> StoreDO store = new StoreDO(); List&lt;BrandDO&gt; brandList = new BrandBL().SelectBrands(); StoreBL storeBL = new StoreBL(); store.StoreName...
c# asp.net
[0, 9]
1,317,505
1,317,506
How to define day is sunday and Normal day. using switch case by date?
<p>I have an error in this code. Please help me solve it.</p> <pre><code>function holiday($today) { $year = substr($today, 0, 4); switch($today) { case $year.'-01-01': $holiday = 'New Year'; break; case $today: $today11 = new DateTime($today); $R...
php javascript
[2, 3]
5,107,179
5,107,180
How can I get jsFiddle to work in Chrome?
<p>I don't know why, but jsFiddle isn't working in Chrome. It worked fine until a few days ago, but now, when I open the console I receive this error:</p> <pre><code>Uncaught TypeError: Cannot call method 'get' of null </code></pre> <p>Is there or bug and what I need to do to make it work?</p>
javascript jquery
[3, 5]
4,198,169
4,198,170
Signed/unsigned situation when converting c# to java
<p>I'm currently converting the following piece of code to java from c#:</p> <pre><code> public static byte MakeCS(byte[] arr) { byte cs = 0; for (int i = 0; i &lt; arr.Length; i++) { cs += arr[i]; } return cs; } </code></pre> <p>My naive conversation is ...
c# java
[0, 1]
3,705,813
3,705,814
Jquery table sorter not working and disable all other javascript
<p>I have added Jquery table sorter to my head.</p> <p>When I add the following to my javascript:</p> <pre><code> $("table").tablesorter(); </code></pre> <p>All of my other Jquery gets disabled and the table sorter does either work. </p>
javascript jquery
[3, 5]
4,896,560
4,896,561
jQuery: How to count table columns?
<p>Using jQuery, how would you figure out how many columns are in a table?</p> <pre><code>&lt;script&gt; alert($('table').columnCount()); &lt;/script&gt; &lt;table&gt; &lt;tr&gt; &lt;td&gt;spans one column&lt;/td&gt; &lt;td colspan="2"&gt;spans two columns&lt;/td&gt; &lt;td colspan="3"...
javascript jquery
[3, 5]
4,858,696
4,858,697
Unable to add window in Android
<p>In my dev console, I get the following error:</p> <p><code>android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@405126b8 is not valid; is your activity running?</code></p> <p>It's the follow line: <code>alertDialog = new AlertDialog.Builder(Main.this).create();</code><...
java android
[1, 4]
1,150,942
1,150,943
Get datetime in javascript/jquery with "31/12/2010 03:55 AM" format
<p>Please advice, how can i get date time in "31/12/2010 03:55 AM" format using either javascript or jquery</p> <p>Also i would like to compare 2 date times and need to find the greator of the 2 how can do that too?</p> <p>Thanks Amit</p>
javascript jquery
[3, 5]
2,656,480
2,656,481
mix javascript and php
<p>i have file: <strong>file.php</strong></p> <p>in this file is:</p> <pre><code>&lt;script type="text/javascript"&gt; //.... var sumJS = 10; &lt;?php $sumPHP = sumJS ?&gt; &lt;/script&gt; &lt;?php echo "Sum = " . $sumPHP ?&gt; </code></pre> <p>How can i assign sumJS for $sumPHP ?</p> <p>if i would like make thi...
php javascript jquery
[2, 3, 5]
2,731,998
2,731,999
get value from ajax request to a hidden field
<p>I want to store the value returned from a webservice to a hidden field in jquery</p> <pre><code> $.ajax({ type: "POST", url: "/AutoComplete.asmx/CompareGroupName", data: { Text: text }, dataType: "json", onfocusout: function (element) { $(element).valid(); ...
jquery asp.net
[5, 9]
3,323,172
3,323,173
javascript function save to cookies
<p>For now, i have a function macs, and i need to implement this function to save inside a cookie and have it stored in mysql..</p> <p>So how am i supposed to have this function together?</p> <pre><code> &lt;script language="JavaScript"&gt; function getMacAddress(){ document.macaddressapplet...
php javascript
[2, 3]
3,003,255
3,003,256
Can't get data from textbox
<p>I'm trying to get data from textbox but it says undefined id or something like that. Here is my code. I didn't understand what the problem is. Text1, Text2 and Text3 are my id of textboxes.</p> <pre><code> SqlCommandBuilder thisBuilder = new SqlCommandBuilder(thisAdapter); DataSet thisDataSet = new DataSet();...
c# asp.net
[0, 9]
3,819,107
3,819,108
Pass variable into php web form from android app
<p>I have the following php snippet. I am working on an android program and need to somehow pass in the 'pid'. How can I do this so that it will return the form with the given pid? Can I do this without passing in a parameter using a POST request?</p> <pre><code>&lt;?php if(isset($_GET['resp']) == "success") ...
php android
[2, 4]
1,949,622
1,949,623
Why doesn't the following jquery script work?
<p>I have a simple single page setup. Under a root folder, I have 3 subfolders (js, css, and images). In the root folder, I have an index.html page with the following content:</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;title&gt;&lt;/title&gt; &lt;script language="javascript" src="js/jquery-1.3.2.min.js"&gt;&lt;/sc...
javascript jquery
[3, 5]
5,305,551
5,305,552
Pass variable between events
<p>I have an edit button that, when clicked, triggers the first event below. It(edit form) also have a cancel link that, when clicked, triggers the second event below. How do I ensure that the <code>PrevContent</code> value is accessible within the cancel event? The user may click on any number of corresponding edit l...
javascript jquery
[3, 5]
5,484,853
5,484,854
jQuery setInterval() undefined function error
<p>Hi I am relatively new to javascript and jQuery and while trying to create a function the runs in intervals of 100 milliseconds I encountered a problem.I seem to get in the console of firebug and error witch says that clasing() is not defined.This is my code:</p> <pre><code>$(document).ready(function() { var pr...
javascript jquery
[3, 5]
994,100
994,101
How to display response message after redirecting to otherpage?
<p>I am using ASP.NET and C#.In register page after click on submit i am storing all the details in database and redirecting to login page.So in login page i need to display message like successfully registered.</p> <p>Can someone tell me is it possible?</p> <p>Thanks.</p>
c# javascript asp.net
[0, 3, 9]
543,541
543,542
dropdown value changed by javascript is not coming in codebehind
<p>I have a dropdown list whose value is changed based on other controls in the UI using javascript.</p> <p>I used the following code to change the dropdown list, <code>document.getElementById("ddlchkStsID").options[2].selected = true; document.getElementById("ddlchkStsID").value = "3";</code></p> <p>But in the code...
javascript asp.net
[3, 9]
771,997
771,998
ClientId is different in localhost and the webserver
<p>I am facing a new kind of problem.</p> <p>I am using the jQuery to fill the state dropdown on the change of country dropdown and the code of the jquery is on a js file so i bind the static client id like ct100_ddlCountry, this is working properly on the localhost but when i host this website to web server it not wo...
asp.net jquery
[9, 5]
5,399,915
5,399,916
Question about dean edwards packer
<p>In jquery I use to save all my selectors in a variable. Then the browser only have to do doom travel once wich speeds up the site a bit...</p> <p>I am also using Dean Edwards packer for my scripts.</p> <p><strong>My question is: Is this realy needed or will Dean Edwards packer do this for me? I mean will Dean Edwa...
javascript jquery
[3, 5]
1,384,360
1,384,361
how to read iPhone address book ABThumbnailImage.data data? (is it encrypted?)
<p>I'm trying to make my own adress book, all is working except the images, I can't find a way of "decrypt" or make my php (web based app) read the string</p> <p>in wich format is data saved, I just can read ����</p> <p>Thanks</p> <p>EDIT:</p> <p>well, it seems this is more difficult than I could expect</p> <p>sam...
php iphone
[2, 8]
5,702,445
5,702,446
android: call javascript from java problem
<p>I want to know if there is way to call javascript from java on android? In my program, I interact java and javascript together. I am using java to receive response(json data) from TCP server and save them into a file. In webview I am using javascript jQuery getJSON() function to retrieve that file and using jQuery p...
java javascript android
[1, 3, 4]
449,834
449,835
Show/hide views with checkbox
<p>I want to show or hide some elements (textviews and edittexts) with checkbox. I set their visibility to gone in layout file. Showing them when user checks the box works, but the when user unchecks it, they don't hide. (android 1.5 and 1.6)</p> <p>My code:</p> <pre><code>cb=(CheckBox)findViewById(R.id.cek); cb.set...
java android
[1, 4]
3,529,529
3,529,530
Trapping ctrl+n key combination in chrome
<p>Is there any way to trap <kbd>ctrl</kbd>+<kbd>n</kbd> key in chrome (by using javascript, jquery or any plugin)? I need to assign <kbd>ctrl</kbd>+<kbd>n</kbd>+<kbd>enter</kbd> key to particular task, but as soon as I press <kbd>ctrl</kbd>+<kbd>n</kbd>, chrome opens a new window. I am able to trap <kbd>ctrl</kbd>+<kb...
javascript jquery
[3, 5]
4,456,579
4,456,580
How can we split the word into characters in android/java..?? and assign particular id to each character
<p>I want to separate the word into characters like "ABCD" into A.B.C.D. and after that If we assume A=1 , B=2 ,...... and Z= 26, then i want to assign this sequence to each character and make a sum of that to achieved the output. How this can be done..??</p>
java android
[1, 4]
3,355,735
3,355,736
'Refire' jQuery every second?
<p>The following code adds a class to the last div:</p> <pre><code>$(".mydivs:last").addClass('added'); </code></pre> <p>This works on page load but the divs are in an animation, so the order changes. Is there a way to make the code run every second, so the class is added to the last div each time? </p> <p>For me I ...
javascript jquery
[3, 5]
2,394,162
2,394,163
Cannot retrieve QueryString Value From URl
<p>I have pass Url on Anchor tag Given below:</p> <pre><code>mail.Body += string.Format("&lt;a href=\"http://www.abc.co.in/Download.aspx?period={0}&amp;ProductName={1}\"&gt;Demo Download&lt;/a&gt;", DateTime.Now, productName); </code></pre> <p>And trying to retrieve this value on pageload of download.aspx page but...
c# asp.net
[0, 9]
5,903,267
5,903,268
jQuery,PHP-upload text file,doc/docx,ppt/pptx,pdf
<p>How can I upload <strong>txt, doc/docx, ppt/pptx, pdf</strong> and restrict all other file types while uploading file using php and jquery? Can i do it with jQuery also?</p> <p>I have tried this.</p> <pre><code>$allowedExts = array("doc", "docx", "pdf", "txt"); $extension = end(explode(".", $_FILES["file"]["name"]...
php jquery
[2, 5]
1,056,753
1,056,754
Can I change the HTML of the selected text?
<p>Can we change the HTML or its attributes of the selected part of the web page using javascript?</p> <p>For example, There is a random web page:(A part of it is shown)</p> <p><img src="http://i.stack.imgur.com/9Qa8S.png" alt="enter image description here"></p> <p>with HTML as</p> <pre><code>...&lt;p&gt;Sample par...
javascript jquery
[3, 5]
1,305,612
1,305,613
Jquery event capture change in margin-left
<p>I have a situation in here I have a div that was margin: auto to get it to be centered.</p> <p>That works fine, but when I resize the window I want it to stop centering when a certain margin-left is reached.</p> <p>The ideia is that I have a floating object to the left, and I dont want it to be overlapped.</p> <p...
javascript jquery
[3, 5]
499,682
499,683
jQuery looping animation from the beginning
<p>I would like this animation to repeat from the very beginning each time (#slide1).</p> <p>I tried the setTimeout method but could not get it to work. I am using a simple line by line since the timing difference and (lack of knowledge). Thanks for your help.</p> <p><a href="http://jsfiddle.net/q9EZg/6/" rel="nofoll...
javascript jquery
[3, 5]
4,643,286
4,643,287
Implementing a Generic View Table Content ASP Page
<p>Am trying to build a web page that returns all columns in any table (audit tables) a user selects. Suppose I have 4 audit tables in my database namely <code>CustomerAudit</code>, <code>VendorAudit</code>, <code>InvoiceAudit</code> and <code>PaymentAudit</code> each with a different table structure. </p> <p>On a web...
c# asp.net
[0, 9]
942,076
942,077
How to load a Javascript file within another Javascript file and execute file 2 before file 1?
<p>I have written a jQuery plugin, say <code>jquery.plugin.js</code>. I want to use this plugin on a large number of sites. </p> <p>What I want to do is to write a piece of js code at the top of <code>jquery.plugin.js</code> which will load the <code>jquery.main.js</code> and execute it so that <code>$</code> is avail...
javascript jquery
[3, 5]
3,739,226
3,739,227
jQuery extension: why does it not work on all matching elements?
<p>I have an extension going like:</p> <pre><code>$.fn.crazything = function() { var self = $(this); // do some crazy stuff return self; } </code></pre> <p>And when I call it like:</p> <pre><code>$("div.crazydiv").crazything(); </code></pre> <p>It works, but only on the first matching div. If I have mor...
javascript jquery
[3, 5]
5,785,023
5,785,024
ArrayList to String - VS2008 - C#
<pre><code> ArrayList filters = new ArrayList(); filters.Add(new string[] { "Name", "Equals", "John" }); ObjectDataSource1.SelectParameters.Add("AppliedFilters", string.Join(",",(string[])filters.ToArray(typeof(string)))); </code></pre> <p>Am trying to add a parameter to my object data source which ...
c# asp.net
[0, 9]
3,230,384
3,230,385
How to find a sibling element's value using jQuery upon click
<p>I'm trying to find the value of the userid and password in the below HTML using the following jQuery code, but it doesn't return any value. What am I doing wrong?</p> <pre><code>&lt;div id='mainpane'&gt; &lt;form id='login' method='post' action='#'&gt; &lt;p&gt;User Id:&lt;input id='userid' type='text' ...
javascript jquery
[3, 5]
404,760
404,761
InternalSubStringWithChecks Exception
<p>We're getting this InternalSubStringWithChecks exception with our application's healthMonitoring. </p> <p>This exception is like the <a href="http://forums.asp.net/t/1019434.aspx" rel="nofollow">Padding is invalid</a> and cannot be removed exception where it's being recorded and we're getting a notification email b...
c# asp.net
[0, 9]
2,027,716
2,027,717
Prevent an element from losing focus
<p>We have a lot of <code>input</code>s in a document.<br> We want to open a dialog that generates text and puts that in the currently focused input.</p> <p>The problem is that, when I click a button or anything else to open the dialog that input loses focus. I can't determine which input has to get the generated text...
javascript jquery
[3, 5]
1,442,458
1,442,459
JQuery Offset and ScrollTop Problems
<p>I'm trying to fix a elements position based on the scroll position within the window.</p> <p>I thought it would be as easy as getting the offset of the element where the fixed element should become fixed and then when the window.scrollTop is equal to it add CSS but it is weird.</p> <p>It seems as though the offset...
javascript jquery
[3, 5]