Our site has some very complicated form controls that are submitted and then show up again on the results page in case users want to resubmit the form from the results page.
Currently, this requires a lot of if-then statements to preset the form controls to what was submitted.
I'm wondering if there is a library (preferably jquery) t...
I have a piece of code that is using .before() and the code it is moving has inline javascript which .before() re-executes. Is there a way to prevent .before() form re-executing javascript code?
...
As the question suggests — is it possible to get the names of all variables declared in the current namespace? For example, something like this:
>>> var x = 42;
>>> function bar() { ...}
>>> getNamespace()
{ x: 42, bar: function(){} }
>>>
...
I'm trying to detect, in a future-proof and device-independent way, when the address bar in the iPhone browser is showing. This is the toolbar that is shown at the top in order to display the URL. It can be hidden by calling:
window.scrollTo(0, 0)
What I'd like to do, is detect when it's being show (thus reducing the available viewing...
Sorry if this has been asked, I am not sure how to best word it so I couldn't find a result on Google.
I currently have a div #divForm with some text and a table that has a form inside. I currently have it so when you click on the div it toggles to show the table:
$("#divForm").live('click', function () {
$(this).attr('cla...
With XML XSLT, it is possible to build a nice template in HTML, convert it to XSLT and use xml data coming from the server to dynamically populate widgets on the client side.
JSON and JSONP are great for interacting with the server side and manipulating the data in JS. When it comes to rendering the JSON data, most examples I've seen u...
Hello
I'm creating a layout in full css. However, some browser (such as IE6) do not support box-shadow (.. and -webkit-box-shadow or -moz-box-shadow). I would like to check if it's not supported and then add other styles.
How's this possible in jQuery?
Martti Laine
...
<html>
<head>
<script type="text/javascript"
src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$(".pane:even").addClass("alt");
$(".pane .btn-delete").click(function(){
alert("This Row w...
In Javascript we can declare a variable and we can call a function. The function will return a value and will be assigned to the variable. Is this possible in jQuery?
I want to know if my previous function is finished or not. I want to get the result success or failure and call another function based on first function's result
I use a ...
Am trying to reada a html table and iterating rows for specific column values and am getting the above exceptions .. any ideas
...
Hi I have a html form with the following code
<td ><label>
<textarea name="comments" id="comments"
cols="100" rows="3"
onkeyup="illegal()" </td>
when the js function 'illegal' is called part of the code is
cm = document.form1.comments.value
cl = cm.length
But what ever the string length is, the result is an a...
Hey all !
I am building a line chart and I would like, when I click on a point of the line, to display a popup containing some data about this point.
The issue I try to resolve is to get the id, the series associated with this point or something like that.
Here is my code :
plotOptions: {
column: {
pointWidth: 20
}...
Hello,
I know that due to JavaScript security sandbox, it is not possible to load xml data from outside of the domain which the JavaScript code is on.
But if I am using the localhost:8080 and the xml document is coming from the localhost in the same machine but from another port like 8081, is this considered as same domain or not?
Th...
Hi,
i'm implementing deep linking for my website.
I wonder, why jquery-address is unable just to set a query string, like this:
www.mywebsite.com?search=keyword
When i using
$.address.parameter("search", "keyword")
jquery-address sets follwing url:
www.mywebsite.com?search#/?keyword
Why, it doing so ?
I just need the plain ol...
I have an array and I want to sort by the number field not the name.
var showIt = [
["nuCycleDate",19561100],
["ndCycleDate",19460700],
["neCycleDate",0],
["nlCycleDate",0]
];
Thanks
...
Hi Guys,
I have a question - I am hosting my files on a static sub-domain
http://subdomain.domain.com
http://www.domain.com
Currently, resources on the subdomain are ONLY accessible via HTTP [not https://]. For now, I request https:// resources via www.domain.com
Will resources requested from subdomain.domain.com be "cached" for htt...
I have a page that does a JSON result, get and post method in the controller with two submit buttons. One button goes to the Post method only for a redirect, and the other button goes to the JsonResult method(named AddTableData). How do I set this up in my JQuery code?
$('#firstSubmit').click(function() {
$(document).submit(functi...
Ok, I don't know how to actually ask this question without showing it. (Also explains why I can't figure out how to search for it on Google.)
Given the following like of code:
dijit.byId('leftNavigationPane').onLoad = function(){setSecondaryNav(url.secondaryNavId);};
I want the variable url.secondaryNavId to be evaluated, so what I ...
Hi there,
I've been making use of InfoBox to draw custom overlays on my GoogleMap.
In short I load from XML lat longs etc, draw pins on the map, and show a custom infowindow. All good, however I wanted to use my own content instead of pins for markers (small previews of the content), so I created them using InfoBox as a map label. Then...
I was experiencing a bug with my Facebook 'like' buttons. The fix for the bug was posted here:
http://wiki.github.com/facebook/connect-js/custom-channel-url
At the beginning of this solution it states that the bug only occurs on pages with autostart video (which I don't have) or pages with frame busting code.
I'm therefore assuming m...