javascript

Selecting a form that doesn't have two or more names.

I'm selecting a form that doesn't have the name "someform", like this: $("form[name!=someform]").bind("keyup", function(e){ [some code] }); What if I want to select a form that doesn't have multiple names, like "someform1" or "someform2"? How do I do that? ...

accessing elements of one html page in other page which is in frame?

Possible Duplicate: accessing elements of one html page in other? EXACT duplicate of http://stackoverflow.com/questions/2244339/accessing-elements-of-one-html-page-in-other i have a html page called main.html which have a frame frame1 and a text box txt and i am displaying another html page called tree.html in frame1 and i wa...

Does anyone know of a spell checker plugin for ckeditor that uses aspell or a similar local service instead of spellchecker.net?

We are using CkEditor on our CMS product and does not want to use the built in spell checker from spellchecker.net. Does anyone know of other plugins, like e.g. the old FCKeditor plugin which used aspell serverside? ...

how to create drop down list using Mootools?

hi, I want to add drop down list to my form (onclick event of a button). I know this is basic of JS. But Please Help! Thanks In Advance! ...

Javascript event handling

Hello all. I am using google maps + javascript + php in my application. I want to know two things: In google maps, does moveend event ALWAYS gets fired AFTER zoomend/dragend (whichever of two) event occurs. When I click zoom icon on google map or scroll the mouse wheel to zoom, the zoomend event gets fired more than once. If I zoom in...

Help to porting function prototype -> jquery 1.4

I'm not an expert of jquery and i need help to porting this function auto_complete: function(controller, focus) { if (this.autocompleter) { Event.stopObserving(this.autocompleter.element); delete this.autocompleter; } this.autocompleter = new Ajax.Autocompleter("auto_complete_query", "auto_complete_dropdown", "/admin/" + controller ...

JQuery UI Custom modal dialog

Hi, I'm trying to create a modal popup effect using JQuery UI 1.7.2 Basically I need a normal Error widget to pop up with the rest of the page blocked out. We're using IE6 at work and there are no ways to upgrade. Currently I'm trying this. <div id="errorPopup" style="display: none;"> <div class="ui-overlay"> <div class="ui-widget...

How does my Site look in other countries

I just made some changes to my website, it will display different greeting text for different continents, I have used Google's API to get location of the user region = google.loader.ClientLocation.address.region; country = google.loader.ClientLocation.address.country; countrycode = google.loader.ClientLocation.address.country_code; Bu...

Set max-height using javascript

I have a div, maximum width for div is user defined. I know I can get it done using element.style.height but this doesn,t work in IE. Any Idea how can I implement max-height equivalent of firefox by using javascript. ...

jQuery's fancybox pack unpacked

Does anyone knows where can i find the unpack version of the Jquery.fancybox-x.x.x.pack? I did fixed by hand the code indentation to tried to understand it better, but still, is a little hard... ...

javascript image slideshow (jquery or YUI)

I am looking for a javascript based image slideshow solution. Requirements I received: A few images are added to the slideshow, and it fades one image after another and then starts again from the first image There should be a navigation in order to manually go to the next / previous image There should be the option to pause the slidesh...

getBoundingClientRect problem with Firefox

Hi, I am trying to get the y coordinate of the cursor within a contenteditable div using getBoundingClientRect(). The IE branch of the code works, but the other branch (i.e. Firefox 3.5 for my current testing purposes) does not. The code below has the problematic lines marked with * in the comment. At that point in the code, both selOb...

JS: Detecting wrapped inline elements?

Hello, I have a indefinite amount of in-line elements being output. Now, depending on browser width, some elements will, of course, wrap to a new line. Is it possible to detect and single out these rows of elements or does the dom just see it as one large line? Thanks for the help!! EDIT: Trying to detect wrapped elements via offset h...

ASP.NET setting a javascript, jQuery setting from my code behind.

I would like to set a value: $('#swfupload').swfupload({ upload_url: "uploadResume.aspx", file_post_name: 'uploadfile', post_params : {"session_guid" : [HERE]} }); ...where [HERE] is the placeholder for my value, from my code behind in ASP.NET before the page is rendered. I generate a guid, and I need ...

How to show/hide html controls keeping their locations the same?

Imagine search bar on html page, it has, say 4 controls on the same line, each wrapped in DIV. E.g. a few listboxes on the same line: searchbyX, byY, byZ, byN After some clicks, some of these controls are hidden, some are displayed (using JQuery). The problem is that I want each control to keep it's place, but if I hide it's left neighbo...

Problem accessing delicious api with ajax

I'm using the following jQuery code to try and access the delicious api, but it's not working. If I go directly to the api url in the browser it returns the xml as expected, so the url is correct. Anyone got any ideas what's up? Could be that it's https, but teh jQuery documentation doesn't explicitly forbid this. $(document).ready(fu...

Fixing a project with multiple Javascript frameworks

I just started a new job, and my first task is to clean up the Javascript code for the site - the problem is that there are two JS libraries being used (jQuery and Prototype / Scriptaculous). I'm trying to figure out what's being used where, but it's pretty difficult, especially not being very familiar with the code. Does anyone have a...

jQuery, What's Best, Have All the Binds in One Single File For an Entire Site or on a per Page Basis?

I'm in the middle of building a web app with heavy use of jQuery plugins and lots of bindings. The backend was developed with a template system which only allows (as of now) to place all scripts in that one HTML file. We will use YUI compressor to merge all these into one. Now, for bindings, how bad is it to have binds in an HTML file ...

browser back acts on nested iframe before the page itself - is there a way to avoid it??

hi, i have a page with dynamic data loaded by some ajax and lots of javascript. the page contains a list from which the user can choose and each selected value loads new data to the page. one of these data items is a url provided to an iframe. i use jQuery BBQ: Back Button & Query Library to simulate the browser-back behavior. all works...

Retaining values in a GET request

<form method="get" action=""> <select name="name" onchange='this.form.submit()'> <option value="a">a</option> <option value="b">b</option> </select> <select name="location" onchange='this.form.submit()'> <option value="x">x</option> <option value="y">y</option> </select> </form> I select option 'a' a...