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,808,596
4,808,597
Unable to cast object of type 'system.data.datatable' to type
<p>I have a datatable AVT of type AvailDataTable. The following code works to create a new datatable from AVT:</p> <pre><code>AvailDataTable AVT1 = (AvailDataTable) AVT.DefaultView.Table; </code></pre> <p>However, the code:</p> <pre><code>AvailDataTable AVT1 = (AvailDataTable) AVT.DefaultView.ToTable(); </code></pr...
c# asp.net
[0, 9]
4,118,515
4,118,516
create a pop up aspx page and by the close button that would close..?
<p>I want To Create A aspx pop up Page on a button and then in that pop up a close button should be there and by that close button pop up would be closed. </p>
c# asp.net
[0, 9]
5,297,028
5,297,029
How to get pagemthods value in the calling function
<p>I want to fetch current year from the server using PageMethods but PageMethods returns result in different function but i want to get the return value in the same function where PageMthods is called. Is it possible?</p> <pre><code>function GetYear() { dr["OrderYear"] = PageMethods.GetCurrentYear(Onsuccess); } ...
javascript asp.net
[3, 9]
2,793,534
2,793,535
Click event handler timing issue - onLoad and .ready
<p>I have two iframes in a page and I am trying to establish a event handler for clicks in "frame2" from inside "frame1" (both frames are in same-domain), using this code in frame1:</p> <pre><code>$('a', parent.window.frames['frame2'].document).bind('click', onbindclick); </code></pre> <p>This works when called from ...
javascript jquery
[3, 5]
528,435
528,436
How to disable the hover event when I hover over the text inside the image?
<p>I have a problem in my code, when I hover over the image, the image will become 50% larger and it will display a text over the image, but when I hover over the text, the image will enter the state of mouseout, mouseover, mouseout, mouseover. So it will flicker a lot. How can I disable this hovering event when the mo...
javascript jquery
[3, 5]
2,608,471
2,608,472
Dynamically change image src using Jquery not working in IE and firefox
<p>I am implementing a captcha for a email. when click on <code>linkEmail</code> button email modal will open. there i have to set captcha image generated by a handler (CaptchaGenerator.ashx) on click of <code>linkEmail</code> button click. Here is the code for that.</p> <pre><code>$(".linkEmail").click(function () { ...
javascript jquery
[3, 5]
148,145
148,146
How to remove prev . prev object? Javascript .prev().remove();
<p>It's like </p> <pre><code>&lt;input name="fails[]" type="file" size=40 /&gt;&lt;br /&gt; &lt;textarea name="apraksts[]"&gt;About&lt;/textarea&gt; &lt;a href="#" onclick="remove(this);return false".....&gt;remove&lt;/a&gt; </code></pre> <p>And the javascript:</p> <pre><code>function remove(obj){ $(obj).prev('text...
javascript jquery
[3, 5]
5,503,048
5,503,049
How to get content of div which contains JavaScript script blocks?
<p>I have the following HTML</p> <pre><code>&lt;div id="example"&gt; ...some text... &lt;script type="text/javascript"&gt; ... some javascript... &lt;/script&gt; &lt;/div&gt; </code></pre> <p>How to get content of <code>#example</code> but also with the JavaScript?</p> <pre><code>$("#example").html(), $("#...
javascript jquery
[3, 5]
3,009,529
3,009,530
How to connect between ASP.NET page and javascript
<p>I'm trying to put current time on ASP.NET page. How can i get the control ID from Javascript? I'm using C# ASP.NET </p> <p>On my Form</p> <pre><code>&lt;body onload="updateClock(); setInterval('updateClock()', 1000 )"&gt; &lt;form id="form1" runat="server" &gt; &lt;span id="clock"&gt;&amp;nbsp;&lt;/spa...
javascript asp.net
[3, 9]
851,792
851,793
Sorting javascript array
<p>I have a global array in javascript say <code>jsonArr = ["location","department","grade"];</code></p> <p>now inside my method i am doing this</p> <pre><code>var newArr = []; newArr = jsonArr; var sorted_arr = newArr.sort(); </code></pre> <p>my newArr is getting sorted but problem is along with jsonArr also got s...
javascript jquery
[3, 5]
181,868
181,869
Run a python Module from sl4a
<p>I have installed py4a and sl4a, then I copied the existent python module, pybluez, into my phone to storage/sdcard0/Download. I imported the module with the option Import Modules from py4a and installed it. How can I execute the module?</p> <p>Tanks, Reea</p>
android python
[4, 7]
3,670,315
3,670,316
what went wrong with parseInt
<p>i just encounter 1 problem on the parseInt i do apply this parseInt for all my project but today i just encounter this</p> <p>i have a normal text input <code>&lt;input type='text' name='KG'&gt;</code> and i using jquery to retrieve the input value, then write into another input <code>&lt;input type='text' name='KG...
javascript jquery
[3, 5]
92,382
92,383
How to show the progress bar to diffrent clients.?
<p>User1 open the website did something the progress bar starts. User2 open the same website that progress bar needs to display here.Please tell me.</p>
c# asp.net
[0, 9]
326,640
326,641
casting PyCFunctionWithKeywords in PyMethodDef
<p>Recently I've been wrapping a lot of C++ code in python, and I find this block (taken directly from the <a href="http://docs.python.org/extending/extending.html#a-simple-example%5d" rel="nofollow">python documentation</a>) a bit troubling: </p> <pre><code>static PyMethodDef keywdarg_methods[] = { /* The cast of the...
c++ python
[6, 7]
3,639,023
3,639,024
Stop Textbox firing OnClientClick event
<p>The combination of pressing enter on a textbox with a page that has an image button with both a client and server click event is causing the client side event to fire when I press enter in the textbox.</p> <p>I want to prevent this, am happy to use Jquery or whatever is best. From the Jquery side am struggling to c...
jquery asp.net
[5, 9]
5,669,960
5,669,961
using java script to check if string is numbers only
<p>using javascript to check if string is numbers only this is what i have but its not running any suggestions would the appreciated thanks much in advance. also if it is a string of numbers only then all numbers after the first two digits should be masked.</p> <pre><code> var start = function RenderRC(CodeOwner) { ...
javascript asp.net
[3, 9]
1,317,844
1,317,845
need to fix add/remove rows of fields
<p>This "almost" works <a href="http://jsfiddle.net/RfWsy/4/" rel="nofollow">http://jsfiddle.net/RfWsy/4/</a></p> <pre><code>$(document).ready(function() { function addRows(label, maxRows, minRows) { $('.add-' + label).live('click', function() { if ($("." + label + "-group").length &lt; maxRows) { var ...
javascript jquery
[3, 5]
3,355,849
3,355,850
Backslash '\' in console.log() not appearing
<p>I'm trying to use a back slash in <code>console.log()</code> and within <code>&lt;p&gt;&lt;/p&gt;</code> but it seems that when the page loads, all back slashes are removed.</p> <p><strong>Example JS</strong></p> <p><code>console.log('\m/ Lets rock. \m/');</code></p> <p><strong>Result</strong></p> <p><code>m/ Le...
javascript jquery
[3, 5]
5,579,961
5,579,962
Is there an HttpClient that handles caching requests on its own?
<p>I have an app that needs to make repeated requests for content on the web. Now the server side implementation follows the standards for http caching using the headers. I was wondering if there is an extended version of HttpClient or another tool that will store responses and interact with the headers for automatic c...
java android
[1, 4]
4,642,872
4,642,873
jQuery: How do you perform a callback inside an AJAX call
<p>I have a function with an AJAX call inside it, I need to be able to call the function and it return true if the AJAX request was successful and false if not.</p> <p>I know the following doesn't work because the returns are out of scope to the exampleFunc()</p> <pre><code>function exampleFunc() { $.ajax({ url...
javascript jquery
[3, 5]
1,507,028
1,507,029
Javascript/CSS load and append to document
<p>I have written a jQuery plugin, but I want it to check if jQuery has been loaded, if not then load it, as well as a couple of other javascript files and also check if CSS file has been loaded, if not then load it.</p> <p>Am wondering how to go about it?</p> <p>thank you very much for your time.</p>
javascript jquery
[3, 5]
5,084,741
5,084,742
what data type should select to store song url and name in asp c#?
<p>I want to upload a mp3 and store song details in audio table and save that song to a folder. and when user click the play button then pass that song url to windows media player to play the song...</p> <p>i has created a table like:</p> <pre><code>Column Datatype Allownulls s_ID (primary) ...
c# asp.net
[0, 9]
1,002,104
1,002,105
Hide element depending on value of if/else statement not working
<p>I have a Rails app that uses the <a href="https://developer.linkedin.com/documents/sign-linkedin" rel="nofollow">LinkedIn Javascript API</a> to authenticate users. What I'd like to do is hide an element depending on whether the user is signed up or not. I've tried a few things:</p> <ul> <li>Put the code with the if...
javascript jquery
[3, 5]
5,534,197
5,534,198
Make the "title" script work on focus
<p>The code work only on hover! but i want it to work in focus mode!</p> <pre><code> $(document).ready(function() { $('body').append('&lt;div id="anchorTitle"&gt;&lt;/div&gt;'); $('input[title!=""]').each(function() { var a = $(this); if(typeof a.attr('title') == 'undefined') { ...
javascript jquery
[3, 5]
5,837,709
5,837,710
Mapping Uploaded Files to different directory
<p>Using <code>AjaxFileUpload</code> </p> <pre><code>string path = Server.MapPath("~/Files/") + e.FileName; </code></pre> <p>This code is uploading files to Files directory under Website folder in <code>asp.net.</code>..</p> <p>How i can map uploaded files to different directory ?</p> <p>e.g. </p> <p>Combo Box -> ...
c# asp.net
[0, 9]
5,360,010
5,360,011
jquery tipsy not firing onclick IE
<p>Hi I am using the jquery tipsy plugin to display colour names above colour swatch images.</p> <p>I am trying to trigger a checkbox to be checked/unchecked when a user clicks on the image.</p> <pre><code>$(document).ready(function(){ $('.label_check_colour').click(function(){ setupLabelColour(); }...
javascript jquery
[3, 5]
2,908,891
2,908,892
Mouse Click curser effect throughout site
<p>I think it would be cool to set a custom cursor click effect with jQuery. Something similar to Android Incredible 2 browser where it highlights click-able items in green when selected. Except mine would be the cursor with a box around it something like 1px width, very subtle, and it would kind of float/toggle until ...
javascript jquery
[3, 5]
5,550,194
5,550,195
Add CSS class to an element while dragging over w/ jQuery
<p>Is it possible to add a CSS class to an element while it is being dragged over a particular area and replace the class once the element is dropped?</p> <p>I am not looking for this feature everywhere, but only over a particular area.</p>
javascript jquery
[3, 5]
1,633,199
1,633,200
How to replace entire HTML with external HTML?
<p>Let's say I have this page (page.html):</p> <pre><code>&lt;html&gt; &lt;body&gt; &lt;h1&gt;AAA&lt;/h1&gt; &lt;script type="text/javascript"&gt; //&lt;![CDATA[ $(document).ready(function() { $.get('page2.html', function(data){ // I want to replace the entire HTML with the HTML of page2.html // but ...
javascript jquery
[3, 5]
1,934,940
1,934,941
jQuery - how to register a callback for an asynchronous function?
<p>I am a jQuery newbie. I have a core js file which will not be visible to my user. I have the following function inside it that makes a server request -</p> <pre><code>function checkMsgs(t1,t2) { // poll the url // return the results $.get("http://www.mySite.com/web/test.php", { "t1" : t1, ...
javascript jquery
[3, 5]
5,981,879
5,981,880
Find Control in asp:repeater on button click event
<p>I have a dropdown list inside a asp:repeater item template. how can I get its value on button click event.</p> <pre><code>&lt;asp:Repeater runat="server" ID="WorkflowListAfter" onitemcreated="WorkflowListAfterItemCreated"&gt; &lt;ItemTemplate&gt; &lt;asp:DropDownList ID="ddlWorkflowMembers" runat="serv...
c# asp.net
[0, 9]
2,801,829
2,801,830
Jquery how to get top leftcorner of page?
<p>I would like to mask a asp page by a div, this one have to completly cover the page.</p> <p>I can get the size of page and resize the div with this values:</p> <pre><code> var maskHeight = $(document).height(); var maskWidth = $(window).width(); //Set height and width to mask to fill up the whole...
asp.net jquery
[9, 5]
5,396,022
5,396,023
Hide mobile safari keyboard when form submitted in Ajax application
<p>I have a textfield which fires an event in a web app, but I'd like the keyboard to close when the user presses enter. Using jquery to disable usual submission.</p>
jquery iphone
[5, 8]
2,282,435
2,282,436
scroll view issue Android
<p>I am adding layouts programmatically.I have added a scrollview as a parent layout and a combination of horizontal and vertical linearlayouts when I add a list view in the scrollview I am getting an issue that my UI is not taking full screen although the listview height is set to fill parent .There is a blank space a...
java android
[1, 4]
4,119,945
4,119,946
assign a javascript variable from c#
<p>I have some javascrtipt eg:</p> <pre><code>&lt;script type="text/javascript"&gt; flashvars.myval = "blah"; //get this from c# ..etc &lt;/script&gt; </code></pre> <p>i need to assign the variable from c#</p> <p>how can i do that? can i call a c# method?</p> <p>im using regular asp.net.</p> <p>the javascript i...
c# javascript
[0, 3]
2,220,642
2,220,643
Javascript for loop error
<p>This is what I have:</p> <pre><code>function get_bad_changelist_authors() { var changelistAuthorDivs = $('div.bad_changelist_author'); var changelistAuthors = []; for (var div in changelistAuthorDivs) { changelistAuthors.push($(changelistAuthorDivs[div]).text()); } return changelistAuthors; }...
javascript jquery
[3, 5]
1,956,982
1,956,983
client side code set up and why use apache web server
<p>Trying to get a better understanding of the current project set up and want to know if there is an easier set up.</p> <p>The project is set up a 2 different components, one project contains the client side code and the other project contains the java code. </p> <p>The client code is html, js, css etc which needs t...
javascript jquery
[3, 5]
1,396,513
1,396,514
How do I create persistent socket connection on Android?
<p>First off, let me say that feel free to recommend me if long lived TCP persistent connections are the way to go or persistent HTTP connections are better. </p> <p>I've also pre-read that instead of having a persistent connection, I can have a polling mechanism. </p> <p>I'm just asking in the curious interest of ho...
java android
[1, 4]
2,132,653
2,132,654
Jquery resizeable issue
<p>I am trying to use the alsoResize option. It works when I write this: </p> <pre><code>$(obj).resizable({ minHeight: 150, minWidth: 280, alsoResize: '.tab_content'}); </code></pre> <p>but the problem is that it's resizing all 'tab_content' elements in the page. I want it to be relative to 'obj' which also contains ...
javascript jquery
[3, 5]
244,066
244,067
jquery:simple pagination solution needed
<p>i have this code i cannt complete;</p> <pre><code>&lt;div class=paginatme&gt;&lt;/div&gt; &lt;div class=paginatme&gt;&lt;/div&gt; &lt;div class=paginatme&gt;&lt;/div&gt; &lt;div class=paginatme&gt;&lt;/div&gt; &lt;div class=paginatme&gt;&lt;/div&gt; &lt;div class=paginatme&gt;&lt;/div&gt; &lt;div class=paginatme&gt...
javascript jquery
[3, 5]
4,097,901
4,097,902
Javascript Logic Problem
<p>I know only what I need but I do not know how to get that done.</p> <p>This is the logic of the code, I really hope some of you has the solution.</p> <p>How can I create in javascript or jQuery a function that will do the following?</p> <pre><code>If that checkbox is selected, when the button is clicked redirect ...
javascript jquery
[3, 5]
4,105,984
4,105,985
Adding a script reference into a page using jQuery
<p>I need to dynamically add a script reference, so I do this:</p> <pre><code>jQuery('html head').append("&lt;script src='somesource.com/somejs.js'&gt;&lt;\/script&gt;") </code></pre> <p>and it does't work - I don't get any errors but I can't execute any of the methods defined inside that script.</p> <p>Any ideas wh...
javascript jquery
[3, 5]
1,860,570
1,860,571
Pass parameters from mail link to login page of web app asp.net
<p>I am developing a web application in asp.net csharp.</p> <p>i am sending mail to one admin as alert when a user makes a entry into a system. with this mail one link is also sent that redirects to the login page.</p> <p>when the admin clicks on the link it redirects to the login page.</p> <p>but the parameter is n...
c# asp.net
[0, 9]
349,976
349,977
Run setTimeout only when tab is active
<p>Is there a way to stop <code>setTimeout("myfunction()",10000);</code> from counting up when the page isn't active. For instance,</p> <ol> <li>A user arrives at a "some page" and stays there for 2000ms</li> <li>User goes to another tab, leaves "some page" open.</li> <li><code>myfunction()</code> doesn't fire until ...
javascript jquery
[3, 5]
4,053,251
4,053,252
function calling from another function javascript
<p>I have 2 functions. <code>First</code> contains Jquery-UI dialog and called from the <code>Second</code> function. Something like :</p> <pre><code>function First() { $('div').dialog({ buttons: { "Ok": function () { /* code */ } } }); } function Second() { First()...
javascript jquery
[3, 5]
377,281
377,282
applying image using innerHtml Method but its not working
<p>Hello friends here's my code</p> <pre><code>function dropItems(idOfDraggedItem,targetId,x,y) { var html = document.getElementById('dropContent').innerHTML; if(html.length&lt;=0){ html.innerHTML='&lt;img src="images/drag.jpg" alt=" " /&gt;' } if(html.length&gt;0)html = html + '&lt;br&gt;'; ...
javascript jquery
[3, 5]
382,510
382,511
How to highlight specific row in a DetailsView?
<p>I am a new ASP.NET developer. I am using a DetailsView now to dispaly some data from the database. I have the need to highlight certain two rows from the DetailsView. Both rows are VARCHAR data type. <strong>SO HOW TO DO THAT?</strong></p>
c# asp.net
[0, 9]
1,106,671
1,106,672
Currency Formatting in JavaScript
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/149055/how-can-i-format-numbers-as-money-in-javascript">How can I format numbers as money in JavaScript?</a> </p> </blockquote> <p>I have a form with come simple JavaScript to perform an instant calculation. My ...
javascript jquery
[3, 5]
3,199,660
3,199,661
Javascript knowledge as front end developer
<p>I was wondering how deep I have to go into learning Javascript to be a front end developer?</p> <p>Kyle</p>
javascript jquery
[3, 5]
1,438,147
1,438,148
Jquery Blur text and empty on Focus
<p>I have multiple text box like this. I want to apply the text on blur and empty when it get focused. I can able to achieve this for single text box. How i can pass the current element id instead of the hard coding the "#name" value in JavaScript function ?</p> <pre><code>$(document).ready(function(){ $('#Name'...
javascript jquery
[3, 5]
1,683,230
1,683,231
Stop User Leaving Before Postback (Javascript/ASP.NET)
<p>I have several functions running on a postback that can take a little time to complete.</p> <p>When postback is initiated I show a loading image with this code:</p> <pre><code>function showLoader() { document.getElementById("&lt;%=loadingImage.ClientID%&gt;").style.visibility="visible"; } </code></pre> <p>I w...
javascript asp.net
[3, 9]
1,545,846
1,545,847
Disable anchor tag using button click
<p>I need to disable anchor tag using button click event. I handled both server-side and client-side events for my requirement. I modified the 'href' attribute in client-side click event as follows.</p> <p>[ASPX]</p> <pre><code> &lt;asp:Button ID="Button1" runat="server" Text="Disable" OnClick="disable" CausesValida...
javascript jquery asp.net
[3, 5, 9]
229,531
229,532
ASP.NET register a control from external dll on a page
<p>I am banging my head against the brick wall today. I am porting a site I had developed on an old box across to a new dev env. I have not just copied all the files as I didn't have a great file structure and some parts of the code needed to be removed as I went along.</p> <p>Originally I had created a website (Fil...
c# asp.net
[0, 9]
4,996,444
4,996,445
How to send a Raphael element .toBack()
<p>Can I use jQuery to send a Raphael element by class back, like sending something back to z-index=0:</p> <p>Several Raphael elements class="dot20" need all to be sent back</p> <pre><code>j=2 jj = "c"+j*10 $("."+jj).toBack(); </code></pre> <p>I get the following error from the FF Firebug: $("." + jj).toBack is not...
javascript jquery
[3, 5]
4,862,051
4,862,052
using jQuery ignore: ':hidden:not
<p>I am using a jQuery validator, and I want to use the <code>ignore: ':hidden:not</code> but I want to apply this too all controls which has an ID that contrains "_selecting",</p> <p>this is what I have so far but not working:</p> <pre><code>sb.AppendLine(@" ignore: ':hidden:not($(""[id*=_selecting]"")',"); </code><...
c# jquery asp.net
[0, 5, 9]
3,882,725
3,882,726
how i can start application info screen in android?
<p>I want to start manage application(Settings->Application->manage application->Application info) screen programatically. I am unable to do it. Can anyone please help me?</p> <p>Thanks in advance.</p>
java android
[1, 4]
3,859,570
3,859,571
JQuery Validation is not working
<p>I have one form in which one input type whose value is "First Name".But this can be changed on onfocus function I want validation for this input field if it is blank or "First name"</p> <p>I have two jquery files <strong>jquery-1.4.2.min.js &amp; jquery.validate.pack.js</strong>.</p> <p>I have another jqeury file ...
php javascript
[2, 3]
352,774
352,775
Simple Javascript not Working - Jquery
<p>I have the following in my page.</p> <pre><code>$(document).ready(function() { function setTheTimeout(){ var t=setTimeout("alertMsg()",3000); } function alertMsg(){ alert("Hello"); } setTheTimeout(); }); </code></pre> <p>I am getting an error in Firebug alertMsg() is not defined...
javascript jquery
[3, 5]
2,882,360
2,882,361
Can a javascript object containing xml data be parsed using the jquery .ajax() call?
<p>I have a javascript object containing the xml data in that. I want to parse this object inside the .ajax() call in the jquery. Does anyone know how to do it? I am struggling for the pointer. Please help me with this.</p> <p>Thanks!</p>
javascript jquery
[3, 5]
1,624,754
1,624,755
How to Decrypt using Javascript
<p>I have a captcha text,which I am storing in hidden variable and retreiving the value in code behind(c#.net).</p> <p>Now I need to Encrypt that captcha text and store in hidden variable and decrypt the same in c#.net</p> <p>I need an algorithm that works both in javascript and c# .i.e encrypt in javascript and dec...
c# javascript
[0, 3]
2,783,894
2,783,895
jQuery auto play script of pagination
<p><strong>My Script :</strong></p> <pre><code>function pagination(id) { $("#article_load_destacados").load("indexer_destacados_news.php?pg_d="+id); if (id+1&gt;2) { pagination(0); setInterval(function() { pagination(0); }, 4000); } el...
javascript jquery
[3, 5]
378,240
378,241
How can I implement a login wall for expired or inappropriate pages?
<p>I am writing a website that very explicitly requires a login wall.</p> <p>Visitors should be required to log in before they are allowed to view a page.</p> <p>The page being built depends very much on the user's "ID". I am not sure how or where to store the user's login.</p> <p>I am not sure whether I should use ...
c# asp.net
[0, 9]
5,429,784
5,429,785
error message in asp.net c#
<p>if you please help me out i can not find out whats wrong with the above code since i am learning on my own asp.net c# with the above code:</p> <pre><code>protected void Button1_Click(object sender, EventArgs e) { try { Response.Write("&lt;script&gt;"); Response.Write("alert('Organizer added!...
c# asp.net
[0, 9]
4,929,616
4,929,617
javascript variable in quoted php code in javascript
<p>the title sounds weird, but here's my question. I am making this loop in Javascript that needs to call PHP variables. </p> <pre><code> var data = new Array("&lt;?php echo count($result) ?&gt;"); for (var i=0; i &lt; "&lt;?php echo count($result) ?&gt;"; i++) { data[i] = "&lt;?php echo $result[i] ?&g...
php javascript
[2, 3]
62,265
62,266
javascript test if div has text in it
<pre><code>1. &lt;div id="div_Msg"&gt; Test the div &lt;/div&gt; 2. &lt;div id="div_Msg"&gt; &lt;/div&gt; </code></pre> <p>In the first instance there is the text in the div. In the second instance there is no text. Using javascript how can it be tested if a div has text in it.</p>
javascript jquery
[3, 5]
2,630,016
2,630,017
If element exist then check?
<p>The code does work below when the access to the webpage, it automatically hide <code>#OrderDeliveryAddress</code> div. But I am wondering is this correct way doing it?</p> <p>Is there a way to check if <code>.selectAddressList</code> div/class exist first and then check the value?</p> <pre><code>$(document).ready(...
javascript jquery
[3, 5]
2,048,669
2,048,670
Trouble having java and javascript interact
<p>I have seen several questions similar to mine, but none seem to quite answer my question. </p> <p>I have some javascript in my assets folder, and i want to use a WebView (or any other way that works) to bind a java object to it so that my server can send updates to my js, and then have my js call my java object. </...
java javascript android
[1, 3, 4]
316,172
316,173
How to get the html so its not encoded?
<p>I am getting the value of a <strong>fckeditor</strong> with javascript to show in a dialog as preview. Now I want it to show the html tags like I input them but instead it shows me this</p> <pre><code>&lt;p&gt;&amp;lt;div&amp;gt;test&amp;lt;/div&amp;gt;&lt;/p&gt; </code></pre> <p>that is <code>&lt;div&gt;test&lt;/...
javascript jquery
[3, 5]
104,506
104,507
Undefined function error
<p>Function <code>letswin()</code> not working. I couldnt find a way to fix. Thank you for your helps.</p> <pre><code>var pathArray = window.location.pathname.split( '.html' ); var pathArray = pathArray.reverse(); var pathArray = pathArray .join(''); var pathArray= pathArray .split('/'); var bidnum=pathArray[3]; $(doc...
javascript jquery
[3, 5]
1,324,006
1,324,007
Is it possible to change button postbackurl via javascript?
<p>I have a sever control button. Is it possible to set postbackurl of the button via javascript?</p> <pre><code>&lt;asp:Button name="Button1" ID="Button1" runat="server" Text="Search" OnClick="Button1_Click" OnClientClick="return searchSubmit();" PostBackUrl="" &gt; </code></pre>
javascript asp.net
[3, 9]
433,227
433,228
get value of div class in jquery drop event
<p>Using jQuery, I am trying to capture and display the value of a div class when it is 'dropped'. For example, I want to display '01:20' when this particular element is dropped. div class='routineTime'>01:20 /div></p> <p>Additionaly, I want to sum and display a running total of these dropped elements.</p> <p>I have ...
javascript jquery
[3, 5]
3,125,506
3,125,507
How to get the element made (not target) the event in jQuery?
<pre><code>&lt;a class='tagselector' style="width=100px;height:100px"&gt; &lt;div style="margin-top:12px;"&gt; MyName &lt;/div&gt; &lt;/a&gt; </code></pre> <p>In the above Mark up if I made a script as shown below (in ready() function)</p> <pre><code>$(".tagselector").click(function(clickevt){ console.log($(clickev...
javascript jquery
[3, 5]
399,827
399,828
Asp.net codebehind from javascript?
<p>Is it possible to call asp.net codebehind function from javascript in vs2008?<br> My problem is, I have two codebehind methods, one is for some validation and it will return true or false. This method will be called when user click submit button and if return value is true, I want to call javascript function for con...
javascript asp.net
[3, 9]
5,513,508
5,513,509
Error message in Eclipse
<p>Can any one tell me what shall I do when <code>Eclipse</code> shows this message:</p> <pre><code>[2012-02-28 10:57:34 - LMP] Android requires compiler compliance level 5.0 or 6.0. Found '1.7' instead. Please use Android Tools &gt; Fix Project Properties. </code></pre> <p>Actually it was shown when I took a project...
java android
[1, 4]
4,795,004
4,795,005
Jquery X,Y position send over ajax
<p>I need an example that uses jquery to send the current x,y position of a <code>&lt;div&gt;</code> (the top left pixel) to a php file using ajax where the position can then be processed.</p>
php jquery
[2, 5]
2,337,920
2,337,921
possible for a modal window to automatically scroll to a designated point?
<p>Can someone tell me...</p> <p>Would it be possible to open an external webpage in a modal window... and have that new page scroll to a certain point (e.g an anchor)? </p>
javascript jquery
[3, 5]
1,012,274
1,012,275
How to prevent script loading in different domain
<p>I have <code>&lt;script src="bla"&gt;&lt;/script&gt;</code> that can be loaded in several domains. I want to know if there is a way to control the domains it will be loaded on. To clarify: My script is server-side rendered, so basically I can return empty string if the requested domain is invalid.</p> <p>This is t...
c# javascript asp.net
[0, 3, 9]
2,368,914
2,368,915
An Run Time Error with Radio Group
<p>I wrote this code but it shows RunTime error</p> <pre><code> public void onCheckedChanged(RadioGroup GenderSelection,int arg2) { // TODO Auto-generated method stub switch(arg2){ case R.id.radio0: CaseGender="Male"; break; case R.id.radio1: Case...
java android
[1, 4]
1,517,929
1,517,930
Setting new pages linked by an Activity
<p>In the application I am writing, I have a main class which extends the ListActivity - it contains a list of elements. I want these elements to link to a different page (an xml one, or perhaps a View object). However, I realised one cannot use the method <code>setContentView(int)</code> on a ListActivity object.</p> ...
java android
[1, 4]
5,428,108
5,428,109
Infinite loop wait 2 second, make server call jquery
<p>I am making a simple game with jquery and i want to make a call to asp.net web service which i know how to do, but the server call need to continue to run until i get a specific response from the server.</p> <p>I will wait like 3 seconds with each loop cycle</p> <pre><code>function servercall() { whil...
asp.net jquery
[9, 5]
388,352
388,353
JQuery basic form post
<p>I am validating a form but when the validation is not passed it still posts the form. How do I prevent the this?</p> <pre><code>&lt;form action="/Account/Registration" method="get"&gt; &lt;fieldset id="enterCode"&gt; &lt;ul&gt; &lt;li class="inputBlock"&gt; ...
javascript jquery
[3, 5]
5,339,525
5,339,526
I want to Remove URL Parameter. It is possible?
<p>I want to remove URL Parameter. <strong>But i don't want to use PostBack and Redirect method</strong>. It is possible? </p> <p>E.g</p> <p></p> <p>I want to remove parameter id.</p> <p>After remover parameter, i want to see this url.</p> <p></p> <p>Can i do JavaScript or JQuery or asp.net? Please help me. Thank...
javascript jquery asp.net
[3, 5, 9]
2,643,275
2,643,276
Comparing existing and modified values of chekbox column in datagrid
<p>I have datagrid which shows activity name and a checkbox column. User checks the checkbox if he/she wants to select that activity and presses submit button to successfully add it.</p> <p>If user wants to un-check the checked checkboxes i have to make certain validation to check whether that activity is currently as...
c# asp.net
[0, 9]
121,228
121,229
custom validator function doesnt work in external javascript file
<p>I face aproblem that i have texetbox embeded in gridview related ton custom validator with client-side validation method ...it was working well..and when i moved it to an external JavaScript file it stop working</p>
javascript asp.net
[3, 9]
360,721
360,722
How to differentiate actual mouse clicks from script generated clicks?
<p>I have tabs.It has auto play.</p> <p>Take a look for example : <a href="http://jsfiddle.net/w3father/YEcZc/" rel="nofollow">http://jsfiddle.net/w3father/YEcZc/</a></p> <p>How do I get click detail which suggests if it is a click from script?</p>
javascript jquery
[3, 5]
514,691
514,692
NullPointerException - onPause()
<p>This is goign to be very simple i expect to sort out and just me being a newbie going about in circles. </p> <p>I have multiple tabs across my screen. The following code should read a text input and assign its value to Shared Preferences when another tab is selected. However, whenever i change to another tab my cod...
java android
[1, 4]
1,467,458
1,467,459
Opening Twitter share page in a popup
<p>I am trying to get an external url to open in a popup so I foind this code and I'm trying to get it to work.</p> <p>This is what I've got:</p> <p>The JS:</p> <pre><code>$(document).ready(function() { $.get('http://www.mydomain.com/',function(data) { $(this).simpledialog({ 'mode' : 'blank', ...
javascript jquery
[3, 5]
1,730,424
1,730,425
Radio button array get id using jquery
<p>I have a issue with radio button array. I have 1 timer when timer is 0 and select 1 radio button then that value get in jquery.</p> <pre><code>&lt;li&gt; &lt;span class="option"&gt;Option1 : Value1 &lt;/span&gt; &lt;input type="radio" name="cmbans[][1]" id="cmbans[][1]" value="Value1" /&gt; &lt;/li&gt; &lt;li&g...
php jquery
[2, 5]
666,502
666,503
Canvas cannot read property of undefined
<pre><code>function getMousePos(canvas, evt) { var rect = canvas.getBoundingClientRect(); return { x: evt.clientX - rect.left, y: evt.clientY - rect.top }; } setInterval(function (evt) { if (frame &lt; 4) { frame += 1; } else { frame = 0; } var mousePos = get...
javascript jquery
[3, 5]
3,840,040
3,840,041
how to bind function on dynamically created node
<p>I'm writing a placeholder enabling function</p> <pre><code>var t=document.createElement("input"); "placeholder" in t||$("input").each(function(){ if("submit"!==$(this).attr("type")){ var n=$(this),l=n.attr("placeholder"); n.css("color","#ccc").val(l); n.focus(function(){("#ccc"==n.css(...
javascript jquery
[3, 5]
1,725,693
1,725,694
JQuery Ajax Binding
<p>Below is the simple code that should display Ajax loading animation when form is submitted:</p> <pre><code>var init = function() { $("form").bind('ajax:beforeSend', function() { $("#comments_loading").show(); }); $("form").bind('ajax:complete', function() { $("#comments_loading").hide()...
javascript jquery
[3, 5]
797,028
797,029
Android Download file from Link
<p>I am trying to download file from one android mobile to other via Ip+port. i can sucessfully download file from other mobile if i write the url in Web Browser of mobile. the URL is like this</p> <pre><code> http://172.20.99.238:9999/file/3/001_01.mp3 </code></pre> <p>but i am unable to download this file via ...
java android
[1, 4]
888,459
888,460
How to get count similar word in list?
<p>I have C# list with lot of similar name i want to count all individual similar word.</p> <p>Example</p> <p>Suppose list has these values</p> <pre><code>one,one,one,two,two,four,four,four </code></pre> <p>then i want to calculate like this </p> <pre><code>one 3 two 2 four 3 </code></pre> <p>how can i calculate ...
c# asp.net
[0, 9]
5,001,474
5,001,475
Change margin of one class if another class display: none
<p>I need to setup an if statement similar to:</p> <p>If <code>divID1</code> element <code>style="display:block"</code> then <code>divCLASS1</code> add CSS <code>style="margin-right:0px"</code>.</p> <pre><code>&lt;script type="text/javascript"&gt; &lt;!-- if ($('#w2btoTop').element.style('display') == 'blo...
javascript jquery
[3, 5]
5,493,868
5,493,869
CSS Using to Make Many backgrounds Move at speeds that are different by mouse
<p>Hi i want to create an affect where background move to the mouse at different speeds to make an affect almost like 3d.</p> <p>This is what i want to make that with which i have found <a href="http://www.freeglance.co.uk/submit" rel="nofollow">found this</a></p> <p>can someone explained to me or show me some script...
javascript jquery
[3, 5]
1,719,498
1,719,499
Allow a web application to access a local file
<p>If I have a web application that needs to use a file, it presents the user with a standard open file dialog. But instead of uploading the file to server can it modify the file locally in a temporary location, while uploading in the background? That way the user does not have to wait for the upload before they can us...
php asp.net
[2, 9]
1,730,229
1,730,230
PHP & Jquery Image crop and upload
<p>When a user uploads a picture, pop up window should come, where he'll crop the image, after this is done. I want to use php script to upload this to folder but i want cropped image and thumbnail of cropped image to be present.After cropping is done,then he'll click upload button which will upload cropped image then ...
php jquery
[2, 5]
351,395
351,396
how to show .pdf file in asp.net web application using c#?
<p>i have fileUpload control on web page and a button to show .pdf file in a rich text box. but i dont know how to open apdf file ? can i use some pdf library?</p>
c# asp.net
[0, 9]
4,367,272
4,367,273
How Do I pass Values into an imagebutton click event in c#?
<p>Trying to pass some values into an imagebutton click event, something like this:</p> <pre><code>&lt;asp:ImageButton id="imagebutton1" runat="server" AlternateText="5 Star Luxury Villas in North Cyprus" ImageUrl="/download/1/luxury_villas.jpg" OnClick="ImageButton_Click('value1', 'value2')"/&gt; </code></pre> <p>th...
c# asp.net
[0, 9]
3,557,729
3,557,730
Pass var through JQuery load
<p>a very simple question I am sure just the brain isn't working this morning.</p> <p>I have the folowing code I am using with JQuery and the Google Maps v3 API. I basically am trying to refresh a map with new search results once it has been dragged to a new location. </p> <pre><code>google.maps.event.addListener( ...
javascript jquery
[3, 5]