Question: How can I determine the "fold" programatically (how much vertical content the browser is displaying)?
The "fold" defined as where you can no longer see / have to scroll.
I've tried with JavaScript to simply determine the browser window size to determine the fold; unfortunately - this doesn't work well because some browsers ha...
Update2:
What I really wanted to ask was already argued in a different page. Please check the following entry. (Thanks to BobS.)
http://stackoverflow.com/questions/598878/how-can-i-access-local-scope-dynamically-in-javascript
Hello.
I've started using jQuery and am wondering how to call functions in an anonymous function dynamically ...
I have a checkbox that when it is clicked it submits the form to the server to store the detail. All works fine except that after the form is submitted I update a div to say submitted but the checkbox isn't ticked. The page isn't refreshed of course and upon page refresh it is ticked.
I thought I might be able to check the box myself as...
hello,
I am building a mozilla extension that contacts a python application on a remote server to send and receive data. The python application can be used using xml-rpc from a python console.I am given the task to design a json-rpc that would contact the same application.Making the python server side has been easy which can be accesed u...
In php, I have used preg_match_all() to find keywords (using the format %keyword%) in a string, which works wonderfully and returns an array of all found keywords.
What I would like to do, is do the same thing using jQuery or javascript. I have tried using the filter() function, and it kind of works. But I think I am missing somethin...
I'm working on a large project that is organized like so:
Multiple javascript files are included as needed and most code is wrapped in anonymous functions...
// wutang.js
//Included Files Go Here
// Public stuff
var MethodMan;
// Private stuff
(function() {
var someVar1;
MethodMan = function(){...};
var APrivateMethod = function()...
Our team is faced with slow but serious Javascript memory leak. We have read up on the normal causes for memory leaks in Javascript (eg. closures and circular references).
We tried to avoid those pitfalls in the code but it likely we still have unknown mistakes left.
I started my search for available tools but would like input from pe...
Hi,
I'm using the validation plugin for jquery:
http://docs.jquery.com/Plugins/Validation.
I want to know how would I exempt a field to be validated? Currently all fields inside the form are automatically checked.
...
I created a customized ActiveX control and exposed a method called "getDesktopWindows". Then I use the following javascript to call it:
var plugin = document.getElementById("myPlugin");
var wins = plugin.getDesktopWindows();
So far everything works just fine. Then I wrapped the code into a javascript function and use a flex application...
I want to write a browser (Chrome/FF) extension that needs to select an element on a web page. I would like it to behave like Firebug's element inspector does. You click the inspect arrow and you can then hover/highlight elements. When you click on the element you want, the element is inspected. I'm just interested in the code to all...
i got a sales web site each time i press "sales" button it it will open a new frame.
there is a possibility for more then one frame at the same time.
my problem is i want to close the frame after i click enter and home page to be updated provided all the other pending sales frames are remain open....
i tried to do so with window concep...
Hello,
how to center a div across all browsers and behind this div there should be a transparent background layer covering entire screen of browser like lightbox.
Thanks
...
Are there any reasons, apart from subjective visual perception and cases where you have multiple statements on the same line, to use semicolon at the end of statements in Javascript?
...
Hi Guys,
I have a ListBox which is bound to a list of data items.
Now I want the user to be able to filter the items shown in the ListBox
based on the search expression typed in the TextBox. For each character
typed in the TextBox, the ListBox items should change to show only the items
matching the search expression.
using Javascript...
I am using gettext in my PHP code, but i have a big problem. All my Javascript files are not affected by the translation, can somebody tell me an easy way to get the translations in the chosen language into JavaScript as well.
...
Hi guys,
I'm reading a js file at here, on the very top of this js file you can find the following lines:
var
gsAgent=navigator.userAgent.toLowerCase(),
gsAppVer=navigator.appVersion.toLowerCase(),
gsAppName=navigator.appName.toLowerCase(),
gbIsOpera=gsAgent.indexOf("opera")>-1,
gbIsKHTML=gsAgent.indexOf("khtml")>-1
||gsAgent.indexOf(...
If i have "img" element id = "myimg".
Is posible to add link to "img" without edit html page using jQuery
<img id="myimg" src="image.png">
I like to make "myimg" have link like this.
<a href="test.html"><img id="myimg" src="image.png"></a>
Thank you for reploy.
...
All,
Is there a jQuery timer which can start a timer for 20 minutes and display time elapsed? Please point me to a small code for it.
var austDay = new getTime();
austDay = new getSeconds(austDay);
var duration = 1200;
duration += austDay;
Thanks
...
I'd expect a right-click-context-menu-style pop-up menu to be a part of jQuery UI. But apparently it isn't. What's the de-facto standard out there? Or is everybody just rolling out their own ones?
Example
...
Hi All,
I am retrieving one query string parameter, and for that my code is
<a href="Default2.aspx?Id=1&status=pending&year=2010">Click me</a>
Now I want to retrieve "status=pending" and for that I am doing
var qString = window.location.search.substring(1);
var Keys = qString .split('&');
alert(...