OK, so I think I've found the right module to do what I want:
http://perl.apache.org/docs/2.0/api/Apache2/SubRequest.html
However, the code samples here assume the presence of this magical $r that I don't know where it comes from. It's not automatically defined in my perl script.
use...
Inside of a perl CGI script (run through mod_perl on Apache), I want to be able to inspect a URL and based on certain conditions, either decide to allow the requested file or alternately respond with some other behavior (like a 404 or whatever).
So, essentially, I have a .htaccess file routing...
I have a perl file i'm running from an apache request as a cgi file (mod_perl).
Inside this file, I want to use the Apache2::Response module and be able to call methods on an object instance. Essentially, I want to be able to conditionally decide to send certain HTTP response codes (like 204 or...
I've been banging my head on this topic all day.
I want to have an iframe load a url which will return nothing but json. And the url will be same domain, so no cross-domain issues. And I want to then access that json from parent document. I've tried several dozen variations of this, to no...
...optimize a query or second-guess the sql engine. In fact, this question is part of a much more complex set of query calculations I'm doing, and I *know* it's not particularly optimal. It is precisely *because* I know that SQL can do things really fast that I'm endeavoring to do all of my task...
Ok, let's say my absolute finite subset of strings is "abc", "def", "ghi", and "jkl".
I have a query which selects from table "foo" (which only has rows with a subset of that possible set of finite string values in its rows). This result set might look like this:
'foo':
| str | val...
...another table (call that "foo"), which only happens to have a subset of those string values as rows in it. What I'd get is a result set that had *all* the string values, one in each row, even if it only appeared in "bar" but not "boo".
Since the values in the theoretical "bar" table are...
FYI, for posterity sake, I was able to accomplish this. There were some AS2 gotchas related to proper variable scoping when wrapping the functions in an object that mtasc could understand, but I got it to work. Unfortunately, it compiles to ~100 bytes larger than the strictly AS1 variant that...
I have a little widget that I've been working on which creates a virtual "browser window" that you can drag around your page, resize, etc. It contains in it an iframe, which the user can load up with any arbitrary page (including those not on the domain of the hosting page), like google.com for...
trollacious-yes, I'm thinking I will do exactly that, either with the javascript code found from the second link of the google search you suggested, or from the ASP.
The truth is, I started out looking for a complete IDNA implementation package in javascript/actionscript, but honestly the need...
Thank you trollacious... you have been helpful in this. Unfortunately the ASP, .Net, and Java versions those links reference are all distributed with "unfriendly" license terms... that is, I ultimately have to include whatever code I get for this task in an open-source project I run which is MIT...
i should say, i went to that first link already... the second link in the search results does have some promising help, although I'm not entirely sure if it has everything I need, I'll have to study closer... in any case, it's probably the best thing I have to go on right now, so thank you...
I interpreted "My issue is that I need for the div to be scrolled to the top on each onClick event." from the OP as saying he wanted his scrollable content div to scroll to the top with an onclick. Am I missing something?
an easier way (IMHO) than even an array, which preserves the name'ness of your variables when using them later (instead of having to remember array 0-indexing and do stuff like myvar[0]), is to set dynamic properties on an object, like this:
var glbnumconvict = {}; // declare empty object
for...
You could popup a child window, post the form to the child window, then redirect your parent window page, and on the new "email sent" confirmation page, close the child window. Users will probably be warned that their form submission is being redirected, though, for security purposes...
...if (!foo.contentWindow.document.getElementsByTagName(*)) {
// foo has no content yet, so give it a URL
foo.url = 'boks.htm';
}
// make sure to bring foo to the front/focus
focusfoo();
}
var foo=null; function focusfoo(){if (foo&&!foo.closed) foo.focus();}
function blurfoo(){...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.