I have some existing projects that were built upon a deprecated PHP framework, and I'm hoping to move them over to Ruby on Rails with minimal effort. My main problem right now is the format that the JSON is coming back in. My frontend code (all ExtJS) is expecting JSON in the format:
{
"result": [
[id: 1, name: "mike"],
...
In my form, there are password field, so that I cannot use postback.
I need to validate everything in client side.
But the ValueToCompare may change by the user input.
How to change the ValueToCompare in CompareValidator by javascript?
Thanks.
...
I am testing a JQuery Web application. I have a JQuery popup that I simply cannot get the submit button to fire in Watir. The same pattern is used thought the application.
I have verified the button exists and have tried click, fireEvent you name it and am out of methods to call.
Has anyone solved this?
...
Hi All,
I'm used to including and using JS like so:
<script type='text/javascript' src='/path/to/script.js'></script>
....
<script type='text/javascript'>
alert('Do some stuff here, using resources defined in script.js.');
</script>
Just out of curiosity, does anyone know the rule for having an inline script with a src attrib, li...
What is the best way to find if a DOM object is visible?
Various cases when object is considered not visible:
display: none;
visibility: hidden;
one of the parents has display: none or visibility: hidden
Another DOM element is obscuring the queried element (Nice to have, but I can manage
without it).
Item outside of screen boundaries...
This question has been asked in a few different formats but I can't get any of the answers to work in my scenario.
I am using jQuery to implement command history when user hits up/down arrows. When up arrow is hit, I replace the input value with previous command and set focus on the input field, but want the cursor always to be position...
Total N00b here, I have a long form wizard that needs one step to be dynamically shown/hidden dependant on a radio button. All is cool with the code thus far.
function checkRb () {
if($(this).is(":checked")){
//yes
$("#do_frick").val("step5");
//alert ("yeah");
}else {
//no
$("#do_frick").val("s...
See title. Since I'm using jQuery, any solution via. that would work too. Ideally, I'd like to know both, though. I already have the arrow keys bound to another function on my page (via. jQuery), but having them cause the page to scroll in addition to that causes me problems.
I may have known this at one time, but I don't remember it...
I have been banging my head for hours on this. I have jCarousel set up almost identically to their "simple" example, and I'm not getting any scrolling. If you set the width of the container higher, you can see that all the images are stacked on top of each other vertically rather than horizontally, but the UL is taking the proper "horizo...
See title. Additionally, how can I tell if a given child element is only partially or else wholly out of view (that is, not within the currently scrolled portion) of my 'overflow: auto;' parent element?
...
I noticed that javascript new Date() function is very smart in accepting dates in several formats.
Xmas95 = new Date("25 Dec, 1995 23:15:00")
Xmas95 = new Date("2009 06 12,12:52:39")
Xmas95 = new Date("20 09 2006,12:52:39")
But i could not find documentation anywhere showing what all string formats that are valid while calling new Date(...
Hi,
Below is a simple ext js code that i can't get to work correctly in IE (works fine in Firefox, and Chrome). The problem is that while it initially renders correctly , its messed up if i try resizing the 'west' panel. Can someone please point out the issue
var viewport = new Ext.Viewport({
layout: "border",
...
I am developing a website in which I need to send a value from parent window to child window.
Is it possible via the URL ?
For example:
I have this line in parent window
<tr ondblclick="fopenclaim(69856984);" id =trackrow>';
function fopenclaim(number)
{
window.open('https://www.sample.com/ClaimsOnline/','claimform','width=800,he...
I've recently been looking at functional programming with Javascript, to which I'm a noob.
While writing some 'map', 'reduce' and 'find' functions I discover that as of JS version 1.5 these functions are already available (see https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array)
I am however confused a...
I want to inactive selecting & copying text in html page.
when I used Javascript & inactive right click user can use Ctrl+V!!
...
how to get title of html page by javascript ?
...
Hello,
I am wondering whats the best way to programmatically make rounded corners for images. This can be either using PHP or javascript. An algorithm will also do for the same and I can code it with Image::Magick or GD.
Thank you for your time.
...
Hello,
Iam working on a website and I dont have any clue why the tabs doesnt work when I upload the website. Because when I view the website normal it does work perfectly.
By the way: The tabs are working with a jquery script.
This is the website URL: http://bmvisuals.poshh.nl/
Greetings.
Edit: I mean some of the tabs doesnt appear.
...
but most of our javascript code is run serverside and can't be executed in a browser. the ecmascript implementation used is Rhino.
i have checked all the javscript coverage tools that where suggested, like the ones here:
http://stackoverflow.com/questions/53249/are-there-any-good-javascript-code-coverage-tools
the suggested coverage t...
In my web application, a series of jsp pages are navigated.
These jsp pages appear on the Right Hand side (frame) of the screen.
On the left frame, I have an applet.
This applet is common to all jsps.
From all of the jsps, I want to invoke a method on the applet.
The javascript code is inside of each jsp.
Is there a way to do this ? An...