javascript

Python (or maybe JavaScript / Ruby): open source projects that will give me a (bit) of hand-holding

Ive been roaming around the interwebs looking for my first open-source project to contribute to - and most cool ones seem to be one-man bands on github, which I could fork - but wouldnt quite provide the code review etc. i think i want, so i can improve my python abilities. Web.py, flask, celery, twisted etc look interesting - so far on...

How to delay a function inside a jQuery-ui slider event

I have several jQuery-ui range sliders on a page which add and remove rows in a table and show their values above the sliders, live as the sliders are slid. the function showData has to check and update every table row before it's done and the slide event doesn't seem to execute anything until the showData function has returned. This tab...

Please help with Google map API3!

Hello! I have the problem about geocoder! I have 20 address and my map shows me only 11 points! I know about “delay” and “setTimeout”, but I don’t know how use it. I found answer about it on this page - http://stackoverflow.com/questions/2899506/loading-city-state-from-sql-server-to-google-maps Where wrote about setTimeout (Call the ...

Launching an application from a browser (platform and browser independent), best approach?

Hello, Please forgive a question that has been addressed in some form or fashion previously. I have numerous test applications that run on various platforms from Windows 95, Windows XP, SUSE, RedHat, and other forms of *NIX. Currently, the mechanism has a native application that queries a database for some information then launches th...

Does there exist a reason to put google analytics in head and not in body?

Hi, Does exist reason to put google analytics in head and not in the end of body? (I working on big website that its works in this way) Option 1: <head> <script src="http://www.google-analytics.com/ga.js"&gt;&lt;/script&gt; </head> Option 2 - in bottom of body : <body> //html code <script src="http://www.google-analytics.com/ga.js...

missing lines because <br> in xml

Hi! i have a xml like this: <cont><?php echo nl2br($cont); ?></cont> the response is: <cont> 2<br/> 3<br/> 4<br/> </cont> in the page the code is: mainParentElement = document.getElementById('div_cont'); RemoveAllChildElements(mainParentElement); mainParentElement.innerHTML = "<div class=\'div_cont\'>" + xmlDoc.getElementsByTagNa...

How can I show/hide component with JSF?

How can I show/hide component with JSF? I am currently trying so do the same with the help of javascript but not successfull. I cannot use any third party libraries. Thanks| Abhi ...

I'm trying to change an Image's src attribute when the mouse hovers above it. Is there a reason why this JQuery code shouldn't work?

$('.icon1').mouseover(function(){ $(this).find('img').attr('src', 'recursos/botban/maq1.png'); }); Should work right? It's just an arbitrary test to see what was wrong, but it's still broken. I've also tried with $('.icon1').hover(function(){..., and it also does not work. What I really want is more like... $('.icon1').mouseover(...

[JQUERY] scroll from the bottom of the page to the top

hi all guys, i was wondering if is online any jquery plugin that help me to scroll page when i'm at bottom of this. i mean,when i scroll my page to bottom side ,i would like a button that appears and clicking it i can return to the top of page any suggestions? really thanks ;) ...

Dynamic jquery code - any way to include it in a file?

So i have been developing and testing with jquery inline. I am using CodeIgniter - the below refers to my views. I have <script="text/javascript">JQUERY CODE</script> at the top of my page. Some of my code is dynamic in that it uses PHP vars. E.G when making an ajax call, the URL is preceeded by <?php echo base_url();?> So now I have g...

javascript too many constructor arguments

I'm trying to import a set of coordinates from an external javascript. I have to include about 78.740 elements in the constructor, but firefox just throws an error: "too many constructor arguments" Does anybody have any ideas? This is my code: function CreateArray() { return new Array( ... ... ... 78.740 elements later ... ); } ...

How do I include a single Google Calendar event as an iframe (or similar)?

We're using Google Calendar in our company, and I'd like display single events (with attendees etc) on pages in our intranet. Is it possible to fetch a nicely formatted event and place it inline on our site somehow? I've tried putting the direct link to an event on Google Calendar in an iframe, but this just redirects the whole page to...

jQuery function on form input

I want users to enter something in an text field, press OK and then run a function on the value of that text. I have been looking at jQuery docs, I found keyup which gets the value instantly (not what I want) and the only things I can find about doing stuff with submitted form data involve POSTing the results to a php file or something....

Multiple inputs in php

What I'm trying to do: We have one input on the page We press "add" button and one more input adds after first On submit we get all their values and add them into an array. How to add additional inputs on page (with jquery), and then get their contents in php? ...

Where to include JS files - does it matter?

A few questions today :) I am using Codeigniter. I have a header view, containing my tags which contains the universal JS file loads. It also contains the 'layout' of the page, links etc, sidebar, and then it opens the tag and main content . This is closed in my footer view which is loaded after and 'content' view. In one particula...

High performance chart for lots of data in javascript

I need a high performance charting component. The underlying technology used is not specific; could be javascript, flash or java for what it's worth. I need to solve these issues: 1. I need to decide on the right kind of chart for this kind of data: 001. testA 002,003 002. testB 003,004 003. testC 004 004. testD Currently, I'm thi...

How to fire a JavaScript event via C++ in QWebView

Hi, please note that I'm a complete beginner to Qt development. I have a QWebView with a QObject added to the JavaScript window object. How do I fire a JS event on that object? view->page()->mainFrame()->addToJavaScriptWindowObject(objName,obj); I want to be able to listen to events using addEventListener. window.objName.addEventLis...

JavaScript undefined function

This is really irritating. I have looked over the code continuosly but I cannot see why I am getting "undefined" thrown at me. <html> <head> <link href="../../style.css" rel="stylesheet" type="text/css"> <script type="text/javavscript"> function test() { alert("yey"); } </script> </head> <body> <div id="L1" onmo...

CKeditor skins, good ones and how to build them?

Hi, I was wondering if there is a resource of CKeditor skins anywhere? Like a list of downloadble skins. The default one is a little meh. Also where are the doc's for creating your own skin? Thanks! ...

using xpaths in javascript

I have a large set of XPaths for selecting content in webpages and I want users to be able to use them in the browser (including IE). What do you recommend? Try and interpret the XPaths with JavaScript? Or perhaps convert to regex? Some existing JavaScript XPath work: http://js-xpath.sourceforge.net/xpath-example.html http://goog-aja...