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
1,197,000
1,197,001
how to start with ASP.NET MVC 3 razor
<p>I going to start a new project in my company in which are involved the use of MVC 3, now this is the first time that we are using this framework, and i have a couple of questions,</p> <ol> <li>It's recommended to start with MVC3 and not from the MVC2?</li> <li>Any Tutorials in specific that you can recommend?</li> ...
c# asp.net
[0, 9]
2,425,508
2,425,509
How to treat plus sign from user input as part of input string and not as concat operator?
<p>This is for a small internal tool to enable a few people to query the database. The query has a plus sign as below:</p> <pre><code>SELECT SUBSTRING(DateName(month,CreatedOn),0,4) + ' - ' + SUBSTRING(CAST(Year(CreatedOn) AS varchar(10)),3,3) as Month, Year(CreatedOn) as Year, </code></pre> <p>The query is passed to...
javascript jquery asp.net
[3, 5, 9]
2,171,307
2,171,308
Escaping line break (endline) from PHP variable for Javascript usage
<p>heres my code : </p> <pre><code>&lt;td onclick="openFile('&lt;?php echo htmlentities ($row['name'])?&gt;',' &lt;?php echo htmlentities ($row['content'])?&gt;')"&gt; &lt;a href="#nf" data-toggle="tab"&gt;&lt;?php echo $row['name']?&gt;&lt;/a&gt;&lt;/td&gt; </code></pre> <p>as there is an...
php javascript
[2, 3]
5,598,158
5,598,159
What's the best way to facilitate "Load More" pagination with jQuery?
<p>I'm displaying a list of search results on a page. At the very bottom I would like to place a "Load More" link which appends more results to existing ones on the page and changes the "Load more" link's parameters to next page, so that if user clicks it next page will be appended to the page. It would also be nice to...
javascript jquery
[3, 5]
3,687,629
3,687,630
mouseenter / mouseleave animation chain halt
<p>I'm not sure how to title this one. But I have a mouseenter/mouseleave behavior that slides a menu up and down respectively. It works great unless the user moves the mouse in and out of the element really quickly several times. Then, all the animations are fired and the menu "goes bezerk" and continues to animate. <...
javascript jquery
[3, 5]
3,180,187
3,180,188
Using jquery how can I remove a DIV if it's contents are empty?
<p>I'm looking for a way to remove the following empty div using jquery.</p> <p>The following div is output sometimes without content inside it. For display reasons I need to remove it when it's empty.</p> <pre><code>&lt;div class="field-group-format group_call_to_action_aside div group-call-to-action-aside box yello...
javascript jquery
[3, 5]
3,579,831
3,579,832
Jquery expand from external link
<p>I am trying to make it so that when a user clicks on a link from one page, it goes to another page that has a simple jquery collapsed text and expands (un-collapses) the text. My attempt is with the code below:</p> <pre><code>$(function() { var elem = $('#expand-4' + location.hash); $('#expand-4-text').slideTo...
javascript jquery
[3, 5]
4,777,570
4,777,571
Select folder intent & Work out when intent complete?
<p>So I'm making a wallpaper and I want the user to select a folder. So I have a button in the preferences that launches an intent to open an image, but what I want is actually just a directory (I guess in the worst case i can strip the filename from the end). So that's my first problem: what's the best way to select a...
java android
[1, 4]
3,741,318
3,741,319
How to measure the rendering time of a View?
<p>I'm using a <code>ChartEngine</code> to create scatter plots. Each scatter plot is a <code>View</code>.<br> How would I measure the time required to render a <code>View</code>?</p>
java android
[1, 4]
5,854,402
5,854,403
binding an arraylist to a gridview
<p>Hallo there</p> <p>I am adding object(books) to an arraylist as I add them to a database that is situated in a web service. My idea is to display these books in a gridview(in the deffault.aspx) by obviously binding it to the arraylist. The problem I have is that the gridview is situated in deffault.aspx, and the pr...
c# asp.net
[0, 9]
2,699,264
2,699,265
How to get portion of the attribute value using jquery
<p>I have attribute value as:</p> <pre><code>&lt;div id = "2fComponents-2fPromotion-2f" class = "promotion"&gt; </code></pre> <p>Now I want to get only portion of it, say <code>Promotion</code> and its value <code>2f</code>, how can I get this using jquery ? Do we have built in function for it ?</p>
javascript jquery
[3, 5]
2,477,996
2,477,997
Jquery toggle won't work after cloning
<p>I have cloned a list item using .clone in Jquery:</p> <pre><code> $("#coll-selected-list li:contains(" + itemName + ")").clone().addClass("avgli").appendTo("#coll-grouped-list"); </code></pre> <p>However, when I wish to toggle the newly added list item, it won't work for some reason. Any ideas?:</p> <pre><code>$(...
javascript jquery
[3, 5]
4,552,260
4,552,261
javascript url help in sending multiple values with url..
<pre><code>"sample1.php?q="+str </code></pre> <p>This code is for sending single parameter i need to send multiple variables </p>
php javascript
[2, 3]
4,820,497
4,820,498
What's the fastest and/or cleanest way to store text content in javascript/DOM?
<p>I typically see version 1 but some open source projects I work on use version 2 and I've used version 3 in the past. Does anyone have a more elegant solution, maybe one that's more scalable?</p> <p>Version 1:</p> <pre><code>var text1 = 'this is my script\'s content'; </code></pre> <p>Version 2:</p> <pre><code>&l...
javascript jquery
[3, 5]
4,742,735
4,742,736
Need to view the thumbnail of the word Document
<p>If i browse the word file through file upload control in html, i want to view the thumbnail of the document(first page is enough) as an image in the right to my control..How to do it programmatically..please suggest..Thanks in advance...</p>
java javascript
[1, 3]
1,720,798
1,720,799
Use Jquery variable to identify a div class/Id
<p>I'm sure the answer to this is simple, I've just been able to figure it out.</p> <p>I have a simple click function which applies to any links in a list being clicked. When one is clicked, I want it to remove a class on a div, which is related to one of the links attributes. E.g:</p> <pre><code>// The link &lt;li&g...
javascript jquery
[3, 5]
4,141,791
4,141,792
Loading message and setTimeout
<p>I have the following script:</p> <pre><code>$(function() { $(".message").hide(); function simulate_ajax_call() { $.ajax({ url: "/echo/json/", success: function(){ alert("done"); $(".message").empty().html("done"); $(".messa...
javascript jquery
[3, 5]
1,952,622
1,952,623
How to send PHP variables and retrieve them with Jquery (without echo)?
<p>I'm building a search function to retrieve XML data for a google map. </p> <p>In addition to that, I want to display how many results were actually found. </p> <p>I thought about doing an echo inside the actual document, however that might mess with my marker data. How would I take a PHP variable and retrieve it i...
php jquery
[2, 5]
1,475,723
1,475,724
jQuery listview plugin
<p>Is there any ListView widget plugin for jQuery? With resizable columns, sorting helpers, odd-even rows styles etc. Something like ListView class from Ext library but for jQuery (NOT table/grid).</p> <p><strong>UPDATED</strong> Have switched to ExtJS so question is not topical anymore.</p>
javascript jquery
[3, 5]
2,388,786
2,388,787
i want to check the network state but it give me nullPointerException why?
<p>I am receiving a <code>NullPointerException</code> with the code below. Does anyone know what may be causing this?</p> <pre><code>public void clickMe(View v) //the view is button { ConnectivityManager conMgr = (ConnectivityManager)getSystemService(Context.CONNECTIVITY_SERVICE); NetworkInfo n...
java android
[1, 4]
4,561,490
4,561,491
Re-using programatically created Textviews
<p>I've written code to perform a search and display the results below the search form in the XML file.</p> <p>However, by creating TextViews dynamically, it keeps adding more TextViews so the number of TextViews increases by 5 everytime I perform a search. How could I re-use the TextViews so I can update the text to ...
java android
[1, 4]
3,047,138
3,047,139
find ID of previous button
<p>I'm looking to find the id of the previous button. It is pretty far away - lots of table rows, tables, divs, etc. between the target and the button but I thought this would still work:</p> <pre><code>alert( $(this).prevAll("input[type=button]").attr('id') ); </code></pre> <p>Unfortunately this returns alerts 'unde...
javascript jquery
[3, 5]
4,275,869
4,275,870
How to add variable + databinding to ASP.NET link navigateurl?
<p>Let's say I have a repeater with the code:</p> <pre><code>&lt;ItemTemplate&gt; &lt;asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='&lt;%#DataBinder.Eval(Container.DataItem, "FileLeafRef")%&gt;'&gt; &lt;h2&gt;&lt;%# DataBinder.Eval(Container.DataItem, "Title")%&gt;&lt;/h2&gt; &lt;/asp:...
c# asp.net
[0, 9]
2,435,842
2,435,843
Opening the jquery UI dialog inside the div
<p>I have a <code>div#test</code> , with which i bind a <code>dblclick event to opens a jquery ui dialog</code>, now i want to open </p> <p>that <code>dialog inside a floating div</code> ( means a div whose position is absolute and placed on the</p> <p>center of the screen) when the <code>dblclick event triggers</cod...
javascript jquery
[3, 5]
4,818,729
4,818,730
Android / Java - How do I call upon a function in a separate *.java file?
<p>I do an import of the full package name / java file, and if I do a <code>&lt;classname&gt;.&lt;method&gt;</code>, SOMETIMES I can get it to access - other times I get a lot of <code>can't use a static in a non static</code> bunch of talk.</p> <p>I'll admit I'm new to Java, so what do I need to do? Call a class ins...
java android
[1, 4]
4,688,099
4,688,100
Is it possible to name a jquery selector the value of a variable
<p>For example, if i had a variable in javascript</p> <pre><code> var nombre; onclick="nombre='someValue'" </code></pre> <p>and somewhere along in my code this javascript variable's value is changed like above, could I set the value of that variable to be the class name in the jquery selector so it would be like</p>...
javascript jquery
[3, 5]
2,144,692
2,144,693
JavaScript In UserControl Wont Run
<p>I am trying to run the following script from my usercontrol:</p> <pre><code>&lt;script type="text/javascript" language="javascript"&gt; function RebindUpdatePanelControls(sender, args) { $("#divUpload2").hide(); $("#divUpload3").hide(); alert("Hi Neck"); $('#lnkMore').click(func...
javascript asp.net
[3, 9]
1,225,543
1,225,544
Jqtouch performs poorly when wrapped on jqt DIV
<p>I have a iphone site based on JQTouch. When the pages are not wrapped in the it performs flawlessly. When it is wrapped in the DIV animations are inconsistent, pages overlap and are totally broken on Android. </p> <p>I would just abandon the jqt div but that breaks the 'Spinning wheel' by cubiq.</p> <p>$Revision...
javascript jquery iphone
[3, 5, 8]
3,471,900
3,471,901
jquery find method
<p>I have a function called using an anchor inside a form, and I need to get the values of the inputs inside the same form to perform certain actions. Problem is, the result is always <code>undefined</code>.</p> <p>Here's the code :</p> <pre><code>$('#create_alert').live('click', function(e) { var form = $(this)....
javascript jquery
[3, 5]
5,888,699
5,888,700
how to pass full page from php to jQuery. and send some data back
<p>Is there any way i can load a page in php, pass it to jQuery , extract data then send that data back to php script.</p> <p>see : <a href="http://stackoverflow.com/questions/16315691/how-to-find-number-of-ul-inside-each-div">How to find number of &lt;ul&gt; inside each div</a></p> <p>this is lab experiment work. fi...
php jquery
[2, 5]
1,088,708
1,088,709
How to properly make a Ken Burns effect using JQuery
<p>I recently tried the Ken Burns effect with this little jQuery plugin: <a href="http://tobia.github.com/CrossSlide/" rel="nofollow">CrossSlide</a>.</p> <p>The problem with that plugin is that when the motion is too slow it looks really bad. This is due to the fact that the image can only move 1 pixel at the time...<...
javascript jquery
[3, 5]
573,411
573,412
Jquery getting information from php
<p>I need to get information from a php file and put the information in jquery and i also need to know if the information has changed</p>
php jquery
[2, 5]
230,286
230,287
Problems with My Simple JQuery Div Slider
<p>I am trying to create a simple JQuery Div Slider, but it doesn't seem to be hiding the initial div or functioning properly.</p> <p>Here is my HTML:</p> <pre><code>&lt;div id="feature"&gt; &lt;div class="feature_container"&gt; &lt;div&gt;&lt;p&gt;Slide 1 Content&lt;/p&gt;&lt;/div&gt; &lt;div&gt;...
javascript jquery
[3, 5]
2,564,033
2,564,034
Help with countdown jquery script to accept unix timestamp as input
<p>I try to modify the keith-wood countdown timer to accept a <em>future unix timestamp</em> and hide the days.</p> <p>To <em>hide the days</em> you use <code>$('#noDays').countdown({until: liftoffTime, format: 'HMS'});</code> as the example at <a href="http://keith-wood.name/countdown.html" rel="nofollow">http://keit...
php javascript jquery
[2, 3, 5]
3,072,953
3,072,954
Shifting to Java
<p>I'm a C/C++ developer. </p> <p>I am just intrigued why some of my colleagues are shifting to java. They actually have a lot to say why Java is better than C++. This is actually more of a trivial question, but I know for sure it would be a source of enlightenment for many also for novices like me. </p> <p>Knowing ...
java c++
[1, 6]
5,076,343
5,076,344
Not Equal To notation in Javascript to use in jQuery
<p>Is this the notation to use for Not Equal To in JS, in jquery code</p> <pre><code>!== OR != </code></pre> <p>None of them work</p> <p>Here is the code I am using</p> <pre><code>var val = $('#xxx').val(); if (val!='') { alert("jello"); } </code></pre> <p>Thanks Jean</p>
javascript jquery
[3, 5]
1,152,418
1,152,419
"javascript:void(0);" vs "return false" vs "preventDefault()"
<p><br> When I want some link to not do anything but only respond to javascript actions what's the best way to avoid the link scrolling to the top edge of the page ?<br> I know several ways of doing it, they all seem to work fine :</p> <pre><code>&lt;a href="javascript:void(0)"&gt;Hello&lt;/a&gt; </code></pre> <p>or ...
javascript jquery
[3, 5]
3,514,857
3,514,858
Set number of rows based on not letting the page scroll (jquery)
<p>We have a page with multiple content areas, in one of which we build a table from a result set. The user requirement is that the page not scroll. If we fix the number of rows to now allow scrolling at our preferred screen resolution, it looks great at the preferred resolution, but at lower resolutions the page scr...
javascript jquery
[3, 5]
2,749,431
2,749,432
i need to pass a variable to my function
<p>i'm sure this is simple for most of you, but i'm struggling to learn this concept. i just need a little help. i've commented enough to explain what's going on. thanks!</p> <pre><code>//tabNavItem is an anchor link $(tabNavItem).on("click", function(e){ var currSlide = $(this).attr("rel"); console.log(currSl...
javascript jquery
[3, 5]
2,952,998
2,952,999
How can I use Eval in asp.net to read fields from a database?
<p>Here is the situation:</p> <p>I have a webform that needs to read specific fields from a database that uses the eval function in the .aspx page. I know how to assign the values in the .aspx page, but in the code behind how do I "get" the values and bind them to the .aspx page? Can I just used a datareader? Dataset?...
c# asp.net
[0, 9]
3,690,141
3,690,142
Data Reader Returning null although it says it has an item there
<p>hello I am using a reader to get a XML from a stored procedure.. now the stored procedure returns null if it does not find anything .. in the case I am testing.. it should not return anything but my code is failing.. it says there is a row.. but then when it gets to the reader.GetString(0); it says <code>Data is Nul...
c# asp.net
[0, 9]
3,674,568
3,674,569
Beginner ASP.net question handling url link
<p>I want to handle links like this:</p> <pre><code>http://example.com/test.aspx?userid=tras&amp;server=bum </code></pre> <p>I looked <a href="http://www.15seconds.com/Issue/020417.htm" rel="nofollow">here</a>, and they do this:</p> <pre><code>HttpApplication objApp = (HttpApplication) sender; &lt;--- ERROR LINE st...
c# asp.net
[0, 9]
5,888,920
5,888,921
Issue with scrollbars in a asp:listbox
<p>I have a list box with multiple values. I need a functionality to move items up/down using <code>Ctrl+uparrow/Ctrl+downarrow.</code> I am here by stuck with a issue when the selected item in the <code>listbox</code> is out of focus the <code>scrollbars</code> do not move correspondingly and the selected item is ou...
jquery asp.net
[5, 9]
2,357,114
2,357,115
Get translate3d values of a div?
<p>Say a div has this applied to it:</p> <pre><code>-webkit-transform: translate3d(0px, -200px, 0px) </code></pre> <p>How could I retrieve those values with jQuery?</p>
javascript jquery
[3, 5]
3,539,908
3,539,909
i want to know how to navigate from one XML page to another in Java AWT on button click
<p>i am making an andriod application in which i need to go from one page to another on a button click. i have tried several things but nothing worked out.</p>
java android
[1, 4]
3,097,012
3,097,013
How to get global time(not the pc time) using javascript or jquery?
<p>I was creating a countdown timer using javascript; I can use jQuery. I want the global time not the PC time.</p> <p>How could I get the global time using javascript or the jQuery?</p>
javascript jquery
[3, 5]
144,279
144,280
Cannot crop Bitmap
<p>I'm trying to crop and scale given bitmap,But only scaling works.<br> What am I doing wrong?</p> <pre><code>private Bitmap CropAndShrinkBitmap(Bitmap io_BitmapFromFile, int i_NewWidth, int i_NewHeight) { int cuttingOffset = 0; int currentWidth = i_BitmapFromFile.getWidth(); int currentHeight = i_Bitmap...
java android
[1, 4]
4,794,283
4,794,284
detect numbers or letters with jquery/javascript?
<p>i want to use an if-statement to run a code only if the user types in a letter or a number.</p> <p>i could use </p> <pre><code> if(event.keyCode == 48 || event.keyCode == 49 || event.keyCode == 50..) { // run code } </code></pre> <p>but is there an easier way to do this? maybe some keycodes dont work in a...
javascript jquery
[3, 5]
4,663,681
4,663,682
Detect Browser autocomplete settings from the javascript
<p>Is there any way, we can detect the browser settings of autocomplete from the clientside script? Different browsers have diff autocomplete settings.</p> <p>I want to add autocomplete="off" to the textfields based on the client browser settings of the autocomplete feature.</p>
javascript jquery
[3, 5]
546,957
546,958
Converting simple Javascript to jQuery
<p>I have this:</p> <pre><code>&lt;script type="text/javascript"&gt; window.onresize = fontResize; function fontResize() { document.body.style.fontSize = parseInt(document.documentElement.clientWidth/100) + 'px'; } &lt;/script&gt; </code></pre> <p>Could someone have a crack at converting this to j...
javascript jquery
[3, 5]
2,795,336
2,795,337
How to enable a linkbutton server control using javascript?
<p>I have a linkbutton server control in my page whose Enabled attribute is initially set to "false". When a text box's text changes I would like to enable the linkbutton. I tried the following but it does not work. Could you let me know if i am missing something.</p> <pre><code>function TextBox_TextChanged() { va...
asp.net javascript
[9, 3]
1,288,833
1,288,834
Installing Python Imaging Library on my iPhone's Python interpreter
<p>I've been learning python for some time now. Recently I needed to install in my Mac the Image module for Python, and after a while I achieve this running a mpkg installer specially for my OS, so far everything was ok and I could run my script. </p> <p>Now I'm in the needing of running my script in my jailbroken iPh...
iphone python
[8, 7]
5,597,788
5,597,789
What is the equivalent to python equivalent to using Class.getResource()
<p>In java if I want to read a file that contains resource data for my algorithms how do I do it so the path is correctly referenced.</p> <p>Clarification I am trying to understand how in the Python world one packages data along with code in a module.</p> <p>For example I might be writing some code that looks at a st...
java python
[1, 7]
3,047,745
3,047,746
Write to database in sdcard platform 1.5 and 2.1 (PROBLEM)
<p>Anyone of you have any idea that is there any different on writting to database to sdcard in android 1.5 and 2.1? I faced a problem here. </p> <p>I have a android apad which firmware is 1.5. I have write a program to write to database at sdcard. However no database was created in this firmware 1.5.</p> <p>Then I p...
java android
[1, 4]
1,906,128
1,906,129
How to do a Masked label?
<p>I need to perform a mask on a label , How Can I do that ? </p> <p>I've tried to use RadMaskedTextbox but the problem is that if I disable that control the text is Gray And I need it to be red</p>
c# asp.net
[0, 9]
4,607,724
4,607,725
Link C# SqlCommand to the SelectCommand of SqlDataSource on aspx page
<p>Since I want to include a session variable in MySql <code>select</code> statement, I want to be able to write a <code>sql</code> string <code>select</code> statement in <code>.cs</code> page and reference it in the <code>SelectCommand</code> property in the <code>SqlDataSource</code> on the <code>.aspx</code> page. ...
c# asp.net
[0, 9]
2,596,920
2,596,921
Jquery text animation
<p>I am looking everywhere for a free version(or similar plugin) of the following jquery text animator, but I can't find any. There are so many free snippets of great jquery plugins, why can't I find any for a text animator like this one? <a href="http://codecanyon.net/item/textfx-a-jquery-text-animation-tool/full_scre...
javascript jquery
[3, 5]
2,106,759
2,106,760
Setting user control to listen for updates in underlying class library
<p>OK, so I have a user control which uses values from an underlying business logic class. I need some way for the user control to listen to the class and fire when certain methods are called / values are updated on the BL class.</p> <p>At a high level, what would be the best way to do this? I know I'd need some for...
c# asp.net
[0, 9]
4,796,392
4,796,393
Looking for some sort of pattern
<p>I have a library project which contains an abstract class, let's say <code>ClassA</code>. In the project that uses that library project, I have <code>ClassB</code> that extends <code>ClassA</code>.</p> <p>Now here's my problem. In the library project I want to use an instance of the implemented <code>ClassB</code>,...
java android
[1, 4]
1,928,439
1,928,440
Fading colors with jquery?
<p>I have a regular color change using jquery, but I'd like to have it so it has a smooth color change. At the moment, the code changes the color of a link on hover and then removes it when the mouse is removes. I have seen one tutorial but it doesn't explain it and it does not look like my current code. This is what i...
javascript jquery
[3, 5]
1,813,517
1,813,518
Bad C++ programmer behaviors in C#
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/2424807/most-common-or-vicious-mistakes-in-c-development-for-experienced-c-programmers">Most common or vicious mistakes in C# development for experienced C++ programmers</a> </p> </blockquote> <p>I'm a long time...
c# c++
[0, 6]
3,831,978
3,831,979
jQuery, new line and enter button
<p>I'm using following code for textarea:</p> <pre><code>$('#ajaxSendMessage').live('keyup', function(event) { if (event.keyCode == 13) { controller.sendMessage($(this).val(), $("#ajaxAnswerTo").val()); } }); </code></pre> <p>This code works, but <code>$("#ajaxAnswerTo").val()</code> have new line cha...
javascript jquery
[3, 5]
1,286,656
1,286,657
Can't find folder or file created with Android App with windows file exlorer
<p>I'm creating a directory and a text file on the sdcard in one of my apps because I want to be able to move it to my computer for analysis. But I can't find the folder or the file I'm creating on my sdcard using the file browser on my computer. I CAN find and read the file using my phones file manager but not using t...
java android
[1, 4]
4,479,831
4,479,832
How to use a while loop to build a stringarray and use it as a list
<p>I am writing an app for fellow students, and I am parsing information from a website. I paid a guy to write the parser but did a poor job and he wants more money to help anymore. So im trying to fix it myself.</p> <p>There is the extractor that grabs the xml info, how the gentlemen had it, was he called it in the m...
java android
[1, 4]
4,534,492
4,534,493
Why is jQuery .live() not working with my .ajaxForm() invocation here?
<p>I have some code that looks like the following:</p> <pre><code>jQuery("[name='myform']").live('submit', function() { $(this).ajaxForm({ target: '#someform', beforeSerialize: function(form, options) { alert("BeforeSerialize happening."); jQuery('form[name=myform] input[type=submit]').attr('di...
javascript jquery
[3, 5]
3,607,199
3,607,200
jquery content slider sliding
<p>This is the html part of the sliders navigation:</p> <pre><code>&lt;div id="button"&gt; &lt;a class="button1 active" rel="1" href="#"&gt;&lt;/a&gt; &lt;a class="button2" rel="2" href="#"&gt;&lt;/a&gt; &lt;a class="button3" rel="3" href="#"&gt;&lt;/a&gt; &lt;/div&gt; </code></pre> <p>This is the comp...
javascript jquery
[3, 5]
1,386,082
1,386,083
Inheritance in Jquery Plugin
<p>I'm trying to create a jQuery plugin and having problems with selecting the DOM.</p> <p>for example, when I initialize the plugin (ex. $('#test').customplugin();</p> <pre><code>this.each(function() { // Var var $this = $(this); $this.hide(); var thisOpts = $( this + ' option'); </code></pre> <p>$this.hide(); work...
javascript jquery
[3, 5]
682,043
682,044
jQuery scrolling DIV: stop scrolling when DIV reaches footer
<p>I have a <code>#sidebar</code> (which starts below my <code>#header</code> div) and a <code>#footer</code> (around 120px off the bottom of the page).</p> <p>I'm trying to make the sidebar scroll with the content of the page. The code below does this semi-successfully:</p> <pre><code>/* profile sidebar */ #sidebar&...
javascript jquery
[3, 5]
4,946,099
4,946,100
Chaining multiple asynchronous methods in javascript
<p>I am writing a javascript library to abstract ajax requests to my HTTP API. Each of my javascript functions is a wrapper for jquery's ajax call, which makes a callback to the user on completion.</p> <p>Eg.</p> <pre><code>mylib.doThing( "foo", { success:function(){alert("done");}); </code></pre> <p>In the case whe...
javascript jquery
[3, 5]
3,776,075
3,776,076
jquery.windows-engine - problem trying open a window from a another window
<p>When I try to open window from a another window it not found.</p> <p>jQuery-Windows-Engine-Plugin</p> <p>Thanks!</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;title&gt;Test&lt;/title&gt; &lt;link type="text/css" rel="stylesheet" href="jquery.windows-engine.css" /&gt; &lt;script type="text/javascript" src="jquery....
javascript jquery
[3, 5]
5,167,270
5,167,271
How to get date between start date and end date? (excluding date on weekend)
<p>Hi want to get a date list between start date and end date. For example start date is 27-08-2010 and end date is 31-08-2010. So the date list is 27-08-2010,30-08-2010 and 31-08-2010. 29-08-2010 and 30-08-2010 will be ignore because it is in the weekend. I attach the picture for more clearer explanation. How to achie...
javascript jquery
[3, 5]
3,834,887
3,834,888
jquery - get position problem in Firefox
<p>I have the following code which gets the left and top position of the element you are hovered over. It produces the right results in safari and IE but fails to get the position of the img that you hover over in Firefox - it returns 0, 0. Can anyone see why this might be??</p> <p>I think it might be something to do ...
javascript jquery
[3, 5]
3,870,784
3,870,785
Javascript - perform something in certain intervals in FOR LOOP
<p>I got a problem while developing javascript based idea..</p> <p>Here's the main code, </p> <pre><code> $.post("datainlines.php", function(data) { var lines = data.split("\n"); for (var i = 1; i &lt; lines.length; i++) { sitename= lines[i]; sitetype=lines[i++]; if(...
php javascript
[2, 3]
5,780,740
5,780,741
I need pass by reference please
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/40480/is-java-pass-by-reference">Is Java pass by reference?</a> </p> </blockquote> <p>As I understand it, in Java there is no pass by reference, always pass by value. Does this mean that an object passed as an ...
java android
[1, 4]
2,005,231
2,005,232
New Intent wont start first time
<p>I have 3 intents A->B->C</p> <p>from C to get back to A you bring up the menu and click home. This finishes B and C and opens A which in the manifest is set as a singletask.</p> <p>This all works perfectly, but when I try to open B from A again I have to click twice on the button that starts B. Whereas when the ap...
java android
[1, 4]
2,741,780
2,741,781
Filling asp controls using Client Side C#
<p>It's been a long time since I've used classic asp.net and asp: controls.</p> <p>I have this textbox;</p> <pre><code>&lt;asp:TextBox ID="txtTitle" runat="server" CssClass="fieldLge" Text='&lt;%= this.Title %&gt;'/&gt; </code></pre> <p>In my cs I have;</p> <pre><code> public string Title { get; set; } </code></pre...
c# asp.net
[0, 9]
1,260,181
1,260,182
Android program writes to emulator but not phone
<p>I am trying to write an Android program to accept input and then write the data to a file on the internal storage of my phone. When I execute my program on the emulator it makes a file just as I expect it to, but when I try and execute it on my phone the file doesn't seem to be created. I've looked around on this si...
java android
[1, 4]
380,669
380,670
LostFocus on text box event in asp
<p>Hi I am currently developing a web app in ASP.net. I am creating a registration form where when the user enter a username they would like to use it performs a check on the database to see if the username already exists. I don't want this to be done in the text changed event because I don't want it to try and query t...
c# asp.net
[0, 9]
5,173,744
5,173,745
Jquery menu for asp.net
<p>I need to find a jquery menu which opens each node only on mouse click. If it supports asp.net it will more helpful.</p> <p>Thanks in advance</p>
jquery asp.net
[5, 9]
5,156,101
5,156,102
Add content to JQuery node set
<p>I have a HTML string that I convert to a JQuery node set:</p> <pre><code>var html = "&lt;div id='foo'&gt;&lt;div id='bar'&gt;&lt;/div&gt;&lt;/div&gt;"; var nodes = $(html); </code></pre> <p>I want to add the content <code>&lt;div id="baz"&gt;&lt;/div&gt;</code> immediately after <code>&lt;div id='bar'&gt;&lt;/div&...
javascript jquery
[3, 5]
4,051,642
4,051,643
Hide div if timeout occurs?
<p>While developing an app in HTML and jQuery, I have a loading screen that covers the entire page, then fades out when the content has loaded, as shown below:</p> <pre><code>google.maps.event.addListenerOnce(map, 'tilesloaded', function(){ $(".loading").delay(2600).fadeOut({ useTranslate3d: true, }); ...
javascript jquery
[3, 5]
869,140
869,141
Shuffle an array of images
<p>I have an array of images that I want to display in a random order, 1 image at a time. I think a solution would be to shuffle the array when someone visits the page and then use an onclick event to call each image. When all of the images have been called, the array would either loop or, ideally, re-shuffle. How can ...
php javascript
[2, 3]
3,270,533
3,270,534
Is this javascript syntactically correct or is there a better way?
<p>Basically if a variable isn't set then set it to another value.</p> <p>There must be a better way, this looks so messy.</p> <pre><code> if ($image_src === undefined) { $image_src = $apple_icon; } if ($image_src === undefined) { $image_src = $apple_ico...
javascript jquery
[3, 5]
1,052,487
1,052,488
Trigger copy event in jQuery?
<p>Is it possible to trigger copy event from JavaScript/jQuery? I want to simulate copy event by clicking on the button and can't find the way to do that. I don't want to use ZeroClipboard and any other Flash.</p>
javascript jquery
[3, 5]
4,800,277
4,800,278
How to play animated gif in android jdk besides extract into static images?
<p>Is there a way to play animated gif directly in android jdk now?</p>
java android
[1, 4]
2,549,330
2,549,331
How to use Android to upload file to server with a key?
<p>I have a server written by Django, and now I have a demand to upload file to this server. I used to do it on iPhone using ASIHttpRequest, the method is pretty straightforward:</p> <p>[request setFile:self.latestFilePath forKey:@"IPHONEFILE"];</p> <p>However, after I switched to Android, I tried to look for similar...
java android
[1, 4]
1,087,697
1,087,698
How to delete the specific row from gridview.Using builtin delete command button of gridview
<p>hi i am adding data from textboxes to my gridview locally not from database. its like a salepage where a salesman is saling a product. now i want to delete a row from that gridview but i always got exception while deleting. kindly help me with that. here is my code where i m getting the data and storing that in grid...
c# asp.net
[0, 9]
4,244,843
4,244,844
Find what all amongst a bunch of integers exist in a sorted array
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/1885557/simplest-code-for-array-intersection-in-javascript">Simplest code for array intersection in javascript</a> </p> </blockquote> <p>I have a sorted array of integers in javascript. I need to find out which ...
javascript jquery
[3, 5]
4,657,910
4,657,911
jQuery slide down toggle, impossible?
<p>I want to do a slide down with jQuery, but I can't find it anywhere. </p> <p>I do <strong>not</strong> want it to <a href="http://api.jquery.com/slideDown/" rel="nofollow">scale as it slides</a><br> I do want it to perform <a href="http://see.weareinto.com/3tyP" rel="nofollow">this action</a> ( click slide ), but v...
javascript jquery
[3, 5]
4,511,511
4,511,512
ASP.NET prevent bot/spam attack from a comment form
<p>I have a simple contact us / comment from in my website and this form will send email containing the comments, etc after it is submitted. I have used NoBot control from ajaxcontrol toolkit for several times but it seems that this control did not prevent the spam/bot attack 100%. </p> <p>The client insist that this ...
c# asp.net
[0, 9]
5,671,124
5,671,125
Is there a native Javascript implementation of jQuery's document.ready()?
<pre><code> $(document).onload() </code></pre> <p>it's internally implemented by window.onload event</p> <p>then what about </p> <pre><code> $(document).ready() </code></pre> <p>what's the native javascript to implement it?</p>
javascript jquery
[3, 5]
3,501,334
3,501,335
Where to store a contact list on an Android phone?
<p>I want to create a new contact list just like blacklist to store few phone numbers in android. which storage medium we need to use ??</p>
java android
[1, 4]
598,654
598,655
Using Android source code
<p>I am developing one application for that I made some changes in CallCard.java class of Phone application. You can find this class here <code>&lt;http://www.netmite.com/android/mydroid/packages/apps/Phone/src/com/android/phone/CallCard.java&gt;</code>. In the above class there are some cases. i.e BUSY, NUMBER_UNREAC...
java android
[1, 4]
4,333,044
4,333,045
migrate jQuery old code to 1.9 version
<p>I have a jQuery code about ajaxform written in a old version (1.4 i think) it work fine but i want to rewrite it in newer version (1.9) without including jquery-migrate, what shold i change in this code, help me please</p> <pre><code>&lt;script&gt; // prepare the form when the DOM is ready $(document).ready(functi...
javascript jquery
[3, 5]
709,026
709,027
Pass Info to form input when link is clicked
<p>I have some html that looks as so: </p> <pre><code>&lt;h3 class="basic left-top-border-radius"&gt;Basic&lt;br /&gt; 500&lt;span&gt;$25&lt;/span&gt;&lt;/h3&gt; &lt;a class="signup colorbox" href="#text-signup-form"&gt;More Info&lt;/a&gt; </code></pre> <p>When More Info is clicked a lightbox pops up with a simpl...
javascript jquery
[3, 5]
500,568
500,569
Jquery hasClass for multiple classes
<p>I am having,</p> <pre><code>&lt;tr valign="top"&gt; &lt;th class="chkCol fixed"&gt;..checkbox..&lt;/th&gt; &lt;th class="fixed"&gt;..head..&lt;/th&gt; &lt;/tr&gt; </code></pre> <p>Now in Jquery I am calling a function like,</p> <pre><code>if($(this).hasClass("fixed")){ .... } </code></pre> <p>If I cal...
javascript jquery
[3, 5]
205,842
205,843
writing javascript in ftl file
<p>I have an ftl file which is sending a notification e-mail. I need to change the subject line of these mails. So, far I have managed to change the subject and pass a URL in it. But my requirement is to pass a specific parameter from the URL. Can I write a java scriplet or javascript function inside this file. </p> <...
java javascript
[1, 3]
4,569,902
4,569,903
Content added by jquery is cleared after pressing submit
<p><a href="http://jsfiddle.net/hvuSM/" rel="nofollow">This</a> is my code which I am currently working on. I have to display the value passed by the user. In here I am displaying only a string which I will modify afterwards. When I click the add button I get some strange code in my <code>alertbox</code>. This is the <...
javascript jquery
[3, 5]
5,810,736
5,810,737
How do I execute a jQuery function on page load if and only if the page is accessed via a specific hyperlink?
<p>I have a simple link, like so:</p> <pre><code>&lt;a href="page2.html"&gt;Go to Page 2&lt;/a&gt; </code></pre> <p>I'd like that, when clicking this Button, it would go to the page and run a jQuery function, like so:</p> <pre><code>$("#object-selector div").hover( function () { $(this).animate({borderTo...
javascript jquery
[3, 5]
698,028
698,029
Javascript add a PHP file
<pre> var editing = false; if (document.getElementById && document.createElement) { var butt = document.createElement('BUTTON'); var buttext = document.createTextNode('Ready!'); butt.appendChild(buttext); butt.onclick = saveEdit; } function catchIt(e) { if (editing) return; if (!document.getE...
php javascript
[2, 3]