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,309,404
4,309,405
how can i get the source address of an uploaded file in asp.net c#
<p>I need the actual location of the file that i have just uploaded via a file upload control in asp.net. I've tried using </p> <pre><code>string fileName = Path.GetFullPath(fUpldGetDoc.PostedFile.FileName); </code></pre> <p>but this returns</p> <pre><code>C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\angel from montegomery.txt </code></pre> <p>but I need the actual location of the file i.e,</p> <pre><code>e:\angel from montegomery.txt </code></pre>
c# asp.net
[0, 9]
2,528,660
2,528,661
Showing/hiding the next div on mouseover of the previous div
<p>This is my php code:</p> <pre><code>echo '&lt;div class="code" rel="$url"&gt;$title&lt;/div&gt; &lt;div class="tip"&gt;Copy and open site&lt;/div&gt;'; </code></pre> <p>the above is a loop's echo result. Namely, there maybe 0->n like the following html structure</p> <pre><code>&lt;div class="code" rel="...."&gt;...&lt;/div&gt; &lt;div class="tip"&gt;Copy and open site&lt;/div&gt; </code></pre> <p>Now, supposed there are 6 results like the above, I want to use jQuery to get when I put the mouse hover on the first <code>&lt;div class="code" rel="...."&gt;...&lt;/div&gt;</code> the only first tip div will show. When I move the mouse out, the div will be hidden. </p> <p>I think using jQuery alone can't get that effect. There must be some php added to the code, but I don't know how to do that?</p>
php jquery
[2, 5]
4,943,393
4,943,394
Drop-down OnChange
<p>i need help about how i can run a MySQL query (using PHP) everytime, when Drop-down is changed,the query is this one : <code>$sql = "TRUNCATE TABLE rabid_ratings"; $re = mysql_query($sql) or die(mysql_error());</code></p> <p>So i dont need to pass any variables, just run it when drop-down is changed. Thank you guys</p>
php javascript
[2, 3]
1,093,314
1,093,315
Jquery multiple forms in same page
<p>I have the following dynamically generated HTML</p> <pre><code>&lt;div id="1"&gt; &lt;form name = "inpForm"&gt; &lt;input name="FirstName" type="text"/&gt; &lt;input type="submit" value="Submit"/&gt; &lt;/form&gt; &lt;/div&gt; &lt;div id="2"&gt; &lt;form name = "inpForm"&gt; &lt;input name="FirstName" type="text"/&gt; &lt;input type="submit" value="Submit"/&gt; &lt;/form&gt; &lt;/div&gt; </code></pre> <p>The outer divs have different IDs but the form names are the same. I am using Jquery to perform some validation when the form is submitted. However, when the second form is submitted, I always get the values of the first form.</p> <pre><code>$(document).ready(function () { $('form[name="inpForm"]').live('submit', function () { alert($('input[name="FirstName"]').val()); return false; }); }); </code></pre> <p>How can I modify myJquery to find the "FirstName" element that matches the current form where the submit was triggered? Thanks</p>
javascript jquery
[3, 5]
5,125,711
5,125,712
text assign to textbox onclik hyperlink
<p>i have problem on jquery onclick. when onclick happen on a link text box value should fill with the some hard coded text.</p> <p>ex </p> <pre><code> $('#linkBase').click(function() { $('#txtFormula').val("txnword"); }); </code></pre> <p>problem is i want to repeat the "txtword" on the text box when i click on the link as "txtwordtxtwordtxtwordtxtwordtxtword" but currently im getting only once when click the link.</p> <p>any ideas help full</p> <p>thank you</p>
javascript jquery
[3, 5]
4,035,453
4,035,454
Cross Browser Mouse Follow?
<p>My client has requested that they they want a football to follow the mouse on their site. Totally stupid if you ask me, but he's determined to get it done.</p> <p>Problem is all the scripts I have found are old school and are not cross browser.</p> <p>Does anyone know of a solution either in JavaScript or jQuery that will work in all the newest browsers?</p>
javascript jquery
[3, 5]
3,002,619
3,002,620
IPhone application development in java?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/1193524/can-we-run-java-applictions-on-iphone">Can we run Java applictions on iPhone?</a> </p> </blockquote> <p>Does IPhone4 supports Java? Can we write any app using Java for IPhone?</p>
java iphone
[1, 8]
64,629
64,630
Sequence multiplication in c#
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/3754582/is-there-an-easy-way-to-return-a-string-repeated-x-number-of-times">Is there an easy way to return a string repeated X number of times?</a> </p> </blockquote> <p>In Python you can multiply sequences like this</p> <pre><code>fivespaces= ' ' * 5 </code></pre> <p>Is there any built-in equivalent for this in C#? (without operator overloads or class extensions)</p>
c# python
[0, 7]
2,463,422
2,463,423
how can I check to see if my <select> element contains the multiple attribute
<p>hi I have tried many options to check if the multiple attribute is set in my select box but none have worked. I am trying to determine if the current select box that I am getting values from is a multiple select so far this is what I have tried:</p> <pre><code>if($(":select[multiple]").length){ alert("worked"); } </code></pre> <p>also</p> <pre><code>if($("select").attr("multiple"){ alert("worked"); } </code></pre> <p>also</p> <pre><code>if($("select").attr("multiple") != 'undefined'{ alert("worked"); } </code></pre> <p>html:</p> <pre><code>&lt;select multiple="multiple" style="height:50px" class="classname" name="multi_values[]"&gt; &lt;option value="blah"&gt;blah&lt;/option&gt; &lt;option value="blah"&gt;blah&lt;/option&gt; &lt;option value="blah"&gt;blah&lt;/option&gt; &lt;/select&gt; </code></pre>
javascript jquery
[3, 5]
2,013,210
2,013,211
Check what holds in [object Object] in jQuery
<p>I am using a jQuery plugin which returns the object, for example using the below code.</p> <pre><code>onSuccess: function(data, status){ alert(data); } </code></pre> <p><strong>returns [object Object]</strong> </p> <p>as it is returning the object i would like to know how do i check all the contents that holds inside that object using js <code>alert();</code></p> <p>also i would like to know if JS object and JSON are one and the same.</p> <p>thank you</p>
javascript jquery
[3, 5]
5,551,438
5,551,439
pass a javascript via ajax and process with php
<p>I need to pass a javascript object , info is a javascript object.</p> <pre><code>register.php?t="+accessToken+"&amp;u="+info </code></pre> <p>in php i tried to change </p> <pre><code>$data = $_GET['u'] ; var_dump($data); </code></pre> <p>It's not working help me to slove,</p>
php javascript
[2, 3]
2,985,713
2,985,714
selecting field text with javascript
<p>I am using the below code to select a fields text with JavaScript but it doesn't quite work:</p> <pre><code>//auto select that fields text for easy COPY var content = parent.document.getElementById('share_field_&lt;?php echo $id; ?&gt;'); content.focus(); content.select(); </code></pre> <p>Field to select:</p> <p>//share field</p> <pre><code>echo '&lt;div class="name" style="display: none" id="share_field_'.$row['id'].'"&gt;&lt;input name="share" type="text" value="http://www.site.com/play/'.$row['id'].'" size="53"&gt;&lt;/div&gt;'; </code></pre>
php javascript
[2, 3]
3,636,173
3,636,174
How to remove a live submit event in jQuery?
<p>I have two forms on our site #footer_leads and #footer_leads2 and i have a live submit event but need to verify a few things before the form gets summitted so i have this code</p> <pre><code>$('#footer_leads2, #footer_leads').live('submit', function(e){ e.preventDefault(); console.log('again'); var form = $(this); //save reference to form if(somevalidation){ form.die(); form.submit(); //submit form } </code></pre> <p>I assumed the jQuery <a href="http://api.jquery.com/die/" rel="nofollow">die</a> event would do the trick like in the above example but the page just into an infinite loop and crashes my browser....any ideas on how to do this</p>
javascript jquery
[3, 5]
5,324,789
5,324,790
How do I convert several web pages into one pdf document?
<pre><code>public FileResult Download() { var doc = new EO.Pdf.PdfDocument(); EO.Pdf.HtmlToPdf.ConvertUrl("http://www.google.com/", doc); var ms = new MemoryStream(); doc.Save(ms); ms.Position = 0; return new FileStreamResult(ms, "application/pdf") { FileDownloadName = "download.pdf" }; } </code></pre> <p>Can you please show if possible, how to extend the code above to be able to convert several web pages into one pdf document?</p> <p>The tricky part is that we don't know what pages a user is likely to attempt to convert.</p> <p>So, hardcoding the webpages as the code above shows isn't helping us.</p> <p>Any help is greatly appreciated.</p> <pre><code>//Create a new PdfDocument object var doc = new EO.Pdf.PdfDocument(); //Convert two ore more different pages into the same PdfDocument EO.Pdf.HtmlToPdf.ConvertUrl("c:\\1.html", doc); EO.Pdf.HtmlToPdf.ConvertUrl("c:\\2.html", doc); </code></pre> <p>Latest code:</p> <pre><code>public FileResult Download() { var doc = new EO.Pdf.PdfDocument(); foreach(var url in passedUrls) { EO.Pdf.HtmlToPdf.ConvertUrl(url, doc); doc.Save(ms); } ms.Position = 0; return new FileStreamResult(ms, "application/pdf") { FileDownloadName = "download.pdf" }; } </code></pre> <p>Latest from Adam (thank you sir)</p> <pre><code>public FileResult Download() { var documents = new List&lt;EO.Pdf.PdfDocument&gt;(); foreach(var url in passedUrls) { var doc = new EO.Pdf.PdfDocument(); EO.Pdf.HtmlToPdf.ConvertUrl(url, doc); documents.Add(doc); } EO.Pdf.PdfDocument mergedDocument = EO.Pdf.PdfDocument.Merge(documents.ToArray()); } </code></pre> <p>Hopefully, others find these codes useful.</p>
c# asp.net
[0, 9]
1,963,001
1,963,002
set value to hidden input with jquery
<pre><code>&lt;INPUT Type="hidden" value="" name="testing" /&gt; </code></pre> <p>I'm trying this : </p> <pre><code>var test = $("input[name=testing]:hidden"); test.value = 'work!'; </code></pre> <p>But its not working =\ What's wrong with my code ?</p>
javascript jquery
[3, 5]
1,983,291
1,983,292
How to call move right or left in Waterwheel Carousel using jquery?
<p>I am new to jquery and I want to move my Waterwheel Carouselc <strong>left /right</strong> from buttons </p> <p>suppose I have a button for right movement How can I do this code using Waterwheel Carousel function? I have tried the following code :</p> <pre><code>$("#waterwheelcarouseldefault").waterwheelCarousel().moveItem(); </code></pre> <p>any one has a code for it ? </p>
javascript jquery
[3, 5]
2,275,835
2,275,836
"Invalid postback or callback argument" after new deployment
<p>Recently deployed a project into production and have run into the "Invalid postback or callback argument" error. We haven't encountered this in testing at all and after some research have found that the problem occurs in the following situation:</p> <ol> <li>Old version is published and accessed.</li> <li>New version is published and accessed without clearing the Temporary Files.</li> <li>Drop down is changed twice. (The first time everything works fine.)</li> </ol> <p>The fix for the clients that have called in has been to clear their temporary internet files but this isn't the ideal fix. Can anyone think of a reason why this would be happening and stop happening after the temp files have been cleared?</p> <p>BTW: The app is ASP.NET 3.5 written in C#. We're using a javascript call back in this particular control that's causing this issue.</p>
c# javascript asp.net
[0, 3, 9]
2,195,255
2,195,256
How can I use the information that's returned after an ajax .fail?
<p>I set up the following:</p> <pre><code>$.ajax({ cache: false, url: "/Admin/Contents/GetCitiess", data: { accountID: AccountID } }) .done(function (data) { city.html(data); }) .fail(function (jqXHR, textStatus, errorThrown) { ajaxOnFailure(jqXHR, textStatus, errorThrown); }); function ajaxOnFailure(jqXHR, textStatus, errorThrown) { "use strict"; alert("Network connection " + textStatus); } </code></pre> <p>Is there a better way that I could be using the .fail information. I would like to provide more information but I am not sure what I could provide and how I could do this. Note this is an internal application so I want to give as much failure information as possible.</p>
javascript jquery
[3, 5]
110,491
110,492
PHP and Javascript code needed to check if form fields are not empty
<p>Javascript needed to prevent form submit if any of field is empty. all my form fields start names start with name=add[FieldName] those are the fields that need checking.</p> <p>PHP, backend check before submiting to database double check to make sure all $POST are not empty</p>
php javascript
[2, 3]
192,840
192,841
Why cant i output HTML code?
<p>I'm trying to output HTML on my webpages by doing </p> <pre><code> &lt;p&gt; @Server.HtmlEncode(elem.Text.ToString().Replace("[BR]", "&lt;br /&gt;")); &lt;/p&gt; </code></pre> <p><code>[BR]</code> is my coded <code>&lt;br /&gt;</code> since i wont/cant save html directly. However, the problem is that when i use the @Server.HtmlEncode i get this output:</p> <pre><code>one little&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;test!; </code></pre> <p>Without the encoding also looks wrong, it then output <code>&lt;br /&gt;</code>'s in plaintext :(</p> <p>Does anyone have a clue how to make it encode/output correctly?</p>
c# asp.net
[0, 9]
2,086,550
2,086,551
aspx GridView filter with javascript
<p>I'm using Asp.net with c# code, VS 2010. I have a page with a gridview which shows a members list. I would like to use javascript without any ajax to filter the rows in the grid as the user type. For example if the user typed "Jo" then the rows with "John" and "Jonny" will stay and the other ones will be filtered out.</p> <p>Thanks.</p>
c# javascript
[0, 3]
3,908,426
3,908,427
How do I position an element with jQuery
<p>jQuery provides a way to get the position of an element:</p> <pre><code>var position = myElement.position(); </code></pre> <p>However, this function is read only.</p> <p>Is there a way to set the position of my element?</p>
javascript jquery
[3, 5]
3,837,243
3,837,244
When to use Request.UrlReferrer and when Request.ServerVariables["HTTP_REFERER"]?
<p>Both returns the incoming url, Just to know When to use <code>Request.UrlReferrer</code> and when <code>Request.ServerVariables["HTTP_REFERER"]</code> and why?</p> <p>Currently, in one of my application Urlreferrer is working in my local machine but its not working when went live?</p> <p>Additionally, its most appreciable if anyone can guide any alternative of both Urlreferrer and HTTP_REFERRER?</p>
c# asp.net
[0, 9]
2,296,470
2,296,471
Let object "invoke" function in JavaScript
<p>I wasn't sure of the title, but I hope you will be able to help me.</p> <p>I want to use kinda the same pattern that jQuery uses for their event handlers, like click/hover/blur etc, where you use <code>this</code> inside the event handler to get the object.</p> <p>How do I accomplish this?</p> <pre><code>// The event handler var handler = function() { alert(this); // how do I set "this" in the trigger? } // The function that triggers the event handler var trigger = function(handler) { var o = someObject; if($.isFunction(handler)) handler(); // how do I set "o" as the this-reference in handler? } </code></pre>
javascript jquery
[3, 5]
2,643,187
2,643,188
Stop recursion and start over
<p>I have the following function, that is called once in my program. When there is no user interaction it starts over again and again by recursion when the array is printed out. But when a user clicks on a link the function shall be stopped first (no more output from the array) and then be started again with new parameters. </p> <pre><code>function getText(mode){ var para = mode; var url = "getText.php?mode=" + para; var arr = new Array(); //get array via ajax-request var $div = $('#text_wrapper'); $.each(arr, function(index, value){ eachID = setTimeout(function(){ $div.html(value).stop(true, true).fadeIn().delay(5000).fadeOut(); if(index == (arr.length-1)){ clearTimeout(eachID); getText(para); } }, 6000 * index); }); } </code></pre> <p>My code doesn't really stop the function but calling it once more. And that eventuates in multiple outputs and overlaying each other. How can I ensure that the function stops and runs just one at a time?</p> <pre><code>$(document).ready(function() { $("#div1, #div2").click(function(e){ e.preventDefault(); var select = $(this).attr("id"); clearTimeout(eachID); getText(select); }); }); </code></pre>
javascript jquery
[3, 5]
5,631,817
5,631,818
Revealing div using jQuery show() - what happens for those with JS disabled?
<p>I have a module on my website that loads quite strangely, so I want to hide the div while the page loads, then reveal it on document ready. The following (simplified) code works just fine:</p> <pre><code>&lt;div class="slideshow" style="display:none;"&gt; This div should be hidden during load &lt;/div&gt; &lt;script type="text/javascript"&gt; $(document).ready(function() { $('.slideshow').show(); }); &lt;/script&gt; </code></pre> <p>This works as intended. But what happens to users with Javascript disabled? Will the div remain hidden to them? How can I make sure all users will see the widget?</p>
javascript jquery
[3, 5]
1,342,235
1,342,236
List assets in a subdirectory using AssetManager.list
<p>My application has an assets directory in which I've dumped a bunch of text files I need to load at runtime.</p> <p>I have a directory full of assets of a particular type (i.e., "assets/subdir") and I want to load all of the files in this directory, one at a time.</p> <p>I have code like this:</p> <pre><code> AssetManager assetMgr = getAssets(); String[] assetsIWant = assetMgr.list("subdir"); for(String asset: assetsIWant) { doAssetyThing(asset); } </code></pre> <p>I've tried a zillion different versions of the parameter to assetMgr.list() and am not getting anywhere.</p> <p>If I use "/", I get back a list containing the "assets" directory, and a few random other items (META_INF, for example). If I pass any other string (like "assets" or "assets/" or "/assets" or "/assets/" or "mysubdir" or "/mysubdir" or "assets/mysubdir" or ...) then I get back an empty array.</p> <p>The documentation is unfortunately fairly incoherent.</p> <p>Does anybody know what the correct formula for that list() parameter is? </p>
java android
[1, 4]
1,288,478
1,288,479
capturing f5 keypress event in javascript using window.event.keyCode in window.onbeforeunload event is always 0 and not 116
<p>i am creating an MVC application.There was a neccessitity to make a variable in a session to null upon closing of the application (i.e. window/tab) but not upon refreshing the application. I tried it through the following code.</p> <pre><code>&lt;script type="text/javascript"&gt; window.onbeforeunload = function (e) { e = e || window.event; if (window.event.keyCode == 116) { alert("f5 pressed"); } else { alert("Window closed"); //call my c# code to make my variable null, eg:Session["myVariable"] = null; } }; &lt;/script&gt; </code></pre> <p>But when F5 is pressed then, "window.event.keyCode" is always 0 and not 116. Because of which my variable is becoming null even upon F5 key press which is not my requirement.</p> <p>Even when the application (i.e. webpage) is closed,even then its 0 (which is probably correct).</p> <p>Please note that the above part of the code is in .cshtml file.</p> <p>Can anyone tell where am i wrong ?</p>
javascript jquery
[3, 5]
952,260
952,261
Android - using Java generics to return ArrayList of derived class
<p>I have an android app with a Business Object (let's call it SuperClass) that has several derived classes (let's call them DerviedClassA, DerivedClassB etc). Each object has a constructor which takes a Cursor object with multiple rows and assigns appropriate properties based on the <em>current row in the cursor</em></p> <pre><code>public Class DerivedClassA { // properties private int X; // etc public DerivedClassA(Cursor data) { X = data.getInt(data.getColumIndex(ColumnX)); // etc } } </code></pre> <p>I then have BO methods which return an ArrayList of the derived class, like below:</p> <pre><code>public static ArrayList&lt;DerivedClassA&gt; getDerivedClassAList(Cursor data) { ArrayList&lt;DerivedClassA&gt; list = new ArrayList&lt;DerivedClassA&gt;(); for(int i=0;i&lt;data.getCount();i++) { data.moveToPosition(i); DerivedClassA wev = new DerivedClassA(data); list.add(wev); } data.close(); return list; } </code></pre> <p>And so on for DerivedClassB, DerivedClassC etc. To avoid this duplication, I want to be able to have a single method which somehow takes in the type of the derived class, invokes the appropriate constructor of that derived class, and returns an ArrayList of the appropriate derived class. Something like:</p> <pre><code>public static ArrayList&lt;T extends SuperClass&gt; getDerivedClassList(Cursor data) { ArrayList&lt;T&gt; list = new ArrayList&lt;T&gt;(); for(int i=0;i&lt;data.getCount();i++) { data.moveToPosition(i); T wev = new T(data); list.add(wev); } data.close(); return list; } </code></pre> <p>However, I'm not sure if it's actually possible, or how to go about it. Any pointers would be appreciated.</p>
java android
[1, 4]
916,130
916,131
How to get a field value in a DetailView
<p>i am trying to get access to a field in a detailview and display it in a label. Note, i have converted the field into a templdate field. I am not getting anything in the Output label. what am i doing wrong here? thanks</p> <pre><code>if (this.DetailsView1.DefaultMode == DetailsViewMode.Edit) { { TextBox dv = this.DetailsView1.FindControl("ID") as TextBox; // dv.Text = "RCA Assigned"; Session["MySessionVar"] = dv; OutputLabel.Text = (string)Session["MySessionVar"]; } } else { TextBox dv = this.DetailsView1.FindControl("ID") as TextBox; OutputLabel.Text = (string)Session["MySessionVar"]; } </code></pre>
c# asp.net
[0, 9]
2,098,175
2,098,176
PHP code fails in main server
<p>I have integrated a Pop up window(new browser window) control on click of a link. It works really well on local server(PHP 5.3) but not in the main server(PHP 5.1)</p> <p>Here's the Javascript code to pop up window</p> <pre><code>window.open ('http://www.xyzsite.com/edo/hints.php?Para1='+hin, '', 'width=250,height=100'); </code></pre> <p>Is it because of difference in PHP version or any other configuration difference I should look for? Please give me ur inputs.</p>
php javascript
[2, 3]
2,892,618
2,892,619
Email formating using System.Net.Mail smtpclient
<p>How do I format the body of the email so it doesn't look so old school :) I've tried sending html through it, but it just comes out as html in the body of the email.</p> <p>Thanks for any help and assistance, cheers!</p>
c# asp.net
[0, 9]
120,347
120,348
Using $(this) in setTimeout();
<p>I want to set timeouts dynamically in jQuery. The dynamically set timeout functions need to use $("this"), but I can't seem to get it working.</p> <p>An exmple:</p> <pre><code>$("div").each(function(){ var content = $(this).attr('data-content') setTimeout("$(this).html('"+content+"')",$(this).attr('data-delay')); });​ </code></pre> <p><a href="http://jsfiddle.net/qmhmQ/" rel="nofollow">http://jsfiddle.net/qmhmQ/</a></p> <p>What is the best way to do this?</p>
javascript jquery
[3, 5]
5,884,263
5,884,264
Why is this javascript function running without being called?
<pre><code>$(document).ready(SetupButtonClicks()); function SetupButtonClicks() { $('#btnJavaPHP').click(DoPHPStuff()); } function DoPHPStuff() { //stuff } </code></pre> <p>I have this code in my javascript file, when I debug it I see it call <code>SetupButtonClicks()</code> like it should but after that is done it calls <code>DoPHPStuff()</code>. <code>DoPHPStuff()</code> should only be called when <code>btnJavaPHP</code> is clicked. What am I doing wrong?</p>
javascript jquery
[3, 5]
58,117
58,118
javascript test if div has text in it
<pre><code>1. &lt;div id="div_Msg"&gt; Test the div &lt;/div&gt; 2. &lt;div id="div_Msg"&gt; &lt;/div&gt; </code></pre> <p>In the first instance there is the text in the div. In the second instance there is no text. Using javascript how can it be tested if a div has text in it.</p>
javascript jquery
[3, 5]
1,222,439
1,222,440
How to Open the dialog pop up in my Controller code
<p>I have this div in my master page.</p> <pre><code> &lt;div id="UICancelChanges" title="Are you sure?" style="display: none;"&gt; Your changes have not been saved. Are you sure you want to CANCEL ? &lt;/div&gt; </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]
265,023
265,024
How do you display a JavaScript alert from PHP?
<p>I don't code in PHP, but I have this form which I pulled off the web and its working great:</p> <p>What I would like to do is somehow add some code in here that can fire up a JS script, simple alert box, saying "Thank you form is submitted". After the form was received by this mailer.php file.</p> <pre><code>&lt;?php if(isset($_POST['submit'])) { $to = "myEmail@email.com"; $subject = "Form Tutorial"; $name_field = $_POST['name']; $email_field = $_POST['email']; $message = $_POST['message']; $body = "From: $name_field\n E-Mail: $email_field\n Message:\n $message"; echo "Data has been submitted to $to!"; mail($to, $subject, $body); } else { echo "blarg!"; } ?&gt; </code></pre>
php javascript
[2, 3]
1,766,408
1,766,409
Post large data in C#
<p>I have the following scenario</p> <ol> <li>Have a web browser control which uses the Navigate method to call a web page. I have the need to post a large number of elements via FORM POST. The number of elements can be either 40-100 elements.</li> </ol> <p>Is it advisable to encode this and send it via the the Navigate method?</p> <p>Does one normally do this via FORM POST or is there a better solution? I may be able to get the client to expose a webservice and maybe i could stream an xml file to them</p>
c# asp.net
[0, 9]
4,320,002
4,320,003
Displaying multiple images with image control in asp.net 3.5
<p>I want to display all the images from given directory. For that i have given image controls to display images, but i want to display images control with that url automatically as per images in that directory. Suppose in my directory 5 images are present then 5 image controls should be display in my button click event. I have written code in button_click event that displays only two images from the given directory is as follows :</p> <pre><code>protected void btncompare_Click(object sender, EventArgs e) { Bitmap searchImage; searchImage = new Bitmap(@"D:\kc\ImageCompare\Images\img579.jpg"); string dir = "D:\\kc\\ImageCompare\\Images"; DirectoryInfo dir1 = new DirectoryInfo(dir); FileInfo[] files = null; files = dir1.GetFiles("*.jpg"); double sim; foreach (FileInfo f in files) { sim = Math.Round(GetDifferentPercentageSneller(searchImage, new Bitmap(f.FullName)), 3); if (sim &gt;= 0.95) { string imgPath = "Images/" + files[0]; string imgPath1 = "Images/" + files[1]; Image1.ImageUrl = "~/" + imgPath; Image2.ImageUrl = "~/" + imgPath1; Response.Write("Perfect match with Percentage" + " " + sim + " " + f); Response.Write("&lt;/br&gt;"); } else { Response.Write("Not matched" + sim); Response.Write("&lt;/br&gt;"); } } } </code></pre>
c# asp.net
[0, 9]
5,907,680
5,907,681
Starting Android app on hotkey?
<p>I have such question, can I start my android app, via pressing, for example, home button for three times, or something. I'm interested in starting up, exactly, using hardware buttons (home, back, menu, volume +/-, power, camera ...) ?? Any ideas??</p>
java android
[1, 4]
1,992,334
1,992,335
bar chart in php,jquery
<p>i want to make bar chart,but i want to write dynamic text on bar itself.</p>
php jquery
[2, 5]
2,351,096
2,351,097
Microsoft JScript runtime error: Could not complete the operation due to error c00ce514
<p>I wrote a file download code but i get this error when i start it in my projects. Only this code works perfectly fine. But in complex project this error occurred. Can you help about it ? Here is download code</p> <pre><code>string fileUrl = @filePath + "\\" + _DownloadableProductFileName; string newFileName = _DownloadableProductFileName; FileStream fs = new FileStream(fileUrl, FileMode.Open, FileAccess.Read); byte[] buffer = new byte[(int)fs.Length]; fs.Read(buffer, 0, (int)fs.Length); fs.Close(); Response.Clear(); Response.AddHeader("Content-Length", buffer.Length.ToString()); Response.AddHeader("Content-Disposition", "attachment; filename=" + newFileName); Response.BinaryWrite(buffer); Response.End(); </code></pre> <p>And the error code is </p> <blockquote> <p>Microsoft JScript runtime error: Could not complete the operation due to error c00ce514.</p> </blockquote> <p>Here error occurs.</p> <pre><code>get_responseData: function XMLHttpExecutor$get_responseData() { /// &lt;value type="String" locid="P:J#Sys.Net.XMLHttpExecutor.responseData"&gt;The text of the response.&lt;/value&gt; if (arguments.length !== 0) throw Error.parameterCount(); if (!this._responseAvailable) { throw Error.invalidOperation(String.format(Sys.Res.cannotCallBeforeResponse, 'get_responseData')); } if (!this._xmlHttpRequest) { throw Error.invalidOperation(String.format(Sys.Res.cannotCallOutsideHandler, 'get_responseData')); } return this._xmlHttpRequest.responseText; //here throw error }, </code></pre>
c# asp.net
[0, 9]
1,225,040
1,225,041
getting a value along with html markup returned by Ajax in Jquery
<p>I use the following to retrieve some html using Jquery:</p> <p>index.php</p> <pre><code>$.post( 'get-products.php', $("#offerForm").serialize() + '&amp;lastid=' + highest, function(data) { $('#demo').html(data); } </code></pre> <p>Is it possible to also retrieve a value of a variable from get-products.php, example:</p> <p>get-products.php</p> <pre><code>&lt;? echo $htmlOutput; echo $variable; ?&gt; </code></pre> <p>index.php</p> <pre><code>$.post( 'get-products.php', $("#offerForm").serialize() + '&amp;lastid=' + highest, function(data) { $('#demo').html(data); //variable processing statement goes here } </code></pre>
javascript jquery
[3, 5]
2,582,911
2,582,912
Exception java.lang.ClassCastException when query contacts
<p>I was trying to get the contacts using a query through the ContactsContract The following code throws an exception. java.lang.ClassCastException.</p> <pre><code>public class ContactManager extends Activity{ ArrayList&lt;String&gt; contactsList = new ArrayList&lt;String&gt;(); @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); String[] contacts = getContactNames(); } public String[] getContactNames(){ try{ Cursor cursor = getContentResolver().query(ContactsContract.Contacts.CONTENT_URI, null, null, null, null); while (cursor.moveToNext()) { contactsList.add(cursor.getString(cursor.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME))); } return (String []) contactsList.toArray(); } catch(Exception e){ Log.e("WOw", e.toString()); return null; } } } </code></pre> <p>Any idea? I did not forget to add the permission </p>
java android
[1, 4]
2,202,713
2,202,714
Android/Java - Find text and replace in WebViewClient
<p>I have a WebViewClient that opens in a dialog which i can capture when the URL changes, but on certain URL's I would like to replace certain text but I cant seem to figure out how to get the text of the current webpage that has been loaded so I can search and replace that text.</p>
java android
[1, 4]
5,948,624
5,948,625
Jquery click() function not recognising when a link is clicked
<p>I have a very simple JavaScript operation which is just not working. I'm using the twitter-bootstrap CSS, and am attempting to implement the close of the close message box. I have my code here:</p> <p><a href="http://jsfiddle.net/YQgpe/" rel="nofollow">http://jsfiddle.net/YQgpe/</a></p> <p>HTML</p> <pre><code>&lt;div class = "alert-message success" id = "message_1"&gt; &lt;a class = "close" href = "#"&gt;x&lt;/a&gt; &lt;/div&gt; </code></pre> <p>JavaScript</p> <pre><code>function hideSomething(which_thing) { $(which_thing).hide(); } $(".close").click(function() { hideSomething("#" + $(this).parent().attr("id")); }); </code></pre> <p>Essentially I want the same "close" class of link to hide the div when clicked - hence the request for the parent id. But even though jslint tells me my code is valid - it still doesn't work.</p> <p>Any ideas on how to solve this would be greatly appreciated.</p>
javascript jquery
[3, 5]
508,218
508,219
manipulate css on multiple spans with javascript
<p>I am trying to manipulate spans based on what is contained in them. on my company's ecommerce site there are two spans that contain the price of an item and the sale price of an item. not all items have sale prices. problem is the original price span is shown with the text-decoration set to line-though regardless of whether or not there is a sale price. since i can't interact with the database that contains product info (platform won't allow it) i have to use javascript to correct this. I need to hide the span that contains the sale price if no sale price is present and remove the text-decoration on the other span that contains the original price. currently the code (below) i have will hide the sale span, but i can only get it to remove the text-decoration on all or none of the list price spans. Any ideas?</p> <pre><code>$(function(){ $(".container &gt; .special").each(function(){ var specialContents = $(this).text(); var isEmpty = specialContents.substr(0, 7); if(isEmpty != "Sale: $"){ $(this).hide(); } }); }); </code></pre> <p> </p> <p>each set of spans is wrapped in a div with class container and the spans have the classes 'list' for the original or list price and 'special' for the sale price, Also, the first 6 characters of every special span will be "Sale: " regardless of if it has a price or not. Thanks in advance</p>
javascript jquery
[3, 5]
5,860,827
5,860,828
How to refresh currentpage with specific querystring value (c#)
<p>I have a problem with a simple error notification when I delete a specific product.</p> <p>I have one page products.aspx I have 2 categories - Mobile (cat 1) - Net (cat 2)</p> <p>When i delete a specific product from a specific category I have a notification coming up "your product has been deleted..." and then after 2 sec, I want the current page to refresh, so the new and correct number of products is shown. My problem is, that I am requesting querystring "deleteid", while deleting the product, and then my querystring with "categoryid" is, of course, 0. All in all i need "products.aspx?categoryid=2" to refresh, but categoryid is ofc 0, when requesting "deleteid".</p> <p>I got this so far, hope you understand and can help me... Thanks!</p> <pre><code>... listing products by category (Request.QueryString["categoryid"]) ... Then deleting by id, (Request.QueryString["deleteid"]) ... and now my problem and what I have so far: var query = Request.QueryString["deleteid"]; if (query.HasValue()) { // deleting product DeleteSpecificProduct(query.Int16()); errornotification.Text += @"Your product has been deleted"; // refreshing current page var categoryid = Request.QueryString["categoryid"].Int16(); var url = String.Format("products.aspx?categoryid={0}", categoryid); Response.AppendHeader("REFRESH", "2;URL=" + url); } </code></pre> <p>//Thanks</p>
c# asp.net
[0, 9]
2,941,964
2,941,965
Not able to download image using HttpURLConnection
<p>I am trying download file <a href="http://images.anandtech.com/doci/5434/X79%20Extreme9Box_575px.jpg" rel="nofollow">http://images.anandtech.com/doci/5434/X79%20Extreme9Box_575px.jpg</a></p> <p>but not able to download it using HttpUrlConnection, ImageIO.read and even in php using file_get_contents.</p> <p>I am not able to figure it out why this is happening but if I check this link in browser then header response is 200 both in firefox as well as opera</p> <p>Please help me </p> <p>Now I notice that I am receiving 400 code.</p> <p>Exception in thread "main" java.io.IOException: Server returned HTTP response code: 400 for URL: <a href="http://images.anandtech.com/doci/5478/Screen" rel="nofollow">http://images.anandtech.com/doci/5478/Screen</a> Shot 2012-01-30 at 4.21.52 PM_575px.png at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)</p>
java php
[1, 2]
2,559,938
2,559,939
Where can I find a Java to C# converter?
<p>I needed to convert a Java 1.5se app to C# 2.0.</p> <p>Does anyone know of a tool (preferably free/open source) to do this?</p>
c# java
[0, 1]
3,775,579
3,775,580
Can't set element ID in JavaScript, it's always undefined
<p>I want to have a function that generates ID's on the fly for a given jquery object, if it doesn't have one already. These ID's should then be used in future requests.</p> <p>I came up with the code below, but it doesn't work. The ID's are never set. The commented out alert statement below always return undefined.</p> <p>I always pass code like $(this) or $(options.el) as a parameter to substitute 'el'. Initially, the elements do not have explicitly ID set in HTML.</p> <p>Any help would be appreciated, here's the code:</p> <pre><code>getElementId: function(el) { if(undefined == el.attr('id')) { el.attr('id',"anim-"+Math.random().toString().substr(2)); } // alert(el.attr('id')); return el.attr('id'); }, </code></pre>
javascript jquery
[3, 5]
5,931,492
5,931,493
Javascript is working fine but not in jQuery
<p>This code works fine for me in Javascript.</p> <pre><code>function check_u() { var errormessage = document.getElementById("errorname"); var user = document.forms["login"]["user"].value; if (user == null || user == "") { errormessage.innerHTML = "Please enter your user id"; } else { errormessage.innerHTML = ""; } } function check_p() { var errormessage = document.getElementById("errorpass"); var pass = document.forms["login"]["password"].value; if (pass == null || pass == "") { errorShow.innerHTML = "Password cannot be blank"; } else { errorShow.innerHTML = ""; } } </code></pre> <p>My html is :</p> <pre><code>&lt;input type="text" name="user" autocomplete="off" onBlur="check_u()" /&gt; &lt;input type="text" name="password" autocomplete="off" onBlur="check_p()" /&gt; &lt;div id="errorname" /&gt; </code></pre> <p>I have written an alternative for this code in jQuery. In JavaScript it works fine but in jQuery when I don't enter any input first time it is showing error message. I enter some value to it then it clears the error message. Now if I am leaving the input blank the error message doen't show up. Here is my jQuery code:</p> <pre><code>function check_u(){ var fieldValue = $("input[name=user]").val(); if(fieldValue==""||fieldValue==null){ $("#errorname").html('&lt;div id = "error_left"&gt;&lt;/div&gt;'+ '&lt;div id = "error_right"&gt;&lt;p&gt;This is a required field&lt;/p&gt;&lt;/div&gt;'); }else{ $("#errorname").hide(); } } </code></pre> <p>Why, if on repeated calls, does my errorname div not show up?</p> <p>Does .hide() do more than just clear out the div?</p>
javascript jquery
[3, 5]
3,056,751
3,056,752
restrict end date using start date in jquery
<p>below snippet belongs to select two dates, i have to add another feature for that i.e, end date selection should be limited for one day greaterthan start date </p> <pre><code>$(function() { $( "#fromDate" ).datepicker({ defaultDate: "+0", changeMonth: true, changeYear: true, numberOfMonths: 1, dateFormat:"yy-mm-dd", onClose: function( selectedDate ) { $( "#toDate" ).datepicker( "option", "minDate", selectedDate); this.focus(); } }); $( "#toDate" ).datepicker({ defaultDate: "+0", changeMonth: true, changeYear: true, numberOfMonths: 1, dateFormat:"yy-mm-dd", onClose: function( selectedDate ) { $( "#fromDate" ).datepicker( "option", "maxDate", selectedDate ); } }); }); </code></pre> <p>thx in advance!!!</p>
javascript jquery
[3, 5]
1,763,895
1,763,896
append PHP in jquery
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/7016701/creating-jquery-ajax-requests-to-a-php-function">Creating jQuery AJAX requests to a PHP function</a> </p> </blockquote> <p>How can i write PHP in Jquery </p> <p>is there is a way to do this </p> <pre><code> $('button').click(function(){ &lt;?php session_destroy();?&gt; }) ; </code></pre>
php jquery
[2, 5]
5,842,085
5,842,086
jquery is select selected
<p>Ok, first off this isn't to find a value of a select boxes selected option. But its along the lines there of. I have a function I am working on that will check to see if the value selected matches that of the one being compared to from somewhere else, where if the match is found it does one thing if not it does another. However. Due to a recent requirement. The original function breaks cause there is not the probability that the select wont even be touched prior to the need of function.</p> <p>So Im trying to tell if theres anyway to check to see if the select in question has had anything chosen or not prior to it doing anything else. I'm thinking of the concept of checking for an empty array with length, but I'm not looking to see if the select is empty or not. I need to know if there is a selected value or not so I can act accordingly with that. Hope this makes sense.</p>
javascript jquery
[3, 5]
22,823
22,824
Getting commands from string input
<p>I have a program which gets commands as a string. Each character in the string represents a command. An example of command is given below</p> <pre><code>OBIPC </code></pre> <p>O - Open a file</p> <p>B - Make the text in Bold</p> <p>I - Make the text in italics</p> <p>P - Print the text</p> <p>C - Close the file</p> <p>My program has to parse this string and do respective job. Each command is executed sequentially. I came up with the following idea to do this.</p> <ol> <li>Create action classes for each command. Each will have a <em>Execute()</em> method and implements an interface <em>IExecutable</em>. So if I have 5 commands, I will have 5 classes each for processing each command. </li> <li>Keep the command and associated object that can perform action in an associative container (<em>std::map</em> in C++ and <em>Dictionary</em> in .NET).</li> <li>Loop through each character in the input string. Check any action associated for each character. If yes, get the action object and call <em>Execute()</em>. Some sort of command design pattern. If some charcters don't have action associated, throw error or skip. </li> </ol> <p>Will this approach be the best for my problem or do you see any easy/efficient method to do this? This is not specific to any programming language, I am OK with any programming language. All I am looking for is ideas to do this.</p> <p>Any thoughts?</p>
c# c++
[0, 6]
593,335
593,336
jQuery image swap on hover
<p>When you hover over the Dharma arrow image in my sample link, it's meant to replace the bunny picture with the same you're hovering.</p> <p>I was doing it <a href="http://jsfiddle.net/Kyle_Sevenoaks/3ehnB/" rel="nofollow">here at jsFiddle.net</a></p>
javascript jquery
[3, 5]
1,101,380
1,101,381
Android webview with jquery not working
<p>i'm trying to combine some code of jquery on my application webview.</p> <p>i'm saving on my assets folder the files: 1. jquery-1.8.1.js 2. a.js 3. b.js</p> <p>all those files working together.</p> <p>im getting html code from server and i'm saving it on file on the sd-card, that file called test.html.</p> <p>before im saving that html file i do this:</p> <pre><code>HTML = HTML.replace("&lt;HEAD&gt;", "&lt;HEAD&gt;" + "\n" + "&lt;script type=\"text/javascript\" src=\"file:///android_asset/jquery-1.8.1\"&gt;&lt;/script&gt;" + "\n" + "&lt;script type=\"text/javascript\" src=\"file:///android_asset/a.js\"&gt;&lt;/script&gt;" + "\n" + "&lt;script type=\"text/javascript\" src=\"file:///android_asset/b.js\"&gt;&lt;/script&gt;"); </code></pre> <p>in the right order that worked for me on a pc browser. but on the devide the js files dont work for me at all.</p> <p>i have set those before to my webview:</p> <pre><code>WebView web_Body=(WebView)findViewById(R.id.forms_webview); WebSettings webSettings = web_Body.getSettings(); webSettings.setJavaScriptEnabled(true); web_Body.getSettings().setPluginState(WebSettings.PluginState.ON); web_Body.getSettings().setPluginsEnabled(true); webSettings.setBuiltInZoomControls(true); webSettings.setSupportZoom(true); </code></pre> <p>and than i do this for opening the file:</p> <pre><code>web_Body.loadUrl("/sdcard/temp/test.html"); </code></pre> <p>i just want to say again that in pc browser all works fine.</p> <p>thanks in advance!!</p>
javascript android jquery
[3, 4, 5]
1,598,495
1,598,496
Javascript: displaying fancy alerts with javascript file
<ul> <li>I have an Javascript file(<code>handler.js</code>) while is basically an ajax request/response cycle</li> <li>On receiving data, I do <code>alert(data)</code> and it works fine</li> <li>I want to show fancy alerts like one in Jquery, how can I create fancy alerts from with in <code>handler.js</code>?</li> </ul>
javascript jquery
[3, 5]
914,311
914,312
How to Delete a file using asp.net?
<p>to all i write the code in asp.net using c# to delete the file in my computer, but it is not deleting please help me thank u. this is my code, i write in button click event</p> <pre><code> string path = "E:\\sasi\\delt.doc"; FileInfo myfileinf = new FileInfo(path); myfileinf.Delete(); </code></pre>
c# asp.net
[0, 9]
2,083,109
2,083,110
jQuery .nextUntil() equivalent
<p>I need an alternative for jQuery's <code>.nextUntil()</code>. I'm currently using <code>jQuery 1.3.1</code> and updating it is out of the question :(</p> <p>I have this HTML:</p> <pre><code>&lt;h4&gt;...&lt;/h4&gt; &lt;p&gt;...&lt;/p&gt; &lt;p&gt;...&lt;/p&gt; &lt;p&gt;...&lt;/p&gt; &lt;h4&gt;...&lt;/h4&gt; &lt;p&gt;...&lt;/p&gt; &lt;p&gt;...&lt;/p&gt; </code></pre> <p>and I have this jQuery code:</p> <pre><code>$('h4').click(function(){ $(this).nextUntil('h4').toggle(); }); </code></pre> <p>but <code>.nextUntil()</code> is added in <code>1.4.0</code> So do you have an idea how to do that in <code>1.3.1</code> ?</p>
javascript jquery
[3, 5]
2,094,167
2,094,168
if condition onclick - jQuery
<pre><code>$('.product-nav li a').click(function() { $('.product-nav li').removeClass('active'); $(this).parent().addClass('active'); if( $(this).hasClass('tshirts') ){ $('product').hide(); $('.product.tshirt').show(); } }); </code></pre> <p>.. active class is assigned correctly but the products are not hidden/shown as desired because I think the if condition is not recognized on click?</p>
javascript jquery
[3, 5]
5,594,846
5,594,847
Why doesn't my find and replace code work properly?
<p>I need to find and .replaceWith some text, for example:</p> <blockquote> <p><strong>absdef</strong> replace with <strong>111111</strong></p> <p><strong>abcdefgiop</strong> replace with <strong>22222222</strong></p> </blockquote> <p>But when my text looks like </p> <blockquote> <p>abcdef, abcdefgi</p> </blockquote> <p>.replaceWith work poorly for me and I get something like this:</p> <blockquote> <p><strong>111111</strong>, 111111giop</p> </blockquote> <p>I use this code:</p> <pre><code>$("*").contents().each(function() { if(this.nodeType == 3) this.nodeValue = this.nodeValue.replace("absdef", "111111"); }); // $("*").contents().each(function() { if(this.nodeType == 3) this.nodeValue = this.nodeValue.replace("abcdefgiop", "22222222"); }); </code></pre>
javascript jquery
[3, 5]
3,685,859
3,685,860
jQuery keydown/keypress not working right
<p>So I haven an input:</p> <pre><code>&lt;input type="text" name="in" /&gt; </code></pre> <p>And I need to get the current <code>value</code> of the input as I type, the problem that I face is, if I type <code>pass</code> and I do a console.log what I will get will be <code>pas</code> missing the last character; but I need to whole string <code>pass</code></p> <p>You can see a live demo here: <a href="http://jsfiddle.net/HjVHV/1/" rel="nofollow">http://jsfiddle.net/HjVHV/1/</a> What's the problem?</p>
javascript jquery
[3, 5]
3,379,599
3,379,600
Button to close application if user does not accept terms
<p>ok I've search all over the web for a solution to this. </p> <p>I'm a newbie so please bear with me.</p> <p>I have a application that requires a user to agree to a EULA which is a activity that I created. I have a accept and cancel button, when the accept button is pressed it stores data inside the sharedpreference to say that it was accepted.</p> <p>My problem comes in on the cancel button. If I use a dialog instead of a activity it works fine with finish(); as it closes the app. but if I use the cancel button on the activity it closes that activity and proceeds to access the rest of the app. </p> <p>What is the best way to tell my button that the app should be closed if the user does not accept the EULA.</p>
java android
[1, 4]
100,713
100,714
Get width of control with not set width
<p>I have gridview and chart below it.</p> <p>I want gridview stretch depending on number of columns (not set width) and after that to assign that width to chart.</p> <p>If I do:</p> <pre><code>chart.Width = gridview.Width.Value; </code></pre> <p>I get 0.0 pixels.</p>
c# asp.net
[0, 9]
5,754,410
5,754,411
Set textbox value inside grid
<p>Anyone know how to set value textbox inside grid when edit mode is on? 1. i have textbox name aggregation : 2. i just want to set some value to those textbox when edit mode is on by button. so i have button : 3. i need to define those code in javascript ex setValue() :</p> <pre><code>function setValue() { var grid = $('&lt;%=gvVariableConfig.ClientID%&gt;'); ........(what i need to do is here, anyone help) } ----------------------------------------------------------------------------- &lt;asp:TemplateField HeaderText="Aggregation" ItemStyle-HorizontalAlign="Left" HeaderStyle-Width="5%" ItemStyle-Width="5%"&gt; &lt;EditItemTemplate&gt; &lt;asp:TextBox ID="txtAggregation" runat="server" Text='&lt;%# Bind("AGGREGATION") %&gt;' Width="91%"&gt; &lt;/asp:TextBox&gt; &lt;asp:Label ID="lblAggregation" runat="server" Text='&lt;%# Bind("AGGREGATION") %&gt;' Visible="false"&gt; &lt;/asp:Label&gt; &lt;/EditItemTemplate&gt; &lt;ItemTemplate&gt; &lt;asp:Label ID="lblAggregation" runat="server" Text='&lt;%# Bind("AGGREGATION") %&gt;'&gt; &lt;/asp:Label&gt; &lt;/ItemTemplate&gt; &lt;/asp:TemplateField&gt; ---------------------------------------------------------------------------- &lt;button type="button" style="width: 100%;" onclick="setValue()"&gt; Assign to Aggregation&lt;/button&gt; </code></pre> <p>anyone can help?</p>
javascript asp.net
[3, 9]
4,970,468
4,970,469
Adding list controls to panel in c#
<p>I have a panel . in my Db i have a list of persons .. for each person in run time i add different attributes under them . i want all the persons to be list as a list (separate list for each person ) . i will add values later . </p> <p>here is my .aspx code</p> <pre><code> &lt;asp:Panel ID="DR_list" runat="server" Direction="LeftToRight" Height="227px" HorizontalAlign="Center" ScrollBars="Horizontal" Wrap="False"&gt; &lt;asp:ListView &gt; &lt;/asp:ListView&gt; &lt;/asp:Panel&gt; </code></pre> <p>my c # code is </p> <pre><code> SqlDataReader myReader = null; SqlCommand myCommand = new SqlCommand("select drname from --- ", myConnection); myReader = myCommand.ExecuteReader(); while (myReader.Read()) { //Response.Write(myReader["DrName"].ToString()); int tRows; int tCells; List&lt;string&gt; DrNames = new List&lt;string&gt;(); for (tCells = 0; tCells &lt; 4; tCells++) { string a = myReader["DrName"].ToString(); Response.Write(a); DrNames.Add(a); } DR_list.Controls.Add(DrNames); } } </code></pre> <p>please help me .. thanks in advance</p>
c# asp.net
[0, 9]
3,827,759
3,827,760
Downloading and decompress a zip-file in the background?
<p>I need to download a zip file and unpack it, in the background (in an AsyncTask I'd imagine).</p> <p>As it is now, I've got a DefaultHTTPClient set up, and a ZipInputStream ready to go, but here's where I am stuck - I have no idea how to use these two together. Here's the relevant code in the AsyncTask:</p> <pre><code>DefaultHttpClient http = new DefaultHttpClient(); HttpGet method = new HttpGet("http://tf2b.com/downloads/imgshugo.zip"); //method.addHeader("Accept-Encoding", "gzip"); HttpResponse res = http.execute(method); InputStream is = res.getEntity().getContent(); ZipInputStream zip = new ZipInputStream(is); </code></pre> <p>The last line there I'm not sure about at all, even. Any help would be appreciated!</p>
java android
[1, 4]
4,128,660
4,128,661
how do I send data from one php file to another?
<p>I have a button on a file test.php</p> <pre><code>&lt;?php $url="http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; ?&gt; &lt;input type="button" name="btn" value="Download" onclick="alert('&lt;?php echo $url; ?&gt;')"&gt; </code></pre> <p>when the file is clicked, it alerts the page's url.</p> <p>I have another page, test2.php.</p> <p>I want the url that is being alerted to be displayed out in test2.php</p> <p>How can I accomplish this?</p>
php javascript jquery
[2, 3, 5]
4,561,313
4,561,314
Javascript object array comparison
<p>I have two array of objects in javascripts. Like <code>arr1[] = {emp1,emp2,emp3}</code> where inturn <code>emp1</code> has <code>emp1.name</code> and <code>emp1.address</code> as property. </p> <p>Something like </p> <pre><code>arr1={object {name='a',address='b'} {name='c',address='d'} {name='e',address='f'} }. arr2={object {name='a',address='b'}}. </code></pre> <p>I wanted to compare <code>name</code> property of two array objects and populate the missing items into another array. So result will be result[]={'c','e'}</p> <p>Whats is the efficient way in achieving this? I don't expect code, please guide me in the right direction. Thanks.</p>
javascript jquery
[3, 5]
54,234
54,235
Best way to create master page that has menu and links but displays main content from other pages
<p>I've got a bunch of asp pages that I'm upgrading to asp.net. I'm trying to figure out a good way to achieve the following:</p> <p>I basically wan't a portal page that has a menu bar and links to other sites in the company intranet but instead of redirecting to the other site when the link is clicked, it loads the page into the current one so that the links and menu bar are accessible to all of the other sites. My goal is to make it so that when a new website needs to be made, the developer can just add in the guts for the page, and add another link to the master page.</p> <p>What would be a clean way to achieve this? Would it be best to have all of these (now separate) web applications bundled into one asp.net web application project, or is there an easy way to share a master page across many asp.net projects?</p> <p>I'm new to asp.net and web development so any help is appreciated, thanks.</p>
c# asp.net
[0, 9]
2,924,891
2,924,892
How to put js link?
<p>I have link with jQuery post action:</p> <pre><code>$.post('my_url', { 'pid': pid, 'name': $('input#nametxt').val() }, function(data){ $('#list').append(data); }); </code></pre> <p>Respose from server is for example:</p> <pre><code>&lt;li&gt;My custom name &lt;a href="javascript:add_another('23');"&gt;Add another&lt;/a&gt;&lt;/li&gt; </code></pre> <p>But this dynamically added link not working. How to do it well?</p>
javascript jquery
[3, 5]
5,061,307
5,061,308
How the method resolution and invocation works internally in Python?
<p>How the methods invocation works in Python? I mean, how the python virtual machine interpret it.</p> <p>It's true that the python method resolution could be slower in Python that in Java. What is late binding?</p> <p>What are the differences on the reflection mechanism in these two languages? Where to find good resources explaining these aspects?</p>
java python
[1, 7]
1,111,962
1,111,963
jQuery: How does functions works just by dots (.)
<p>Since I learned jQuery I've always wondering how does jQuery execute a function after another just by adding dots <code>.</code> (dont know it real name, sorry for that);</p> <pre><code>$("#somediv").fadeIn("fast").css("background","blue"); </code></pre> <p>When fade effect finished then the CSS function execute. Its like if you can execute whatever function you want one after another.</p> <p>How can I do that?</p> <p>Note: If I named something wrong, please correct me, I just want to learn.</p>
javascript jquery
[3, 5]
2,472,528
2,472,529
Automatic Java to C++ conversion
<p>Has anyone tried automatic Java to C++ conversion for speed improvements? Is it a maintenance nightmare in the long run? Just read that is used to generate the HTML5 parsing engine in Gecko <a href="http://ejohn.org/blog/html-5-parsing/" rel="nofollow">http://ejohn.org/blog/html-5-parsing/</a></p>
java c++
[1, 6]
6,026,657
6,026,658
Inserting PHP variable value in Javascript file
<p>I have a JavaScript file which has a hard coded BASEURL variable, this value is then used by other functions in the file. I would like for this url value to be set dynamically so that I don't need to manually change it for different installs. Is it possible to insert a PHP variable value into a JavaScript file?</p>
php javascript
[2, 3]
3,279,768
3,279,769
Javascript Date manipulation
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/1187824/finding-date-by-subtracting-x-number-of-days-from-a-particular-date-in-javascrip">Finding date by subtracting X number of days from a particular date in Javascript</a> </p> </blockquote> <p>I have a <a href="http://stefangabos.ro/jquery/zebra-datepicker/" rel="nofollow">jQuery datepicker</a> which allows users to pick a Friday from any given week. I want to populate fields based off that Friday and input the dates from Mon-Thurs as well.</p> <p>I.e. the user picks this coming Friday (10-26-2012), I want to subtract from the day by 1 to get Thursday date, and then Wed, etc etc.</p> <p>How would I approach this?</p> <pre><code> $(document).ready(function(){ $("#friDate").Zebra_DatePicker({ format: 'm-d-Y', disabled_dates: ['* * * 0-4,6'], first_day_of_week: 0, onSelect: function(){ var date = $("#friDate").val(); $("#mon").val('INSERT MON DATE'); $("#tue").val('INSERT TUE DATE'); $("#wed").val('INSERT WED DATE'); $("#thu").val('INSERT THU DATE'); $("#fri").val(date); } }); }); </code></pre> <p>Any help is greatly appreciated! Thanks :).</p>
javascript jquery
[3, 5]
4,282,793
4,282,794
Removing rows that do not contain search-term with jQuery
<p>I'm using the following JQuery to filter rows on a datatable, which works fine...</p> <pre><code>yuiDtFilter = function(tableDivId, filter) { //custom jQuery function defines case-insensitive fn:Contains, use default fn:contains for case-sensitive search jQuery.expr[':'].Contains = function(a,i,m){ return jQuery(a).text().toUpperCase().indexOf(m[3].toUpperCase())&gt;=0; }; $("#" + tableDivId + " .yui-dt-data").find('tr').hide(); $("#" + tableDivId + " .yui-dt-data").find('td:Contains("' + filter + '")').parents('tr').show(); } </code></pre> <p>However I have a need for the filter work in the opposite way. I need it to remove rows that <em>don't</em> match the search terms.</p> <p>I've found out that I need to use 'not()', but I've spent most of the day in vain trying to get it to work (using every example I can find).</p> <p>I've tried many variations of -</p> <pre><code>$("#" + tableDivId + " .yui-dt-data") .find(:not(('td:Contains("' + filter + '")')) .parents('tr').remove(); </code></pre> <p>Could anyone give me a hand using my code as a starting point?</p>
javascript jquery
[3, 5]
5,803,323
5,803,324
How to prevent the auto Scroll Event while loading new HTML contents?
<p>I am using window.scroll() function for appending more html contents to the DIV holder while scrolling . I am loading 10..10 each on each scroll event. But after loading the first 10 contents, the document size increasing and accordingly the browser automatically scrolls and calling the loadContent function and appending new contents without doing the scroll manually.how can i prevent this mechanism.I need to load further contents only when the user Scrolls the button.</p> <pre><code>$(function(){ var loading = true; $(window).scroll(function(){ if ( loading &amp;&amp; $(window).scrollTop() + $(window).height() &gt; $(document).height() - 100 ){ loading = false; loadContents(); loading = true; } }); )}; </code></pre> <p>Is there any other better way to perform the infinite scrolling functionality?</p>
javascript jquery
[3, 5]
2,063,115
2,063,116
how to get expiration date of local windows account?
<p>I need to create C# method like this :</p> <pre><code> void deleteExpiredAccounts(String Account,dateTime expirationDate) { if(expirationDate == DateTime.Now) { DirectoryEntry localDirectory = new DirectoryEntry("WinNT://" + Environment.MachineName + ",computer"); DirectoryEntries users = localDirectory.Children; DirectoryEntry user = users.Find(Account); users.Remove(user); } } </code></pre> <p>any idea will be appreciated..thanks in advance!</p>
c# asp.net
[0, 9]
1,446
1,447
How do I pass a Linked List of custom objects between activities in an android application?
<p>I need a linked list of custom objects when trying to bundle it I do not see a putObjectLinkedList method is there an easy way of doing this or must implement the Parcable interface in my custom object?</p>
java android
[1, 4]
4,859,474
4,859,475
Is it possible to trigger a click event on hover?
<p>General javascript question here, which would also be good to know how(if possible) to do in jquery.</p> <p>Can you trigger a click event when hovering over an item?</p> <p>I know there will be people asking why, but please just humour me.</p> <p>Many thanks, C</p>
javascript jquery
[3, 5]
1,240,710
1,240,711
Select td elements if checkbox is on
<p>I have this table, from which i'd like to select all the <code>td</code> elements value if the checkbox is <code>checked</code> and then put all the elements in some array or string, so that i can transfer it to server side.</p> <pre><code>&lt;table id="tableDg"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;&lt;input type="checkbox" class = "chkbCsm" &gt;&lt;/input&gt;&lt;/td&gt; &lt;td width="10%" align="center"&gt;&amp;nbsp;&amp;nbsp;&lt;input type="hidden" id="nameText" readonly="true" value="{name}"&gt;{name}&lt;/input&gt;&lt;/td&gt; &lt;td width="22%" align="center"&gt;&amp;nbsp;&amp;nbsp;&lt;input type="hidden" id="nameText" readonly="true" value="{host}"&gt;{host}&lt;/input&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; </code></pre> <p>Here is what i am doing on jquery side, but it does the selecting thing irrespective of the checkbox being on. Please somebody help me get it in some array.</p> <pre><code>$('#tableDg tbody tr').live('click', function (event) { $(this).find('td').each( function( index, item ) { if ( $(this).has(':hidden') ) { alert( $(this).find(':hidden').val() ); } }); }); </code></pre> <p><strong>Added</strong> a jsFiddle link</p> <p>Take a look <a href="http://jsfiddle.net/abhisheksimion/vAYFL/2/" rel="nofollow">here</a></p>
javascript jquery
[3, 5]
3,228,291
3,228,292
Binding DataList to Dictionary
<p>I have a Dictionary I want to bind to a DataList. But I also want to use the Dictionary's Key value for the DataList's DataKeyField property. Is this possible?</p>
c# asp.net
[0, 9]
2,986,407
2,986,408
Crystal reports repeating the items when i am using the query with dataset
<p>I am new to crystal report. At the time of binding the data from dataset to the crystal report showing twice or thrice.</p> <p>I am using SQL 2005 and VS 2008.</p> <p>i checked in SQL and dataset also at the time of debugging but in dataset only i am having 5 records but in my crystal its showing 10 records.</p> <p>Below is my Code:</p> <pre><code>ReportDocument doc = new ReportDocument(); sda = new SqlDataAdapter(" SELECT ac_mstr.AC_DESC, TRAN_HDR.DOC_DT, TRAN_DTLS.GL_CODE, DBCR, AMT FROM dbo.TRAN_DTLS TRAN_DTLS INNER JOIN dbo.AC_MSTR ac_mstr ON (TRAN_DTLS.SUB_CODE=ac_mstr.SUB_CODE) AND (TRAN_DTLS.GL_CODE=ac_mstr.GL_CODE) INNER JOIN dbo.TRAN_HDR TRAN_HDR ON (TRAN_DTLS.TC=TRAN_HDR.TC) AND (TRAN_DTLS.DOC_NO=TRAN_HDR.DOC_NO) where tran_hdr.tc='CAS' and tran_hdr.doc_dt between '2012/01/01' and '2012/12/30' ORDER BY TRAN_DTLS.GL_CODE", con); sda.Fill(ds); doc.Load(Server.MapPath("~/Reports/Acc_sum.rpt")); doc.SetDataSource(ds.Tables[0]); CrystalReportViewer1.ReportSource = doc; </code></pre> <p>Can any one help Me?</p>
c# asp.net
[0, 9]
4,322,671
4,322,672
How to use .append on a jQuery .load() function
<p>I'm trying to append the data being called rather than replacing it but I'm not sure why .append isn't working.</p> <pre><code> $('.incoming3').load('t3.html #test3').append; </code></pre>
javascript jquery
[3, 5]
2,843,125
2,843,126
JavaScript timer jump ahead
<p>Hi guys please check this code, first part from innit, second is my timer function. Thanks alot!</p> <p>I set up a timer for 15min. Save the time in cookies and read saved time on init</p> <pre><code>var cc=readCookie("agreement"); var ct=readCookie("secondsleft"); if (ct == null || ct == '') { secondsleft = 15*60; } else { secondsleft = parseInt(ct); } myInterval = setInterval(bingoTimer,1000); </code></pre> <p>Can anyone see why after refresh this code jumps to 0:13?</p> <pre><code>function bingoTimer() { secondsleft--; if (secondsleft &lt; 0) { } else { var minLeft = parseInt(secondsleft / 60); var secLeft = secondsleft - minLeft * 60; var timeLeft = " " + minLeft+":" + secLeft; var timeCookie = createCookie("secondsleft", timeLeft); $('#timer').html(timeLeft); } } </code></pre>
javascript jquery
[3, 5]
822,115
822,116
Automatically showing div on mouseover
<p>This is probably a simple problem I'm having, but for the life of me, I can't seem to figure it out. If any of you could help me with this, I would be much obliged.</p> <p>I'm using JQuery to make a menu appear when a user hovers over a certain div. The menu will be displayed on the top left of the div. I got this to work, but when I try to click on a menu item of the div that appeared, the div disappears again, because the mouse is technically not over the div, but over the menu.</p> <p>In the example below, "#blockMenu" is the menu that dynamically appears. I fade the current div ($this)) out a bit, to emphasize the menu as well.</p> <p>I use the following code to make this happen:</p> <pre><code>$("div.editable").hover(function () { $(this).fadeTo(500, 0.25); $('#Menu').css("position", "absolute"); $("#Menu").css("top", $(this).offset().top); $("#Menu").css("left", $(this).offset().left); $("#Menu").css("zIndex", "10000"); $('#Menu').show(); }, function (e) { // on mouseout $(this).fadeTo(500, 1); $("#Menu").hide(); }); </code></pre> <p>I want the menu to disappear when the cursor leaves the div, while the div remains faded out when the cursor is on the menu. When the cursor leaves the menu AND the div at the same time, the div should fade back in and the menu should disappear.</p> <p>Does anyone have an idea of how I could edit my code to make this work correctly? </p> <p>Thank you very much for any help you can give me.</p>
javascript jquery
[3, 5]
1,607,232
1,607,233
Retrieve within Cookies from C# to jquery
<p>Hello guys i have this problem of getting lastGuestInsertedId from C# cookies in a code behind file to another web form that retrieve lastGuestInsertedId values by jquery and then show the value by alerting. Any ideas?</p> <p>C# codes</p> <pre><code> HttpCookie GuestCookie = new HttpCookie("GuestCookie"); GuestCookie["Key"] = Convert.ToString(lastGuestInsertedId) ; GuestCookie.Expires = DateTime.Now.AddDays(1d); Response.Cookies.Add(GuestCookie); </code></pre> <p>JQuery codes</p> <pre><code> var guestkey = $.cookie("GuestCookie") alert(guestkey); </code></pre>
c# jquery
[0, 5]
779,209
779,210
Caching the blur event using jQuery
<p>I need to do something when a blur event is fired from a text box.</p> <p>The problem is the blur event is also fired when the user presses the "Enter" key and when the mouse is clicked somewhere else.</p> <p>I need to do some specific action when the mouse is clicked somewhere else; how would I do it?</p>
javascript jquery
[3, 5]
4,223,711
4,223,712
Finding the referring url that brought a user to my site
<h3>Duplicate:</h3> <blockquote> <p><a href="http://stackoverflow.com/questions/772780/finding-previous-page-url">Finding previous page Url</a></p> </blockquote> <p><hr /></p> <p>How do I find the referring url that brought a user to my site in ASP.NET?</p> <p><hr /></p> <h3>See Also:</h3> <blockquote> <p><a href="http://stackoverflow.com/questions/57004/how-can-i-find-what-search-terms-if-any-brought-a-user-to-my-site">How can I find what search terms (if any) brought a user to my site?</a></p> </blockquote>
c# asp.net
[0, 9]
4,823,363
4,823,364
How to be a jQuery no.conflict expert?
<p>How to be a jQuery no.conflict expert?</p> <p>I mostly face jQuery conflict errors with Prototypes JS. and I'm nota jquery expert.</p> <p>Can I still solve all conflict problems. how to get expertize to solve conflict issues.</p> <p>How to know whole code is jquery. what if simple javascript and jquery code mixed in one js file?</p> <p>What if inside external js code directly begin from </p> <pre><code> var opbox=""; </code></pre> <p>this is source order Which i can't change</p> <p><strong>1</strong></p> <pre><code>&lt;script type="text/javascript" src="jquery.min.js"&gt;&lt;/script&gt; </code></pre> <p><strong>2</strong><br> I want to remove conflict error from example.js</p> <pre><code>&lt;script type="text/javascript" src="example.js"&gt;&lt;/script&gt; </code></pre> <p><strong>3</strong></p> <pre><code>&lt;script type="text/javascript" src="Prototype.js"&gt;&lt;/script&gt; </code></pre> <p><strong>4</strong></p> <pre><code>&lt;script type="text/javascript" src="scriptaculous.js &gt;&lt;/script&gt; </code></pre>
javascript jquery
[3, 5]
4,478,306
4,478,307
databinding directly to a sqldatasource
<p>in Asp.net C# I'm simply tring to bind a control to a sqldatasource that returns ONE record (one row).</p> <pre><code>&lt;asp:SqlDataSource ID="sqldatasource1" runat="server" ConnectionString="&lt;%$ ConnectionStrings:ApplicationServices %&gt;" SelectCommand="SELECT * FROM [Data_Events] WHERE ([Entry_ID] = @Entry_ID)" UpdateCommand="UPDATE Data_Events SET Resolution = @Resolution, Date_Resolved = @Date_Resolved WHERE (Entry_ID = @id)"&gt; &lt;SelectParameters&gt; &lt;tr&gt; &lt;td&gt;Author&lt;/td&gt; &lt;td&gt;&lt;%# DataBinder.Eval(sqldatasource1, "Author")%&gt;&lt;/td&gt; &lt;td&gt;Incident Date&lt;/td&gt; &lt;td&gt;&lt;%# DataBinder.Eval(sqldatasource1, "Date_Incident")%&gt;&lt;/td&gt; </code></pre> <p></p> <pre><code>&lt;%# DataBinder.Eval(sqldatasource1, "Name")%&gt; </code></pre> <p>This code is failing, what is the correct way?</p>
c# asp.net
[0, 9]
1,946,835
1,946,836
Where can I store user details from a database so I can pull the information on every page?
<p>When a user logins, I want to be able to store all his profile information so I can display, for example, his email on different pages of my website, but I don't want to have to keep querying the database for every time I want to display his email. How would I go about doing this?</p> <p>Thanks!</p>
c# asp.net
[0, 9]
977,149
977,150
Auto fill the values in login form of another website
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/7030426/auto-login-to-other-sites-php-script">auto login to other sites php script</a> </p> </blockquote> <p>I need to open login to many other websites frequently. So I want to save my time of entering login id and password to login forms.</p> <p>I want that when i click on the link of any website's login page then it should be open in another tab or popup window. And my script fetch the login id and password from the database and fill in the respective fields in the form. And i need to only click the submit button to get logged in.</p>
php javascript
[2, 3]
2,988,209
2,988,210
In Javascript a dictionary comprehension, or an Object `map`
<p>I need to generate a couple of objects from lists in Javascript. In Python, I'd write this:</p> <pre><code>{key_maker(x): val_maker(x) for x in a_list} </code></pre> <p>Another way to ask is does there exist something like <code>jQuery.map()</code> which aggregates objects? Here's my guess (doesn't work):</p> <pre><code>var result = {} $.map(a_list, function(x) { $.extend(result, {key_maker(x): val_maker(x)}) }) </code></pre>
javascript jquery python
[3, 5, 7]
6,012,759
6,012,760
Html is rendered event
<p>I'm appending some code to my page using jQuery AJAX calls. This code is a mix of html and javascript. But I want javascript to be executed only when html part is ready. But what event is raised when appended html is rendered?</p> <p>Here is an example:</p> <pre><code>&lt;table id="sampleTable"&gt; ... &lt;/table&gt; &lt;script&gt; // this code should be executed only when sampleTable is rendered $('#sampleTable').hide(); &lt;/script&gt; </code></pre>
javascript jquery
[3, 5]
231,603
231,604
Uncaught TypeError: Property '$' of object [object global] is not a function?
<p>I am getting the following error</p> <blockquote> <p>Uncaught TypeError: Property '<code>$</code>' of object [object global] is not a function in line 2:</p> </blockquote> <p>Using the following code:</p> <pre><code>$(document).ready(function() { $('#tabs &gt; ul').tabs({ fx: { opacity: 'toggle' } }); $('#featuredvid &gt; ul').tabs(); }); </code></pre> <p>The problem appears local at 127.0.0.1 only, while same code OK online! I'm dazzled, any ideas?</p>
javascript jquery
[3, 5]
2,238,879
2,238,880
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]