No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
8 Posted Topics
Re: The only way I can think to do it would be to have it redirect if they DO have javascript, else they see the regular noscript page. Like so... [CODE] <script type="text/javascript"> window.onload = function { location.href='http://thejavascriptversion.com/page'; return true; } </script> [/CODE] That way if they don't have javascript they … | |
Ever had to fix auto-generated dates retrieved from MySql databases? I made a really quick fix that displays the date in "human readable" format. Just replace "CST" with GMT, or EST etc... Whatever time zone your mysql server is located. it takes one argument, the date from the database. [B]Usage:[/B] … | |
[B]Situation:[/B] Ever wanted to get the size of an image? Possibly to determine new height and width dimensions that DO NOT distort the proportion. Well I have, and I overcame the math like so. [B]Solution:[/B] First you must decide on an image width. The subroutine returns the proportional height equivalent. … | |
I need to include a "variable" in my regex that will be different each time it is called. Very fustrated, this would have taken 2 seconds in Perl. Here is my code: [code=javascript] for (y=0; y < response.length -1; y++){ var _row = response[y].split(':'); var str = "_row[1]"; if(str.match("/^"+_inputText.value+"/i")){ _responseText … | |
Hi all, I am usually a Perl programmer, I have some background in javascript and am attempting to create a Googleish selector div. [I]Please bear with me, excuse the long introduction...[/I] Here's the details: Our site filters content by location. I use zip codes to find radius's. So if a … | |
Re: You would need to use Ajax. You can make a request to the server with javascript, and store the response in a javascript variable. The request could activate a perl script, located on the server. | |
Re: I'm not sure if I understand exactely what you need to do...But This may help. [code=perl] open(LOG, "path/to/logfile.log")|| die "Error: $!"; my @text; while(<LOG>){ if(/(\[.*\])/g){ push(@text, $1); } } close(LOG); [/code] | |
Re: I know this will work. Use iframes. In the table that you want the new page to pop up (or into) place an iframe name it and you can now update it with javascript. Like this [code] <td><iframe name="theName"></iframe></td> [/code] the in the javascript: [code] document.all.theName.location="the separate html file to … |
The End.