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 |
|---|---|---|---|---|---|
3,258,855
| 3,258,856
|
ASP.Net: Page_Load() being called multiple times
|
<p>I don't know alot about ASP.Net but I'm trying to make a new control for a message box. You enter some info and press a button.</p>
<p>However, for some bizarre reason when the button is pressed, Page_Load() gets called a second time, and all of the member variables are reset to null! I need those variables, and Page_Load() has not reason to be called a second time! Of course the callstack is useless.</p>
|
c# asp.net
|
[0, 9]
|
3,665,665
| 3,665,666
|
Efficient way of hiding elements with certain classes $.each, for, etc
|
<p>I have an array populated with classes. I need to loop across this array and hide any elements with that particular class.</p>
<pre><code>// Array of classes
// hide.length ~ 100
</code></pre>
<p>This is my current implemntation:</p>
<pre><code>// Hide all elements with these class names
$.each(hide, function(key, filter_class){
$('li.'+filter_class, '.result_row_items').hide();
});
</code></pre>
<p>I believe this would be a more efficient (performance wise) way:</p>
<pre><code>for(i=0;i<hide.length;i++){
$('li.'+hide[i], '.result_row_items').hide();
}
</code></pre>
<p>Would this be even better?</p>
<pre><code>// Create string of class names
var classes = '';
for(i=0;i<hide.length;i++){
classes += 'li.'+ hide[i] + ', '
}
// Remove trailing comma and space
classes = classes.substring(0, classes.length - 2);
$(classes, '.result_row_items').hide();
</code></pre>
|
javascript jquery
|
[3, 5]
|
2,008,758
| 2,008,759
|
Invalid Argument javascript error only on certain computers
|
<p>Getting an error whenever we click a particular button/link on our site. It is generating a javascript "Invalid Argument" error. I know in the other posts it is typically because it is a syntax error in the javascript however it only just seems to have started happening and it doesn't happen on all pcs.</p>
<p>ie. in our client's environment if I remote onto their web server and view the uat website I get the javascript error. If I remote onto their sql server and view the uat website I don't get the javascript error. If it was a syntax error then I would always get the error wouldn't I?</p>
<p>both browsers are the same version of IE6 (yeah I know...) :) I have tried deleting temporary internet files - including viewing the files and deleting them myself - but no joy.</p>
<p>client uses citrix.. and they're all getting the error :( </p>
<p>Any ideas would be appreciated - Thanks! :)</p>
<p><strong>Update</strong> - Sorry I haven't posted specific code as there is too much to post (and I'm not sure where the error is occurring). The "button" launches a new window which in turn opens up a couple of aspx pages and calls lots of javascript. So the window opens ok, and there's a function that gets called to resize the window - but before it calls the resizing of the window/content it throws the invalid argument error. Am busy trying to get alerts to trigger to see if I can see where it's falling over but so far no luck.</p>
<p>Again not sure why this error doesn't occur when I use a particular PC (same browser version)</p>
|
javascript asp.net
|
[3, 9]
|
5,935,303
| 5,935,304
|
reference an array from using an object name
|
<p>Lets say I have a function <code>foo(bar){}</code> and the parameter <code>bar</code> accepts a jQuery object. Lets say I pass in <code>bubbleOne</code> as the parameter. </p>
<p>Additionally I have an array called <code>bubbleOneDetails[]</code> that holds a lot of information about the <code>bubbleOne</code> object.</p>
<p>How can I "reference" the array <code>bubbleOneDetails[]</code> only using my jQuery object <code>bubbleOne</code> ?</p>
<p>basically I need something like "bubbleOne"+"Details"<a href="http://jsfiddle.net/77S98/3/" rel="nofollow">1</a>;</p>
<hr>
<p><strong>EDIT:</strong></p>
<p>I have <code>function doAnimations(bubbleObject)</code></p>
<p>I pass in <code>leftBubble</code> where <code>leftBubble = $('#leftBubble')</code></p>
<p>I also have <code>leftBubblePrams = ["115px", "111px", "0px", "0px", "0.0", "37px"]</code></p>
<p>I need to be able to do something like this</p>
<pre><code>bubbleObject.animate({margin-top:'bubbleObject.Prams[0]'});
</code></pre>
<p><a href="http://jsfiddle.net/77S98/3/" rel="nofollow">Fiddle</a></p>
|
javascript jquery
|
[3, 5]
|
5,629,141
| 5,629,142
|
how can i extract text after hash # in the href part from a tag?
|
<p>I have following a tags:</p>
<pre><code><a href="#tab1">Any tab1 Label</a>
<a href="#tab2">tab2 Label</a>
<a href="#tab3">Any tab3 Label</a>
<script>
function tellMyName()
{
alert(this.href);
}
</script>
</code></pre>
<p>Now i want to bind the tellMyName function to all the a tags and get <strong>tab1</strong> if <strong>Any tab1 Label</strong> is clicked, <strong>tab2</strong> if <strong>tab2 Label</strong> is clicked and so on...</p>
|
javascript jquery
|
[3, 5]
|
3,967,296
| 3,967,297
|
Prevent back button after logout
|
<p>I don't want the user to go back to secured pages by clicking back button after logging out. In my logout code, I am unsetting the sessions and redirecting to login page.But, I think the browser is caching the page so it becomes visible despite the session being destroyed from logout.</p>
<p>I am able to avoid this by not allowing the browser to cache</p>
<p><code>header("Cache-Control", "no-cache, no-store, must-revalidate")</code></p>
<p>But this way I am loosing the advantage of Browser Caching.</p>
<p>Please suggest a better way of achieving this. It feel, there must be a way of handling this by javascript client side</p>
|
php javascript jquery
|
[2, 3, 5]
|
800,034
| 800,035
|
Restart the service when phone restarts in android
|
<p>hai i want to restart my service when phone restarts...</p>
<p>how to go with ...</p>
<p>iam using this for start the service</p>
<pre><code>Intent a = new Intent();
a.setAction("com.service.Service");
startService(a);
</code></pre>
|
java android
|
[1, 4]
|
4,532,114
| 4,532,115
|
JQuery Post don't work json data type
|
<p>i have this code in javascript:</p>
<pre><code>$.post('AccessDB.php', {add:add, seriesid:seriesid, lang:lang}, function(data) {
alert(data);
if (data.returned == "Verified"){
notification('Success notification');
} else if (data.returned == "NotVerified") {
notification('Oh noes! Something went wrong', true);
}
}, "json");
</code></pre>
<p>that I call when I press a button, and then in the <code>AccessDB.php</code> I do this to return the value:</p>
<pre><code>echo json_encode(array('returned' => 'Error'));
</code></pre>
<p>but the alert that return from javascript is this:</p>
<pre><code>[object Object]
</code></pre>
<p>and is not the value Error, instead if I delete the <code>"json"</code> from javascript the value in the alert is: </p>
<pre><code>{"returned":"Error"}
</code></pre>
<p>but I can't handle this value because I delete the json datatype, anyone can tell me how I can fix it?</p>
|
php javascript jquery
|
[2, 3, 5]
|
2,403,787
| 2,403,788
|
encrypting jquery .load() function
|
<p>I'm calling a php page using .load()</p>
<p><code>.load('page.php?user='+user+'&page='+page)</code></p>
<p>if you go to the actual page.php and type <code>page.php?user=1&page=2</code>
you get the same result, how could I stop this from happening?
encrypting data maybe?</p>
<p>Could someone point me in the right direction, cheers.</p>
<p>@lonesomeday,</p>
<p>this answer works for me, yours was correct though:</p>
<p><code>if(isset($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest') { it's an ajax request validate id and continue! } else { this is not an ajax request, get out of here! }</code> </p>
<p>submitted by "ifaour"</p>
|
php jquery
|
[2, 5]
|
2,977,707
| 2,977,708
|
Problems with FadeIn and FadeOut images
|
<p>I have a fade script, but the images ar not fading nicely.
First of all the first image fade out and than the next image fade in. Between the fading you see nothing. I want that the images fade-out and fade-in at the same time.</p>
<p>Does anybody knows how to fix it?
I think i have to edit some lines below.</p>
<pre><code>for (var i = 0; i < slider.num; i++) {
if(i == slider.cur || i == pos) continue;
jQuery('#' + d[i].id).hide();
}
if(slider.cur != -1){
jQuery('#' + d[slider.cur].id).stop(false,true);
jQuery('#' + d[slider.cur].id).fadeOut(slider.fade_speed ,function(){
jQuery('#' + d[pos].id).fadeIn(slider.fade_speed);
});
}
else
{
jQuery('#' + d[pos].id).fadeIn(slider.fade_speed);
}
</code></pre>
|
javascript jquery
|
[3, 5]
|
5,994,867
| 5,994,868
|
jQuery Validation, Numeric Value Only
|
<p>I'm trying to validate a form input value. The function below states is the value of the input is a number below 150, show error. Works as it should. However, I want to add to it. If the value contains ANYTHING other than a numeric value AND/OR is a value under 150, show error...</p>
<p>How can I modify?</p>
<pre><code>if ($('.billboard-height').val() < 150) {
$('.sb-billboardalert').fadeIn(600);
}
</code></pre>
|
javascript jquery
|
[3, 5]
|
5,458,043
| 5,458,044
|
text font resize
|
<p>I'm having trouble to get a font increase/decrease jquery function done. It has 3 sizes: large, medium (default one) and small. Issue here is theres no "reset" button as it on many examples on the web, instead just two buttons to increase or decrease the font size.</p>
<p>The problem came up when I change to larger font and I want to drecrease to the middle one. It doesnt go back to middle, it changes to the smaller value or backwards (smaller to larger). Is there any way to accomplish this? I'll appreciate any help you can give me, thanks </p>
|
javascript jquery
|
[3, 5]
|
5,454,161
| 5,454,162
|
Newly appended objects don't respond to jQuery events from page load
|
<p>I am using Backbone here, but I've also experienced this issue with non-Backbone sites as well.</p>
<p>Essentially, my issue is that I define in one javascript file, base.js, a number of 'global' jquery functions. Then, I load new elements and append them to the page using Backbone, AJAX, or whichever asynchronous call you like. This works great, except the new objects don't seem to be linked to the jQuery events I declared on pageload. (Sorry for the layman language here - often I am a newbie at proper wording)</p>
<p>For example, let's say I declare in a js file loaded on pageload:</p>
<pre><code> $('.element').hover(function(){alert('hi world')});
</code></pre>
<p>But then I append a new element after pageload, then this hover won't work.</p>
<p>Can anyone explain:</p>
<ol>
<li>Why this is?</li>
<li>Whether I can force a new appended element to work with/listen to current events already declared?</li>
</ol>
<p>I suspect (2) may not be possible (that I have to rewrite the events after appending), but am interested to know if there is some sort of solution.</p>
|
javascript jquery
|
[3, 5]
|
3,150,341
| 3,150,342
|
Android app crashing at starup
|
<p>I have written a quick android add to display the SSID of the wifi network connected to along with the device ip address. the code is: </p>
<pre><code>public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
Context context = getApplicationContext();
WifiManager wifi_man = (WifiManager)context.getSystemService(Context.WIFI_SERVICE);
if(wifi_man.isWifiEnabled()==true)
{
System.out.println("inwifi");
WifiInfo wifi_info = wifi_man.getConnectionInfo();
String ssid_name = wifi_info.getSSID();
TextView temp = (TextView)findViewById(R.id.widget40);
CharSequence sentence = "SSID NAME : "+ssid_name;
temp.setText(sentence);
int temp2 = wifi_info.getIpAddress();
String ip_addr = Formatter.formatIpAddress(temp2);
temp = (TextView)findViewById(R.id.widget41);
CharSequence sent = "IP ADDRESS : "+ip_addr;
temp.setText(sent);
}
}
</code></pre>
<p>however the app process crashes as soon as it starts ... any idea why. also i am confused as to the entry point into my code. do i just put my apps code at the end of the onCreate process?</p>
|
java android
|
[1, 4]
|
891,117
| 891,118
|
Does jquery makes the browser slow?
|
<p>I'm using jQuery in my web page. Will this make the web page to load contents slow?</p>
<p>Using jQuery is advantage than JavaScript or not why?...</p>
|
javascript jquery
|
[3, 5]
|
315,521
| 315,522
|
sort date fields to obtain earliest date
|
<p>in my database , dates are stored in DD-mm-yyyy format , how can i sort this to obtain the earliest date ? </p>
<pre><code>Cursor c = myDb.query(TABLE, new String[]{"dob"}, null, null, null, null, "dob");
</code></pre>
<p>I have selected it to order by dob field but its not ordered ...
This is the output for the above query</p>
<pre><code>01-03 17:14:51.595: VERBOSE/ORDER DOB(1431): 01-11-1977
01-03 17:14:51.595: VERBOSE/ORDER DOB(1431): 01-12-1988
01-03 17:14:51.614: VERBOSE/ORDER DOB(1431): 15-01-1977
01-03 17:14:51.656: VERBOSE/ORDER DOB(1431): 31-01-1988
</code></pre>
|
java android
|
[1, 4]
|
5,356,679
| 5,356,680
|
modify div style on .toggle - jquery
|
<p>I have an image with id <code>mainimage</code>. It has a styling to limit width and height by setting <code>max-width:100%</code> and <code>max-height:100%</code>. But I want to remove it on the first instance of my script</p>
<pre><code>$(document).ready( function() {
var hjkl = $("#mainimage").height();
var hjklw = $("#mainimage").width();
$('#logo').toggle(
function() {
$('#mainimage').animate({"width": 1600, "height": 1200}, "fast");
}, function() {
$('#mainimage').animate({"width": hjklw, "height": hjkl}, "fast");
})
});
</code></pre>
<p>How can i do this??</p>
<p>Thanks in advance...<code>:)</code></p>
<p>blasteralfred</p>
|
javascript jquery
|
[3, 5]
|
1,864,046
| 1,864,047
|
Including PHP variables in an external JS file?
|
<p>I have a few lines of jQuery in my web application. This code is inline at the moment because it accepts a couple of PHP variables.</p>
<pre><code><script type="text/javascript">
$(document).ready(function(){
$('.post<?php echo $post->id; ?>').click(function() {
$.ajax({
type: 'POST',
url: 'http://domain.com/ajax/add_love',
data: {
post_id: <?php echo $post->id; ?>,
user_id: <?php echo $active_user->id; ?>,
<?php echo $token; ?>: '<?php echo $hash; ?>'
},
dataType: 'json',
success: function(response) {
$('.post<?php echo $post->id; ?>').html(response.total_loves).toggleClass('loved');
}
});
return false;
});
});
</script>
</code></pre>
<p>I'm a big fan of best practices though, so I would like to move my jQuery into an external JS file.</p>
<p>How could I achieve such a feat?</p>
<p>Any tips? I'm still relatively new to jQuery and PHP.</p>
<p>Thanks!</p>
<p>:)</p>
|
php javascript jquery
|
[2, 3, 5]
|
4,222,510
| 4,222,511
|
how to access HttpContext.Current.Application
|
<p>Hello i have problem accessing HttpContext.Current.Application From global.asax its seems to be null every time i try to access it.
How can i to this?</p>
<pre><code>HttpContext.Current.Application.Lock();
HttpContext.Current.Application["Actions"] = "hello";
HttpContext.Current.Application.UnLock();
</code></pre>
<p>Thanks</p>
|
c# asp.net
|
[0, 9]
|
2,718,885
| 2,718,886
|
Show Progress Bar And disable all contents of the page until page loads
|
<p>I have lots of ASP.NET Pages in which all the contents of the page has been placed inside Content Panel on each page..They takes some time to load fully when requested. Now I want to show a GIF image and that Page remains un-editable until it loads Fully using JQuery.. Please don't give examples using div tag as I m dealing with content panel. Any Ideas??</p>
|
jquery asp.net
|
[5, 9]
|
2,584,960
| 2,584,961
|
How do you recursively remove nested objects that contain an empty array?
|
<p>I initially receive an AJAX response of <code>{"B":{"1":"100","3":{"AA":256}},"A":100}</code> and converted to a javascript object:</p>
<pre><code>var jsonOBJ = {};
jsonOBJ = jQuery.parseJSON(data);
</code></pre>
<p>Future responses can be subsets or supersets of the initial response. If the value of a table is unchanged at the server, the stagnant data is replaced with an empty array. Example:</p>
<p><code>{"B":{"1":"90","2":200,"3":[]}}</code></p>
<p><code>{"B":[],"A":20}</code></p>
<p>Everytime an AJAX response is received, the object is updated with:</p>
<pre><code>jQuery.extend(true, jsonOBJ, jQuery.parseJSON(data));
</code></pre>
<p>But I need the javascript object to keep the unchanged portions, so I need to end up with an object that would be equivalent to the following with the example responses above:</p>
<pre><code>jsonOBJ = jQuery.parseJSON('{"B":{"1":"90","2":200,"3":{"AA":256}},"A":20}');
</code></pre>
<p>My preferred option would be to remove the empty objects from the converted response. Is there an existing function or a modification to the jQuery extend function that would do this?</p>
|
javascript jquery
|
[3, 5]
|
2,670,966
| 2,670,967
|
android, how to find an ImageView by its bitmap?
|
<p>Say I have a loop that creates ImageViews and adds them to a layout</p>
<pre><code>final LinearLayout linLayRow1 = (LinearLayout) findViewById(R.id.LLrow1);
...
try {
FileInputStream in1 = new FileInputStream(masterPath+shiftimage);
BufferedInputStream buf1 = new BufferedInputStream(in1);
Bitmap bMap1 = BitmapFactory.decodeStream(buf1);
ivBtnSym.setImageBitmap(bMap1);
in1.close();
buf1.close();
} catch (Exception e) { }
...
linLayBtnInside.addView(ivBtnSym);
</code></pre>
<p>And now I'd need to change the bitmap of an ImageView that is, for example, masterPath+"/1.png" to masterPath+"/2.png" ... how would you do that?</p>
<p>Thanks! :)</p>
|
java android
|
[1, 4]
|
2,066,778
| 2,066,779
|
onchange refresh particular content php
|
<p>The following image shows the part of my web page. I am developing my site using php.</p>
<p><img src="http://i.stack.imgur.com/B3Rzq.png" alt="enter image description here"></p>
<p>If i select an option in the <code>draft</code> listmenu the options in the following field eg, pick 1, pick 2 will changed. I did this this using <code>onchange</code>. I get the the id from onchange and use that id in the select query to fetch the details from the database and the fetched data will be replaced in the below listmenus. </p>
<p>I need it to be done by refreshing that part only and not the whole page. Is there any possibility to do that? Thanks in advance.</p>
|
php javascript jquery
|
[2, 3, 5]
|
3,541,004
| 3,541,005
|
convert Map Values into String Array
|
<p>Here ,I am trying to convert map values into String array but i am getting </p>
<p>Error</p>
<pre><code>ERROR/AndroidRuntime(23588): Caused by: java.lang.ClassCastException: [Ljava.lang.Object;
</code></pre>
<p>Code</p>
<pre><code>Map<String,String> contactNumber = new HashMap<String,String>();
String results [] = (String[]) contactNumber.values().toArray();
</code></pre>
|
java android
|
[1, 4]
|
4,808,433
| 4,808,434
|
How to pass a php variable($total) i have, to an External Javascript as in input?
|
<p>I have a php file with a variable $total as one of its variable.</p>
<p>AS part of my project I have to print a table of results.
I call an external javascript whenever i display the table, something like this </p>
<pre><code>echo "<script src='course.js' language='JavaScript'></script>";
echo "<table border='1'>";
echo "<tr>";
echo "<td><td>";
</code></pre>
<p>Each row of this table has a checkbox, and i call the script file to check whether the number of checked boxes is not more than 8, for which i need the $total variable which is the total number of rows in the table</p>
<p>My course.js file looks like this (assuming $total)</p>
<pre><code>var count = 0;
for(i=1;i<=$total;i++)
{
if(document.getElementByTag('course."i"').checked==true)
count++;
}
if(count==8)
{
for(i=1;i<total;i++)
{
document.getElementById('course."i"').disable=true;
}
}
}
</code></pre>
|
php javascript
|
[2, 3]
|
3,716,707
| 3,716,708
|
Adding +1 to jQuery value of a readonly text input field
|
<p>I am using a function where I have a <code>readonly</code> text <code>input</code>, and when I execute the function I want the number value + 1. So let's say I have 60, when I execute the function, the number returned should be 61. </p>
<p>But instead it's coming out 601, which is just adding the number 1 to the string. Any clue as to what is going on? Subtraction, multiplication and division all work fine. Here is a snippet</p>
<pre><code> var num= $("#originalnum").val() + 1;
$("#originalnum").val(num);
</code></pre>
<p>And yes i've tried a few different variations, am I missing something?</p>
|
javascript jquery
|
[3, 5]
|
2,919,684
| 2,919,685
|
In javascript Jquery, how do I determine the position from the top to the current state...everytime someone scrolls?
|
<p>How do you bind it so that when a user scrolls, I can know the "offset" from the top, in pixels?</p>
|
javascript jquery
|
[3, 5]
|
527,135
| 527,136
|
C# sometimes currency format does not work
|
<p>It seems that sometimes the currency format does not work:</p>
<pre><code>string Amount = "11123.45";
Literal2.Text = string.Format("{0:c}", Amount);
</code></pre>
<p>reads 11123.45 </p>
<p>it should be:</p>
<p><strong>$11,123.45</strong> </p>
|
c# asp.net
|
[0, 9]
|
711,071
| 711,072
|
List index Err : Index was out of range
|
<p>I have two lists and I want to copy data from one to another and I get this error:</p>
<blockquote>
<p>Index was out of range. Must be non-negative and less than the size of the collection.<br>
Parameter name: index </p>
</blockquote>
<p>Here's my code:</p>
<pre><code>static IList<Common.Data.Driver> Stt_driverList = new List<Common.Data.Driver>();
List<Common.Data.Driver> driverList = new List<Common.Data.Driver>();
for (int i = 0; i < driverList.Count; i++)
{
//Fill in The Static Driver List
Stt_driverList[i] = driverList[i];
}
</code></pre>
|
c# asp.net
|
[0, 9]
|
3,054,220
| 3,054,221
|
ASP.NET : What exactly is affected when Javascript is off?
|
<p>I've heard different stories about ASP.NET and JavaScript: that it works fine with Javascript turned off, that only some parts don't work, and that nothing works at all.</p>
<p>How exactly are ASP.NET applications affected if JavaScript is turned off in a client's browser? What parts don't work (if any)?</p>
<p>For example, will RequiredFieldValidators still work? What about UploadControls? AJAX UpdatePanels and AsyncPostBack's? FileUploads? Do page codebehinds still run?</p>
<p>Forgive my ignorance, I can't seem to find much about the issue that is in-depth.</p>
|
asp.net javascript
|
[9, 3]
|
4,600,991
| 4,600,992
|
Using Java-classes with C#
|
<p>I have a project written in Java (>1.5).</p>
<p>Is it possible to write parts of the project with C#?<br>
For instance the GUI and calling the methods and instanciate the classes written in java?</p>
<p>If yes, how?</p>
|
c# java
|
[0, 1]
|
1,227,132
| 1,227,133
|
How to expand or collapse child page depends on dynamic content?
|
<p>Hi what is the best way to expand or collapse child page depending on dynamic content in .net web application?</p>
|
c# asp.net
|
[0, 9]
|
1,068,940
| 1,068,941
|
print constant php into jQuery
|
<p>I have a page where I have to print a constant php into jQuery. Now if I print returns me an error: "SyntaxError: missing ; before statement"
Because my text contains space anbd i don't want to cancel that space!
Here is my code (I have tried with serialize and trim before but same error)</p>
<pre><code><script type="text/javascript">
$(document).ready(function(){
$(".menu_an").click(function() {
var txt = $(this).attr("id");
var temp=<?php echo titolo_antilope; ?>;
alert(temp);
//$('#descrizione').text(<?php echo titolo_antilope ?>);
});
});
</script>
<body>
<div class="animale">
<div class="firstColAni">
<p class="txt_14 menu_an" style="cursor:pointer;" id="antilope">Antilope</p>
<p class="txt_14 menu_an" style="cursor:pointer;" id="bisonte">Bisonte</p>
</div>
<div class="secondColAni">
<p class="txt_14 menu_an" style="cursor:pointer;" id="descrizione"></p>
</div>
</div>
</code></pre>
|
php jquery
|
[2, 5]
|
3,818,222
| 3,818,223
|
Making a specific <select> option automatically check and disable check box in another form field
|
<p>I have a very simple form for uploading a file. In the form, there's a dropdown menu where you can choose a category for the file you're uploading. I also have another checkbox which is by default unchecked. How can I make it so that if the third in the dropdown is selected, the checkbox is automatically checked and disabled? Thanks for your help.</p>
|
javascript jquery
|
[3, 5]
|
331,672
| 331,673
|
Visible text box when being clicked
|
<p>Is there any ways to make a text box visible when user click a button? What I meant here is, user will only see the text box when button is clicked. Thanks in advance for help me. Have a good ones.</p>
|
c# asp.net
|
[0, 9]
|
2,427,906
| 2,427,907
|
How do you mentally handle going from writing managed to non-managed code?
|
<p>~80% of the code I write is in C#. The other ~20% is in C++. Whenever I have to switch from C# to C++, it takes me quite a while to mentally "shift gears" to thinking in C++. I make simple mistakes using pointers and memory allocation that I would not have made when I was in university. After the adjustment period, I am fine and writing in native code comes naturally.</p>
<p>Is this normal? Does anyone else experience something similar and if so, what do you do to cut down on the time this wastes?</p>
<p>Edit: I'm not saying that I cannot work with memory allocation and pointers. I comfortably use them often in my C++ code. Just not immediately after working in C# for long periods of time.</p>
|
c# c++
|
[0, 6]
|
118,942
| 118,943
|
Android optimisation and portability
|
<p>I've been developing java for several years, and i'm thinking of trying to android application development , even if i'm a little late in the game.</p>
<p>How would I go about limiting the memory usage and battery usage of an android application? </p>
<p>and also, what kind of portability issues will I face when writing android apps?</p>
|
java android
|
[1, 4]
|
3,319,822
| 3,319,823
|
Hide element onFocus and display onBlur
|
<p>I have 2 form inputs where onFocus I want to hide another element on the page.</p>
<pre><code>$(document).ready(function () {
$('.email').focus(function () {
$('.note').fadeTo('fast', 0);
}).blur(function () {
$('.note').fadeTo('fast', 1);
});
$('.password').focus(function () {
$('.note').fadeTo('fast', 0);
}).blur(function () {
$('.note').fadeTo('fast', 1);
});
});
</code></pre>
<p>Pretty basic stuff, but I also need to ensure that when switching between these two inputs (.email & .password) that the hidden element doesn't become visible again.</p>
<p>It seems that sometimes when I switch between them that the hidden element flickers back into view, or that the .focus event isn't being fired because the element isn't in focus for some reason.</p>
<p>Is there anyway for me to say, the .note element is hidden, if were switching between .email & .password remain hidden until focus is lost from both of these elements?</p>
|
javascript jquery
|
[3, 5]
|
3,221,534
| 3,221,535
|
Prevent "bubbling"?
|
<p>I am not sure this is really bubbling, I will explain.</p>
<p>I have this:</p>
<pre><code><div>
<div>
text here
</div>
</div>
</code></pre>
<p>How to bind an on click event so that it will affect only the enclosed div? If I set it like this:</p>
<pre><code>jQuery('div').bind('click', function() {
jQuery(this).css('background','blue');
});
</code></pre>
<p>it makes blue all the divs. If I add false as the third argument(prevent bubbling) to the bind function it does nothing.</p>
<p>How can I solved this?</p>
|
javascript jquery
|
[3, 5]
|
5,025,309
| 5,025,310
|
Any way to get a DateTime object from this string?
|
<p>Is there any way to get a DateTime from:</p>
<pre><code>Mon Mar 04 2013 18:00:00 GMT-0500 (Eastern Standard Time)
</code></pre>
<p>If so, how?</p>
<p>Thanks</p>
|
c# asp.net
|
[0, 9]
|
5,813,552
| 5,813,553
|
Adding to Bridging table in MultiView
|
<p>I have a Multiview.. I have created 2 classes InsertInfo() and InsertInfo2() to insert controls to my Database table.. Once user clicks 'Finish' button, I execute the two classes.</p>
<p>But my FK values are not getting inserted. </p>
<p>I have dbo.Emp (from view 1)
I have dbo.Cert (from View 2) that have been inserted.</p>
<p>But there's a bridge table between those two tables called dbo.Emp_Cert</p>
<pre><code>EmpId (FK) | CertID (FK) | ModifiedDate
</code></pre>
<p>The PK values from dbo.Emp and dbo.Cert are not getting stored here.
Where am I going wrong? </p>
<p>Many Thanks,
Girish</p>
|
c# asp.net
|
[0, 9]
|
5,823,814
| 5,823,815
|
need to access the checked checkbox
|
<p>I need to get the value that has been assigned to the checkbox that is checked ,
and I've used for loop to show the checkboxes , now i need to access the values of the checkboxes that are checked only ,</p>
<p>Can anybody help me out with this ?</p>
<pre><code>foreach($inbox as $inbox_info)
{
<input type="checkbox" id="checkUnread" name="checkUnread" value="<? echo $inbox_info['inbox_id'];?>" />
}
</code></pre>
<p>i am trying to do a mail inbox functionality , and i need to get the id of the elements that has its checkbox checked so that i can flag those elements unread in the database</p>
|
javascript jquery
|
[3, 5]
|
4,459,856
| 4,459,857
|
Moving circles in android
|
<p>I have a task. It's to draw some (more than one) circles moving around the screen. They must start moving after click on them. I have the code only for one circle. Give me the way how to do this task, for example, 5 circles. Thanks in advance!</p>
<pre><code>public class MainActivity extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(new MyView(this));
}
class MyView extends View {
//public Paint c;
public Paint p;
private static final int RADIUS = 46;
private int centerX;
private int centerY;
private int speedX = 50;
private int speedY = 40;
//private Paint paint; // Создай его где-нибудь там в конструкторе
public MyView(Context context) {
super(context);
p = new Paint();
p.setColor(Color.GREEN);
}
@Override
protected void onSizeChanged(int w, int h, int oldW, int oldH) {
centerX = w / 2;
centerY = h / 2;
}
protected void onDraw(Canvas c) {
int w = getWidth();
int h = getHeight();
centerX += speedX;
centerY += speedY;
int rightLimit = w - RADIUS;
int bottomLimit = h - RADIUS;
if (centerX >= rightLimit) {
centerX = rightLimit;
speedX *= -1;
}
if (centerX <= RADIUS) {
centerX = RADIUS;
speedX *= -1;
}
if (centerY >= bottomLimit) {
centerY = bottomLimit;
speedY *= -1;
}
if (centerY <= RADIUS) {
centerY = RADIUS;
speedY *= -1;
}
c.drawCircle(centerX, centerY, RADIUS, p);
postInvalidateDelayed(200);
}
}
}
</code></pre>
|
java android
|
[1, 4]
|
5,974,240
| 5,974,241
|
Tracking users and sessions on an asp .net website
|
<p>I'm looking to write a user and session tracking tool.</p>
<p>What I'm trying to do is create a page that lets me see which users are logged in and what session data is being used by that user.</p>
<p>Is this possible? Or do I need to write a custom session provider?</p>
|
c# asp.net
|
[0, 9]
|
403,922
| 403,923
|
Settings a listener to Shared Preference's dialog 'OK' button
|
<p>I have class Settings that extends PreferenceActivity,
in which user enter his Google account and the password. When the user presses 'add account' a dialog jumps with OK and CANCEL buttons.
Same occurs when pressing add password, I want to define listener within PreferenceActivity
to the OK button in the password dialog, that when the OK button is pressed the listener automatically checks if the user has entered the password correctly.</p>
|
java android
|
[1, 4]
|
1,513,401
| 1,513,402
|
Need to generate ASP.NET controls from a database
|
<p>I am writing an application where the controls for a page need to be determined from data in a Sql Server table.</p>
<p>For example: I have a PropertyGroups with Properties(Join Table)
I then have categories to Propertygroups, the Properties have a values table, blah blah. Not to get too much in to the DB schema, but I need to assign controls to properties.</p>
<p>Like lets's say that property Color needs to be a listbox and the items collection is predetermined by the data in the database etc... </p>
<p>What is the most efficient way to render this before the page is loaded? A handler maybe?
I am using Master Pages as well.</p>
|
c# asp.net
|
[0, 9]
|
5,614,454
| 5,614,455
|
A web application that continue to run in memory
|
<p>I want to develop a server side application that work in background, and accept every HTML request, and answer to it.</p>
<p>There is possible to develop it in PHP? (I don't want a PHP page, that executed every time).</p>
<p>If not, maybe I should move to JAVA JSP?
If not, maybe I should move to JAVA JSP?
If not, maybe I should move to PYTHON? </p>
|
java php python
|
[1, 2, 7]
|
2,814,262
| 2,814,263
|
jquery radiobutton focus
|
<p>On some of my pages I am setting focus on a first input element:</p>
<pre><code> $(':input:visible:first').trigger('focus');
</code></pre>
<p>If the first input element is a checkbox or a radiobutton it receives a focus fine but that's not clearly visible, so it's label is not highlighted and screen reader doesn't recognize that, too, i.e. it doesn't read out that field. Is there any way using JQuery to make focus on checkbox or radoibuttons more pronounced?</p>
|
asp.net jquery
|
[9, 5]
|
1,161,418
| 1,161,419
|
How to control activities on the "back button queue"
|
<p>I want to be able to control which activities the user can press the back button into, depending on where the user is currently. For example, I have Activities A, B, C, and D.</p>
<p>The user navigates (through buttons I provide) from Activity A, to B, to C, and finally, to D. If the user presses back any time before D, I want the normal back operation (if they press back on Activity C, they will be presented with B).</p>
<p>However, if they make it all the way to D, I want to finish activities B and C. Now, when the user clicks back, I want them to be presented with A.</p>
|
java android
|
[1, 4]
|
2,581,777
| 2,581,778
|
Error in sending fax
|
<p>I use the following code for sending a FAX:</p>
<pre><code>protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{ FaxDocument(@"E:\ss.doc", "04428257363");
}
} public int FaxDocument(String TheFile, string faxnumber)
{
int JobID = 0; FAXCOMEXLib.FaxServer faxsrv = new FAXCOMEXLib.FaxServerClass();
try
{ faxsrv.Connect(Environment.MachineName); FaxDocumentClass faxdoc = new FAXCOMEXLib.FaxDocumentClass();
//*** How can I add 2 or more attachments to my fax Body with the use of one coverpage?
faxdoc.Body = @"E:\ss.doc"; //******************************************************************************************
faxdoc.Priority = FAX_PRIORITY_TYPE_ENUM.fptNORMAL; faxdoc.CoverPageType = FAXCOMEXLib.FAX_COVERPAGE_TYPE_ENUM.fcptLOCAL;
faxdoc.CoverPage = "TestCoverPage";
faxdoc.ScheduleType = FAXCOMEXLib.FAX_SCHEDULE_TYPE_ENUM.fstNOW;
faxdoc.DocumentName = "Fax Transmission"; faxdoc.Recipients.Add(faxnumber, "Lexicon");
faxdoc.AttachFaxToReceipt = false;
faxdoc.Note = "Here is the info you requested";
faxdoc.Subject = "Today's fax";
faxdoc.ConnectedSubmit(faxsrv);
}
catch (Exception ex)
{
Response.Write(ex.Message);
}
finally
{
faxsrv.Disconnect();
}
return JobID;
}
}
However, I get the following error:
Retrieving the COM class factory for component with CLSID {CDA8ACB0-8CF5-4F6C-9BA2-5931D40C8CAE} failed due to the following error: 80040154.
</code></pre>
<p>Any help into solving this error is greatly appreciated.</p>
|
c# asp.net
|
[0, 9]
|
3,576,644
| 3,576,645
|
What is PHP like as a programming language?
|
<p>I am not really familiar with PHP, but I get the impression that it is like JavaScript (syntax-wise).</p>
<p>What are the benefits of a dynamically typed language, when compared to a strongly typed language like C# or Java, and how would this help in the context of web development? What would make a dynamically typed language so attractive? Or, does the popularity of PHP have more to do with it being free?</p>
<p>Okay, I think I better give a little more background to get more meaningful answers, because I am not wanting a flame war.</p>
<p>I come from a C background, and when I moved into C# and Visual Studio. Having code completion, integration with an SQL database, huge existing class libraries and easy to access documentation, as well as new tools such as LINQ and ReSharper was like heaven. I didn't enjoy JavaScript before JQuery, but now I love it as well. Recently, I ported a PHP project over to C# and I used Zend to help me debug and understand more while porting - instead of maintaining two code streams. That also cut down on the cost of the server and maintenance.</p>
<p>Getting into PHP would be nice. I think that Visual Studio has spoiled me - but again Eclipse is also equally spoiling.</p>
<p>It would be nice to have an answer from someone who has experience developing both under PHP and .NET.</p>
|
c# java php javascript
|
[0, 1, 2, 3]
|
4,574,998
| 4,574,999
|
How to redirect current tab on submit using javascript?
|
<p>I does a small example to learn javascript and php.
I try window.open() and window.location() but it opens a new tab and the current tab still redirects to "login.php"</p>
<pre><code><html>
<head>
<script type = "text/javascript">
function checksubmit(form){
if ( form.id.value == "" || form.password.value == "" ){
$check = confirm("Don't leave id or password blank !\nPress OK to continue ... ");
if ($check)
window.open("http://www.google.com/");
else
window.location("http://www.yahoo.com");
}
}
</script>
</head>
<body>
<form align = 'right' method = 'post' action = 'login.php'>
ID : <input type = 'text' name = 'id' maxlength = 20 /></br>
Password : <input type = 'password' name = 'pass' /></br>
<input type = 'submit' name = 'submit' value = 'Login' onclick = "checksubmit(this.form)"/>
</form>
</body>
</html>
</code></pre>
<p>I want my page not to redirect to "login.php" when press ok or cancel.</p>
|
php javascript
|
[2, 3]
|
1,956,476
| 1,956,477
|
Javascript , loading progress bar before site loads
|
<p>I want to make a progress bar for a GUI site that I am making and I need a bit of code in javascript to detect if the site is loading and how many elements/images have loaded and has the site fully loaded.
I have the progress bar made with css and I dont know how I can turn on/of elements in js.</p>
<p>How can I accomplish this in js or by using Jquery ?</p>
|
javascript jquery
|
[3, 5]
|
3,164,935
| 3,164,936
|
if statement OR logic oddity
|
<p>I'm calling this function from a jUnit test case with the following information:</p>
<pre><code>// abbr = "US";
// Countries = array of two objects one with iso2 = "us"
public Country getCountryFromAbbr(String abbr) {
abbr = abbr.toLowerCase();
for (int i = 0; i < Countries.size(); i++) {
Country country = Countries.get(i);
String iso2 = country.ISO2.toLowerCase();
String iso3 = country.ISO3.toLowerCase();
if (iso2.equals(abbr) || iso3.equals(abbr)) {
return country;
}
}
return null;
}
</code></pre>
<p>When I debug, the second object with <code>ISO2</code> of <code>us</code> <code>iso2.equals(abbr)</code> is true and the other is <code>false</code>. However, country is not returned and the debugger finishes the loop and returns <code>null</code>. </p>
<p>I'm confused as true || false is true. Am I missing something?</p>
<p>Here's the mock of the countries:</p>
<pre><code> List<Country> Countries = new ArrayList<Country>();
Country country = new Country();
country.CountryId = 1;
country.CountryName = "Great Britian";
country.ISO2 = "GB";
country.ISO3 = "GBR";
Countries.add(country);
Country usa = new Country();
usa.CountryId = Studio.USA_COUNTRY_ID;
usa.CountryName = "United States of America";
usa.ISO2 = "US";
usa.ISO3 = "USA";
Countries.add(usa);
return Countries;
</code></pre>
<p><hr/>
EDIT:
I'm using Eclipse and debugging using my Droid X 2.3.3</p>
|
java android
|
[1, 4]
|
3,719,644
| 3,719,645
|
Adding a second <%@Register %> line to my page causes Compilation Error
|
<p>When I have just one <%@Register %> line in my page, it loads fine.</p>
<p>When I add a second one, it gives me this compilation error:</p>
<blockquote>
<p>Compiler Error Message: CS0433: The
type 'ASP.test1_ascx' exists in both
'c:\Users\me\AppData\Local\Temp\Temporary
ASP.NET
Files\root\c2d75602\aae4f906\App_Web_dta-e2tq.dll'
and
'c:\Users\me\AppData\Local\Temp\Temporary
ASP.NET
Files\root\c2d75602\aae4f906\App_Web_layerwindow.ascx.cdcab7d2.zxul1sik.dll'</p>
</blockquote>
<p>(slightly anonymized)</p>
<p>Any ideas?</p>
<p><strong>EDIT:</strong> Additional information I just noticed: the line above the broken line in the YSOD said: [System.Diagnostics.DebuggerNonUserCodeAttribute()] When I searched for information on this, I found a page telling me to check to make sure I didn't have any open brackets I wasn't closing. Haven't found any yet, but this may be part of the issue.</p>
<p><strong>EDIT:</strong> Argh. Just want to kill the computer at this point. After daughtkom suggested creating a new project to see if the code worked from scratch, I did that and it worked. I then decided to create a new control and copied the Test1 code into there... and then it started working. (No changes to Test1 or Default.aspx, just created Test1-2.ascx.) Then I added the link to Test2 into Default.aspx... and now it's giving me the same error, just with test2. And creating a Test2-2.ascx isn't fixing it this time.</p>
|
c# asp.net
|
[0, 9]
|
5,988,842
| 5,988,843
|
Selective Framebursting
|
<p>i would like to implement selective Framebursting for my iframe application.</p>
<p>My iframe is available at <code>www.mywebsite.con/iframe.aspx?lic=1234</code></p>
<p>When the third party website hosting my iframe is (<code>PayedWebsited1.con</code> OR <code>PayedWebsited2.con</code>) AND the <code>lic=1234</code> option also exists, display the iframe. For any other cheaters, display bananas!</p>
<p>How can i do it?</p>
|
javascript jquery
|
[3, 5]
|
4,586,944
| 4,586,945
|
Redirection not happening when clicking on button
|
<p>I am trying to redirect the user to a different page upon clicking on a button and stop any asp related events if it meets the validation in the if() statement in javascript, the reason why i am doing it like this is because on a specific page.. it is not grabinhg the On_Click event for some reason. While debugging it.. before it goes into the On_Click event in the .cs file it call multiple classes and functions .. by the time it is done.. it is redirecting somewhere else and never goes through the On_Click event.. now these are a dozen of classes it is going through so I decided to use javascript to do it right after the button is clicked without letting it evaluate in .cs BUT i still want to allow that for other pages because it is working there.. this page seems to be special..</p>
<p>When i click on the image button it is supposed to check the function first and then if its true redirect and stop any other processing on Page_Load or anywhere but its not working see my code here in my user control</p>
<pre><code><%@ Control Language="C#" AutoEventWireup="true" CodeFile="FindPage.ascx.cs"
Inherits="Data_Manager_FindPage" %>
<script type="text/javascript">
function ForwardSearch() {
if (window.location.href.indexOf('FindPage.aspx') > -1) {
var value = document.getElementById('<%= txtFind.ClientID %>').value;
window.location.href = '~/ResultSet.aspx?findvalue=' + encodeURIComponent(value);
}
}
</script>
</code></pre>
|
c# asp.net
|
[0, 9]
|
2,446,410
| 2,446,411
|
Android. Reading content from file
|
<p>I'm using the next method to read content from a file. The problem here is that i'm limited to ht unmber of characters specified for <code>inputBuffer</code> (in this case 1024). </p>
<p>First of all, if the content is less than 1024 chars long, i get a lot of whitespace chars, and i need to use trim to remove them.</p>
<p>Second of all, and this is more important, I'd like to read the entire content of the file, even if it is more than 1024 characters and insert it into a <code>String</code> object. I've understood that I should not use the <code>.available</code> method to determine if there is more data in the file, because it's not accurate or something like that.</p>
<p>Any ideas on how I should go about doing this?</p>
<pre><code>public String getContent( String sFileName )
{
//Stop in case the file does not exists
if ( !this.exists( sFileName ) )
return null;
FileInputStream fIn = null;
InputStreamReader isr = null;
String data = null;
try{
char[] inputBuffer = new char[1024];
fIn = _context.openFileInput(sFileName);
isr = new InputStreamReader(fIn);
isr.read(inputBuffer);
data = new String(inputBuffer);
isr.close();
fIn.close();
}catch(IOException e){
e.printStackTrace(System.err);
return null;
}
return data.trim();
}
</code></pre>
|
java android
|
[1, 4]
|
449,066
| 449,067
|
where does window.somedata gets stored
|
<p>In JavaScript when i say <code>window.SomeData = 'whatever'</code>, where does it get saved in the browser? I thought it gets saved in the <code>viewstate</code> but it doesnt. Also how much security concern is it to save some data in <code>window.someKey</code>. I am not talking about username or password storage but some general data like PK values of some records.</p>
<p>--Edit--</p>
<p>The reason i am asking this is because i have a page with 5 tabs and each tabs gets loaded by an AJAX call. I need to save the data that comes back from AJAX request and currently i am using window.somekey to save it.</p>
|
javascript jquery
|
[3, 5]
|
652,790
| 652,791
|
Cloning content to a slider
|
<p>I'm working on a responsive design, and would like some of my content in a slider when it's below a certain size. However, I would like to avoid rendering the data twice, so the idea is to clone the content and append it to the slider on <code>(document).ready()</code>, then initialise it. That way, I can show my content in the normal fashion in landscape mode, and in a slider in portrait mode (thus saving space).</p>
<pre><code>var w = $(window).width();
if (w < 769) {
$("#container").children(".content").each(function () {
$(this).clone().appendTo("#slider ul").wrap("li");
});
initialiseSlider(); // Nothing special about this
}
</code></pre>
<p>The content is cloned to the slider container, but for some reason, it doesn't "slide". I'm thinking it may be because the slider is initialised before it has any content, because if I hardcode it, it works fine. Does that make sense? Any ideas on how I should fix this?</p>
|
javascript jquery
|
[3, 5]
|
3,330,634
| 3,330,635
|
I want to get the remote device's address,its name,its UUID , accept the BluetoothServerSocket of an already paired bluetooth device
|
<p>I am creating a bluetooth remote which remotely accesses a media player on a computer . I have sent an intent to the default Bluetooth system settings . Now what I want is to get the device's name, its MAC address, its UUID. Also I want to accept the BluetoothServerSocket assigning it to a BluetoothSocket. Here is my code .</p>
<pre><code>BluetoothSocket mskt=null;
BluetoothServerSocket msskt= null;
BluetoothAdapter mbtha= BluetoothAdapter.getDefaultAdapter();
OutputStream mmOutStream;
BluetoothDevice mdev=null;
BluetoothAdapter mbtha= BluetoothAdapter.getDefaultAdapter();
if(mbtha.isEnabled()==false){
Toast.makeText(this, "Bluetooth is Disabled",Toast.LENGTH_LONG).show();
Intent settingsIntent = new Intent(android.provider.Settings.ACTION_BLUETOOTH_SETTINGS);
startActivity(settingsIntent);
Set<BluetoothDevice> pairedDevices = mbtha.getBondedDevices();
}
else if(mbtha.isEnabled()==true){
Toast.makeText(this, "Bluetooth is already enabled",Toast.LENGTH_LONG).show();
}
String adrs= mbtha.getAddress();
mdev = mbtha.getRemoteDevice(adrs);
String mname = mdev.getName();
String uuid = new String(mdev.getUuids().toString());
try {
msskt=mbtha.listenUsingRfcommWithServiceRecord(mname, UUID.fromString(uuid));
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
try {
mskt=msskt.accept();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
try {
mmOutStream = mskt.getOutputStream();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
</code></pre>
<p>Is the code correct. If not then what can I do to get the already connected / paired device
now since I have let the default system settings to do the work of pairing??</p>
|
java android
|
[1, 4]
|
4,934,601
| 4,934,602
|
remove the background noise of the recorded audio in Jrecorder
|
<p><p>i am using jrecorder <a href="http://www.sajithmr.me/jrecorder/index.html" rel="nofollow">jrecorder</a> to record audio on clients browser and save the audio file on my server.</p><p>i want to remove the background noise in the recorded audio on client side.i know it might be possible through ff-mpeg but i want it done on client side.</p><p>thanks in advance</p></p>
|
javascript jquery
|
[3, 5]
|
202,002
| 202,003
|
How to add items to dynamically created select (html) Control
|
<p>Hi
How to add items to dynamically created select (html) Control..</p>
<p>thanks</p>
|
c# asp.net
|
[0, 9]
|
2,049,324
| 2,049,325
|
How to find a text using javascript or jquery.
|
<p>I need to find a text from a paragraph using java script.
Is there any code in JavaScript like we do in c# to find a text using "string.Contains("")" method.</p>
<p>Pls help...</p>
<p>Thanks Guys..</p>
|
javascript jquery
|
[3, 5]
|
4,871,566
| 4,871,567
|
Why is this java code executing multiple return statements
|
<p>I have a function that during execution while in the debuger runs both the return statment inside the if and then the return statment at the end of the function. </p>
<p>I'm confused I thought the return statment returned the value and stopped the flow of execution in the method?</p>
<p>I've got it to work, but would like to understand why it is doing this.</p>
<p>As an example in the below. The json will fail on the answer adn the createapprove block. It gets to create fail and ret becomes true (As the json parsed). The return retval runs and then the code jumps down to the final return retval and executes that as the return for the function.</p>
<p>I'm walking through the code in ecipse in debug mode with the program running on the android emulator.</p>
<pre><code>public static ComModelFromServer createModelFromJSON(String json) throws JSONInvalidException {
boolean ret = false;
ComModelFromServer retval = null;
//Answer Block
Answer a = new AnswerAsset();
ret = a.tryToParseFromJSON(json);
if(ret == true) {
retval = a;
return retval;
}
Create cr = new CreateApprove();
ret = cr.tryToParseFromJSON(json);
if(ret == true) {
retval = cr;
return retval;
}
cr = new CreateFail();
ret = cr.tryToParseFromJSON(json);
if(ret == true) {
retval = cr;
return retval;
}
if(ret == false) {
throw new JSONInvalidException("couldn't create model from JSON");
}
return retval;
}
</code></pre>
|
java android
|
[1, 4]
|
3,882,474
| 3,882,475
|
get the entire html from dom but exclude some elements?
|
<p>Is it possible to get the entire dom of a source page excluding some elements?</p>
<p>What's the jquery code for <code>document.documentElement.innerHTML;</code> ?</p>
<p>And how to remove from that code some divs?</p>
|
javascript jquery
|
[3, 5]
|
3,506,860
| 3,506,861
|
Is it possible to add a callback to eval(data);?
|
<p>So when eval(data) is complete, how would you set a callback?</p>
|
javascript jquery
|
[3, 5]
|
3,784,931
| 3,784,932
|
C# equivalent for PHP file_put_contents
|
<p>I am converting a PHP file to C#,completed 75%,stuck with these lines
</p>
<pre><code>if(file_put_contents($uploaddir.$randomName, $decodedData)) {
//echo $randomName.":uploaded successfully"; //NO NEED TO CONVERT ECHO PART
}
</code></pre>
<p>PHP Brothers please help</p>
<p><strong>MORE INFO</strong></p>
<p>I converted <strong><em>this</em></strong></p>
<pre><code>// Encode it correctly
$encodedData = str_replace(' ','+',$data[1]);
$decodedData = base64_decode($encodedData);
</code></pre>
<p><em><strong>to this</em></strong></p>
<pre><code>// Encode it correctly
string encodedData = data[1].Replace(' ', '+');
string decodedData = base64Decode(encodedData);
</code></pre>
<p>where base64Decode <strong><em>is</em></strong>
</p>
<pre><code>public static string base64Decode(string data)
{
byte[] binary = Convert.FromBase64String(data);
return Encoding.Default.GetString(binary);
}
</code></pre>
|
c# php
|
[0, 2]
|
3,704,901
| 3,704,902
|
How do I store a hash into a form input?
|
<p>Say I have a hash and I want to enter it as a <code>val()</code></p>
<pre><code>$("#form_attribute").val( hash )
</code></pre>
<p>It gets stored as a string <code>"[Object, object]"</code></p>
<p>How do I keep it as a hash and then allow the form to send this hash to my server?</p>
|
javascript jquery
|
[3, 5]
|
456,724
| 456,725
|
Nytimes-style popup when the user makes a selection
|
<p>When you select text in an article on nytimes.com this little ? pops up at the end your selection:</p>
<p><img src="http://img193.imageshack.us/img193/1316/827200941520pm.png" alt="alt text" /></p>
<p>What's the best way to implement something like this on my site? Are there any pre-rolled libraries for doing this?</p>
|
javascript jquery
|
[3, 5]
|
3,687,862
| 3,687,863
|
How to access data inside Dialog Builder's inner class?
|
<p>This is more of a Java question, i believe. I would like to access myBundle from within the OnClickListener. Currently, i am getting this compiler error - Cannot refer to a non-final variable dataSend inside an inner class defined in a different method. Is there any way to achieve what i want to do? Thanks. Relevant piece of code....</p>
<pre><code>protected Dialog onCreateDialog(int id, Bundle myBundle) {
switch (id) {
case DIALOG_DELETE:
AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setPositiveButton("Oh My God", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
// TODO Auto-generated method stub
executeDelete(myBundle);
}
});
}
}
</code></pre>
|
java android
|
[1, 4]
|
4,198,311
| 4,198,312
|
Jquery fadein after an update panel has ran
|
<p>I'm having trouble figuring out how to fade in some divs that I fade out when clicking on a checkbox. It brings back the new results but they pop up straight away. This is the code I am using to fade out.</p>
<p>any ideas how I can run the same thing but fadein after after an update panel?</p>
<pre><code> $(document).ready(function () {
$('input[type=checkbox]').click(function () {
var _this = $(this);
$(".gradientBoxesWithOuterShadows").fadeOut('slow $(".gradientBoxesWithOuterShadows").fadeOut', function () {
});
});
</code></pre>
|
jquery asp.net
|
[5, 9]
|
3,177,962
| 3,177,963
|
Java: Need some way to shorten this code
|
<p>I have this piece of code that I would like to shorten...</p>
<pre><code> PackageManager p = context.getPackageManager();
final List<PackageInfo> appinstall = p.getInstalledPackages(PackageManager.GET_PERMISSIONS);
PackageManager pro = context.getPackageManager();
final List<PackageInfo> apllprovides = pro.getInstalledPackages(PackageManager.GET_PROVIDERS);
</code></pre>
<p>I am seriously irritated to do this again and again to add new flag permissions, and I need to do it a couple of times, is there a shorter method in which I could put all the flags on the same definition...???</p>
<p>Let me put it this way, can I do this...??? (of course this gives an error, but something similar..)</p>
<pre><code> PackageManager p = context.getPackageManager();
final List<PackageInfo> appinstall = p.getInstalledPackages(PackageManager.GET_PERMISSIONS).addFlag(PackageManager.GET_PROVIDERS);
</code></pre>
|
java android
|
[1, 4]
|
2,079,895
| 2,079,896
|
how can i convert bitmap image to drawable image so that it will be show over another bitmap image
|
<p><strong>i've a class which extends view ...in which i have two bitmap images to show one over another ....for this im am trying to convert one bitmap image to a drawable image but it dsnt show over the first one what i'm trying this is.....</strong></p>
<pre><code>public class ShowCanvas extends View {
Bitmap CanvasBitmap;
Bitmap ScaledBitmap;
Bitmap smallbitmap;
private static final int INVALID_POINTER_ID = -1;
private Drawable mImage;
private float mPosX;
private float mPosY;
private float mLastTouchX;
private float mLastTouchY;
private int mActivePointerId = INVALID_POINTER_ID;
private ScaleGestureDetector mScaleDetector;
private float mScaleFactor = 1.f;
public ShowCanvas(Context context) {
super(context);
// TODO Auto-generated constructor stub
ScaledBitmap = DrawView.scaled;
**when i get the image from drawable it shows over the first one...**
</code></pre>
<p>mImage = getResources().getDrawable(R.drawable.dress01); </p>
<p><strong>but when i'm using this it dsnt shows image...</strong></p>
<p>mImage = new BitmapDrawable(getResources(), Dress.bitmap);</p>
<pre><code> System.out.println("Drawable" + mImage);
int X = mImage.getMinimumWidth();
int Y = mImage.getIntrinsicHeight();
System.out.println(" Rough" + X + "\t" + Y);
mImage.setBounds(0, 0, mImage.getIntrinsicWidth(),
mImage.getIntrinsicHeight());
}
public void setBitmap(Bitmap bitmap) {
// TODO Auto-generated method stub
CanvasBitmap = bitmap;
System.out.println("CanvasBitmap" + CanvasBitmap);
int X = CanvasBitmap.getHeight();
int Y = CanvasBitmap.getWidth();
System.out.println("CanvasBitmap " + X + "\t" + Y);
}
@Override
protected void onDraw(Canvas canvas) {
// TODO Auto-generated method stub
Paint mpaint = new Paint();
canvas.save();
canvas.drawBitmap(ScaledBitmap, 0, 0, mpaint);
mImage.draw(canvas);
Log.i("Debug", "mImage.draw(canvas)");
canvas.restore();
}
</code></pre>
<p>}</p>
|
java android
|
[1, 4]
|
4,456,659
| 4,456,660
|
Audio decoding in php?
|
<p>I have an audio that I upload with a HTTP Post method to my webserver sent form android.done encoding with Base64..now how to decode audio file using base64 in php??</p>
|
php android
|
[2, 4]
|
5,183,034
| 5,183,035
|
Wordpress video end function
|
<blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://wordpress.stackexchange.com/questions/2895/not-defined-using-jquery-in-wordpress">$ not defined using jQuery in Wordpress</a> </p>
</blockquote>
<p>I need to trigger a alert box when video ends</p>
<p>THis is the code i got from google</p>
<pre><code><script>
$("iframe[src^='http://www.youtube.com']").bind("ended", function() {
alert("I'm done!");
});
</script>
</code></pre>
<p>I am just using the oembed function of wordpress to play youtube videos </p>
<p>I dont now why there are not working </p>
|
jquery javascript
|
[5, 3]
|
5,056,271
| 5,056,272
|
Which is best in this scenario, Base64 or static images?
|
<p>Part of my application Makes heavy use of image manipulation. Cropping, filters etc. using ajax posts and image processing server side using a variety of methods. Every manipulation action that the user takes creates a physical image without deleting the original in order to allow an 'undo' system giving the user the ability to revert his image back to any previous point in time.</p>
<p>All these 'temporary' images are removed via a post to the server when a user finishes their session or closes their browser.</p>
<p>For modern browsers we will be extending the image manipulation capabilities using html5. Using canvas gives us the ability to perform all of these image manipulations client side without ever creating additional static images by encoding and dynamically embedding base64 data. </p>
<p>My concern is the 'undo' system. With the static fallback method we store store an array of objects which contains the links to the static images. This gives the complete undo functionality. However if we do this all clientside then this array will have to actually contain copies of the base64 data for each 'undo' point For each image that the user is manipulating (a typical use case might be 20 original images each with 4-5 undo points).</p>
<p>Before I spend a couple of days prototyping this I was hoping someone might have some comments regarding this method. Is it a good idea? Bad idea? Is storing a huge data object of base64 images a bad idea from a browser performance and memory usage perspective?</p>
<p>Any thought are welcome, thanks in advance.</p>
|
php javascript jquery
|
[2, 3, 5]
|
5,106,090
| 5,106,091
|
Asynchronously downloading files via php script
|
<p>On my company's network, there's a page that generates a topographical range gradient KML based on points passed in through the URL. The problem is that the page takes an average of 30 seconds to complete a request, and I need about 70 requests daily. What I plan to do is have my office's website use a local copy and only re-download when the coordinates change. But I'm having a hard time getting this to work asynchronously. Right now I'm using $.get() to try and load them asynchronously. However, I'm getting no response from the website using get. It returns a status 200 OK, but the line is highlighted in red in Firebug. When I swap out that url for a kml hosted through our site, it returns 200 OK in black, and has the contents of the KML as the response. Why would the remote tool not be downloading correctly?</p>
|
php javascript jquery
|
[2, 3, 5]
|
2,399,504
| 2,399,505
|
How can I lay a div over every image on the page using jQuery?
|
<p>I'm wondering how can I put a div over every image element on the page using <code>jQuery</code>? I want to make it where when you right click on the image, you'll just be right clicking on a div and then it will be harder to save, and people that don't know <code>HTML</code> and stuff wont be able to get the image since they wont even know about "View page source" option. Can someone help?</p>
<p>Thanks in advance.</p>
|
javascript jquery
|
[3, 5]
|
2,198,756
| 2,198,757
|
Seperating JQuery Scripts with Selectors in External file does not work?
|
<p>I have a JQuery Selector and an event associates with it.I want to keep it in external file and just copy and directly save it. The thing which I see is that the external JavaScript that has the selector does not work. Can someone explain Why?</p>
<p>NOTE: I am able to use the same function within my HTML file but when externalize it. It just doesn't work .
The script that I have is as follows:-</p>
<pre><code> $('#pervious').click(function() {
var presentSlide = $('.visible').attr('id');
var tempArr = presentSlide.split("-");
var persentSlideNo = tempArr[1];
var perviousSlideNo = Number(persentSlideNo) - 1; if (perviousSlideNo > -1)
{
var perviousSlide = "Slide-" + perviousSlideNo;
$('#' + presentSlide).fadeOut('slow',function(){
$(this).removeClass('visible').addClass('hidden');
});
$('#' + perviousSlide).fadeIn('slow',function(){
$(this).removeClass('hidden').addClass('visible');
});
}
});
</code></pre>
|
javascript jquery
|
[3, 5]
|
2,896,812
| 2,896,813
|
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]
|
860,674
| 860,675
|
Moving a div relative to another div having horizontal scroll
|
<pre><code><div style="overflow: hidden; position: relative;height: 80px;overflow-x:auto;overflow-y:hidden;width:550px;" id="div1">
<div style="width: 1650px; display: block;">
</div>
</div>
<div style="width: 550px; position: absolute;" id="div2">
</div>
</code></pre>
<p>I wish to move the <code>div</code> with <code>id="div2"</code> in relative way in opposite direction to the movement of the scroll bar of the <code>div</code> with <code>id="div1"</code>.</p>
<p>Using jquery or javascript</p>
|
javascript jquery
|
[3, 5]
|
4,120,820
| 4,120,821
|
jquery load problem
|
<p>I'm having a problem where a jquery load function wipes out the dom element that it is targeted at.</p>
<p><code>popup_content.load('form.html #print_options1', function() {popup_content.fadeIn();});</code></p>
<p>when popup_content is a div targeted by jquery. A jquery load was previously used to load content into this div without problems. This time, though, the entire div just vanishes.</p>
<p>However, if I add a single javascript alert statement after that call, like so:</p>
<pre><code>popup_content.load('form.html #print_options1', function() {popup_content.fadeIn();});
alert('after call');
</code></pre>
<p>then it works(after displaying the annnoying alert, of course). it just seems like some timing issue. has anyone encountered this kind of problem and if so, are there any solutions? any help would be appreciated! thanks!</p>
|
javascript jquery
|
[3, 5]
|
1,528,127
| 1,528,128
|
Upon jQuery onClick, incrementing a PHP variable?
|
<p>I have a link like this: <code><a href="javascript:window.print();">Print</a></code>. I'm trying to increment a PHP variable when that is clicked. I could technically do it by submitting a form, but I'm sure there is an easier way. Any ideas?</p>
|
php javascript jquery
|
[2, 3, 5]
|
4,337,671
| 4,337,672
|
asterisk in arithmetic output
|
<p>When computing 2 doubles, 1/81 on the android platform, 0.01234567* was returned. What does the asterisk mean and how can I avoid such an output?</p>
<pre><code>a=Double.parseDouble(subexp.substring(ss, i));
b=Double.parseDouble(subexp.substring(i+1, se+1));
subexp=subexp.substring(0,ss).concat(Double.toString(a/b))
.concat(subexp.substring(se+1,subexp.length()));
</code></pre>
<p>so basically the piece of offending code is above, with the following values grabbed from the debugger:</p>
<pre><code>subexp="1+1/81" (before code)
"1+0.01234567*" (after code)
ss=2, se=5, i=3, a=1.0, b=81.0
</code></pre>
|
java android
|
[1, 4]
|
1,625,112
| 1,625,113
|
How to Open the dialog pop up in my Controller code
|
<p>I have this div in my master page.</p>
<pre><code> <div id="UICancelChanges" title="Are you sure?" style="display: none;">
Your changes have not been saved. Are you sure you want to CANCEL ?
</div>
</code></pre>
<p>On click I am just opening Jquery dialog popup window..</p>
<pre><code>CancelEdit = function (accountId) {
$("#UICancelChanges").dialog({
resizable: true,
height: 140,
width: 500,
modal: true,
buttons: {
"Yes": function () {
$(this).dialog("close");
},
"No": function () {
$(this).dialog("close");
}
}
});
return false;
};
</code></pre>
<p>Is there any way that I can change the Title of this Div popup dynamically? using same code I need to change the title dynamically?</p>
<p>How to open my popup window in the controller code?something like this?</p>
<pre><code> return new JavaScriptResult() { Script = "alert('SubCategory Successfully Added. Thank You.'); window.location='/ObnCategory/Index';" };
</code></pre>
<p>Instead of alert i need to open the popup window.</p>
<p>Thanks</p>
|
javascript jquery
|
[3, 5]
|
1,346,121
| 1,346,122
|
3 / 2 = 1.0? really?
|
<blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/3144610/java-integer-division-how-do-you-produce-a-double">Java Integer Division, How do you produce a double?</a> </p>
</blockquote>
<pre><code>double wang = 3 / 2;
Log.v("TEST", "Wang: " + Double.toString(wang));
</code></pre>
<p>Logcat output...</p>
<pre><code>07-04 09:01:03.908: VERBOSE/TEST(28432): Wang: 1.0
</code></pre>
<p>I'm sure there's an obvious answer to this and probably I'm just tired from coding all night but this has me stumped. </p>
|
java android
|
[1, 4]
|
4,010,484
| 4,010,485
|
how to use OnItemLongClickListener without setOnItemLongClickListener in Android?
|
<p>I am trying to use OnItemLongClickListener for a listView on Android. This code works fine when added to onCreate method.</p>
<pre><code>mContactList.setOnItemLongClickListener(new OnItemLongClickListener() {
public boolean onItemLongClick(AdapterView<?> parent, View view, int position, long id) {
Log.e("MyApp", "get onItem Click position= " + position);
return false;
}
});
</code></pre>
<p>However when I try to implement OnItemLongClickListener interface and use this method in the class:</p>
<pre><code>@Override
public boolean onItemLongClick(AdapterView<?> parent, View view, int position, long id) {
Log.e("MyApp", "get onItem Click position= " + position);
return false;
}
</code></pre>
<p>nothing happens. What am I missing?</p>
|
java android
|
[1, 4]
|
2,868,498
| 2,868,499
|
embed javascript variable in asp.net control id
|
<p>I'm working with a table of asp.net controls on client side. They are all named in the following fashion when they are created on server side: "txt_name_" + rowNum. I know I can access them by their id by using "<%=Control.ClientID%>". On client side I have access to current row num via a javascript variable. I'm wondering how I can access one of the controls on client side by using something like the following(which doesn't seem to work): "<%=txt_name_" + jsRowNumVar + ".ClientID%>". so I'm essentially trying to substitute a javascript variable as part of an asp.net control name and it doesn't seem to be working. Any ideas on how I would accomplish this?</p>
|
asp.net javascript
|
[9, 3]
|
2,743,465
| 2,743,466
|
checking whether or not a variable of type double is null or not, generates error
|
<p>I'm just checking if a value of a double variable is null or not, strangely, an error
raised saying "operator == is undefined for double"?</p>
<p><strong>Code</strong>:</p>
<pre><code>public double getGyro_X() {
if (this.gyro_X == null) {
Toast.makeText(this, ""+gyro_XIsNullText, ToastdurationShort).show();
} else {
return this.gyro_X;
}
}
</code></pre>
|
java android
|
[1, 4]
|
4,253,647
| 4,253,648
|
how to send data from android to server then from server to android
|
<p>I want to build an application to send data from <code>Android</code> client to <code>Java</code> localhost server, then return the replay from server to client, how can i build server? and to send the data pelase?</p>
|
java android
|
[1, 4]
|
3,963,715
| 3,963,716
|
How to set custom view for day in CalendarView?
|
<p>I'm developing some Android application, and now I've got the following problem: for some days I need to set custom view, but I haven't found any examples of this feature. I hoped that there was some adapters for CalendarView, but it's false. Please, tell me, how can I do it? Thank you in advance. </p>
<p>UPDATE: I use CalendarView in Android 4.0 (default component)</p>
|
java android
|
[1, 4]
|
4,595,295
| 4,595,296
|
IP Address Parameter in ASP.Net
|
<p>I have a stored procedure that inserts a few columns into a database, IP Address, Name, Comments. I am not sure how to get the ip address of the users machine. Perhaps I am to create a variable of the same type (INT) and then store the IP Address in there. I am kinda of lost on this one. </p>
<pre><code>static int IPAddress()
{
get { return Request.UserHostAddress; };
}//How do I pass from here into my stored procedure?
cmdI.Parameters.Add(new SqlParameter("@IPAddress", cmdI));
cmdI.Parameters.Add(new SqlParameter("@Name", cmdI));
cmdI.Parameters.Add(new SqlParameter("@Comments", cmdI));
</code></pre>
|
c# asp.net
|
[0, 9]
|
2,617,355
| 2,617,356
|
Select All Text Areas And Add into one Textarea
|
<p>Hello im currently writing my own javascript/PHP css editor and i have it explode the file into tags and its all echoed out into separate text areas from a loop, i was wondering if its possible to scan the page with javascript and get all the content from all the text areas and add them into one variable or one text-area, thanks in advance.</p>
|
php javascript
|
[2, 3]
|
4,450,264
| 4,450,265
|
Master Pages and Content Pages
|
<p>I have designed a master page containing Home,About Us,Contact Us.So whenever i click on Home link the content of the home page should display on the contentplaceholder where i placed it.And this is same for About Us and Contact Us also.So please give me step by step guidance to do this as clear as possible.Waiting for your reply.</p>
|
c# asp.net
|
[0, 9]
|
3,817,037
| 3,817,038
|
change border/color onFocus
|
<p>I tried to make script which changes color of border-bottom of div after having focus on </p>
<pre><code><input type="text">
</code></pre>
<p>and then changing back to default color after clicking somewhere else.</p>
<p>This is what i tried:</p>
<p>Css:</p>
<pre><code>.div1 {border-bottom:1px solid #ccc;}
</code></pre>
<p>Javacript: </p>
<pre><code>function inputFocus(){ $(".div1").css("border-bottom","1px solid #ffba00"); };
</code></pre>
<p>Html: </p>
<pre><code><input type="text" onFocus="inputFocus();">
</code></pre>
<p>The first part (changing color on focus) works fine, however after clicking somewhere else (not having focus on input) it doesnt change back to normal style as set in css file.</p>
<p>any idea what im doing wrong?</p>
|
javascript jquery
|
[3, 5]
|
3,320,254
| 3,320,255
|
changing format of text using jquery
|
<p>I have following that can change display style of text in the html's p tag it can display properly at the time of loading of page but when I change the text in p tag using text box it cant work out, can you please help me.</p>
<p>Following is the code for that.</p>
<pre><code><input type="text" id="text1" size="15" alt="#index1" accept="#index2">
<p id="index1">Just Cur Me</p>
<input type="button" id="button" value="Click Me" >
<input type="button" id="button_new" value="Click Me and check" >
<script>
var $example4 = $('#index1').hide();
var $textBox = $("#text1").hide();
google.load('webfont','1');
google.setOnLoadCallback(function() {
WebFont.load({
google : {
families : ['Montserrat','Concert One']
},
fontactive : function(fontFamily, fontDescription) {
init();
},
fontinactive : function(fontFamily, fontDescription) {
init();
}
});
});
function init()
{
$example4.show().arctext({radius: 300});
$textBox.show();
}
$textBox.blur(function(){
$example4.html($textBox.val());
return false;
});
$('#button_new').on('click', function() {
$example4.arctext('set', {
radius : 100,
dir : -1
});
return false;
});
$('#button').on('click', function() {
$example4.arctext('set', {
radius : 20,
dir : 1
});
return false;
});
</script>
</code></pre>
|
javascript jquery
|
[3, 5]
|
3,403,408
| 3,403,409
|
asp.net hyperlink - click to make the POST request
|
<pre><code><asp:HyperLink ID="hlBanner" Target="_blank" style="padding-left:10px;" runat="server" ImageUrl="banner.png" />
</code></pre>
<p>I want to send some infomation such as FName, LName & Email into the POST request to another page ProcessInfo.aspx. This processing page pulls the values from the posted form like Request.Form["FName"]. I have to use only the POST technique, because i cannot make the changes to the ProcessInfo.aspx.</p>
<p>I cannot use the Querystring parameters to pass the info. I was hoping to use the WebRequest class to make the redirection to the second page.</p>
<p>How can i build the navigateURL property for making the POST request ?? Pls suggest. I am open to change the control also.</p>
|
c# asp.net
|
[0, 9]
|
3,894,000
| 3,894,001
|
How to disable all the controls on the page after the countdown timer stops in asp.net?
|
<p>I have tried to disable the next button in the following code but its not working....pls help... </p>
<pre><code> protected void timer1_Tick(object sender, EventArgs e)
{
CurrentTime = CurrentTime.AddSeconds(-1);
LblTime.Text = "Time Left: " + CurrentTime.TimeOfDay;
if (CurrentTime.TimeOfDay == DateTime.MinValue.TimeOfDay)
{
LblTime.Text = "Oops!! Time Up";
timer1.Enabled = false;
btnnext.Enabled = false;
}
</code></pre>
|
c# asp.net
|
[0, 9]
|
3,788,962
| 3,788,963
|
Disabling browser scrollbar
|
<p>Hi
Is it possible to disable browser scroll bar through java script...? If yes how?</p>
<p>Help me if anybody knows it...
Thanks in advance..</p>
|
javascript jquery
|
[3, 5]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.