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,231,817 | 4,231,818 | Display url in text box | <p>I have a textbox as follows:</p>
<pre><code><asp:TextBox runat="server" ID="txtOtherApps" Height="400" Width="400"
TextMode="MultiLine" ontextchanged="txtOtherApps_TextChanged" ></asp:TextBox>
</code></pre>
<p>How to display link in this textbox?</p>
| c# asp.net | [0, 9] |
4,636,686 | 4,636,687 | Bugs with "Pop Images like Google Images" post made earlier | <p>Please check this post:</p>
<p><a href="http://stackoverflow.com/questions/7411393/pop-images-like-google-images#answer-7412302">Pop Images like Google Images</a></p>
<p>I was working with the codes in this post by "Roko", but I am getting a bug in the same. When you arrange the code to display your gallery, all the images of the gallery are arranged nicely but the link added with the image will be same for all.</p>
<p>For example, according to the algorithm below (not using any html or css formatting...) if there are some images in your album is such a order such that</p>
<pre><code>for($i=0;$i<10;$i++)
{
echo "<a href='image_url' >" . "<img src='image_url' />" . "<br/><span> Image Name </span> </a>"
// image_url = next_image_url : I will change the image url for displaying the next url.
}
</code></pre>
<p>But, in this case the text in the <span> gives the correct url where as all the images on the page will give you the url of the first image. Is it a bug or something else. I am using MySql database to fetch the images of the gallery.</p>
| php jquery | [2, 5] |
608,517 | 608,518 | How to set the width of a column using jquery? | <p>How can i set the width of a table column using jquery. The code provided below is not working. Please help.</p>
<pre><code> function addColumn(column)
{
var iHtml;
iHtml = "<tr><td width="30%"><input type='checkbox'> " + column + '</td><td><input type="text" id="aln' + column + '"></td></tr>';
return iHtml
}
</code></pre>
| jquery asp.net | [5, 9] |
3,416,943 | 3,416,944 | set a div image on another div image asp.net | <p>Would it be possible to set a div image over another div image in asp.net?</p>
<p>For example: after having an image A, the user chooses an image B with location 10, 10 then the image B will be placed at location 10, 10 on the image A (not merging). </p>
<p>Or it is required to use jQuery?</p>
<p>Thanks in advance.</p>
| jquery asp.net | [5, 9] |
3,393,592 | 3,393,593 | Using attr on elements created with javascript | <p>If I create a new DOM element with Javascript <code>document.createElement</code>, is there a way to use jquery function attr() to change the element's attribute?</p>
| javascript jquery | [3, 5] |
4,426,331 | 4,426,332 | How to find if all animations have completed | <p>I am trying to create a jquery login box and I want to show one form, only if all other animations are complete.</p>
<p>I understand I can do multiple <code>.is(':animated')</code> checks, but I was wondering, is there a way to select all animated objects and the check if I have selected exactly zero elements?</p>
| javascript jquery | [3, 5] |
4,518,286 | 4,518,287 | How to get path to file using some external file managers apps Android? | <p>Is it possible to get File from sd card, which is picked using some 3rd apps (file manager) ?</p>
<p>I mean that i have activity with button open file and when user press open it shows him suggestions to use some other app to open file, and when he pick open i get back to my activity with path of that file ?</p>
| java android | [1, 4] |
4,512,653 | 4,512,654 | Android Application Development - Problems with camera application | <p>I'm developing a simple application designed to make use of the Camera API and take a photo and then save it. I'm receiving some strange errors at Runtime and get the text "Unfortunately, CameraDemo has stopped."</p>
<p>I got the code from this tutorial: <a href="http://marakana.com/forums/android/examples/39.html" rel="nofollow">http://marakana.com/forums/android/examples/39.html</a></p>
<p>the <code>mHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);</code>is apparently now deprecated. Is there any alternative because I think this is causing the problem.</p>
<p>Here is my logcat error log file as well:</p>
<p><img src="http://i.stack.imgur.com/d6KCZ.jpg" alt="logcat error print"></p>
<p>Anyone have any idea what's wrong?
Thanks,
Dan</p>
| java android | [1, 4] |
502,222 | 502,223 | jQuery: html() not available in event? | <p>Newbie question:</p>
<p>I have a web page with a single p element. I thought I could access the p.html() inside an event, but can't. Is there a way to access the element inside the event as a jQuery element?</p>
<pre><code><script src="Scripts/jquery-1.8.2.js"></script>
$(function () {
$("p").first().bind('click',null, function (event) {
this.innerHTML = "this works";
this.html('this does not');
});
}
);
</code></pre>
| javascript jquery | [3, 5] |
4,451,376 | 4,451,377 | Use form field value as reference to JavaScript variable | <p>I'm trying to use an HTML form field's value to define what variable I use in a JavaScript function. I have a solution but I think there's a more elegant way to do it.</p>
<p>I have two arrays of names, male and female, and my HTML form has a set of two radio buttons for male and female. On submit, I do this:</p>
<pre><code>gender = $("#gender input:checked").val(); //get value of checked button
if (gender == "male" ) {
name = male[Math.floor(Math.random()*male.length)];
} else {
name = female[Math.floor(Math.random()*female.length)];
}
$("#result").html(name);
</code></pre>
<p>My solution is an if-else but I wondered if something can convert the gender value into a reference to the variable of the same name. Then I could replace the if-else with something like this:</p>
<pre><code>name = gender[Math.floor(Math.random()*gender.length)];
</code></pre>
<p>I'd be curious to hear what you think. Thanks!</p>
| javascript jquery | [3, 5] |
17,785 | 17,786 | Android 2.3+ problems with RTSP playback | <p>Currently I working on radio application for Android platform. Everything is working correctly but on Android 2.3+ I cannot play rtsp stream.</p>
<p>I've found that theres is a bug in Android 2.3+ with that: <a href="http://code.google.com/p/android/issues/detail?id=13715" rel="nofollow">http://code.google.com/p/android/issues/detail?id=13715</a></p>
<p>But I need to play this file. Is there any chance to make it work? Maybe it's possible to save some part of stream in temp file and pass this file to mediaplayer? </p>
<p>Please help!</p>
| java android | [1, 4] |
260,087 | 260,088 | jQuery filter and html return strange result | <p>Why the following code not work as expected? (Select all elements before the div with class = clear?)</p>
<p><strong>HTML:</strong></p>
<pre><code><div id="text">
line0
<div>line1</div>
<div>line2</div>
<div class="clear" />
<div>dummy</div>
<p>dummy</p>
</div>
</code></pre>
<p><strong>JS:</strong></p>
<pre><code>var allow = true;
var output = $('#text *').filter(function(index) {
if( $(this).attr("class") == 'clear') {
allow = false;
}
return allow;
}).html().trim();
alert( output );
</code></pre>
<p><strong>Output:</strong></p>
<pre><code>line1
</code></pre>
<p><strong>Expect:</strong>
line0
line1
line2</p>
| javascript jquery | [3, 5] |
5,087,219 | 5,087,220 | Making use of C++ to speed up PHP | <p>I saw this post on Sitepoint quoting a statement by Rasmus Lerdorf which goes (according to Sitepoint) as follows:</p>
<blockquote>
<p>How can you make PHP fast? Well, you can’t" was his quick answer. PHP is simply not fast enough to scale to Yahoo levels. PHP was never meant for those sorts of tasks. "Any script based language is simply not fast enough". To get the speed that is necessary for truly massive web systems you have to use compiled C++ extensions to get true, scaleable architecture. That is what Yahoo does and so do many other PHP heavyweights.</p>
</blockquote>
<p>Intrigued by the statement (not to mention the fact that up to now, all I was doing in PHP was small database-based applications), I was wondering how I could "use compiled C++ extensions" with PHP. </p>
<p>Any ideas or resources?</p>
| php c++ | [2, 6] |
2,981,127 | 2,981,128 | jQuery grep with two arrays? | <p>Is it my syntax, or is what I'm trying to do just completely the wrong way of going about this? </p>
<p>I have two arrays that are populated by whatever attributes the user selects. Then I'm trying to use $.grep() on a json file to select pillows that match their search. So in the example below, I'm trying to find all pillows with a "down" fill and a "low" price.</p>
<pre><code>var activevars = ['fill','price'];
var activeattributes = ['down','low'];
pillowSelection = $.grep(data.pillow, function (a) {
return $.inArray(a[activevars], activeattributes) > -1;
});
</code></pre>
<p>I'm a tenacious Googler, but this has me stumped. Thanks so much in advance for any clues.</p>
| javascript jquery | [3, 5] |
2,299,351 | 2,299,352 | Errors attempting to publish a project from Visual Studio Express 2008 | <p>I am attempting to publish an application to a local intranet site, and am getting the following errors:-</p>
<pre><code>Unable to add 'ControlPanel.aspx' to the Web site. 550 ControlPanel.aspx: Access is denied.
Unable to add 'Default.aspx' to the Web site. 550 Default.aspx: Access is denied.
.
.
.
Unable to add folder 'bin' to the Web site. Cannot create folder "bin".
</code></pre>
<p>but I can connect to the location using ftp and do anything I like, using the same username and password. Does anyone know why this might be?</p>
<p>(Although I have copied the files and the new application runs I suspect doing this has wrecked the licensing of one of the components, so I'd like to be able to try the 'official' way.)</p>
| c# asp.net | [0, 9] |
4,987,483 | 4,987,484 | call jquery fom php script | <pre><code><script type="text/javascript">
<!--//
// on DOM ready
$(document).ready(function (){
$("#current_rev").html("v"+$.jnotify.version);
$("a.example").bind("click", function (e){
// prevent default behavior
e.preventDefault();
var $ex = $($(this).attr("href")), code = $.trim($ex.text());
// execute the sample code
$.globalEval(code);
});
// style switcher
$("button.css_switcher").click(function (){
switchCSS(this.title);
});
});
//-->
</script>
</code></pre>
<p>Instead of using click events like <code><a href="#example-1" class="example">[Run]</a> and <a href="#example-2" class="example">[Run]</a></code></p>
<p>How can I call events if a condition is true or false?</p>
<pre><code><?php
if (true){
<a href="#example-1" class="example">[Run]</a>}else{
<a href="#example-2" class="example">[Run]</a>}
?>
</code></pre>
| php jquery | [2, 5] |
2,583,427 | 2,583,428 | make jquery progress bar on top of article | <p><a href="http://www.newrepublic.com/article/112477/walter-kirns-oscars-misadventure" rel="nofollow">http://www.newrepublic.com/article/112477/walter-kirns-oscars-misadventure</a></p>
<p>New republic have a really cool bar that fills up as you're scrolling an article.</p>
<p>I know how to add classes like -</p>
<pre><code>$(document).scroll(function() {
var scroll = $(window).scrollTop();
if (scroll >= 50) {
$(".logo").addClass("smalllogo");
} else {
$(".logo").removeClass("smalllogo");
}
});
</code></pre>
<p>But how would one make a certain div the variable and then animate a scroll bar depending on how much of that div has been scrolled?
Or am I thinking about this wrong?</p>
<p>How does one make a progress bar that makes a div 0% - 100% width based on the scroll position of a certain div?</p>
| javascript jquery | [3, 5] |
2,212,021 | 2,212,022 | Android Application that makes HTTP calls in multiple Activities does not return data correctly | <p>The app makes calls (utilizing HttpPost) to a PHP files that sends a queries to a MySQL database. The PHP file parses the data into a Java-friendly string statement that can easily be converted to a <code>String[]</code> array (<code>String[] str = data_from_php.split(",");</code>); so the data id formatted like so: "Item 1,Item 2,Item 3".</p>
<p>Multiple Activities run that type of code back-to-back: </p>
<p>(1) Activity 1 will use the <code>String[]</code> array to build a ListActivity, which is working fine. When the user clicks a list item, it pulls the Text from that Object and forwards it to the next Activity (using putExtra).</p>
<p>(2) Activity 2 uses the extra data from A1 in the HttpPost method to get another <code>String[]</code> array to build another ListActivity. Again, the user chooses an item and extra data gets sent to Act 3.</p>
<p>(3) The 3rd Activity in the chain sends the data in the same manner as above, but this Activity display a chunk of data in a TextView.</p>
<p>The issue is that from both Activities that have a List Array, if I choose the LAST item on any list (either Act 1, or 2), the next resulting Activity will return no data.</p>
<p>Has anyone encountered an issue like this? I feel as if I am overlooking something.</p>
| java android | [1, 4] |
4,795,036 | 4,795,037 | How can I figure out where Javascript is changing my focus | <p>I am currently working on an ASP.Net project that has a large number of js files, most from third party sources. On a number of pages, the focus is being set to a control other than the one I'm setting it to in code-behind (Control.Focus()). How can I figure out how, why, and where the focus is being changed?</p>
<p>I have installed <a href="http://www.incaseofstairs.com/firefocus/" rel="nofollow">FireFocus</a> for FireBug so I can see the focus being changed, but I cannot see the cause.</p>
| javascript asp.net | [3, 9] |
540,417 | 540,418 | Find if some of the element's attributes contains specific value | <p>I was thinking if there is a way to find if element's attribute contains a specified value. The attribute is unknown. If I have this HTML:</p>
<pre><code> <input class="first" type="checkbox" data="THE-VALUE" />
<input class="second" type="checkbox" />
<input class="third" type="checkbox" name="THE-VALUE" />
</code></pre>
<p>I want to find all the inputs that has attribute with value <strong>THE-VALUE</strong> (in this case <code>.first</code> and <code>.third</code>). I don't need solution for this case where inputs are 3, but if I have 50 inputs and the attributes containing THE-VALUE are all different. I have tried things like <code>.attr(':contains("THE-VALUE")')</code> and <code>$('input[="THE-VALUE"]')</code>, but by obvious reasons it doesn't work. </p>
<p>So my question is .. is there any way to find that ?</p>
| javascript jquery | [3, 5] |
1,353,981 | 1,353,982 | Calling javascript functions from webview Android | <p>I have a webview and it is loaded with a html file.</p>
<p>Now that I want to call the Javascript function DataInput() from the webview.</p>
<p>Here is my code.But the console returns </p>
<pre><code>E/Web Console(435): Uncaught ReferenceError: DataInput is not defined:1
</code></pre>
<p>Does anybody know why? Thanks!</p>
<pre><code>WebView engine = (WebView) (findViewById(R.id.webView1));
engine.setWebViewClient(new WebViewClient());
engine.setWebChromeClient(new WebChromeClient() {
public boolean onConsoleMessage(ConsoleMessage cm) {
Log.d("MyApplication", cm.message() + " -- From line "
+ cm.lineNumber() + " of "
+ cm.sourceId() );
return true;
}
});
engine.getSettings().setJavaScriptEnabled(true);
engine.getSettings().setPluginsEnabled(true);
engine.loadUrl("file:///" + path);
engine.loadUrl("javascript:DataInput()");
</code></pre>
<p>My html files includes the following code:</p>
<pre><code><script type="text/javascript">
function DataInput( )
{
$( "video" ).each( function(e){this.play();} );
$( "video" ).bind( "ended", function(e){this.play();});
}
</script>
</code></pre>
<p>FURTHER EDIT:::::</p>
<p>I added a button and calls the JS upon onclick and it (kinda) worked... i.e.</p>
<pre><code>public void onClick(View arg0) {
engine.loadUrl("javascript:DataInput()");
}
</code></pre>
<p>How come???? I really really do want to know why..... </p>
<p>P.S. I said (kinda) work because the video did autoplay (due to $( "video" ).each( function(e){this.play();} );) but does not loop ($( "video" ).bind( "ended", function(e){this.play();}); <<< not working)</p>
| javascript android | [3, 4] |
1,791,212 | 1,791,213 | swap two panels in web application | <p>i have 2 panels & i want to swap those 2 panels. how can i do that in web application..?</p>
| c# asp.net | [0, 9] |
1,603,019 | 1,603,020 | for loop inside jquery-ajax function in php | <p>I am doing a rating application in php,here I want to write a for loop inside a jQuery ajax function call.I dont know how the correct syntax.</p>
<p>PHP code I used is</p>
<pre><code>for(i=1;i<=4;i++)
{
<div class="like">
<a href="#" class="like" id="1" name="up"><img src="images/likebig.png"></a>
<a href="#" class="like" id="1" name="down"><img src="images/dislike.png"></a>
<form>
<input type="hidden" id="<?php echo $i; ?>" value="<?php echo $_SESSION['r_id'][$i]?>">
</form>
}
</div>
</code></pre>
<p>The above code gives four results.Here I want to get the value ($_SESSION['r_id'][$i]) of each result on the click of their corresponding click </p>
<p>The jQuery function I used is</p>
<pre><code><script type="text/javascript">
$(document).ready(function()
{
$(".like").click(function(e)
{
e.preventDefault();
var id=$(this).attr("id");
var name=$(this).attr("name");
var fname = $("#fname").val();
var lname = $("#lname").val();
var email = $("#email").val();
for(var i=1;i<=4;i++)
{
var rel[i] = $("#i").val();
}
var dataString = 'id='+ id + '&name='+ name + '&fname='+ fname + '&lname='+ lname + '&email='+ email;
$.ajax
({
type: "POST",
url: "rate.php",
data: dataString,
cache: false,
});
});
});
</script>
</code></pre>
| php jquery | [2, 5] |
4,646,226 | 4,646,227 | How to check if a certain html fragment is already loaded? | <p>Have the following code:</p>
<pre><code> $("#blogs").mouseover(
function () {
$(this).addClass("hover");
$("#home").removeClass("hover");
$("#homepages").removeClass("hover");
$("#apps").removeClass("hover");
$("#facebook").removeClass("hover");
$("#kontakt").removeClass("hover");
$("#content").hide().load("blogs.html", function(){
$("#content").show("slide");
});
});
</code></pre>
<p>Works all fine, but now I would like the load() / show() function only be called if #content does not already contain blogs.html.</p>
<p>In other words: I would like to check if blogs.html is already loaded and if yes, simply do nothing and only if not there yet I would load and show it.</p>
<p>Have tried some things with hasClass() and some if-formulas but struggle to get this check.</p>
<p>Tried stuff like this:</p>
<pre><code>$("#content section").hasClass("check_blog").hide().load("blogs.html", function(){
$("#content").show("slide");
</code></pre>
<p>Basically I just need to know how I can check if blogs.html is already the contents of #content.</p>
<p>Thanks a lot for any help. Regards, Andi </p>
| javascript jquery | [3, 5] |
3,664,293 | 3,664,294 | Getting the text of all inputs in a form using jquery | <p>I am trying to consolidate all inputs on my form into one string, but my code just overwrites the var on each loop leaving me with only the text from the last input on the form... How can I fix this?</p>
<pre><code>$(':input').each(function() {
var output = $(this).val();
$('#output').html(output);
});
</code></pre>
| javascript jquery | [3, 5] |
4,336,432 | 4,336,433 | Wrapping some part of html using jQuery | <p>I've something like:</p>
<pre><code><div class="the_notice">
<span class="time"> | 3:48pm</span>
To <strong>2013-03-16_10-56-33</strong> By <strong>XYX</strong>
</div>
</code></pre>
<p>In a result I want something like:</p>
<pre><code><div class="the_notice">
<span class="time"> | 3:48pm</span>
<div class="wrap">
To <strong>2013-03-16_10-56-33</strong> By <strong>XYX</strong>
</div>
</div>
</code></pre>
<p>How can I achieve this using jQuery? Please help me on that.</p>
| javascript jquery | [3, 5] |
5,557,937 | 5,557,938 | Assign function to variable and pass parameter | <p>I guess this is probably an easy problem, but I cannot figure it out myself (using the wrong search criteria?).</p>
<p>As the title says, I want to assign a function to a variable and pass a variable to that function like this:</p>
<pre><code>function doStuff(control) {
var myObj = {
"smooth": false,
"mouseup": function(value) {
jQuery(_getSelectorStringFromControlId(control.id)).blur();
}
};
}
</code></pre>
<p>Now I want the control.id to be replaced with its actual value before the function is assigned to the <em>mouseup</em> variable.</p>
<p>So when control.id = 'myOwnId' then <code>myObj.mouseup</code> should be:</p>
<pre><code>function(value) {
jQuery(_getSelectorStringFromControlId('myOwnId')).blur();
}
</code></pre>
<p>How can this be accomplished?</p>
| javascript jquery | [3, 5] |
5,517,037 | 5,517,038 | Select not Selected | <p>I have a form with 4 dropdowns on it. The default selected option in all the dropdowns is "Please Select". I want to use Jquery to make sure all dropdowns have a value before the page is submitted, but my code only works on the first one. Does anyone have a way that I can check all of the dropdowns at once?</p>
<pre><code>function doconfirm() {
if ($('select').val() == '') {
alert("Please Select All Fields");
}
}
</code></pre>
<p>I'm sure I am missing something but I cant figure it out.
Thanks</p>
| javascript jquery | [3, 5] |
1,839,543 | 1,839,544 | Page session in php, I want to store the time spent by the user on a particular page...? | <p>Can any one help in storing the time spent by user on a particular page...
This is what I did...
It seams to work but i don't know my my php page is unable to get the data and store in database...
individually while I am calling StoreTime.php?time=23 it is getting the time value and storing the data...</p>
<pre><code><html>
<head>
<title>
Page time
</title>
</head>
<script type="text/javascript">
var time=1;
function timeHere()
{
time = time + 1;
finalTime = time / 10;
document.title = finalTime;
}
function sayTime()
{
finalTime = time / 10;
showTime(finalTime);
alert("U are in this page for " +finalTime+" Sec");
}
function showTime(finalTime)
{
var xmlhttp;
if (window.XMLHttpRequest)
{
// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{
// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
document.getElementById("myDiv").innerHTML=xmlhttp.responseText;
}
}
xmlhttp.open("GET","StoreTime.php?time=" +finalTime,true);
xmlhttp.send();
}
function sendTimeSpent(finalTime)
{
if (window.XMLHttpRequest)
{
xmlhttp=new XMLHttpRequest();
}
else
{
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.open("GET","/Test/Timer/StoreTime.php?time="+finalTime,true);
xmlhttp.send(null);
}
</script>
<body onload='window.setInterval("timeHere()", 100)' onunload="sayTime()">
Close the page to see the time spent on this page...
<div id='myDiv'></div>
</body>
</code></pre>
<p></p>
| php javascript jquery | [2, 3, 5] |
1,867,560 | 1,867,561 | How does downloading game updates works? | <p>Let's say I published a game and after some point of time I wanted to release an all new feature for the game. Of course the app must be able recognize and download the update. How does this work specifically with Google Play apps? Does the app download the entire new version of APK from the market and reinstalls itself? I'm using Java for the development, if this info helps. Any tips you can give me about this topic? </p>
| java android | [1, 4] |
3,525,576 | 3,525,577 | jquery iframe scroll | <p>I have an iframe in my page and i want to create a button that when i press it the page in the iframe scrolls down... </p>
<p>Can anyone help?</p>
| javascript jquery | [3, 5] |
2,049,392 | 2,049,393 | client validation of user control without postback | <p>I have a page with two user controls inside two different ajax updatepanels. One control has textboxes and other control has a button. I have set same validation group to both user control's control's. When I hit the button, client validation fires but there is a potback after validation fires.</p>
<p>I have set validationgroup like this:</p>
<pre><code> public string ValidationGroup
{
get
{
return txtFirstName.ValidationGroup;
}
set
{
txtFirstName.ValidationGroup = value;
txtLastName.ValidationGroup = value;
txtPhoneNumber.ValidationGroup = value;
txtEmail.ValidationGroup = value;
txtFaxNumber.ValidationGroup = value;
txtCompany.ValidationGroup = value;
txtAddress1.ValidationGroup = value;
txtAddress2.ValidationGroup = value;
txtCity.ValidationGroup = value;
txtZipPostalCode.ValidationGroup = value;
}
}
and here is how first control is user with validation group set to that property:
<nopCommerce:AddressEdit ID="ctrlBillingAddress" runat="server" IsNew="true" IsBillingAddress="true"
ValidationGroup="CheckoutConfirm" />
and here is how the control with button looks like:
<nopCommerce:CheckoutConfirm ID="ctrlCheckoutConfirm" runat="server" OnePageCheckout="true"
OnCheckoutStepChanged="ctrlCheckoutConfirm_CheckoutStepChanged" />
where as markup for the button is like this:
<asp:LinkButton runat="server" ID="btnNextStep"
OnClick="btnNextStep_Click" ValidationGroup="CheckoutConfirm" CausesValidation="true"><img src="App_Themes/darkOrange/images/btnPlaceOrder.png" alt="Place Order" /></asp:LinkButton>
</code></pre>
<p>Please suggest how to do client validation without postback ?</p>
| c# asp.net | [0, 9] |
5,455,427 | 5,455,428 | Non-smooth div animation in Firefox | <p>Referring to <a href="http://jsfiddle.net/25EsV/" rel="nofollow">this fiddle</a>. This animation is quite smooth on Chrome and IE (v9), however it is very choppy on Firefox. The whole idea is to animate the border without moving the div itself (referring back to <a href="http://stackoverflow.com/questions/6313847/jquery-animate-border-without-moving-div">this</a> question). Question is, any possible way to achieve the same animation but in a smoother fashion (like that in Chrome/IE) in Firefox? </p>
<p>This is the case even if you animate just one side of the <code>div</code>, so it's not because we are trying to animate every side at once. If we look at <a href="http://jsfiddle.net/c3Fw8/" rel="nofollow">this fiddle</a> in Firefox, it seems that the margins being animated is not too smooth, which seems to be the problem. </p>
<p>Any workout is appreciated.</p>
| javascript jquery | [3, 5] |
1,419,260 | 1,419,261 | Is there any alternative to jQuery .after() function | <p>I am trying to convert my jQuery script into javascript. I have a problem there..</p>
<p>I have a script that creates a node </p>
<pre><code>var new_node = document.createElement("div");
new_node.className="tooltip";
new_node.innerHTML = html;
alert(new_node.className);
</code></pre>
<p>When i do this</p>
<pre><code>jQuery(link).after(new_node);
</code></pre>
<p>It works fine. But I want to do it javascript way. I have tried using appendChild function but it gives some strange results.</p>
<p>Please help me out with this.</p>
| javascript jquery | [3, 5] |
1,858,883 | 1,858,884 | Android Toast.makeText() not showing up | <p>When the user presses a button, I'd like a small <code>Toast.makeText()</code> message show up saying something like <code>Contacting server...</code> while the app gets some information from my web server.</p>
<p>The problem is that Java's HttpClient.Execute() method is synchronous, so it blocks the Toast from showing up until the request has completed.</p>
<p>Is there way to have the Toast show up while the request is being sent?</p>
<p>e.g.</p>
<pre><code>Toast.makeText(myContext, "Contacting server...", Toast.LENGTH_SHORT).show();
String result = WebServer.Contact("www.mywebsite.com"); //A wrapper method
Toast.makeText(myContext, "Result: " + result, Toast.LENGTH_SHORT).show();
</code></pre>
<p>This code simply flashes the first Toast really fast <strong>after</strong> the request completes and then it shows the second Toast.</p>
| java android | [1, 4] |
5,411,538 | 5,411,539 | Check if all checkbox is selected == false in asp.net | <pre><code>foreach(Listitem item in CheckboxList1.Items)
{
if(item.Selected == true)
{
return true;
}
}
return false;
</code></pre>
<p>Is there a better way to check if all checkbox selected is false?</p>
| c# asp.net | [0, 9] |
1,792,789 | 1,792,790 | Narrow down the search result when I start typing | <p>I am looking for Idea here.. I will try coding with your idea and let you know if I ve any issues..</p>
<h2>Issue</h2>
<p>I ve one text box and list of names in the page. When I start typing , I want search result should narrow down. Eg. When I type 'a' in the text box, the results should narrow down and it should contain only name s with 'a.</p>
<p>Please let me know if any methods available in jquery ???</p>
| javascript jquery | [3, 5] |
1,489,804 | 1,489,805 | export as image not working | <p>I am trying to export a chart as image, here is the code</p>
<pre><code>var safedata = '<button id="safedata" type="button" style="margin-left:83.9%; margin-top:-16.4%; width:4%;position: fixed;">Image</button>';
$('#placeholder').append(safedata);
$('#safedata').click(function(){
self.safeDataListener.saveAsPNG($('#placeholder svg')[0].outerHTML);
self.safeDataListener.saveAsPNG($('#placeholder svg')[1].outerHTML);
});
</code></pre>
<p>but when I click the image button it opens a pop up window and displays nothing.</p>
<p>looking for solutions</p>
| javascript jquery | [3, 5] |
108,591 | 108,592 | How can I force text to be vertically centered when the TextView is narrow? | <p>I'm currently using <code>setGravity(Gravity.CENTER_VERTICAL)</code> and this works well when the TextView is tall enough. However, if the TextView is narrow, then only the bottom of the text is clipped; I want the text to be clipped <em>equally</em> from above and below.</p>
| java android | [1, 4] |
1,115,115 | 1,115,116 | jquery getting child element values | <p>This is a dumb question, but im stuck. Why does my first one work but not the other 3. From reading the docs, all 4 should do the job. I want to in a bigger use case get an element of a form, there could be other elements on the same page with same name inside other forms or in other divs, so the 4th option is what I really want to work. But I cant figure out why all these dont work.</p>
<p><a href="http://jsfiddle.net/7vF5z/1/" rel="nofollow">http://jsfiddle.net/7vF5z/1/</a></p>
<p>html:</p>
<pre><code> <form id="filter_form_id" name="filter_form" method="get" action="/retrieved_data_records">
<select id="brand_id" name="brands">
<option value="0"></option>
<option value="143272526">Brand1</option>
<option selected="selected" value="269998788">Brand2</option>
<option value="330516076">Brand3</option>
<option value="330516077">Brand4</option>
</select>
</form>
</code></pre>
<p>js:</p>
<pre><code> alert ("The val: " + $('#brand_id').val() );
alert ("The val: " + $('brands').val() );
alert ("The val: " + $('#filter_form_id brands').val() );
alert ("The val: " + $('#filter_form_id > brands').val() );
</code></pre>
<p></p>
| javascript jquery | [3, 5] |
2,185,376 | 2,185,377 | Converting a popup window uploader to an inline script using jQuery? | <p>I have a few buttons in my script that call window.open('myUploadScript.php?arguments=test...',''). </p>
<p>I'm passing querystring parameters in the arguments() for the target file myUploadScript.php to process.</p>
<p>I'd like to call this script without opening it in a popup. Can I use jQuery for this without having to start from scratch on my popup window script?</p>
<p>In other words, my window.open contains:</p>
<pre><code><input
type="button"
id="myButton"
value="myValue"
onclick="window.open('myUploadScript.php?action=test',
'popup',
'width=330,
height=300,
scrollbars=no,
resizable=no,
toolbar=no,
directories=no,
location=no,
menubar=no,
status=no');
return false"
/>
</code></pre>
<p>Can I instead call a jQuery that loads the contents of myUploadScript.php into a placeholder div, passing it the "test" argument?</p>
| php jquery | [2, 5] |
1,974,739 | 1,974,740 | Not catching SelectedIndexChanged | <p>I have dropdownlist in a GridView (Actually have a bunch) but I am only concerned about one of them. I need to capture when the user makes a new selection to see if they want to add a item into the dropdownlist. Here is my code ..</p>
<p>This never gets called:</p>
<pre><code> protected void DebtorDropDownList_SelectedIndexChanged(object sender, EventArgs e)
{
GridViewRow row = GridView1.Rows[GridView1.EditIndex];
DropDownList list = (DropDownList)row.FindControl("DebtorDropDownList");
string temp = list.SelectedValue;
}
</code></pre>
<p>Here is the ASP code:</p>
<pre><code><ItemTemplate>
<asp:DropDownList ID="DebtorDropDownList" AppendDataBoundItems="true" runat="server"
DataSourceID="SqlDataSource4" DataTextField="FirstName" DataValueField="contactkey"
SelectedIndexChanged="DebtorDropDownList_SelectedIndexChanged" AutoPostBack="True" >
<asp:ListItem Selected="True">Select</asp:ListItem>
<asp:ListItem >Add New Contact</asp:ListItem>
</asp:DropDownList>
<asp:SqlDataSource ID="SqlDataSource4" runat="server"
ConnectionString="<%$ ConnectionStrings:AuditDevConnectionString2 %>"
SelectCommand="sp_fc_vm_getSpokeTo" SelectCommandType="StoredProcedure">
<SelectParameters>
<asp:ControlParameter ControlID="GridView1" DefaultValue="0" Name="DebtorKey"
PropertyName="SelectedValue" Type="Int32" />
</SelectParameters>
</asp:SqlDataSource>
</ItemTemplate>
</code></pre>
<p>What am I missing? Also am using the right code to find the correct control?</p>
| c# asp.net | [0, 9] |
2,836,651 | 2,836,652 | Developing Android Apps with PHP? | <p>I'm looking for a way (platform perhaps) that would let me run my PHP based <br>
application on the Android (with actually being production-ready).</p>
<p>Is there such a thing?</p>
| php android | [2, 4] |
3,870,344 | 3,870,345 | How can i pass a parrameter from Asp to jquery? | <p>i have a Listview with dynamics rows that read them from database.
now i want when mouse is going on one of it's data perform special work on it.(like bellow code)</p>
<pre><code> $(document).ready(function(){
$("*").mouseover(function () {//this line
$("*").animate({ //this line
width: "120px",
height:"120px",
}, 150);
});
</code></pre>
<p>my problem is that what i must write instead <code>*</code>,because their ids a changing dynamically and i can't user from <code>class</code> .
how can i do that?</p>
| jquery asp.net | [5, 9] |
4,637,992 | 4,637,993 | if __name__ == "__main__": equivalent in C# | <p>With python, I can use <code>if __name__ == "__main__":</code> for using the module both as a library and a program. </p>
<ul>
<li>Can I mimic this feature in C#? </li>
</ul>
<p>I see a class in C# can have a 'static void Main()', but I'm not sure if every class can have a Main() without a problem. </p>
<h2>ADDED</h2>
<p>/m:CLASS_NAME is a way to specify the class to run the Main().</p>
| c# python | [0, 7] |
1,759,535 | 1,759,536 | how to refresh the div block in specific time | <p>How can I refresh the div block in specific time so that changes made in database can be seen in browser.So that, I don't have hit <strong>F5</strong> every time to see the changes.</p>
<p>Thanks in advance</p>
| php jquery | [2, 5] |
4,938,902 | 4,938,903 | How to create the below model drop down in asp.net using C# | <p><img src="http://i.stack.imgur.com/IITzS.png" alt="enter image description here"></p>
<p>I am just learning .net and i wonder if it is possible to create drop lists like the one shown above or having a list type item where if + is pressed the item is expanded and when - is pressed again it minimizes.
<img src="http://i.stack.imgur.com/wnN3j.png" alt="
">
Thank you</p>
| c# asp.net | [0, 9] |
4,716,100 | 4,716,101 | drop down box using jquery | <p>I have two drop down boxes.One drop box has values as may the other as 1.Now i change the first drop down value to june but will not change second drop box value.Here it is not passing second drop box because i have initiated using click event.Here i use live(click)but do i do that w/o clicking 2nd drop box that value should also pass</p>
<pre><code> **Updated**
$(firstselect).live(click,function)
$(secondselect).live(click,function)
</code></pre>
| javascript jquery | [3, 5] |
3,422,341 | 3,422,342 | How to change a default Horizontal ProgressBar to vertical? | <p>So far i have a working horizontal progress bar.</p>
<p>This is my xml file</p>
<pre><code><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<ProgressBar
android:id="@+id/progressBar1"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="200dp"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginTop="168dp" />
</code></pre>
<p></p>
<p>I'm going to use it as a visual indicator of a liquid tank.(Progress as level) </p>
<p>I want to know how to set it vertcal. If it is not possible can some one suggest some other option to my problem.</p>
| java android | [1, 4] |
5,184,749 | 5,184,750 | Resources Not Found Exception | <p>I have a variable int nextvalue. This is set via</p>
<pre><code>nextvalue = b.getInt(b.getColumnIndex("nextq"));
</code></pre>
<p>It is definitely being set correctly as a following query relies on this value. The problem is occurring when I am trying something like</p>
<pre><code>text.setText(nextvalue);
</code></pre>
<p>Am I going crazy is there something simple im missing?</p>
| java android | [1, 4] |
5,818,887 | 5,818,888 | Capture Copy/Paste/Select in Javascript | <p>How can i capture the following keys in <code>Textbox</code> using <code>JavaScript</code>?</p>
<p><kbd>Ctl</kbd> + <kbd>a</kbd> </p>
<p><kbd>Ctl</kbd> + <kbd>c</kbd></p>
<p><kbd>Ctl</kbd> + <kbd>v</kbd></p>
<h2>Following is the original Situation.</h2>
<p>I have three <code>Textboxes</code> for Phones numbers. <code>Textbox1</code> max length is 3 , 2nd's is 3 and 3rd is 4. When user types three digits in <code>TextBox1</code> the cursor moves automatically to <code>TextBox2</code> same thing happens with TextBox2 as well as TextBox3. I am handling this functionality in keyup event. Now, I am parallely using your code. But it moves in keyup event as well. This case happens when all TextBoxes are filled. Now suppose I am in TextBox1 and presses Ctl + A . This moves the user to third TextBox(unacceptable case). This is the issue.</p>
| javascript asp.net | [3, 9] |
2,021,435 | 2,021,436 | Can I change a asp control from image handler? | <p>I have an asp page with a button on it that uses an image handler to show a jpg. Can I disable a button on the page from the image handler base on what image is loaded. for example if c:/x.jpg is loaded, disable the button.</p>
<p>Thanks
Charles</p>
| c# asp.net | [0, 9] |
4,290,230 | 4,290,231 | Call Javascript function from within PHP block | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1045845/how-to-call-a-javascript-function-from-php">How to call a JavaScript function from PHP?</a> </p>
</blockquote>
<p>I'm working on a project for school, and I'm struggling with the login page. In my PHP code, if the user enters an incorrect username or password, I want to call a Javascript function that displays a message and briefly changes the background colour where the message is shown. Here are my JS and PHP code blocks:</p>
<pre><code><script>
var flashContent = function () {
document.getElementById("outputlogin").style.backgroundColor = "#ffff00";
document.getElementById("outputlogin").innerHTML = "Incorrect login.";
function proxy() {
updateColor(0);
}
setTimeout(proxy, 50);
}
var updateColor = function (newColor) {
var hexColor = newColor.toString(16);
if (hexColor.length < 2)
hexColor = "0" + hexColor;
var colorString = "#ffff" + hexColor;
document.getElementById("outputlogin").style.backgroundColor = colorString;
function proxy() {
updateColor(newColor);
}
if (newColor < 255) {
newColor = newColor + 5;
setTimeout(proxy, 50);
}
}
</script>
<?php
$username = $_POST['username'];
$password = $_POST['password'];
if(($username == "Ben") && ($password == "thepassword")){
//echo "SUCCESS";
session_start();
$_SESSION['bensedmgallerysesh'] = session_id();
header("Location:../index.php");
}else{
if($username != "" && $password != ""){
javascript:flashContent();
}
}
?>
</code></pre>
<p>Right now, after hitting the login button, I get the error message:</p>
<p>Fatal error: Call to undefined function flashContent()</p>
<p>How do I fix this?</p>
| php javascript | [2, 3] |
4,187,276 | 4,187,277 | Open a pdf after the viewer agrees to a disclaimer using jquery | <p>Before the viewer could see the pdf from a link, he/she has to agree to a disclaimer, that I have created as a pop-up. The pop-up works but the pdf does-not open after that. I think the syntax is wrong, So someone please correct it. Thanks.</p>
<pre><code><script type="text/javascript" src="../../Scripts/jquery.cookie.js" ></script>
<script type="text/javascript">
$(document).ready(function () {
if ($.cookie("Interm") == "1")
{
$('#mask').hide();
$('.window').hide();
$('a[href$="blah blah blah.pdf"]').attr('target', '_blank');
}
else{
//Get the screen height and width
var maskHeight = $(document).height();
var maskWidth = $(document).width();
//Set heigth and width to mask to fill up the whole screen
$('#mask').css({ 'width': maskWidth, 'height': maskHeight });
//Get the window height and width
var winH = $(window).height();
var winW = $(window).width();
//Set the popup window to center
$('#dialog').css('top', winH / 2 - $('#dialog').height() / 2);
$('#dialog').css('left', winW / 2 - $('#dialog').width() / 2);
document.getElementById("dialog").style.display = "block";
$('.window .close').click(function (e)
{
//expires after browser closes
$.cookie("Interm", "1");
e.preventDefault();
$('#mask').hide();
$('.window').hide();
$('a[href$="blah blah blah.pdf"]').attr('target', '_blank');
});
}
});
</code></pre>
<p>
</p>
| javascript jquery | [3, 5] |
381,007 | 381,008 | how to get the value against the value selected in text box? | <p>i want to know that when i select any value from dropdown box it shows it's price in next field
example:
if i select snacks from the dropdown menu then it show its price in next field by fetching its price from database in php
items are also fetched from database
plz help me urgently</p>
<p><img src="http://i.stack.imgur.com/D58EJ.png" alt="Here is how i want when select a particular value"></p>
<p>here is the code for fetching data from db</p>
<pre><code><?php $eb = "SELECT EmployeeID,FirstName,LastName FROM employees"; $res = mysql_query($eb);
$no_records = mysql_num_rows($res);
if($no_records > 0){?>
<select name="EnteredBy" id="EnteredBy">
<?php
while($row = mysql_fetch_array($res)) {
echo '<option value='.$row['EmployeeID'].'>'.$row['LastName'].",".$row['FirstName'].'</option>';
}
}
?>
</select>
</code></pre>
| php javascript | [2, 3] |
1,978,774 | 1,978,775 | Open Elfinder 2.X from input field | <p>In my CMS I used Elfinder 1.X, which was integrated into CKEditor and I could open an other instance by clicking an input as well. Now I updated Elfinder to 2.0 and the input doesn't want to work anymore. </p>
<p>Here's the code I had:</p>
<pre><code>function load_elfinder($id) {
$('<div />').elfinder({
url : 'lib/modules/elfinder/connectors/php/connector.php',
lang : 'hu',
dialog : { width : 900, modal : false },
editorCallback : function(url) {
document.getElementById($id).value = url;
}
})
}
</code></pre>
<p>And then:
$(".news_index").on('click',function(){
load_elfinder('news_index');
});</p>
<p>Now this function doesn't work. With CKEditor it works perfectly. What could be the problem? </p>
| javascript jquery | [3, 5] |
890,753 | 890,754 | Getting the closes element in the form with javascript | <p>I have the following two fields in a form:</p>
<pre><code> <input type="button" value="Rep" id="rep" name="rep" style="width:50px" onclick="addRep()"/>
<input type="hidden" value="<?php echo $comment_id; ?>"/>
</code></pre>
<p>I need to get the value of the hidden field in the form. So I thought to use some function to call the hidden field field next to the button whenever it is triggered.</p>
<p>I need to get that hidden field specifically, that comes after the button pressed.</p>
<p>I cant use methods like getElementByID,,cause I generate many of those hidden fields and buttons with the same id.. (I generate them dynamically with php).</p>
<p>In theory, I think that I could get the context of the button pressed (after trapping its event) and then use some function to find the next element in the form.. </p>
<p>But I am not sure how to do that!</p>
| php javascript | [2, 3] |
5,249,809 | 5,249,810 | Added javascript and now links don't work | <p>I added javascript to detect when a link is clicked, which works properly, however now the links aren't working (ie. they don't take the user to the linked page).</p>
<p>HTML:</p>
<pre><code><div class="designflow" style="padding-left:50px;padding-right:0px;padding-top:0px;padding-bottom:15px;margin-top:0px;float:left; font-size:18px; color: gray; height:150px; width:150px;margin-left:auto;margin-right:auto;display:inline-block;">
<a href = "/manufacturing/" class = "designflow" id = "manufacturing">
<img src="{{STATIC_URL}}pinax/images/manufacturing.png" width = "150px" style=margin-bottom:0px;" alt=""><br>
<p style="position:absolute;bottom:25px;padding-left: 0px; padding-right:0px; width:150px;text-align:center;">Manufacturing</p></a>
</div>
</code></pre>
<p>JQUERY:</p>
<pre><code>jQuery( 'div.designflow a' )
.click(function() {
do_the_click( this.id );
return false;
});
function do_the_click( designstage )
{
alert(designstage);
}
</code></pre>
| javascript jquery | [3, 5] |
1,225,849 | 1,225,850 | using jquery to make ajax call and update element on form submit | <p>Here is my html form</p>
<pre><code> <div id=create>
<form action=index.php method=get id=createform>
<input type=text name=urlbox class=urlbox>
<input type=submit id=createurl class=button value=go>
</form>
</div>
<div id=box>
<input type=text id=generated value="your url will appear here">
</div>
</code></pre>
<p>Here is the javascript im trying to use to accomplish this;</p>
<pre><code>$(function () {
$("#createurl").click(function () {
var urlbox = $(".urlbox").val();
var dataString = 'url=' + urlbox;
if (urlbox == '') {
alert('Must Enter a URL');
}else{
$("#generated").html('one moment...');
$.ajax({
type: "GET",
url: "api-create.php",
data: dataString,
cache: false,
success: function (html) {
$("#generated").prepend(html);
}
});
}return false;
});
});
</code></pre>
<p>when i click the submit button, nothing happens, no errors, and the return data from api-create.php isnt shown.</p>
<p>the idea is that the new data from that php file will replace the value of the textbox in the #box div.</p>
<p>i am using google's jquery, and the php file works when manually doing the get request, so ive narrowed it down to this</p>
| javascript jquery | [3, 5] |
645,300 | 645,301 | Randomly select file from folder in JS without an array | <p>I have this code to randomly grab a file from a folder path, and load it via jQuery:</p>
<pre><code>var path = '/path-to-files/',
files = ['1.php', '2.php', '3.php', '4.php', '5.php', '6.php'],
i = Math.floor(Math.random()*files.length);
var url = (path+files[i]);
$("#my-div").load(url);
</code></pre>
<p>It's great, it works well. But I would prefer a method to randomly grab files from the <code>path</code> without building an array. Is that possible?</p>
| javascript jquery | [3, 5] |
4,168,251 | 4,168,252 | Period (.) in dataset field name - Cannot bind to repeater | <p>I have a dataset that i am binding to a repeater. The <code>GetXML()</code> of the dataset looks like this:</p>
<pre><code><NewDataSet>
<Table1>
<Company.Date>03/22/2009</Company.Date>
</Table1>
</NewDataSet>
</code></pre>
<p>The aspx looks like this:</p>
<pre><code><%# DataBinder.Eval(Container.DataItem, "Company.Date")%>
</code></pre>
<p>When I bind it, I get the error:</p>
<pre><code>System.Data.DataRowView' does not contain a property with the name 'Company'.
</code></pre>
<p>It doesn't seem to like the period. Is there a way to fix this without changing the naming convention?</p>
| c# asp.net | [0, 9] |
4,332,526 | 4,332,527 | redirecting to other page with value in javascript via click | <p>I want to create a Javascript file to do these operations:</p>
<ol>
<li>Pass the current link to the other page</li>
<li>Click on hypertext or image that is created dynamically in JavaScript file to redirect</li>
</ol>
<p>Just I want to have a Javascript link in the html body and not other thing same this :</p>
<pre><code><div>
<script type="text/javascript" src="JScript.js"></script>
</div>
</code></pre>
<p>And in the JavaScript file I have these: </p>
<pre><code>var DivTag = document.createElement("Div");
DivTag.setAttribute('ID', 'MyDivTagID');
$(document).ready(function () {
$("$MyDivTagID").click(function(e) {
window.location = "http://www.MyLink.com/?Url=" + window.location;
});
});
</code></pre>
<p>This is not working. Please help me.</p>
| javascript jquery | [3, 5] |
1,954,097 | 1,954,098 | Android.jar on a server | <p>I'm currently working on a client-server app for android and I'm wondering if it is ok to use the Android.jar library for the server component of my application. Does anyone understand the legalities and technicalities surrounding this?</p>
| java android | [1, 4] |
561,370 | 561,371 | ImageButton Not Visible | <p>Can someone please tell me why my <code>ImageButton</code> is not showing when I use this layout:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/main"
android:orientation="vertical" >
<ImageButton
android:id="@+id/continuebutton"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1.02"
android:background="@android:color/transparent"
android:src="@drawable/continuebutton"
android:visibility="visible" />
</RelativeLayout>
</code></pre>
<p>When I use a <code>LinearLayout</code>, it shows up just fine. Can anyone please clarify what I am doing wrong? </p>
| java android | [1, 4] |
4,950,756 | 4,950,757 | Finding Spaces, Newlines and Tabs with charAt() | <p>I'm trying to check if there is a space, a newline or a tab at the current character location. Spaces work but tabs and newlines dont. Go figure, I'm using escapes for those, and just a regular space for a space... What's the correct way to find these at a location?</p>
<pre><code>if(String.valueOf(txt.charAt(strt)).equals(" ") ||
txt.charAt(strt) == '\r' ||
txt.charAt(strt) == '\n' ||
txt.charAt(strt) == '\t') {
//do stuff
}
</code></pre>
| java android | [1, 4] |
911,374 | 911,375 | Get datetime from given day | <p>user just enter the day of week. For instance user enter friday. I need to find the exact date of given day and format will be like <code>dd.MM.yyyy</code>.
But I don't know how I do it.<br>
Example: </p>
<pre><code>label1 - Friday (entered by user)
label2 - 08.06.2012 (found by system)
</code></pre>
<p><code>label1</code> is just a string (just Friday). It's coming from webservice as a string variable. I need to find the date and compare with today, If it's not equal or small than today I give date of upcoming Friday, else I give the date of the Friday the week after.</p>
| c# asp.net | [0, 9] |
173,443 | 173,444 | Equivalent of MappedBytesBuffer for .NET? | <p>I'm considering porting an application from Java to .NET. This application makes a massive use of the NIO package which is totally non-existing in .NET.</p>
<p>One of the crucial differences, which is difficult to replicate on .NET, is the MappedBytesBuffer, since it is used to access an isolated portion of a file.</p>
<p>Could anyone help me finding out an alternative to replicate the functions? Thank you a lot.</p>
| c# java | [0, 1] |
404,632 | 404,633 | Highlight list of words in the document using jQuery & java | <p>I am using know the following code to highlight specific word in the document </p>
<pre><code><script>
$(document).ready(function(){
$('h1').highlight('word1');
});
</script>
</code></pre>
<p>it works fine just to highlight one word !!</p>
<p>but I have an arrylist in my program which is written in java
ArrayList wordsList ;</p>
<p>I do not know how to make it I wrote the following </p>
<pre><code><script>
$(document).ready(function(){
for (int y=0;y<wordslist.size();y++)
{
$('h1').highlight(wordslist.get(y));
}
});
</script>
</code></pre>
<p>it does not work , this does not highlight the words in the list </p>
| java javascript jquery | [1, 3, 5] |
4,674,008 | 4,674,009 | Repel Objects when mouse is near | <p>I have a bunch of span elements in random positions enclosed inside a parent div called '.background'. These are generated with Javascript. Like this:</p>
<pre><code><span class="circle" style="width: 54px; height: 54px; background: #5061cf; top: 206px; left: 306px"></span>
</code></pre>
<p>I want them to move away (or repel) as the mouse draws near, but I have no idea how to do this! How would I go about accomplishing this in jQuery?</p>
<p>I imagine you'd have to search for spans that were nearby, and then change their position if they were inside a certain radius surrounding the mouse, but I really don't know where to start. Any help is appreciated!</p>
| javascript jquery | [3, 5] |
5,811,546 | 5,811,547 | Securing a WCF ASP.NET web service | <p>I have a asp.net website and I am accessing that web service from my iPhone app to get data.
The WCF web service produces data as JSON.</p>
<p>I want to put some kind of authentication on the WCF. What you you guys recommend?</p>
<p>Thanks </p>
| asp.net iphone | [9, 8] |
2,632,959 | 2,632,960 | jQuery: Why would selector fail? | <pre><code><html>
<head>
<script src="../jquery.js" type="text/javascript"> </script>
<script type="text/javascript">
$(".demo").click(function() {
alert("JavaScript Demo");
});
</script>
</head>
<body>
<p class="demo">a paragraph</p>
</body>
</html>
</code></pre>
<p>Why did not the click function response?</p>
<p>Thanks.</p>
| javascript jquery | [3, 5] |
1,919,333 | 1,919,334 | How to override the default confirm in javascript/jquery | <p>Ok, I'm trying to implement this plugin for a custom confirmation box, but i'm a little lost as far as the return values go. Here's the original:</p>
<pre><code>jQuery("a.confirm").click( function() {
if ( confirm( '<?php _e( 'Are you sure?' ) ?>' ) ) return true; else return false;
});
</code></pre>
<p>and this what I'm trying to implement:</p>
<pre><code>$("a.confirm").click(function(){
var elem = $(this).closest('.item');
$.confirm({
'title' : 'Delete Confirmation',
'message' : 'You are about to delete this item. <br />It cannot be restored at a later time! Continue?',
'buttons' : {
'Yes' : {
'class' : 'blue',
'action': function(){
elem.slideUp();
}
},
'No' : {
'class' : 'gray',
'action': function(){} // Nothing to do in this case. You can as well omit the action property.
}
}
});
</code></pre>
<p>really I just need to get the click event to recognize the second one instead of the first, and return correctly. Right now if you click, i get the original ( browser default) and i get the second afterwards. I think the "if statement" is whats throwing me off.</p>
<p>Any ideas?</p>
| javascript jquery | [3, 5] |
3,365,768 | 3,365,769 | Using jquery and javascript in Wordpress | <p>After trying for many many days without any improvement, I think I have no other choice but to ask for your help.
I have to admit that I don't know much about coding, but I've tried various tutorials, but just can't get to work what I want.</p>
<p>The problem is that I want sidebar tabs using jquery tools as well as creating my own slider (no image slider, but a content slider).
Although I did just as the tutorials say, the text just is displayed normally.
No effect, no slide, no tabs, nothing.</p>
<p>I uploaded the .js files, put the "script" info into the header.php, used the specific style.css, also put that into the header.php and then I tried to put some "divs" to create some content.
For the tabs I used <a href="http://www.elmastudio.de/webdesign/javascript-tab-menus-coole-effekte-fur-deine-sidebar/" rel="nofollow">this tutorial</a>. It's in German, but you can clearly see the steps where it tells you what to paste where. Is there anything missing? I put the "divs" into my home.php. Was that the mistake?</p>
<p>Do I have to put anything in my function.php as well?</p>
<p>I'm missing something, I'm sure of it, but I don't know what it is.
I really hope that somebody can help me out here and give me a short "step-by-step" instruction or something.</p>
<p><a href="http://www.zoomingjapan.com" rel="nofollow">My website</a> for reference.</p>
<p>Sorry for asking a stupid question, but I can't seem to sovle this by myself.</p>
<p>Thanks a lot :)</p>
| jquery javascript | [5, 3] |
3,302,401 | 3,302,402 | how can i set a question mandatory while creating questionnaire using jquery | <p>while checking a checkbox i need to make a question required</p>
Make this a required question
| php jquery | [2, 5] |
549,577 | 549,578 | Need help to form Jquery to slide a table row down if mouse hovers over previous(one up) table row | <p>Only scrolls up on pageload so far and even then the animation is jittery
and ugly. I suspect it's something to do with me wanting to use this on tr element. </p>
<pre><code><table>
<tr class="ItemHeading">
<td>ItemName</td>
</tr>
<tr class="ItemDescription">
<td>
<ul>
<li>Item spec</li>
</ul>
</td>
</tr>
</table>
<script type="text/javascript">
$(".ItemDescription").slideUp(300);
$(".ItemHeading").hover(function () {
$(this).next("tr").slideDown(300);
});
$(".ItemHeading").mouseleave(function () {
$(this).next("tr").slideUp(300);
});
// $(document).ready(function() { $(".ItemDescription").slideUp(300); } );
</script>
</code></pre>
<p>The below works fine, but it doesn't slide the table row up and down, just hides and shows. Provided
I set the .ItemDescription css display property to none.</p>
<pre><code> $('.ItemHeading').hover(function () {
$(this).next("tr").css("display", "block");
$(this).mouseleave(function () { $(".ItemDescription").css("display", "none"); });
});
</code></pre>
| javascript jquery | [3, 5] |
4,781,769 | 4,781,770 | Select HTML content | <p>I need to locate an element and grab an entire block of HTML.</p>
<p>I tried this:</p>
<pre><code>$(this).find('h1').html();
</code></pre>
<p>But only was able to capture the text withing h1 tag... What am I missing?</p>
| javascript jquery | [3, 5] |
5,556,203 | 5,556,204 | Adding an achor to a aspx page and getting the domainname | <p>Hi i am trying to add an anchor that pulls in the domain name and then i can just have whatever after that for example</p>
<pre><code><a href="GET_THE_DOMAIN+/admin/pages/customers/add.aspx">ADD CUSTOMERS</a>
</code></pre>
<p>how can I get the domain without hardcoding it since we will be using the same website but in different domains with different content, in other words the only thing changing is the domain</p>
<p>Thank you</p>
| c# asp.net | [0, 9] |
770,237 | 770,238 | How do I add a css class to an <li> element that contains a given ID using jQuery? | <p>I want to add an active class to the <code><li></code> that an ID is in, for example:</p>
<pre><code><li><a href="" id="foo">text</a></li>
</code></pre>
<p>How can I add a class to the <code><li></code> that <code>#foo</code> is in?</p>
| javascript jquery | [3, 5] |
4,933,570 | 4,933,571 | observable container for C++ | <p>Is there an implementation of container classes for C++ which support notification in a similar way as ObservableCollection for C#? </p>
| c# c++ | [0, 6] |
4,166,930 | 4,166,931 | NullReferenceException - can't figure out why initialized object resets to null | <p>ok, i have the following class in my code behind file. it's a very simple page, just takes the TestIssue object, loads the entry into a text box for editing the entry, and then when save is clicked it calls the function which updates the TestIssue in the database.</p>
<p>here's the code.</p>
<pre><code>public partial class Issues_Edit : System.Web.UI.Page
{
protected string filter_test_director;
protected TestIssue myIssue;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
string id = Request.QueryString["id"];
id = "1358";
myIssue = new TestIssue(Convert.ToInt32(id));
issue_date.Text = myIssue.Entry_Date.ToString();
issue_author.Text = myIssue.Author.Full_Name_RFL;
issue_text.Text = myIssue.Entry.Replace("<br>", "\n");
issue_text.Height = 150;
issue_text.Width = 400;
}
}
protected void SaveButton_Click(object sender, EventArgs e)
{
myIssue.Entry = issue_text.Text;
int update = TestIssueDB.UpdateIssue(myIssue);
if (update == 1)
{
//Response.Redirect("program.aspx?p=" + myIssue.Program_ID);
}
else
{
top_message.Text = "Error Updating Issue Text";
}
}
}
</code></pre>
<p>Right now the problem is that when the Save function is called, it errors out with a nullreferenceexception on the myIssue object. I'm not really sure why this is, because it's the exact same way i am handling other objects on some other pages, with the object declared above the page_load, initialized within the page_load, and then modified in other functions.</p>
<p>any idea why the myIssue object does not exist in that function?</p>
| c# asp.net | [0, 9] |
1,403,751 | 1,403,752 | how to use variable inside .wrap() | <p>This might sound silly but i'm having trouble printing a variable in this code - </p>
<pre><code>var clsuffix = "something";
$("#box").wrap('<div class="boxy" />');
</code></pre>
<p>I want to print the <strong>clsuffix</strong> variable inside the class=" <em>here</em> "
so it could be like </p>
<pre><code><div class="boxysomething">
</code></pre>
<p>But when i use the variable inside class="", it comes up as it is (not being treated as variable)</p>
| javascript jquery | [3, 5] |
4,806,716 | 4,806,717 | Why does Android use Java? | <p>OK, this should really be asked to someone from Google, but I just want other opinion.</p>
<p>Even Android supports Native code applications, the main development tool is Java. But why? I mean, isn't it too slow to interpret code on a mobile device? when introducing Froyo, Google said that new JIT compiler can achieve 2-5 times faster applications. This means, that using Java over native code is 2-x times slower.</p>
<p>Yes, I know that using managed code applications is safer in terms of system stability, since virtual machine has better control of program, but still, this performance drop is huge, and I don´t see any point why to use it. Please tell me some good reason. Thanks.</p>
| java android | [1, 4] |
3,082,659 | 3,082,660 | Find parent() of control, then find("a") JQuery | <p>I have a <code><td></code> that looks something like this:</p>
<pre><code><td class="myTDClass">
<span class="spanClass">Header</span>
<br />
<img class='myImages' style='cursor: hand;' onclick='doSomething(control)' alt='this is my alt Text'></img>
<br />
<span style="color: #123456;">More Text</span>
<br />
<a class='findThisClass'>Insert Alt Text Here</a>
</td>
</code></pre>
<p>This calls some jQuery code that sets the alt tag to some new text. Then, i want it to set the <code><a></code> element to some new text. Here is the jQuery code:</p>
<pre><code>doSomething = function(control)
{
var $myControl = $(control);
$myControl.attr("alt", "This is the new Alt Text!");
var $newControl = $(control).parent().siblings().find(".findThisClass").first();
alert($newControl.find("a").text());
});
</code></pre>
<p>The jQuery code sets the alt tag great, but doesn't find the <code><a class=findThisClass /></code>.</p>
<p>I think I'm using the <code>.parent()</code> and <code>.siblings()</code> wrong. Can anyone find my error? The idea here is that I can search <em>just</em> inside the <code><td></code> for the <code><a></code> element, and not touch the other elements in other <code><td></code>s</p>
| javascript jquery | [3, 5] |
4,335,147 | 4,335,148 | Block Chrome Sniffer | <p><a href="https://chrome.google.com/webstore/detail/homgcnaoacgigpkkljjjekpignblkeae" rel="nofollow">Chrome Sniffer</a> is an extension for Chrome browser that detects web applications and javascript libraries run on browsing website.</p>
<p>I need a way to hide some libraries I use from it.
For example for stack overflow it shows:</p>
<p><img src="http://i.stack.imgur.com/vIap1.png" alt="stack overflow"></p>
| javascript jquery | [3, 5] |
2,214,331 | 2,214,332 | How to navigate to another screen using a TextView link - Android | <p>I followed the instructions in the following post to make active links in a textview:</p>
<p><a href="http://stackoverflow.com/questions/2734270/how-do-i-make-links-in-a-textview-clickable">How do I make links in a TextView clickable?</a></p>
<p>What I'd like to figure it out is if there's a way to alter the "a href" in the string resource to link to another screen in my app, rather than a website. I have a number of links in a single block of text, and each one should link to a different screen in the app. I can't find this information anywhere.</p>
<p>Thanks.</p>
| java android | [1, 4] |
4,179,558 | 4,179,559 | Generating a unique random number | <p>I am entering student id as a randon number into the DB </p>
<pre><code> int num = r.Next(1000);
Session["number"] = "SN" + (" ") + num.ToString();
</code></pre>
<p>But is there any chance of getting a duplicate number?How can i avoid this?</p>
<p>EDIT :: I have a identity column and the student id is separate from the ID,i am going to enter a random student id into the DB from UI. </p>
| c# asp.net | [0, 9] |
1,353,559 | 1,353,560 | User control "ascx" file with C# | <p>I have a user control, basically consists of a tree view and also a drop down list..
The user control shows something like</p>
<p>(For the tree view)</p>
<pre><code> Books
Learn Algebra in 24hrs (30)
Learn Calculus in 1 week (16)
</code></pre>
<p>(For the Drop Down)</p>
<pre><code>--- Books ----
Learn Algebra in 24hrs (30)
Learn Calculus in 1 week (16)
</code></pre>
<p>the designer wants to be able to set a property to "true" or "false" in the ascx file that will hide the count on the right (if true shows, if false hides). The count comes from a database along with the product name.</p>
<p>How can I achieve this?, the do not want to deal with C#, but want to be able to deal with the "ascx" file.</p>
<p>Thank you in advance</p>
| c# asp.net | [0, 9] |
5,719,345 | 5,719,346 | how to remove attributes from dynamic generated elements | <p>first this is the picture , the calender is generated using a cms and every element has an onclick event</p>
<p><img src="http://i.stack.imgur.com/sEVrU.jpg" alt="enter image description here"></p>
<p>The <strong>back</strong> and <strong>forward</strong> buttons when clicked will make a new ajax request and returns a new set of elements with their <strong><em>onclick</em></strong> event</p>
<p>i want to attach my own event handler on all the elements so i use the <strong>jquery</strong> <em><strong>delegate</em></strong> method on the table and select all the <strong>anchors</strong> </p>
<p>the problem is the 2 events fires at the same time so i want to negative the onclick event and fire only my version by removing the <strong><em>onclick</em></strong> <strong>attribute</strong></p>
<hr>
<p>the element being generated by the cms :</p>
<pre><code><a class="elem" href="..." onclick="function()">text</a>
</code></pre>
<p>my version of the delegate method to select all the elements</p>
<pre><code>$("table").delegate(".elem","click", function() {
//DO SOMETHING
});
</code></pre>
| javascript jquery | [3, 5] |
1,691,871 | 1,691,872 | Changing the value of embed src using jquery | <p>I have the following scenario..</p>
<p>When the user visit my website I show the user some audio files from the server. When the user clicks on one link, then the jquery function is eventually executed and change the source of the embedded object to selected file.</p>
<p>The codes are given in this <a href="http://stackoverflow.com/questions/14955301/how-to-change-object-embed-source-via-jquery">link</a>.
I got some answers for this question but the problem isn't solved.</p>
<p>What happening for me is, When I click on the link. The song plays in new page. I need to play the song with embedded object inside the <code>div</code>.</p>
| javascript jquery | [3, 5] |
1,095,610 | 1,095,611 | Getting started with mobile programming. What is a good platform? | <p>What is a good mobile programming platform to go with for a c++ developer? </p>
<p>Is learning android a good option?</p>
| java android c++ iphone | [1, 4, 6, 8] |
1,288,163 | 1,288,164 | simple dialog box with datepicker | <p>I have a jquery simple dialog box which works great but one of the text fields I have within the simple dialog box cannot see the datepicker plugin?</p>
<p>Thanks for any help!</p>
<pre><code> <div style="display:none;" id="simpleDialog1">
<form>
<fieldset>
<legend>Legend Name</legend>
<label for="DateCreated">Date:</label>
<input type="text" name="DateCreated" class="datepicker" />
<label for="Status">Status:</label>
<input type="text" name="Status" />
<label for="RequestedBy">Requested By:</label>
<input type="text" name="name" />
<label for="AssignedTo">Assigned To:</label>
<input type="text" name="AssignedTo" />
<label for="Description">Description</label>
<input type="text" name="Description" />
<br>
<input type="submit" name="submit" />
</fieldset>
</form>
</div>
$(document).ready(function () {
$('#sdHc1').simpleDialog({
opacity: 0.3,
duration: 500,
title: 'Add Ticket',
open: function (event) {
console.log('open!');
},
close: function (event, target) {
console.log('close!');
}
});
$('.datepicker').datepicker();
});
</code></pre>
<p>I tried using the datepicker outwith the dialog box and it works perfectly?</p>
<p>Thanks guys!</p>
| javascript jquery | [3, 5] |
4,702,740 | 4,702,741 | How to open and close a popup window after it's completely loaded (in a loop)? | <p>i have something like this for my own little bookmarklet:</p>
<pre><code>jQuery('#fire').click(function() {
for (counter=0; counter<links; counter++) {
var currentLink = jQuery('body').find('.imageWrap:eq('+counter+')').attr("href");
var newWindow = window.open(currentLink);
/* and here close the popup when the site is completely loaded */
}
});
</code></pre>
<p>can anyone help me out?</p>
| javascript jquery | [3, 5] |
996,507 | 996,508 | .net 2.0 winform control in asp.net | <p>I want to use .net winform control in asp.net.I wrote the control and displays in asp.net.Is it necessary I have to create a package and deploy in client machine? or since .net framework available in client machine without package it will work.</p>
| c# javascript asp.net | [0, 3, 9] |
2,871,713 | 2,871,714 | How can access property of .aspx in the user control? | <p>I have an .aspx page in which I have a property. Now i create a user control and drop it on the page. Now how can i access that property in code behind of usercontrol. </p>
| c# asp.net | [0, 9] |
2,137,077 | 2,137,078 | Directory Browser in asp.net | <p>I am using Directory Browser used in <a href="http://www.codeproject.com/KB/aspnet/DirectoryBrowsing.aspx" rel="nofollow">http://www.codeproject.com/KB/aspnet/DirectoryBrowsing.aspx</a> . When I am running the application on localhost, UNC path is working fine. When I deploy the application in IIS UNC(Shared drives/Folders) is not working. It cannot find the Shared Drive and folders? </p>
<p>Any ideas?</p>
| c# javascript asp.net | [0, 3, 9] |
3,238,755 | 3,238,756 | return null in ajax | <p>i have this code:</p>
<pre><code><script type="text/javascript">
$(document).ready(function() {
function doAjax(url) {
$("#customForm").submit(function() {
var formdata = $("#customForm").serializeArray();
$.ajax({
url: url,
type: "post",
dataType: "json",
data: formdata,
success: function(data) {
switch (data.livre) {
case 'tituloLivre':
$("#msgbox2").fadeTo(200, 0.1, function() {
$(this).html('error').fadeTo(900, 1);
});
break;
default:
$("#msgbox2").fadeTo(200, 0.1, function() {
$(this).html('success!').fadeTo(900, 1, function() {
$('#conteudo').load('test.php'); // show NULL and must be programmer
});
});
break;
}
}
});
return false;
});
}
doAjax('sent.php');
doAjax('dojo/test.php');
});
</script>
</code></pre>
<p>test.php</p>
<pre><code><?php
include ('includesMy.php');
$form = $_POST['item'];
$oferta = $form['oferta'];
var_dump($oferta);
?>
</code></pre>
<p>what is sent:</p>
<pre><code>item[oferta] programmer
</code></pre>
<p><strong>The question is: why i get null value instead of programmer word ?</strong></p>
<p>POST test.php - returns programmer, but GET test.php returns null. Basically the load (test.php) is retrieved without ajax influence.</p>
| php javascript jquery | [2, 3, 5] |
4,994,543 | 4,994,544 | Javascript function not being found when Button is clicked to invoke it | <p>I have defined my OpenWin() function to handle opening the new window and pass params to it but when I compile it it says it is not defined.</p>
<pre><code>> <script type="text/javascript">
> function OpenWin()
> {
> var
>
> Parms = document.getElementById('PassParmString').value;
>
>
> window.open("ViewerPane.aspx?prm=" + Parms,"_blank","left=20,top=20,width=1000,height=1140,toolbar=0,resizable=1")
> }
> </script>
</code></pre>
<p>And further down is the button script ...</p>
<pre><code>> <asp:Button ID="btnAuthenticate" OnClick="OpenWin()" runat="server" Height="44px" Style="z-index: 108;
> left: 716px; position: absolute; top: 243px" Text="Authenticate" Width="97px" />
</code></pre>
<p>Message:...</p>
<blockquote>
<p>Description: An error occurred during the compilation of a resource
required to service this request. Please review the following specific
error details and modify your source code appropriately. </p>
<p>Compiler Error Message: BC30456: 'OpenWin' is not a member of
'ASP.default_aspx'.</p>
<p>Source Error:</p>
<p>Line 38:
top: 243px" Text="UserName :"> Line 40:<br>
Line 42:
<p>Source File: C:\projects\Centauri_0.01\ASPXRPT\Default.aspx Line:
40</p>
</blockquote>
| javascript asp.net | [3, 9] |
5,866,852 | 5,866,853 | session in asp.net C# | <p>basically i have 3 pages, log in page, main page and registration page.</p>
<p>My users have 2 access level, admin and User.</p>
<p>Admin can go to registration apge, User can't.</p>
<p>On log in page, there are 2 session, Name and Role.</p>
<p>on page load, I clear both session.</p>
<p>If log in is succeeded, I filled in the values.</p>
<p>My problem is..</p>
<p>I log in as Admin, Session["Name"]="admin"; Session["Role"]="Admin";</p>
<p>I go to main page, then to registration page with hyper link. (enable only for admin)</p>
<p>On registration pageload, I check the role. If it is not access, I redirect to main page.</p>
<p>Every page has logged out hyper link.</p>
<p>I will redirect that link to log in page.</p>
<p>As I clear the session values at the loading of log in page, they are all clear.</p>
<p>When I get to Admin page, I copy the URL.</p>
<p>I log out and log in as someone else with User access.</p>
<p>I go to Main page.</p>
<p>I can't go to registraion page as the hyper link is disable.</p>
<p>But when I paste the URL, it can go to registration page.</p>
<p>Only when I click something, it will redirect to main page as the page_load function is not run at the first time.</p>
<p>Any idea?</p>
| c# asp.net | [0, 9] |
2,522,260 | 2,522,261 | How to add caption and sum a column? | <p>i want give caption DATE,PRICE1, PRICE2 and i also show sum of price1, price2 in the footer. how can i do this? </p>
<pre><code><asp:Repeater ID="rptCari" runat="server">
<ItemTemplate>
<div>
<tr>
<td>
<asp:Label runat="server" ID="lblBelgeTarihi"><%#(Eval("DATE","{0:d}"))%></asp:Label>
</td>
<td>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</td>
<td>
<asp:Label runat="server" ID="lblAlacakTutar"><%#ValidationHelper.FormatPrice(ValidationHelper.GetDecimal(Eval("PRICE1"), 0))%></asp:Label>
</td>
<td>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
</td>
<td>
<asp:Label runat="server" ID="lblBorcTutar"><%#ValidationHelper.FormatPrice(ValidationHelper.GetDecimal(Eval("PRICE2"), 0))%></asp:Label>
</td>
</tr>
</div>
</ItemTemplate>
</asp:Repeater>
</code></pre>
| c# asp.net | [0, 9] |
5,867,831 | 5,867,832 | How can i pass $.ajax object to another function? | <p>This function will be using in general ajax calss:</p>
<pre><code>function f_AjaxFunction(_param) {
var objectWillReturn;
$.ajax({
type: "POST",
contentType: "application/json; charset=utf-8",
url: 'WS/wsGenral.asmx/f_QueryAndGetResultAsJson',
data: "{_sParam:'" + _param + "'}",
dataType: "json",
success: function(data) {
var txt = "";
try {
objectWillReturn = data;
}
catch (err) {
alert(err.description);
}
}
});
return objectWillReturn ;
}
</code></pre>
<p>This function is calling the other function which is above:</p>
<pre><code> function f_HavaDurumu(_paramm) {
var obj;
obj = f_AjaxFunction(_paramm);
$("#spanShow").html(obj.d);
}
</code></pre>
| javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.