javascript

Create draggables by draging mouse

Hi: I am new to JQuery library. I am currently trying to create a Draggable by mouse. Say, when I press the mouse it start to draw and then I drag the mouse to change the size and then I release the mouse to finalize the drawing. Is it possible to do this with JQuery? Thank you in advance. Joe ...

loading css or javascript from non-public directory

is there a way to load css and/or javascript files from outside of the public web directory? for example on my hosting service i have /public_html but don't want these files to exist in the public directory and want them in a directory outside of the public directory in a sibling directory /system (i am using codeigniter) within the /sy...

secure xmlhttprequest from nonsecure page

I want to make an XMLHttpRequest to a secure uri (https://site.com/ajaxservice/) from javascript running inside a nonsecure page (http://site.com/page.htm). I've tried all kinds of nutty stuff like iframes and dynamic script elements, so far no go. I know I am violating 'same origin policy' but there must be some way to make this work. ...

Can I access the value of invalid/custom CSS properties from JavaScript?

Assume I have the following CSS: div { -my-foo: 42; } Can I later in JavaScript somehow know what the value of the -my-foo CSS property is for a given div? ...

Python Scraper for Javascript?

Hey all, Can anyone direct me to a good Python screen scraping library for javascript code (hopefully one with good documentation/tutorials)? I'd like to see what options are out there, but most of all the easiest to learn with fastest results... wondering if anyone had experience. I've heard some stuff about spidermonkey, but maybe the...

Pure-JavaScript projects in NetBeans?

This seems like it ought to be obvious, yet I can't figure it out. I do a lot of JavaScript coding, and I really like NetBeans. Unfortunately I can't figure out how to create a "JavaScript" project in NetBeans. If I go to File -> New Project, my only options are "Java", "Ruby", and "NetBeans Modules". I don't want any of these. My proje...

Capturing the contents of <select>

I'm trying to use a regular expression to capture the contents of all option values inside an HTML select element For example, in: <select name="test"> <option value="blah">one</option> <option value="mehh">two</option> <option value="rawr">three</option> </select> I'd like to capture one two and three into an array. My current code...

how can I read a binary file with in javascript (Cscript.exe)?

I think I can't read a binary file with the Scripting.FileSystemObject class. Can I do it with ADODB.Stream? Something else? I want to get an array of bytes. thanks. ...

android 2.2 browser dont work pageY or PageX in ontouchend event

I have a web app that work perfect in android 2.1, when I upgrade to 2.2 the pageX property in ontouchend event, this is my code: menu1.ontouchend = function(e){ e.preventDefault(); if (e.touches y2 = e.touches[0].pageY; } else { // all others x2 = e.pageX; y2 = e.pageY; } } Anybody know what change in the javascript API...

Hype Machine Fluid Greasemonkey script broken help fixing it.

Hi, There is a greasemonkey script here that is suppose to work with a standalone fluid app. I just tried it out and it doesn't but I can't figure out what is wrong with it. Anybody wanna take a look at the code for me see if I am doing something wrong. Alot to ask but worth trying. Source: http://userscripts.org/scripts/review/62762 Sc...

Hardware access through JavaScript

Can we access the hardware service routine using JavaScript? ...

how to start learning JavaScript

Dear All, I am experienced in the technical support like Linux, oracle, sunos etc and but if i say scripting i know little bit of bash. Now i promoted to manage technical engineers including some JavaScript developers, so i want to learn JavaScripting so that i can understand engineers. Hope you understand. Can you please advise me how ...

Embedding other system and overriding it links

Hello, I have a question. Is there is a way to override hrefs, posts and etc? In example I embed 3rd part forum inside of my container and I click anything there page response will be loaded into the same container and not reloading everything in the window. ...

XUL: create menu items dynamically and set "selected" attr

I have a firefox extension Options pref panel, where I should dynamically create menu items and select particular item to be current. here is the XUL file part <menulist id="rss_service_combo"> <menupopup id="rss_service_menu"/> </menulist> Then in load event of the pref panel, using js I append menuitem elements into menupop. Th...

How to innerHTML an HTML tag without id?

Hi, For example I have this HTML code: <div id="canvas"> <div id="root"> <div id="content"> <span> <title>My SVG Example Title</title> <ellipse id="svg_1" /> </span> </div> </div> </div> How can I innerHTML the <span> tag without changing the <title> tag ...

Javascript in Machine Language

Is it possible to convert javascript code to machine code or pure native binary? ...

how to play mp3 file by streaming using jquery

Dear all, How can i play an Mp3 file using jquery.At backend level i m using servlets/jsp.PLease suggest any other possible way to play mp3 file in a website. ...

change color of a word in div value using javascript

Hi, I have a <div id="one">this is a sentence</div> I have a textbox for userinput, if the user types a word which matches any word in div, eg: if user types "this", which is also there in div value, the background color of "this" should be changed, using Javascript Thanks Sunny. ...

Pass Date object from javascript to asp.net mvc controller

Hi, I have a Date variable in client side and I want to pass the Date variable to my controller at server side. I have passed as a normal field and the date is defaulting to 01-01-0001 12:00:00 AM. help me to convert the date field with the right format. ...

Using a .delay() function before .css() manipulation in jQuery

I have this: var $ul = $(this).children("ul"); $ul.animate({opacity: 0}, 1000); $ul.delay(1000).css("display", "none") It's for my dropdown menu, and I want it to fade off before it disappears using the display: none; CSS property. However, it appears that the .delay() cannot be used on the .css(); it doesn't work, the $ul just disapp...