
![]() |
thedarkness
This has very interesting possibilities;
http:// www. javascriptkit.com/javatutors/externalphp.shtmlOr does it? I must be tired............ ![]() Cheers, td perkiset
Actually a nice article describing what I do a lot of... in no documentation does it describe that JS files must end in JS, or images must end in .gif or jpg, or css files must end in css... what if they all were .
phpfiles and you had the IP address of the surfer... what if rather than cloaking an entire page, for example, you only cloaked portions of the JS or CSS files or even the images...?What kind of trickiness could be had there? ![]() ![]() And back to nonBH stuff... I started using this technique in early 2000 when I had trouble getting a "Please Wait" page to come up with an animated GIF while I processed a transaction. The problem was that if I POSTed something (so that I could start the transaction) the GIF stopped moving in IE... bastards. So my final fix was to jump to a page with an animated GIF that called for a JS src... but THAT was the actual transactor. The page continued to animate but IE held on for as long as it needed to for the " javascriptsource" to come down... well, as soon as my processing was done the onlyjavascriptthat it got was "top.location='/thankYouForProcession.html'" ... so the user had the experience of "something's happening" (the animated GIF) while I worked and the moment I was done the site moved on./p dirk
Just tested it with a CGI script which is also working.
The script is called by external JavaScript:<script type="text/ javascript" src="external-js.cgi"></script>external-js.cgi: #!/usr/bin/ perluse strict; use warnings; my $remote_addr = $ENV{'REMOTE_ADDR'}; print "Content-type: application/x- javascript";print "document.write("Your IP address is: $remote_addr" ![]() exit; nop_90
quote author=perkiset link=topic=165.msg995#msg995 date=1178477860 Actually a nice article describing what I do a lot of... in no documentation does it describe that JS files must end in JS, or images must end in .gif or jpg, or css files must end in css... what if they all were . phpfiles and you had the IP address of the surfer... what if rather than cloaking an entire page, for example, you only cloaked portions of the JS or CSS files or even the images...?What kind of trickiness could be had there? ![]() ![]() My son has this science fair project which is on a webserver that forbid .js files. but if <>i> he put the javascriptin like .txt files .......perkiset
![]() thedarkness
On this note I'm doing a small project for my kid's school and I was thinking of doing most of it in js/
AJAXand I thought maybe <>I could get you guys to do all the work> we could do it as a collaborative project? I can post some prelim stuff I've done and we could see how it progresses from there. Seriously I'm happy to do most/all of the work but I'd appreciate some feedback to get the design and implementation right.Let me know what you think, td perkiset
Prolly be a great exercise, love to help if I can.
/p nop_90
quote author=thedarkness link=topic=165.msg1011#msg1011 date=1178511600 On this note I'm doing a small project for my kid's school and I was thinking of doing most of it in js/ AJAXand I thought maybe <>I could get you guys to do all the work> we could do it as a collaborative project? I can post some prelim stuff I've done and we could see how it progresses from there. Seriously I'm happy to do most/all of the work but I'd appreciate some feedback to get the design and implementation right.I will provide my standard useless pointless remark ![]() yes the project would be much simpler if you would use a language like squirrel http://squirrel-lang.org/default. aspxAlso will attempt to get topics sidetracked as much as possible ![]() thedarkness
quote author=nop_90 link=topic=165.msg1053#msg1053 date=1178681975 yes the project would be much simpler if you would use a language like squirrel http://squirrel-lang.org/default. aspxOr perhaps some other rodent based language like Gerbil? Since it's in the Javascriptforum I'm gonna go with..... hmmmmm......javascript!I believe the squirell forum is still under construction...... ![]() Cheers, td |

Thread Categories

![]() |
![]() |
Best of The Cache Home |
![]() |
![]() |
Search The Cache |
- Ajax
- Apache & mod_rewrite
- BlackHat SEO & Web Stuff
- C/++/#, Pascal etc.
- Database Stuff
- General & Non-Technical Discussion
- General programming, learning to code
- Javascript Discussions & Code
- Linux Related
- Mac, iPhone & OS-X Stuff
- Miscellaneous
- MS Windows Related
- PERL & Python Related
- PHP: Questions & Discussion
- PHP: Techniques, Classes & Examples
- Regular Expressions
- Uncategorized Threads