Is there any way to cleanup JavaScript code?
I want to enable users to post arbitrary JS but i want to filter some of it out, like eval and document.write. Do you know of any tool that can do this?
Hello again,
is anyone find validation for zipcode for all countries around the world. i found mostly US,Canada and UK validation scripts in Javascript.
any gimme any suggestion how to validate the international zipcodes either in php or js.
Guys, Ive been using jquery to do this, but now I need to do it with Prototype and Im little confused due lack of documentation
I have 2 lists of check boxes
First List:
Check box 1
Check box 2
Second list:
Check box x
check box y
check box z
I need the JS code, using prototype to work like this: Second list, remains disabled unless I check one of the checkboxes of the First List.
Any suggestions, or help, please!
Thankyou.
jquery-1.4.2.min.js is 71.8KB
Same file compressed through this tool, with gzip enabled, becomes 32.9 KB
Which is better? If latter, why doesn't jQuery provide a packed file too instead of just uncompressed and min versions?
Thanks
I'm using the jquery autocomplete plugin that comes with the symfony sfFormExtra plugin.
/*
* jQuery Autocomplete plugin 1.1
*
* Copyright (c) 2009 Jörn Zaefferer
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
* Revision: $Id: jquery.autocomplete.js 15 2009-08-22 10:30:27Z joern.zaefferer $
*/
It does seem to sort json results according to the key, but I can't find any mention of sort options in the code.
I would like the results sorted like returned from the server.
How can I achieve this?
It seems JQuery, its plugins and UI has largest popularity among JS platforms. I love and use Adobe technology stack every day, I wonder if Adobe Spry will be good addition to skill set.
Is it good enough comparing to JQuery ? Spry development is not moving forward fast and there's not much information about it, does it have future ?
I'm looking for a decent book or online resource to help me learn about developing large Javascript applications.
There are lots of books that go over the fundamental and advanced features of JS, but I'm looking for something which covers application structure, coding practices etc.
Any ideas?
I am trying to do the following in JavaScript:
var gete = document.getElementById;
But I am getting the following error (From FireBug's Console):
uncaught exception: [Exception... "Illegal operation on WrappedNative prototype object" nsresult: "0x8057000c (NS_ERROR_XPC_BAD_OP_ON_WN_PROTO)" location: "JS frame :: http://localhost:8080/im_ass1/ :: anonymous :: line 15" data: no]
Now obviously I can wrap the function as follows:
var gete = function (id) {
return document.getElementById(id);
};
But what is the reason I'm getting the above exception when assigning the function to another name?
How do I go about getting the isapi_rewrite working on IIS 6.0?
My shared hosting account supports ISAPI_Rewrite - I've run the provided tests to confirm.
I'm only able to access the index page of my Zend PHP project, but get the 404 error for other actions in my index controller class definition.
I've basically placed the code:
[ISAPI_Rewrite]
RepeatLimit 20
RewriteRule (?!\.(js|ico|gif|jpg|png|css|swf))$ index.php
in an httpd.ini access file in my wwwroot directory. Is there anything I'm missing?
First time going through this scenario, and apparently I did it very wrong.
On the DB servers I deleted the cluster group that held SQL and Reporting Services.
I then destroyed the cluster.
Then I tried to uninstall SQL. No dice. SQL still thinks its part of the non-existant cluster and will not let me uninstall it. I went into the Maintenance menu of the SQL setup and tried to Remove Node...nope.
Unless I find a way out of this I will have to rebuild the OS if I can't get SQL off the box.
Hiya.
I'm trying to configure that my facebook application will be resizeable.
The docs at http://wiki.developers.facebook.com/index.php/Resizable_IFrame
talk about facebook connect cross-domain receiver URL.
and in the JS code i need to enter the 'site relative url to xd_receiver.htm'.
what's that?
what code should be in that HTML file ?
thanks
how to remove index.php from my url in codeigniter . i remove index.php from my config file and i have run my rewrite_module in apache(2.2.11) and my .htaccess file is
RewriteEngine on
RewriteCond $1 !^(index\.php|images|captcha|css|js|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]
now whenever i click any link it show that request url don't found . so please tell me what is the problem ?
Is there a way (ideally easy) to make headings and sections autonumber in HTML/CSS? Perhaps a JS library?
Or is this something that is hard to do in HTML?
I'm looking at an application for a corporate wiki but we want to be able to use heading numbers like we always have in word processors.
i cant for the life of me figure out how to change the date from default mm/dd/yyyy to the european dd/mm/yyyy
the manual states to use:
$.datepicker.formatDate('yy-mm-dd', new Date(2007, 1 - 1, 26));
so far i have:
$('#next_date').datepicker();
which shows the calendar fine but im not sure where the first line of code goes. this for example disables the calendar, nothing shows up, no js errors reported
$('#next_date').datepicker.formatDate('yy-mm-dd', new Date(2007, 1 - 1, 26));
I'm working on migrating from using IPSEC settings stored under the 'IP Security Policies on Active Directory' to using the 'Windows Firewall with Advanced Security' for my 2008+ boxes.
I have successfully been able to get this set up using Kerberos authentication, however my openswan implementation on my Linux boxes is using certificates. Whenever I try changing the authentication method to computer certificate (using RSA and my root CA) the connection is bombing out.
I've made this change at both a connection request policy and on the IPSEC settings on the root Windows Firewall with Advanced Security node. The windows event log shows the authentication request is taking place but failing negotiating a mode.
What am I missing here?
Hi,
I need to validate a date in a web forms application. For this I use a CompareValidator with
Operator="DataTypeCheck" Type="Date"
The problem is that this Validator doesn't work properly on Firefox with 2 digit years. ( javascript error: m[2] is undefined)
With a 4 digits year it's working properly.
This problem is described also here:
https://connect.microsoft.com/VisualStudio/feedback/details/355573/comparevalidator-client-side-bug-two-digit-year-in-mozilla-based-browsers-throws-js-exception
Does anyone know a nice workaround for this?
Thanks
I guess these are all questions that everyone must just know, because I'm not seeing this in the documentation :-D
I understand that the public folder is the folder that the world has access to.
I know it is the case with the css folder, but in migrating a traditional php website over, will my /images folder, /js folder /mp3s, etc Will those all just also be public folders that will be accessed via the layout or view.phtml pages?
Thanks!
I have a small command line javascript routine that I usually run from the command line using cscript in windows. I'd like to be able to pass in arguments hopefully along the lines of...
%:cscript doSomethingToFile.js FileInQuestion.txt
Any insight on how to do this? Thanks much.
I can connect to an OpenVPN server from Windows without any problems.
But when I try to connect from Ubuntu 12.04 (start OpenVPN) I receive the following:
OpenVPN needs a gateway parameter for a --route option and no default was specified by either --route-gateway or --ifconfig options
SERVER IP: 161.53.X.X internal network: 10.0.0.0 / 8
What I need to do ?
client configuration:
client
dev tap
proto udp
remote 161.53.X.X 1194
resolv-retry infinite
nobind
ca ca.crt
cert client.crt
key client.key
ns-cert-type server
comp-lzo
verb 3
server conf:
local 161.53.X.X
port 1194
proto udp
dev tap
dev-node OpenVPN
ca ca.crt
cert server.crt
key server.key # This file should be kept secret
dh dh1024.pem
# DHCP leases addresses to clients
server-bridge
# Push routes to the client to allow it
# to reach other private subnets behind
# the server. Remember that these
# private subnets will also need
# to know to route the OpenVPN client
# address pool (10.8.0.0/255.255.255.0)
# back to the OpenVPN server.
push "route 10.0.0.1 255.255.0.0"
client-to-client
duplicate-cn
keepalive 10 120
comp-lzo
verb 6
I am developing a node application and there is an option to set the process title (process name). This only sets it in some tools (like ps and top), but not in htop or netstat.
I found this article that explained how most applications do it, but it doesn't change in netstat.
That lead me to wonder where those programs are getting the process name. Would they be getting it from /proc/##/cmdline? (## being the PID of the process)
I figure messing with things in /proc is a bad idea (and probably not possible), so if this is where those programs are getting it, is there a way to change it?
I want to load a javascript file at the end of jquery.ready so that the code in my ready handler doesn't have to wait to execute until this large javascript file is loaded.
My jquery.ready code doesn't rely on this javascript file at all.
Would this be a good way to do that?
$(function(){
...
...
$('head').append('<script type="text/javascript" src="/largejs.js"></script>');
});
I am looking for a site that allows you to input a project name, choose a doctype, a js library etc. and then generates the directory structure and files to start a web project. I know about project deploy, but it is no longer maintained. There was a new one that was created within the last 2 or 3 months, but for the life of me I can't find it either through Google nor my delicious bookmarks. Any help would be greatly appreciated.
Thanks,
Steve
Hi. I have a site where both landing and thank you page are index.php page with different content loaded dynamically. As I'm generating the javascript and trying to validate it, it gives me an error saying that JS is not installed on the thank you page, which makes sense, because its content is not loaded yet. I was wondering how I can circumvent this issue? Any suggestions?
Thanks!
Luka