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 |
|---|---|---|---|---|---|
209,988 | 209,989 | in override page_load, additional part should before or after base.OnLoad(e)? | <p>I inherit a basepage and override its method page_load,do sth myself in it,what I want to ask : the method I wrote should before base.OnLoad(e) or after it,which is better ? any difference between different location?</p>
<pre><code>protected override void OnLoad(EventArgs e)
{
this.GenerateIEIcon();
... | c# asp.net | [0, 9] |
1,710,048 | 1,710,049 | ASP:menu error occuring | <p>I am getting SCRIPT5009: WebForm_GetElementByTagName is undefined error when I have been using asp menu in IE 10 instead of IE 9 (which is earlier installed).</p>
<p>When I tried to find it I found this is occurring because when WebResource.axd is generated it does not have definition for this method.</p>
<p>On fu... | c# asp.net | [0, 9] |
1,677,864 | 1,677,865 | How to check if a value passed to a javascript function is null? | <p>I have the following javascript code:</p>
<pre><code>function changeButtonState(targetSelector, action, iconClass) {
var $target = $(targetSelector);
var $targetSpan = $(targetSelector + ' span');
$targetSpan.removeClass('sprite-blank').addClass(iconClass);
}
</code></pre>
<p>How can I make it so that ... | javascript jquery | [3, 5] |
5,147,908 | 5,147,909 | Split text on page | <p>How to split text between pages? Would like to know how to do HTML with the conclusion in the WebView or TextView, possibly even with images.</p>
| java android | [1, 4] |
3,206,853 | 3,206,854 | window.showModalDialog resizable property not working | <p>I'm developing a page in asp.net, and I have this script that opens a modal window. It works perfectly, but the resizable property seems to not be working as I can resize the window once it is opened.</p>
<pre><code>Dim script as String = "window.showModalDialog('" + page + "','','unadorned:yes; dialogWidth:330px; ... | javascript asp.net | [3, 9] |
3,033,555 | 3,033,556 | Can I get wmode parameter from Flash object? | <p>I am working on a site that includes Flash-based third party ads. Some of these ads do not have a wmode parameter set, and so when we pop up an overlay from our site, the ad blocks it or appears on top of it. We do not have the ability to insert wmode parameters into the ads. </p>
<p>Is there a way to determine ... | javascript jquery | [3, 5] |
3,383,611 | 3,383,612 | simple jQuery appears fine except in IE7 | <p>I have created a simple animation using jQuery and the mouseenter / mouseleave. It works fine in IE7, FF, Opera, Chrome and safari. </p>
<p>however, something is wrong in IE7 - nothing happens at all - I can't even get alert boxes to pop up.</p>
<p>Could somebody please take a look at my code and tell me what I am... | javascript jquery | [3, 5] |
789,129 | 789,130 | Use variable in jquery object | <p>i have this code </p>
<pre><code>if($("input[name='staylogged']").is(":checked")){
var staylogged = "yes";
}else{
var staylogged = "false";
}
var form_data = {
username: $("#username").val(),
password: $("#password").val(),
staylogg... | javascript jquery | [3, 5] |
2,693,287 | 2,693,288 | jQuery calculation doesn't add up as expected when toggling height | <p>I have the following function for calculating the height of <code>.node</code>. It then takes away the height of a possible image, <code>.node-image</code>, from the height of the <code>.node</code>, and sets a column, <code>.node-content-column</code> to have a height that is the difference (i.e. 500 - 50 = 450; co... | javascript jquery | [3, 5] |
3,654,313 | 3,654,314 | How to alter prettyPhoto description HTML? | <p>hello i want to modify the "description html" of the prettyPhoto i dont think there is a callback available when prettoPhoto lightbox is "shown" (but a callback for close exist)</p>
<p>what do you guys recommend? </p>
| javascript jquery | [3, 5] |
1,643,130 | 1,643,131 | Sending JS variable data to a downloadable page | <p>This javascript function takes JSON and formats it to XML. The data is a long XML string, whic I would like to allow the user to download. I'm trying to use ajax to post the data to a php page wichi will create the file and then allow the user to download it. </p>
<pre><code> json2xml(eval(data));
</code></pre>
<... | php javascript | [2, 3] |
4,418,424 | 4,418,425 | extract info from a string | <p>Suppose I have a string that looks like the following:</p>
<pre><code>string foo ="<add key="key1" Value="val1"/>
<add key="key2" Value="val2"/>
<add key="key3" Value="val3"/>"
</code></pre>
<p>frrom this string i need to loop through and get every key value pair and do something with the... | c# asp.net | [0, 9] |
4,514,129 | 4,514,130 | Fill gridview using javascirpt on selected tree node value | <p>my requirement is to get the result in gridview based on the treeview node selection using javascript i.e. client scripting. Currently the same can achieve using server side scripting, but i want with out postback and without using selectednodeindexchanged event. Pls. help me to solve this problem.</p>
| javascript asp.net | [3, 9] |
1,588,492 | 1,588,493 | How do I check two textboxes for two dates | <p>One has txtDateReceived and second has txtVendorPackDate. Before insert will add record I have to check if txtDateReceived is not erlier then txtVendorPackDate. I try use TextChanged event. </p>
<pre><code>protected void txtVendorPackDate_TextChanged(object sender, EventArgs e)
{
DateTime fromDate = DateTime.Mi... | c# asp.net | [0, 9] |
3,066,309 | 3,066,310 | How to order divs with JQUERY | <p>i have divs like this: </p>
<pre><code><div class="oferta SYB">
<div class="infoferta">
<div class="datosoferta">
<div class="ofertapagas">Pag&aacute;s<br/> $ 67</div>
<div class="ofertavalor">Valor<br /> $ 160</div>
<div clas... | javascript jquery | [3, 5] |
1,162,783 | 1,162,784 | jQuery News Ticker - not quite smooth enough | <p>Hey, I have a nice news ticker that stops on <code>mouseover</code> etc... but the animation is slightly jerky - any ideas?</p>
<pre><code>var ticker_holder = $('#ticker').get(0);
var ticker_text = $('#ticker').get(0);
var ticker_pos = ticker_text.parentNode.offsetWidth;
var tic... | javascript jquery | [3, 5] |
986,767 | 986,768 | Force a View to redraw itself | <p>I have created a custom View (let's call it <code>MyView</code>) which basically just draws some text on itself using the canvas. The text to be drawn is set using a global variable.</p>
<p>At some point during the program's execution, I want to change the global variable, and have the <code>MyView</code> redraw it... | java android | [1, 4] |
198,900 | 198,901 | Using jQuery to add tick box values to a hidden field | <p>I am trying to collect tick box values and assign the ticked boxes values to a hidden field so that I can save all of the ticked boxes values into one column in a comma delimited format, instead of many.</p>
<p>How could I go about doing that?</p>
<p>Thanx in advance!</p>
| javascript jquery | [3, 5] |
3,127,045 | 3,127,046 | jQuery Bind each() and also click() on the same function | <p>So I have the following fragment:</p>
<pre><code> $(".server").each(function() {
var element = $(this);
//bunch of javascript here with element
});
</code></pre>
<p>I also want to bind a single click event for an <code>id</code> to do the same work as the above, how is this possible, without copying an... | javascript jquery | [3, 5] |
5,727,859 | 5,727,860 | Android import project errors | <p>Hey everyone, I'm a beginner, so I'll try my best to explain this problem succinctly.</p>
<p>Basically, a friend of mine and I were playing around with the Android SDK, editing a simple RSS reader. We could launch it in the emulator and even install it on our real devices. </p>
<p>Fast forward a few days, I'm tryi... | java android | [1, 4] |
2,891,264 | 2,891,265 | are java libraries allowed in android..? | <p>Hi all Stack Overflow members,</p>
<p>I have written native Java code to capture a screen shot of the desktop. It uses the following libraries; are these libraries allowed in Android? If not, what should I do to take screen shots in Android?</p>
<pre><code>javax.swing.*;
javax.imageio.*;
java.awt.*;
java.awt.event... | java android | [1, 4] |
4,171,326 | 4,171,327 | jQuery How to kill a Created Div? | <p>What I have at the moment is a list of products (divs) that, when hovered over, a duplicate div is created and positioned over the original div (offset a bit and restyled using css). This new div is larger and offers more information that was being shown in the list view.</p>
<p>When I hover off the new div it is .... | javascript jquery | [3, 5] |
522,166 | 522,167 | Building a asp.net CompositeControl with custom JQuery validation | <p>Setup: I have built a asp.net composite control library for a small company I've done work for in the past. I also built a generic jquery validation library (didn't use jquery validation plug in because it was overkill for what we were doing). In the control item markup itself, the developer can add an attribute l... | jquery asp.net | [5, 9] |
4,393,359 | 4,393,360 | Jquery Toggle working in IE/Chrome, Undefined in FF | <p>I seem to be having the opposite problem as everyone else, my Javascript isn't working in Firefox. Firebug is telling me the id is undefined, but it isn't, unless FF doesn't recognize tags as objects to be controlled by javascript like IE/Chrome? </p>
<p>PHP Looks like this: </p>
<pre><code>echo '<a href="j... | javascript jquery | [3, 5] |
5,916,001 | 5,916,002 | Loading image in div every second | <p>I want to load a image in a div at regular interval, say every second or two</p>
<p>I did some silly attempts like this </p>
<pre><code>$(document).ready(function() {
setTimeout('LoadImages()',100 );
});
function LoadImages()
{
$('#Images').load('get_image.htm'); // get_image.htm displays image
}
</script&... | javascript jquery | [3, 5] |
1,799,363 | 1,799,364 | Is JavaScript allowed to call a remote web page during a click event? | <p>When viewing the click in firebug, the call turns red (i.e. error) but I can't see the error because the page redirects.</p>
<p><strong>So is it allowed to call a remote website (in my case, its a 1x1 image using a standard url like <a href="http://www.example.com/becon" rel="nofollow">http://www.example.com/becon<... | asp.net javascript jquery | [9, 3, 5] |
4,204,912 | 4,204,913 | How do I check if any checkboxes at all on the page are checked? | <p>I need to check, using jQuery, if any checkboxes on the page are checked. The particular checkbox set they are contained in doesn't matter, just any of them.</p>
<p>Any ideas?</p>
<p>Thanks!</p>
| javascript jquery | [3, 5] |
4,579,079 | 4,579,080 | how to send sms to mobile from web application using asp.net and c#? | <p>How do you send an sms message to a mobile phone from a web application using asp.net and c#?</p>
| c# asp.net | [0, 9] |
1,008,815 | 1,008,816 | Are there any Jquery datepickers or calendar that can have a day as a link to a new page? | <p>I tried modifying the Jquery ui datepicker, but it didnt work in Ie7 and chrome. </p>
<p>but since im not a javascript expert I need to find a premade solution, something that makes certain days links. </p>
<p>Thank you</p>
| javascript jquery | [3, 5] |
1,346,983 | 1,346,984 | Allowing roles in web.config | <p>I created an administrator role in ASP.Net configuration named "Administrators" and assigned one user to it, in my web.config I specify this:</p>
<pre class="lang-xml prettyprint-override"><code> <location path="Admin/Default.aspx">
<system.web>
<authorization>
<allow users="Adm... | c# asp.net | [0, 9] |
969,958 | 969,959 | Set literal text with inline code in aspx file | <p>In an ASP.NET project, I have a literal. In order to set the text property, I used the following code:</p>
<pre><code><asp:Literal ID="ltUserName" runat="server" Text="<%= session.UserName %>" />
</code></pre>
<p>But instead of value of <code>session.UserName</code>, literal shows <code><%= session.... | c# asp.net | [0, 9] |
1,199,582 | 1,199,583 | Setting values to usercontrol & reloading it | <p>i have a usercontrol with two public properties </p>
<pre><code>public DateTime fromdate
{
get;
set;
}
public DateTime toDate
{
get;
set;
}
</code></pre>
<p>I am setting this values in my code behind. After setting the values ... | c# asp.net | [0, 9] |
3,772,841 | 3,772,842 | How do I access the ASP control within span through span ID? | <p>I use custom control which creates a span and 2 asp controls with int.</p>
<pre><code><abc:edf runat="server" ID="testing" ... />
</code></pre>
<p>Now my questions is how do I access the asp control within span through span ID in javascript?</p>
<p>I can get to it by </p>
<pre><code>var test = $get('<%=... | c# javascript asp.net | [0, 3, 9] |
1,453,070 | 1,453,071 | Losing GridView once a rotate the device | <p>I am pretty new to android, and I am trying to implement a FragmentActivity, however things are not fully working, My activity layout is the following:</p>
<pre><code><RelativeLayout>
<LinearLayout>some buttons...</LinearLayout>
<android.support.v4.view.ViewPager />
<RelativeLayout/>... | java android | [1, 4] |
1,415,145 | 1,415,146 | iPhone jQuery breaks after triggering the email overlay | <p>I'm developing a mobile site for iPhone using jQuery. I have a hidden div (class <code>.tile-content</code>) that holds some content. Clicking a link with <code>onclick="showContent(this)"</code> calls fadeIn like this:</p>
<pre><code> function showContent(obj)
{
alert($(obj).html());
... | jquery iphone | [5, 8] |
1,560,513 | 1,560,514 | How to bind a classes property to a TextBox? | <p>I have a Customer class with a string property comments and I am trying to bind it like this:</p>
<pre><code><asp:TextBox ID="txtComments"
runat="server"
TextMode="MultiLine" Text=<%=customer.Comments %>>
</asp:TextBox>
</code></pre>
<p>However, it gives me the error:<... | c# asp.net | [0, 9] |
4,447,454 | 4,447,455 | Image sliding in jquery | <p>I have an image slider widget in my application. I am using jquery cycle for that.. I have a drop down menu where I can change the effects of the slider. But I need to insert this image slider in more than one place in a single page. And for the drop down menu I have used id.. so when I insert the image in more than... | javascript jquery | [3, 5] |
5,802,555 | 5,802,556 | System.Threading.Timer example to run and display seconds until you click a button | <p>I am having some issues creating an asp.net page using C#
When you first click a button it starts the display of seconds via a label control.
When you click the button again the seconds stop.</p>
<p>Currently my code does just prints 0 and stops:</p>
<pre><code>System.Threading.Timer Timer;
bool endProcess = false... | c# asp.net | [0, 9] |
4,494,273 | 4,494,274 | Finding which element is clicked in the DOM | <p>The question was asked to me in an interview.</p>
<p>How to find which element is clicked by the user in the DOM using JQuery or Javascript or Both?</p>
<p>NOTE: User can click on any element in the DOM whether it is an img, div or even span.</p>
<p>If you can suggest some example then it will be very much helpfu... | javascript jquery | [3, 5] |
2,384,978 | 2,384,979 | Casting object from Drop Down Into Nullable type | <p>I have the following drop down in my aspx:</p>
<pre><code><aspx:DropDownList
ID="ddl1"
runat="server"/>
</code></pre>
<p>In the code-behind (C#), I want to retrieve the value from the DropDownList.</p>
<p>I populated my dropdown as such:</p>
<pre><code>ddl1.DataSource = LocationOfData;
ddl1.DataBind();
</c... | c# asp.net | [0, 9] |
2,668,651 | 2,668,652 | High memory usage on Android Application | <p>I have a little application, this application has seven activities, basically 6 are layouts with images and one is a MapActivity, among of 5 layouts one has a ArrayList of a internal class and each time that I use my application the memory grows to 50mb, 70mb, 111mb... I tried to call Garbage Collector but I didn't ... | java android | [1, 4] |
3,279,759 | 3,279,760 | Combing JS and PHP on one button. Is it possible? | <p>Hiya:
i know some people would be so tired of my questions, but I'm working on a uni project and need to get it done as soon as possible. This question is about using JS on a button(button) and sending a php_my_sql update on the same button. The problem is JS uses button, right? but PHP uses button(submit). How can ... | php javascript | [2, 3] |
2,070,706 | 2,070,707 | Run an ajax script before submitting | <p>Good Day.</p>
<p>I'm having a problem with running a ajax call before a form submits. I'm just a newbie web developer so please bear with me.</p>
<p>My code is like this:</p>
<pre><code>$( function() {
$('#formname' ).submit( function() {
$.post( 'validation.php', $( this ).serialize(), function( data ) {
i... | javascript jquery | [3, 5] |
4,848,732 | 4,848,733 | auto Focus (Hit Enter) Javascript function is working good in IE7 but not working in IE8 | <p>I used a javascript FocusChange() in my aspx page. I have couple of controls and I need Hit enter key need to move next control based on tab index. It is working good in IE7 but not working in IE8... Please help me on this..</p>
<p>Thanks for your help in advance. The java script is given below.</p>
<pre><code>fun... | asp.net javascript | [9, 3] |
1,820,835 | 1,820,836 | retain radio button value on page refresh | <p>I know there are similar posts on this topic but i didn't find my answer from there.</p>
<p>An online MCQ exam test. Number of questions in the page is variable.
4 options for every MCQ(multiple choice question).</p>
<pre><code><input type="radio" name="my" value="1"/>
<input type="radio" name="my"... | php javascript jquery | [2, 3, 5] |
5,262,491 | 5,262,492 | Tourist Advisor API | <p>Not a very "orthodox" question, but I am looking for some open source (if such exists) that will have some way of accessing data about tourist attractions in a location of my choosing.</p>
<p>Basically something like this trip advisor app (http://www.tripadvisor.com/MobileApps), but something that I can use from my... | java android | [1, 4] |
127,175 | 127,176 | Will postback in asp.net always causes a "navigate away" warning | <p>I have a pretty simple questions that had stumped me so far ..
I am trying to do a one-level cascading drop down in ASP.NET.</p>
<p>So, I have two drop down boxes (among other text boxes), after ddlOne is selected, then ddlTwo will be populated.</p>
<p>here's my code in aspx</p>
<pre><code><asp:UpdatePanel ID=... | c# asp.net | [0, 9] |
1,734,610 | 1,734,611 | How to set width of a html tablerow in C# | <p>this is a follow up question to the following question link:</p>
<p><a href="http://stackoverflow.com/questions/11112112/how-to-hide-columns-in-asp-net-webform">how to hide columns in ASP.NET webform</a></p>
<p>following the answer that i got from the above link, i am using </p>
<pre><code> System.Web.UI.HtmlCont... | c# asp.net | [0, 9] |
4,093,933 | 4,093,934 | How to show human-readable "time ago" | <p>My user last logged in at 15:50:09 Wednesday, January 25, 2012 IST
how can i show it as "10 minutes ago".
Is there any js?</p>
| javascript jquery | [3, 5] |
4,506,955 | 4,506,956 | Why is PHP function breaking my Javascript | <p>I have this scipt call:</p>
<pre><code>....
$objResponse->addScriptCall("my_script");
return $objResponse->sendResponse();
</code></pre>
<p>This works ok but if I try to send a php mail just before, the script is not called:</p>
<pre><code>...
$send =& $mailer->Send();
$objResponse->addScriptCall... | php javascript | [2, 3] |
1,903,469 | 1,903,470 | Making Online Banners | <p>I am having a website and I want that my users select any .jpg image available on website, then they add some text of their own on that image and save that image again for themselves.</p>
<p>is there jquery editor or any plugin which could enable me to achieve my task?</p>
| php jquery | [2, 5] |
1,579,560 | 1,579,561 | Why this works out of UpdatePanel but not inside UpdatePanel? | <p>I have copy and paste this Alert Class:
<a href="http://madskristensen.net/post/JavaScript-AlertShow%28e2809dmessagee2809d%29-from-ASPNET-code-behind.aspx" rel="nofollow">http://madskristensen.net/post/JavaScript-AlertShow%28e2809dmessagee2809d%29-from-ASPNET-code-behind.aspx</a></p>
<p>It works except with a butto... | c# asp.net | [0, 9] |
1,894,874 | 1,894,875 | How to reference another objects property in aspx page | <p>I have a class, which is not present in the code behind, I have declared a property, say "Name". Now I want to access this property "Name" in the aspx page. </p>
<p>I know we can do that by creating another property or a string variable or a hidden field in the code behind page and setting the "Name" properties val... | c# asp.net | [0, 9] |
732,736 | 732,737 | Take <span> class and put in <a> attribute jquery | <p>I have html like this.</p>
<pre><code><span class="gallery-open-item year-icon-Yes 2010">
<a href="/year/none">
</a>
</span>
</code></pre>
<p>I need to check using jQuery if <code>span.gallery-open-item</code> has <code>year-icon-Yes</code> class, and if so take the next (for this example i... | javascript jquery | [3, 5] |
5,528,161 | 5,528,162 | new Date() results not always correct | <p>I'm wondering if there any gotchas or something like this with plain java <code>new Date()</code></p>
<p>I'm using it throughout my app to get current timestamp.</p>
<p>However, I'm seeing (occasionaly) results that out of whack. Like those dates from the future.. Any idea why something like this might happen? I'm... | java android | [1, 4] |
3,766,950 | 3,766,951 | use php date string in javascript | <p>i have a date entry in yyyy-mm-dd format in mysql database. Using php i could get the date value</p>
<pre><code>$row = $myresult['date'];
</code></pre>
<p>now i wish to alert this value in javascript</p>
<p>so i tried</p>
<pre><code>var temp_date = <?php echo($row)?>;
alert (temp_date);
</code></pre>
<p>b... | php javascript | [2, 3] |
3,487,658 | 3,487,659 | How to access java packages in javascript | <p>I am writing simple javascript.
script is</p>
<pre><code>document.write("Before script");
var test=new java.lang.String();
test="Test"
document.write(test);
</code></pre>
<p>for the above script getting following error</p>
<pre><code>Uncaught ReferenceError: java is not defined
</code></pre>
<p>what might be the... | java javascript | [1, 3] |
4,441,845 | 4,441,846 | How to remove line breaks with PHP or JS | <p>I've tried about everything to delete some extra <code>\n</code> characters in a web application I'm working with. I was hoping someone has encountered this issue before and knows what can be causing this. All my JS and PHP files are UTF-8 encoded with no BOM.</p>
<p>And yes I've tried things like</p>
<p>In JS:</... | php javascript | [2, 3] |
3,955,866 | 3,955,867 | Action bar has dissappeared | <p>I am new to android development and seem to be stuck at the moment. Whenever I compile and test my app on a device I getting a fatal error message:</p>
<pre><code>=1: thread exiting with uncaught exception (group=0x4137d930)
12-10 22:07:28.423: E/AndroidRuntime(20961): FATAL EXCEPTION: main
12-10 22:07:28.423: E/An... | java android | [1, 4] |
2,381,966 | 2,381,967 | Validate URL Field using Jeditable plugin | <p>i want to validate a URL. i am using jquery plugin jeditable. i want when some one click on the field and enter an invalid URL it show error.</p>
<p>here is my code. how can i modify . please help</p>
<pre><code>$(function() {
$("#url").editable(
function(data)
{seller=new BHSeller();
... | javascript jquery | [3, 5] |
2,377,677 | 2,377,678 | Clear Textboxs on submit | <p>Hi i am looking to clear text boxs when a user clicks a button. However the code that i have is not working. Here is my code.</p>
<pre><code>System.Net.Mail.MailMessage m = new System.Net.Mail.MailMessage();
m.Body = name.Text + Environment.NewLine + phone.Text + Environment.NewLine + email.Text + Envir... | c# asp.net | [0, 9] |
4,650,897 | 4,650,898 | How to assign dropdown selected value to a hidden field | <p>i have a dropdownlist control in asp.net which resides in a user control .The yuser control has a updatepannel .I want to set the dropdown selected value to a hidden field .How will i do this in javascript /Jquery .I don't want to use server code ?</p>
| asp.net jquery | [9, 5] |
3,291,456 | 3,291,457 | ArrayList of images to GridView | <p>I have a list of images in my ArrayList, I would like to display them in GridView, the same way the example is over here: <a href="http://developer.android.com/resources/tutorials/views/hello-gridview.html" rel="nofollow">http://developer.android.com/resources/tutorials/views/hello-gridview.html</a></p>
<pre><code>... | java android | [1, 4] |
1,497,766 | 1,497,767 | How to use regular expression in prev()? | <p>How to use regular expression in prev()?</p>
<pre class="lang-html prettyprint-override"><code><div class="aaa">aaa</div>
<div style="display: none" class="bbb">bbb</div>
<div style="display: none" class="ccc">ccc</div>
<div class="ddd">ddd</div>
</code></pre>
<pre c... | javascript jquery | [3, 5] |
3,122,254 | 3,122,255 | Phonegap advantages and disadvantages | <p>what is phonegap.what is the advantages of using phonegap.what is the difference between android phonegap and blackberry phonegap.what is the disadvantages of phonegap.</p>
| javascript android | [3, 4] |
2,418,852 | 2,418,853 | get values from an external page? | <p>this code is in an external url: www.example.com.</p>
<pre><code></head><body><div id="cotizaciones"><h1>Cotizaciones</h1><table cellpadding="3" cellspacing="0" class="tablamonedas">
<tr style="height:19px"><td class="1"><img src="../mvd/usa.png" width="24" heigh... | php javascript jquery | [2, 3, 5] |
1,482,564 | 1,482,565 | whats wrong with this JS | <p>firebug is complaining its there is a syntax error</p>
<pre><code>if (document.getElementById("fromAddress").value == "") ||
(document.getElementById("fromAddress").value == "Enter Address, City, Directions") {
</code></pre>
| javascript jquery | [3, 5] |
1,468,466 | 1,468,467 | passing parameters with conditionally | <p><strong>Update:</strong></p>
<p>i have a dropdownlist with seven different optins like (date, subject, press, cia, media...) and user will select one of the item from the dropdownlist and click on search button to get the results.</p>
<p>here is my repository class GetInquires method which accepts 7 parameters but... | c# asp.net | [0, 9] |
960,740 | 960,741 | cyclic tab order with jquery | <p>Is there a nice way to set a desktop-like tab order in a form with jquery? the form has four text inputs and two buttons; after the last button loses focus, I want the first text input to get focus and start tab order from the beginning (to 2nd tb, to 3rd tb...). I did this:</p>
<pre><code> $('body').delegate('#... | javascript jquery | [3, 5] |
1,579,062 | 1,579,063 | Dataview Table.Rows.Count is retuned 1 when there is no such rows | <p>consider the code below:</p>
<pre><code>DataView deletedLOV = new DataView(tbltmp, "prociLOV_Deleted=1", "prociLOV_ID",
DataViewRowState.CurrentRows);
DataView addedLOV = new DataView(tbltmp, "prociLOV_Id>1", "prociLOV_ID",
DataViewRowState.Curr... | c# asp.net | [0, 9] |
5,142,627 | 5,142,628 | file not downloaded in webmethod | <p>I am using webmethod to download a .zip file but file is not download. my code run well without error, code is below:
<br></p>
<pre><code> [WebMethod]
public static void DownloadExtension(string ExtensionPath)
{
string filepath = HttpContext.Current.Server.MapPath(ExtensionPath);
FileInfo ... | c# asp.net | [0, 9] |
4,471,438 | 4,471,439 | jquery link handler with google ads link | <p>my jquery</p>
<pre><code>jQuery(function(){
jQuery('div.class a').click(function() {
alert("hello");
});
});
</code></pre>
<p>google ads link</p>
<pre><code><a id="aw0" class="adt" target="_top" onmouseover="return ss('','aw0')" onmousedown="st('aw0')" onfocus="ss('','aw0')" onc... | javascript jquery | [3, 5] |
5,016,479 | 5,016,480 | dynamically applying image src is not working in FF and IE | <p>Try the follwing code in w3schools in FF, IE and chrome. Observe the behavior.
In chrome the image is reloading. But in IE and FF it's not working.</p>
<pre><code><!DOCTYPE html>
<html>
<head>
<script>
function changeSrc()
{
document.getElementById("myImage").src="some captch... | javascript jquery | [3, 5] |
576,405 | 576,406 | Javascript conditional postback on button click | <p>I have a button control in my ASP.NET page which should conditionally postback based on some criteria.</p>
<pre><code><input runat="server" type="button" id="btnDone" value="Select" onclick="return SendAndCloseAdvWin();" onserverclick="serverProcessing" />
</code></pre>
<p>.</p>
<pre><code>function SendAndC... | javascript asp.net | [3, 9] |
2,843,532 | 2,843,533 | Extending $.fn.init function | <p>I'm trying to extend jQuery with the following:</p>
<pre><code>$.fn.extend({
initCore: $.fn.init,
init: function (selector, context, rootjQuery) {
return $.fn.initCore(selector, context, rootjQuery);
}
}),
</code></pre>
<p>However, it doesn't seem to work right, and creating simple thin... | javascript jquery | [3, 5] |
345,061 | 345,062 | alter regex to accept phone number with or without spaces | <p>I have the regex to validate uk phone numbers but it is currently forcing the user to input a space before it will accept the number how do I alter it to make it accept numbers with or without spaces.</p>
<pre><code> /^0\d{2,4}[ -]{1}[\d]{3}[\d -]{1}[\d -]{1}[\d]{1,4}$/
</code></pre>
| javascript jquery | [3, 5] |
873,388 | 873,389 | Need whole body tag mouseover function | <p>I need to whole body mouseover function. When I enter some other page, some of my content will append the particular div. </p>
<p>My code is:</p>
<pre><code>$('body').mouseover(function() {
$('#text').append('<div>New content</div>');
});
</code></pre>
| javascript jquery | [3, 5] |
1,271,466 | 1,271,467 | Getting index of a value in DataTable | <p>i need to get index of a value in DataTable.</p>
<p>I'm trying to get like that.</p>
<pre><code> SqlDataAdapter da = new SqlDataAdapter("SELECT MessageID,SenderID,MessageContent FROM Messages WHERE ThreadID="+ThreadID, connectionString);
//Get all messages in the Thread.
DataTable dt = new DataTable();
da.Fill(... | c# asp.net | [0, 9] |
415,562 | 415,563 | dialog box with multiple checkboxes android souce code | <p>I have an android app with a button. When clicking the button I need on the screen a dialob box with multiple check boxes annd an ok button. How to do that? Do i need an xml layout for the list with checkboxes?</p>
<p><strong>1. How to add to each element in the list dialog box a check box?</strong></p>
<p><strong... | java android | [1, 4] |
2,141,296 | 2,141,297 | Insert '-' every 5 characters as users type [like a product key] | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/109854/auto-format-structured-data-phone-date-using-jquery-plugin-or-failing-that-v">Auto-format structured data (phone, date) using jQuery plugin (or failing that vanilla JavaScript)</a><br>
<a href="http://stack... | javascript jquery | [3, 5] |
2,314,252 | 2,314,253 | The method 'after' does not work with elements not yet in DOM | <p>I want to add two HTML elements to a Dom element one after another. But this call does not work with jQuery</p>
<pre><code>$("<button>click me</button>").after("<span> or be happy </span>")
.appendTo("#someId");
</code></pre>
<p>The reason I cannot combine the ... | javascript jquery | [3, 5] |
4,943,930 | 4,943,931 | Under what conditions do chained jQuery objects offer performance gains? | <p>I'm working with some code that adds and removes various CSS classes on the same object. The code looks something like:</p>
<pre><code>function switch_states(object_to_change) {
if(object_to_change.hasClass('ready') {
object_to_change.removeClass('ready');
object_to_change.addClass('not_ready');
} else ... | javascript jquery | [3, 5] |
1,936,696 | 1,936,697 | reading preference value | <p>i am working on android and trying to read a value from my preference file.
but when i run.a message appears in emulator.the
<strong>the application has stopped unexpectedly</strong>
here is my preference file name pref.and it is inres/xml</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<Preferen... | java android | [1, 4] |
5,707,015 | 5,707,016 | credit card or online payable php code | <p>for a hotel web site there are a featured for online advanced room booking using credit or debit card. but i am unable to write that specific code. please answered if possible.</p>
| php javascript | [2, 3] |
1,878,194 | 1,878,195 | Is there a PHP equivalent of "new Array (number)" in javascript? | <p>I was trying to convert basic javascript function into PHP, and I saw that one of the variables was declared var Variable = new Array (13).</p>
<p>I know that PHP variables are declared like: $variable = array()</p>
<p>but what about the "13" in new Array(13)? does that translate to $variable = array(13)? I've tri... | php javascript | [2, 3] |
1,192,383 | 1,192,384 | dynamically created button click event not firing | <p>I have done a bit of research on this but none of the solutions I have found seem to provide a fix for my issue. I have an asp.net web app in C# and I want to dynamically add a submit button after a selection is made from a drop down list. </p>
<pre><code> protected void Page_Load(object sender, EventArgs ... | c# asp.net | [0, 9] |
800,535 | 800,536 | How do I continue download if preventDefault is used? | <p>I have a jQuery modal UI basically blocks users from downloading a file. I use <code>preventDefault</code> to stop the download manager show up. But this kills the <code>GET</code>. </p>
<p>After the user clicks <code>Agree</code>, how can I request proceed download?</p>
<p>I've googled this and most of them are d... | javascript jquery | [3, 5] |
4,709,473 | 4,709,474 | submit button issue with jquery and php | <p>The problem:</p>
<p>when the input type on my submit button is changed to 'button' it does NOT save info to mysql but validation works. If i change it to input type on submit button to 'submit' it saves info to mysql but the validation does not work. Is there a resolution to this?</p>
<p>jquery validation - functi... | javascript jquery | [3, 5] |
3,488,123 | 3,488,124 | C# folders and sub folders | <p>How to do this:</p>
<ul>
<li>Check if folder upload exists (if nor then create it) ~/ uploads</li>
<li>Check if subfolder with username exists ~/uploads/folder with username</li>
</ul>
<p>It as to check for each case individually because I could add a new user to the system and of course the folder uploads alredy ... | c# asp.net | [0, 9] |
3,971,630 | 3,971,631 | Is the DVM an interpreter or a Compiler? | <p>Is the DVM an interpreter or a compiler? Why did google have to come up with the DVM when there is already the JVM? Can the JVM not be used in mobile platforms? If not why not?</p>
| java android | [1, 4] |
1,397,357 | 1,397,358 | IP Camera Android Application | <p>I am new in android application
& I want to make android application to view & control IP cameras
but I don't know from where I can start
I want to know if there are specific cameras that can be controlled? or any IP camera can be controlled?
as I want to choose between three types of VIVOTEK camera
please ... | java android | [1, 4] |
5,513,895 | 5,513,896 | Delete all numbers from a text using PHP or JavaScript | <p>I have a .txt file that contains a list of names and some numbers.
For example,</p>
<hr>
<p>AARON 0.24 350,151 77</p>
<p>ABDUL 0.007 10,213 831</p>
<p>ABE 0.006 8,754 854</p>
<hr>
<p>and on...</p>
<p>So, I need to delete ALL numbers from that list using PHP or JavaScript with returning words... | php javascript | [2, 3] |
2,206,598 | 2,206,599 | How to swap fadeIn/fadeOut of dynamically created selectors | <p>I am swapping out divs generated with a php foreach loop like this...</p>
<pre><code><img class="trigger" name="showme-<?php echo $stuff ?> ... >
<div id="showme-<?php echo $stuff ?>" style="display:none"></div>
$('.trigger').click(function(){
var num=$(this).attr("name");
$(... | javascript jquery | [3, 5] |
1,175,977 | 1,175,978 | Could not load file or assembly log4net or one of its dependencies | <p>I've been asked to take a look at an error in an ASP/C# application with its Paypal integration. The error, shown in full, is:</p>
<blockquote>
<p>Could not load file or assembly
'log4net, Version=1.2.0.30714,
Culture=neutral,
PublicKeyToken=b32731d11ce58905' or
one of its dependencies. The located
asse... | c# asp.net | [0, 9] |
3,918,478 | 3,918,479 | How to reset specific form element in a search form? | <p>I have a search form that has different elements in it, checkboxes, selects, text fields etc. Each change is accompanied by an ajax call that gets the number of results as a sort of counter. I would like to reset only the previous element that caused the counter to return a value of 0.</p>
<p>I was thinking about k... | javascript jquery | [3, 5] |
1,282,036 | 1,282,037 | Fire an ASP.NET TextBox event on enter press | <p>How do i fire a ASP.NET click event when the user press enter.</p>
<p>This is what i do now but it does not work:</p>
<pre><code>function KeyDownHandler(event) {
if (event.keyCode == 13) {
__doPostBack('<% ButtonGetListforUser.ClientID %>', 'OnClick');
isClicked = true;
}
}
</code></p... | c# javascript asp.net | [0, 3, 9] |
1,598,254 | 1,598,255 | how can i use position bottom to animate a div to the top of page | <p>I currently am trying to animate the position of a div in a 3 tier structure, the first tier shows only the header, the second the header and excerpt and then the 3rd some additional copy. At the moment I can animate position bottom for both tier 1 and tier 2 but cant seem to figure out how I animate the tier 3 to w... | javascript jquery | [3, 5] |
2,501,869 | 2,501,870 | multiplication error | <p>If I multiply 12 x 25.4 i get 304.7 whereas I expect 304.8. I see that using odd numbers x 25.4 I get the correct answers but using even numbers always seem to be off by 0.1. I am writing a scientific app that is heavily based on formulas so any insight would be helpful. </p>
<pre><code>if (((m1_sqs1_spinner.getS... | java android | [1, 4] |
103,560 | 103,561 | Passing data between activities | <p>My main activity contains a EditText and a button.
I would like to send whats written in the EditText to the next activity started by pressing the button. </p>
<p>In the first activity I have this:</p>
<pre><code> Intent i = new Intent(firstActivity.this, secondActivity.class);
i.putExtra("myStri... | java android | [1, 4] |
1,496,801 | 1,496,802 | Should one bind data with Eval on aspx or override ItemDataBound in code-behind? | <p>For data bound controls (Repeater, ListView, GridView, etc.), what's the preferred way of binding data?</p>
<p>I've seen it where people use Eval() directly on the aspx/ascx inside the data bound control to pull the data field, but to me, it just seems so...inelegant. It seems particularly inelegant when the data n... | c# asp.net | [0, 9] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.