make objects and fields dynamically in javascript
instead of using getParameterByName('Field', PostData) (PostData == $('form').serialize();) I would like to write PostData.Field, how can i do that with javascript? ...
instead of using getParameterByName('Field', PostData) (PostData == $('form').serialize();) I would like to write PostData.Field, how can i do that with javascript? ...
I'm working on a new project http://www.hotwirerevealed.com which reveals / identifies hotels on hotwire.com. After inputting a state and a destination I have a javascript functions that uses jquery's .post method to post. The post request goes to an php page which outputs html, I se jquery's html method to place the content on the page....
I've been doing a little JavaScript (well, more like jQuery) for a while now and one thing I've always been confused about is where I should put my scripts, in the <head> tag or in the <body> tag. If anyone could clarify this issue, that'd be great. An example of what should go where would be perfect. ...
Is there any way to suppress the default js and css loaded by application.html.erb on a view by view basis? I'm finding it incredibly difficult to manage a global css and js includes configuration when certain views need different js libraries that for some reason seem to be conflicting with one another. For example, I might want jquery ...
Given the following function: window.onbeforeunload= function() { if (CKEDITOR.instances.stuff.getData().length > 0 && oktoquit == false) { return "You have unsaved changes. Click Cancel now, then 'Save' to save them. Click OK now to discard them."; } }; I'd like a way to exclude this function from running if the user ...
I'm trying to fade all elements on a webpage except for one div. I've been able to fade all the elements with the following jQuery: $('*').css('opacity', .3); However, it seems as if opacity is a property that inherits from parent elements, even if I explicitly set the opacity of the div to 1. I'm drawing a blank as to any solutions...
In summary, Jpicker is great; however, I have the small box button in a JQuery accordion, the window opens in the accordion and the issue is that the accordion is to small. Is there a way to have the jpicker open up in the document window, NOT the accordion window? ...
I know that a submit button in HTML can submit a form which opens the target page, but how do I cause a jQuery ajax call to POST information to a new page and also display the new page. I am submitting information that is gathered by clicking elements (which toggle a new class called "select") and then identifiers from these items with ...
Hi Can anyone say why this megamenu isnt working when i hover categories menu on this page? it works on other pages, but in this page its not because of fullcalendar?? http://gunwebstaging.com.mytempweb.com/Calendar.aspx ...
Normally, we get first value that way: $("#color option:first").val() But I need something like $(this.id option:first).val() and of course it doesn't work. ...
One of the most appealing features of Ext-JS is the Grid control in my opinion. I was searching for something free that does something close and have set my hopes on jQuery. I haven't found a jQuery (or other LGPL compatible) Table / Grid plugin that allows to: Reorder columns by dragging Resize columns by dragging Add or Remove colum...
I call sortable.stop() to make an ajax call to store some data after drag&drop operation. When the ajax call returns an error (application logic error or net problem) I want to move the dragged element to its original/start position, how can I achieve it? The scenario should be user drags A to B the sortable.stop() event is called, i...
Is there a way to detect a Operating system using JQuery or CSS. With css I'm referring to something similar to <![if !IE]> I need to use a specific font only when web page is vieved using Linux and don't want to include this with other os's ...
Hi, I've been trying to recreate an effect from this tutorial: http://jqueryfordesigners.com/jquery-look-tim-van-damme/ Unfortunately, I want a background image underneath and because of the resize going on in JavaScript, it gets resized and cut off as well, like so: http://dev.gentlecode.net/dotme/index-sample.html - you can view sourc...
Anyone who has tried to use JQGrid a Jquery plugin with django? Please share your knowledge/code samples ...
Hey peeps, This is my requirement: I have a bunch of radio box selections (types of workflows). If one of the radios are selected(i.e one particular type of workflow selected), I want to run a custom validation on that. This is what i tried, but it's not behaving well. Any help? jQuery part: $(document).ready(function() { // thi...
I have created a toggle button with jquery but I need to pass my $id so it can execute the mysql in toggle_visibility.php. how do I pass my variable from my tag ? <a class="toggleVisibility">Yes</a> <script> $("a.toggleVisibility").toggle( function () { $(this).html("No"); }, function ...
I have a custom jQuery plugin which binds a change event to a form element, in this case some input elements. The change event is used to indicate to some other components that a change has taken place. This works as it should. However, I've come across the need to bind an additional change event to the same input elements -- so that a...
Hello I need to position a div over an image with jQuery. I can create it with using position:fixed and use top and left to position it using elements offset, but it sucks because the element will not be on top of the element if user scrolls. Any other ideas? Martti Laine ...
Hi there, I've used the JQuery lightbox on a couple of websites, by having a gallery of thumbnails and the thumbnails as links to the bigger photos. My question is, using lightbox - can I make it so that I have a thumbnail image that when clicked takes you to a folder with a few pictures to cycle through, rather than just linking to on...