javascript

jquery.windows-engine - problem trying open a window from a another window

When I try to open window from a another window it not found. jQuery-Windows-Engine-Plugin Thanks! <html> <head> <title>Test</title> <link type="text/css" rel="stylesheet" href="jquery.windows-engine.css" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="jquery.windows-engine.js"></scrip...

Can I use jQuery to easily shift li elements up or down?

I have a menu like this: <ul id="menu" class="undecorated"> <li id="menuHome"><a href="/">Home</a> </li> <li id="menuAbout"><a href="/Usergroup/About">About</a> </li> <li id="menuArchives"><a href="/Usergroup/Archives">Archives</a> </li> <li id="menuLinks"><a href="/Usergroup/Links">Links</a> </li...

How do I move image in the front of Download Now in javascript code?

How do I move this image http://svastara.info/.s/img/icon/download1.png in the front of Download now? Should look something like this: image Download Now var CountdownTimer = function( id, count, imgurl ) { this.construct(id, count, imgurl); } CountdownTimer.prototype = { construct: function(id,count,imgurl) { th...

Any advances on John Resig's "JavaScript Micro-Templating"?

So I've seen this post on JavaScript Micro-Templating by John Resig and I have a need for a micro-templating engine like this. But he saids in the post that he'll keep a more-refined version in his Secrets of the JavaScript ninja book and also mentions that he'd like to see it evolves. So I'm wondering, is there a more stable/advanced ...

Javascript Month, Week, Day View Calendars

Hi all, I'm yet to find a Javascript Library that offers a plugin which can output Events in a Calendar which supports: Month View Week View Day View There is only one so far which supports all views but thought it would be good to see if anyone else knows of any other Javascript Libraries (Plugins) which can support this. Thanks! ...

looking for a rails example using ajax, simpler the better

I am trying to locate an decent example of ajax json interaction with Rails. I have a Rails app that uses standard forms and wish to improve it with some ajax, but I have not found a good example to inform me. ...

How to access a property file using "javascript"

How do I access a property file using javascript. Normally property file is a xml based file. I java we access a property file like this: Properties prop = new Properties(); fis = getClass().getResourceAsStream("props.xml"); if (fis != null) { prop.loadFromXML(fis); } String dbUrl = ...

Get event data from an HTML drop down list (the list that drops down when a drop down list is selected) using jQuery / plain jscript.

Is it possible to get event data from an HTML drop down list (i.e. the list that drops down, when you click on a drop down list) using jQuery / plain jscript? I am looking to capture: the number of times a user hovers over <option> before selecting the item they require. the duration of the hover before making a selection. At present...

Alternate for window.opener

I am trying to access javascript variable in the parent window from the child window like this. window.opener.jsvar = 'something'; This is not working sometimes in IE 6.x But it is fine in firefox/IE 7.X Do we have any alternative for window.opener? ...

Javascript inheritance -- objects declared in constructor are shared between instances?

I am doing Object Oriented programming in JavaScript without Prototype/jQuery (I use jQuery for other stuff). It has been working fine so far, but I ran into an issue with inheritance. Basically, when I declare objects in a constructor, they are shared between instances. Below is some sample code: A = function() { this.y...

Setting up keyboard shortcuts to jump to closest input fields

Is there simple JavaScript or jQuery script to navigate around form fields, similar to what phpMyAdmin does with dynamic fields. When you click CTRL+LEFT or CTRL+DOWN it "tabs" to the next field. This is extending from the default TAB (go to next) and SHIFT+TAB (go to previous). I want the navigation to be a bit more extensive by adding...

jquery tools: tooltip and tabs not playing together

im using jquery tools. im trying to put tooltips on the inputs of the form which is in the a tab. this is my script: <script> // perform JavaScript after the document is scriptable. $(function() { // initialize tooltips $("#UserContactPerson").tooltip({ // place tooltip on the right edge position: "center right", // ...

window.location and SEO

I'm trying to use something like jQuery biggerlink or just simple window.location for making bigger and more accessible links. What I'm wondering is what happens with SEO in these cases — I have anchor link in the containing element, but does Google penalize such actions since I'm not really clicking on link. Also, are there any other so...

Help with structuring a javascript visualisation application

I'm using http://raphaeljs.com/ to draw some vector graphics on a canvas element on the page. I want somehow to update the graphics on the page in realtime as events happen on another website i'm running. For example, when someone uses the search facility on the other site, I want this to be represented on my canvas. Its a sort of ev...

Javascript type of custom object.

How can I check if my javascript object is of a certain type. var SomeObject = function() { } var s1 = new SomeObject(); In the case above typeof s1 will return "object". That's not very helpful. Is there some way to check if s1 is of type SomeObject ? ...

Javascript: JSON Strigify changes time of date because of UTC!

Hi, can anyone help, my date object in javascript are always represented by UTC +2 because of where i am located. hence like this Mon Sep 28 10:00:00 UTC+0200 2009 Problem is doing a Json.stringify converts the above date to 2009-09-28T08:00:00Z (notice 2 hours missing i.e. 8 instead of 10) What i need is for the d...

Jquery Post + run php file > hide the form > give message...

Hi friends, here is my code about jquery post. I can't make it work somehow. I spent hours :( what I miss here?! when I run the code, It loads same page :( I want it to run the php code under query.php and hide the contact form and give "thanks!" message at send submit button click. (with no page loading) appreciate helps...

YUI (JS): Putting a MenuBar in a Panel

If I put a YUI menu bar in the body it works perfectly. However if I use it inside of a Panel it shows up without the proper background. It is larger than it should be. Other than the default sam skin I'm using only the following css. .windowbody is the class of the panel. <style type="text/css"> body { margin: 0; } .windowbody { ...

Jquery - issue with click event on Select dropdowin in IE6

Hi, I am having an issue with a jquery function. It works in FF but not in IE 6. I want the function to be triggered when any option inside a select drop down is clicked. Here is the start of my funcation: $('#titleSelect option').click( function() { alert("title clicked"); ...... }); Here is my drop down list: <selec...

Why can't I get value fckeditor. done after their code example [Javascript]

Hi. I wonder why I can't get value from FCKEditor with this javascript? I work with asp.net so I know the controls get different names, mine is in a placeholder and in a usercontrol. How should I approach it to find the FCKEditor? thx function test() { var oEditor = FCKeditorAPI.GetInstance('FCKeditor1'); var pageValue = oEdito...