Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- (function ($) {
- function manage(msg){
- var xmlpage=msg.split("splittabsids:");
- var i=xmlpage.length-1;
- while(i>=0){
- switch (xmlpage[i].substr(0,1)){
- case "r":
- $("#backtab").html(xmlpage[i].substr(1));
- break;
- case "b":
- $("#browsetab").html(xmlpage[i].substr(1));
- break;
- case "g":
- $("#gallerytab").html(xmlpage[i].substr(1));
- /* $('#gallerytab a').lightBox({fixedNavigation:true});*/
- break;
- default:;
- }
- i--;
- }
- Drupal.attachBehaviors();
- }
- function sndReq(action) {
- $("#backtab").html("");
- $("#browsetab").html("CARICAMENTO...!");
- $("#gallerytab").html("");
- if(action){
- $.ajax({
- type: "POST",
- url: "/custom/scr/rpc.php",
- data: "dir="+action,
- success: manage
- });
- }
- else{
- $.ajax({
- type: "POST",
- url: "/custom/scr/rpc.php",
- success: manage
- });
- }
- }
- var parm="";
- var gal="";
- presel=<?php if(isset($_GET['presel'])) echo """.$_GET['presel']."";"; else echo """;";?>
- if(presel!=""){
- var gal=presel;
- }
- var pathstring;
- sndReq(gal);
- })(jQuery);
- </script>
- echo "<a href="javascript:sndReq('".$file."')">".$file."</a><br>n";
Add Comment
Please, Sign In to add comment