575 Posted Topics
is it possible, to use, or otherwise import and access the class in a .pm file by a suggested name (this would be after compilation)... here's the lowdown, I've been working on a project for a while now, it is an XML processor. One of the parts of a process … | |
Re: well. im guessing it doesn't save the image's because their locations are relative to somewhere else.. if you're using the File>Save As.. in Internet explorer, you have to choose "Web page,complete" rather than "Web page, HTML only". That will copy the images into a folder called {name_of_page}_files, and update all … ![]() | |
Re: if you arange your folders like a tree, and have each page as the folder index... then you can just link relatively to the folder above*, like this: "../". if you don't arrange your files into a neat and logical tree, i'd advise that you do. *above being towards the … | |
Re: make sure the mail's Content-Type header is text/html: i.e: $headers = "Content-type:text/html"; mail($to, $subject, $message, $headers); | |
Re: You should look into [B]X[/B]ML [B]S[/B]tylesheet[B] L[/B]anguage [B]T[/B]ransformations (XSLT for short). [url]http://www.w3.org/TR/xslt[/url] ...this is a good reference [url]http://www.w3schools.com/xsl/[/url] ..and this is a good introduction I would advise building the pages using an offline XSLT processor, as client side (browser) XSLT processors are at best; bad. [b]EDIT:[/b] Or, you could use … | |
Re: i've never looked at vbulletin but i imagine '1','2'; breaks the line too early.. try: '1,2'; | |
Re: displaying a picture that a user "selects" by loading it into an image element using an absolute path to a file on the user's computer will only work in IE, and it will only work because IE is bad =P to "get" the picture you can send the form to … | |
Re: well, a good browser should be able to either allow a user to increase font sizes, or override parts of a stylesheet (font-size/colors etc)... a really good browser (like Opera) will handle all of the calculation for resizing things relatively, that is it can zoom in and out on content, … | |
Re: Direct child selectors are interesting: [code] div.parent>div.child{}[/code] Will apply to all divs of class child within divs of class parent, BUT only if they are direct children. However: [inlinecode]table>tr>td[/inlinecode], doesn't work, unless you use: [inlinecode]table>tbody>tr>td[/inlinecode]... REGARDLESS of whether or not you have a tbody tag in your markup. Rude, no? | |
Re: [QUOTE=peter_budo;281793] [a valid, functional javascript function in an event handler attribute] IS NOT a JavaScript, it is only action taken once button pressed, which will triget this action. So as it is on its own that code will do nothing[/QUOTE] heck, I write huge javascript functions dynamically (on CGI/XSLT pages); … | |
Re: change the application to use the "tag" property instead; it's a general usage property, and its use shouldn't have any side effects. | |
Re: try replacing: [code] array_name=[]; preload=[]; [/code] with: [code] array_name= new Array(); preload=new Array(); [/code] What is the error produced? | |
Re: should be the same if you use a correct path to the binary. some functions to access the binary will be different (won't work), but calling [inlinecode]open $out," | *.exe"[/inlinecode] or [inlinecode]exec(*.exe)[/inlinecode] should work the same... I don't know whether system() works, but I imagine it does.. | |
Re: You could do it, but you'd need some Javascipt to create the expand/collapse buttons, and (probably) some XSL to convert the XML into HTML. Non-JS alternatives would involve some messy backend stuff with query strings... (and heck, if you're using client-side XSL transformations, getting hold of the query string is … | |
Re: i think the property you're looking for is 'checked'.. I don't know whether forms.elements.xxx will give you a [I]named[/I] object handle in return... if your input is set up: <input name="termsandconds" type="check"/>, you should be able to access it as bookingform.termsandconds. [b]EDIT: [/b]I imagine both methods work though (document.forms.bookingform.elements.termsandconds | … | |
Re: VB is good for learning, but don't get too caught up programming in it. I started programming at 11, and now I'm 20. It took me a long time (>2 years) to realise there was more out there than VB, and that I was using it for (mostly) the wrong … | |
Is it true that spiders and bots don't like document-root or relative paths? I read it somewhere just now; and I don't know whether "don't like" means a spider will act as if there's nothing there and prompty leave; or feel somewhat offended, but compensate and carry on... Do spiders … | |
Re: use a better webhost :P i find that on IIS (microsoft servers) i don't need to change permissions to use Perl files, and if i use FTP from the DOS prompt, it sets permissions to 755 automatically. | |
Re: [code] procedure TfrmMain.btnCloseClick(Sender: TObject); begin self.Close; end; end. [/code] or, if you prefer to be explicit: [code] procedure TfrmMain.btnCloseClick(Sender: TObject); begin frmMain.Close; end; end. [/code] | |
Re: well, if you are submitting your page by "typing" (pasting) it into the box on the W3C site; it will probably complain bitterly about the php constructs. if you access your page on the internet, that php code should all become (X)HTML, and some of those errors will likely go … | |
Re: well, do you want to know cgi/perl? or do you want a solution that uses neither cgi, nor perl? methinks, you'll find it easier to learn cgi (perl or php) than to find a solution that doesn't use the cgi (or another server side solution) in one way or another. … ![]() | |
Re: what do you mean by block? subroutine scope or method scope? if you do one regex then another within a subroutine, you don't need to reset $1,$2,$3 etc, the next regex will overwrite the old values, if you want to preserve them, make a named copy of each one: my($match1) … | |
Re: there shouldn't be... if each class allowed x inner classes you've still got a potential of infinity levels deep. it might make your addressing a bit long winded though o_O weird question! when classes with inner classes or anonymous classes are compiled they tend to occupy a single addressing level … | |
Re: the way you're using them, they are synonymous. arrays store indexed values, but they can also store values by associative keys. Objects can store values by associative keys also; so, when you write person[0] = la, you're creating a key (0) which you can then use to retrieve the Person-class … | |
Re: the reason you can't do that is because on most filesystems a running exe "locks" its file for write operations. if you were to directly overwrite parts of an application while it was running it would probably crash anyway. you could recompile the application using a command line call and … | |
I'm putting this here because I don't really know where would be best, if I could pick a language-categorised solution I probably wouldn't be asking atall...I don't need a solution so much as a pointer. How do you get a file from a user's computer to a server, from a … | |
Re: [quote]It is believed that many users started by using Perl and moved on to the more powerful PHP[/quote] ROFL. Perl is to PHP like Heroin is to Assorted-Solvents-In-A-Carrier-Bag | |
Re: [quote]I know that if i use the center tag, tahat i cant use the position:absolute style in css to move to bottom. So what can i do??[/quote] why not? it should work o_O if not: [code] <div style="position:absolute;"><center>i'm in the middle</center></div> [/code] of course. you shouldn't use <center> tags anymore. … | |
Re: you can't create objects/elements in CSS. you can layout objects and elements, and describe their properties to a certain extent. You would still need HTML objects to hold the parts of the menu (the menu hyperlinks,graphics,etc). The CSS could be used to arrange these elements in a menu-like fashion. If … ![]() | |
Re: [quote=BinaryMayhem;272113]yes, I was mainly referring to the font tags, however; some people make it a habbit to lay a site out with tables when they should be using css.[/quote] i'm going to absolutely disagree with you (and the w3c/wai) there. content [B]is[/B] data; and until there's an effective replacement for … | |
Can it be done? I'm thinking along the lines of :hover.. :visited etc; Could I register my own psuedoclasses? ;) X.Y:Z would be handy for situations where X.Y isn't definitive enough, and X.Y#Z wont work because there's more than 1 Z-type thing on a page. Using Javascipt to bind objects … | |
Re: are you using forum software? does it let you change the content type/header of the email? In the header, a plaintext email has : Content-type:text/plain, and an HTML email has: Content-type:text/html. some email accounts turn HTML emails into an attachment aswell. if there's no setting in the forum software, look … | |
Re: by "the block" do you mean the "don't want javascript" block? do this: <script> javascript menu generating thing </script> <noscript> html alternative </noscript> otherwise;have an element: <div id="javascript_please_hide_me"> put your html alternative here </div> <script type="text/javascript"> document.getElementById("javascript_please_hide_me").style.display="none"; </script> | |
![]() | Re: i use editplus for html and xml stuff... for a while i used komodo. at work i use dreamweaver O_o.. for the most part html suites i've used have all been the same just with live previews/code-context menus/etc. Most of the time I need to to test things on a … ![]() |
Re: as an evil one-liner: [code] <input onBlur="alert(this.value.match(/[\w\d]/)!=null?'OK':'NOT OK');"> [/code] or more useably: [code] function check_field(ident){ var target = document.getElementById(ident); return target.value.match(/[\w\d]/) != null; } function check_form(){ if(check_field('the_one_that_can't_be_spaces')){ //Everything's fine! }else{ //Something's missing o_O } } [/code] if the String.match(/regex/) function returns a valid match for \w (any alphabetic character) or … | |
Re: i know it's the ultimate cliché advice, but try searching for how to do each part on google/etc. how do you want to connect to the servers? if you can do these things by getting into a servers filesystem, an ftp connection could work.. you'd be able to audit centralized … | |
I was playing around with XMLHTTPRequests recently, let me just start this by saying I prefer to never have a single JavaScript requirement... so my use of the request is merely... icing on a big webcake. anyway.. In offline testing I can create requests ONLY in IE... in online tests … | |
Re: whatabout pipes? [code] open my($what), "| bin/what.exe -p whatever"; close ($what); [/code] you should be able to read back live/streaming status if the program sends it... and you can definately send a bulk stream of data to the program; if the program wants to receive it. [B]EDIT/PS: [/B] be careful … | |
Re: do you import (use/require) the pm properly? does the pm file return 1 by default? does the pm file have a package definition? is it in the correct folder? there's a long list of checks... heres some blocks from two files, one that imports and uses a pm module, and … | |
Re: The first language I learnt was QBASIC (actually, thats a lie, the first language I learnt was english..) But yeah, QBASIC all the way, I was about 11 and I didn't even know what a pointer was, I don't think I even knew what an array was. My code must … | |
My custom error pages (via.htaccess) work for browser requests, but when I print out an error status code from a cgi script, it bypasses .htaccess. I can't see any problem with just reading in an "error page" and printing it to STDOUT... But, I have to use a Content-Type:text/html header … | |
Re: make sure you have an open command prompt window rather than typing the command into the Start > Run box. to open a command prompt window that wont disapear on completion, type cmd in the Start > Run box. if you want to use the syntax [B]c:\myperlscripts\perl myscript.pl[/B], rather than … | |
Re: if you're not particularly interested in expandability/multiple users/complex permissions/etc, and your hosted on an Apache server, and you have proper access to your hosting server; you can do it without any scripting atall... see: [URL]http://www.javascriptkit.com/howto/htaccess3.shtml[/URL] I can't say I've ever tried it; but I'll probably end up doing it in … | |
Re: do you want to stop a perl thread or a thread in an unrelated process? the [B]exit[/B] command should stop a perl thread. [B]die[/B] may kill all threads (although it probably shouldn't?) and [B]kill [/B]can be used to kill a process by reference. [URL]http://search.cpan.org/~rgarcia/perl-5.9.4/pod/perlfork.pod[/URL] | |
Re: Use this replace block: [inlinecode] s|((?<![\w\d])pi(?![\w\d]))|3.14|g [/inlinecode] It has a negative lookbehind (?<![\w\d]) and lookahead (?![\w\d]) for characters preceeding and following the word pi. For more about lookahead/behinds: [URL]http://www.perl.com/pub/a/2003/07/01/regexps.html[/URL] [B]Proofs:[/B] [code] my ($in) = "8 * pie"; $in =~ s/((?<![\w\d])pi(?![\w\d]))/3.14/g; #result: $in = 8 * pie my ($in) = "epi … | |
Re: Try this for the CSS problem: In internet explorer: [B]Tools > Internet Options > Accessibility (bottom button in IE6)[/B] and uncheck everything. | |
Re: That'll only work in Internet Explorer surely? :| Do Netscape have an XMLDOM object equivalent? I know you can use a XMLHTTP transaction in Windows AND Netscape... but that's possibly overkill. [URL]http://www.jibbering.com/2002/4/httprequest.html[/URL] | |
Re: Woah... if you're gonna post the HTML you may aswell include the CSS aswell so I can have a proper look :P In general though, if you class something, you can write a CSS block that matches and affects only objects of that class, class and tag, or class and … | |
Re: [quote]I need to open the file, append data to the end, then set the write offset to a particular point in the file and write new data over old data. The required offset will already have been found somwhere else in the program during a read-only open of the same … | |
When I was learning the basics of Perl CGI (well, any CGI) I vaugely remember something regarding a header or command that would invoke CGI script (using a standard GET request) WITHOUT changing the page that a user was on. Googling hasn't been fruitful, I only remember a brief mention, … |
The End.