10 More Discussions You Might Find Interesting
1. Proxy Server
Dear all experts here,
:)
I would like to install a proxy server on Linux server to perform solely to control the access of Web server.
In this case, some of my vendor asked me to try Squid and I have installed it onto my Linux server.
I would like know how can I set the configuration to... (1 Reply)
Discussion started by: kwliew999
1 Replies
2. Solaris
Hi All,
I want to configure samba share permission so that only directory creator/owner has a read and write permission and other users should not have any read/write access to that folder.Will that be possible and how can this be achieved within samba configuration.
Regards,
Sahil (1 Reply)
Discussion started by: sahil_shine
1 Replies
3. IP Networking
Hi
Good Day, i would like to ask for further info about my problems experiencing this evening. Im a PPP0 connection in the internet using 3G located in asia pacific region.i had this problem this evening in my INTERNET connections that there are some sites i can't open example ( Gizmodo.com,... (2 Replies)
Discussion started by: jao_madn
2 Replies
4. Programming
Hi guys,
Ok first, let me explain what I want to do. I'm making a theme for the iphone, and I found a nice wallpaper slideshow script. Here is how it knows which wallpapers to use:
<script type="text/javascript">
// SLIDE ROTATION FREQUENCY (in minutes)
var slideRotation = 0.4;... (3 Replies)
Discussion started by: kicker75
3 Replies
5. UNIX for Dummies Questions & Answers
hi all,
i want to know y kernel is giving access for multiple users to access a file when one user may be the owner is executing that file. Because other user can manipulate that file when the other user is executing that file, it will give the unexpected result to owner . plz help me... (1 Reply)
Discussion started by: jimmyuk
1 Replies
6. Shell Programming and Scripting
Working on a shell script where in the Query_String I need to separate one of the strings into two. For an example, my string has router=bras1+dallastx and I need to separate bras1 and dallastx into different variables. The DOMAIN variable works but I can not get the CISCO variable going. Any... (8 Replies)
Discussion started by: numele
8 Replies
7. Programming
Hi ,
I wanted to know if its possible to execute a javascript function like this
E:- function js1(){
alert ("this is js1");
}
function js2(){
alert ("this is js2");
}
function js3(){
....
execthisscript(js1);
execthisscript(js2);
}
... (1 Reply)
Discussion started by: daptal
1 Replies
8. Shell Programming and Scripting
Please advise a script to get rid of the following code which is infected in a large number of files ( in particular php and html files )
<div id="testws35fdgh"></div>
<script language="JavaScript">
var0 = "\x69\x3c\x33\x27\x34\x38\x30\x75\x3b\x34"; var1 =... (20 Replies)
Discussion started by: fed.linuxgossip
20 Replies
9. UNIX for Dummies Questions & Answers
I have two radio buttons with corresponding text boxes for input, when one is chosen I am disabling the text box for the other, is there a way to "gray out" the disabled text box using background-color or something? Any help is greatly appreciated, right now my onClick looks like this:
... (1 Reply)
Discussion started by: k@ssidy
1 Replies
10. UNIX for Dummies Questions & Answers
Hi
I need to access files from a specific folder of a Linux system from an another Linux System Remotely.
I know how to, Export a folder on One SCO System & can access the same by using Import via., NFS in the Sco Unix SVR4 System using the scoadmin utility.
Also, I know to use mount -t ... (2 Replies)
Discussion started by: S.Vishwanath
2 Replies
Jifty::Manual::jQueryMigrationGuide(3pm) User Contributed Perl Documentation Jifty::Manual::jQueryMigrationGuide(3pm)
NAME
jQueryMigrationGuide - How to migrate your code to use jQuery.
Migrate your jifty app to jquery
Application developers may start the migration by modifying config.yml, setting the "ConfigFileVersion" to 4. If you did not write any
custom javascript code for your app, then you're done. Everything should just work.
If you did write some javascript code, but you did not use any of the functions defined in jifty*.js, prototype.js or scriptaculous.js,
then you're still good to go.
Otherwise, your code might need to be modified a little bit. Since both prototype.js and scriptaculous.js are removed by default, one
trivial choice is to simply bring them back. That is as easy as adding the Prototypism plugin to your Jifty application.
If you dislike Prototypism like we do, you can choose to re-write your code with jQuery. In the section "From Prototype to jQuery" below,
we provide some common patterns that can be applied to rewrite Prototypism code with jQuery, or with just normal javascript.
If you hack on Jifty's internals, please make sure you've read the following "Jifty API" section and Jifty::Manual::JavaScript to catch the
Javascript API updates since the removal of "prototype.js".
Although we've removed "prototype.js", we still prefer to use the non-conflict mode of jQuery. That is, "$" function is now undefined
instead of an alias to jQuery. This is to ensure that it's not conflicting with Prototypism anywhere. If you'd like to use "$" function,
create that alias in your "app.js" like this:
$ = jQuery;
However, instead of making a global alias, it's always recommended to localize this alias within a closure:
(function($) {
// $ is an alias to jQuery only inside this closure
$(".message").show();
})(jQuery);
Jifty API
We re-architected Jifty's javascript libraries to use jQuery. Especially the internal functions to process form elements.
The old, Prototype-based way is to extend Form object and the Form.Element object. Since the removal of the Prototype library, it is
dangerous to name those functions under Form because loading the Prototype library can destroy those Jifty functions.
The new jQuery-based way is to always extend internal functions under the Jifty object. "Form" becomes "Jifty.Form", "Form.Element" becomes
"Jifty.Form.Element", and so on. The detailed list of these functions are given in Jifty::Manual::Javascript. Most of those functions are
internal functions that you probably should not use directly.
From Prototype to jQuery
If you've ever written javascript code for your Jifty applications, and you'd like to remove the PrototypeJS library, here are some
mechanical rules to re-write prototype.js-based javascript code with jQuery.
Array iteration
From:
A.each( function( $_ ) { ... } )
To:
jQuery.each(A, function(index, value ) {
// "this" is an alias to current value.
})
Hash key iteration
From:
H = new Hash({...});
H.each(function( pair ) {
// pair.key is the key
// pair.value is the value
});
jQuery.each is designed to work on both "Array" and "Object" in the same way. So there's not much difference.
To:
// H can be any kind of "Object"
jQuery.each(H, function(key, value) {
// "this" is an alias to current value.
})
Object extend
From:
obj.extend({ ... }}
To:
jQuery.extend( obj, { ... } )
JSON
jQuery does not ship with the JSON stringify function, but since it neither altered the native Array, nor defined its own Hash, it's
acceptable and preferred to just use "JSON.stringify" from "json.js".
From:
// obj need to be one of those objects defined in C<prototype.js>
obj.toJSON();
To:
JSON.stringify( obj )
Effects
jQuery has a small set of default effects built into its core. They have different names then those defined in "scriptaculous.js". The
internal way to specify effects is using the "Jifty.Effect" method. Please see the detailed usage documentation in
Jifty::Manual::JavaScript.
perl v5.14.2 2010-12-08 Jifty::Manual::jQueryMigrationGuide(3pm)