575 Posted Topics

Member Avatar for MattEvans

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 …

Member Avatar for MattEvans
0
416
Member Avatar for nick_kd07

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 …

Member Avatar for GreenDay2001
0
78
Member Avatar for roryt

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 …

Member Avatar for MattEvans
0
139
Member Avatar for fixyourdns

make sure the mail's Content-Type header is text/html: i.e: $headers = "Content-type:text/html"; mail($to, $subject, $message, $headers);

Member Avatar for Puckdropper
0
125
Member Avatar for NuGG

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 …

Member Avatar for jwenting
0
137
Member Avatar for bigbud

i've never looked at vbulletin but i imagine '1','2'; breaks the line too early.. try: '1,2';

Member Avatar for Dani
0
69
Member Avatar for vov4ik

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 …

Member Avatar for MattEvans
0
172
Member Avatar for Maples

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, …

Member Avatar for MattEvans
0
105
Member Avatar for chunkmartinez
Re: css

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?

Member Avatar for MattEvans
0
92
Member Avatar for Tim Stevenson

[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); …

Member Avatar for MattEvans
0
185
Member Avatar for jgill

change the application to use the "tag" property instead; it's a general usage property, and its use shouldn't have any side effects.

Member Avatar for MattEvans
0
112
Member Avatar for {-_-}

try replacing: [code] array_name=[]; preload=[]; [/code] with: [code] array_name= new Array(); preload=new Array(); [/code] What is the error produced?

Member Avatar for MattEvans
0
105
Member Avatar for kararu

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..

Member Avatar for MattEvans
0
96
Member Avatar for EnderX

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 …

Member Avatar for MattEvans
0
117
Member Avatar for ForestTech

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 | …

Member Avatar for MattEvans
0
116
Member Avatar for Cheat King
Re: Hi,

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 …

Member Avatar for jbennet
0
127
Member Avatar for MattEvans

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 …

Member Avatar for stymiee
0
107
Member Avatar for MDGM

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.

Member Avatar for MattEvans
0
110
Member Avatar for dks1385

[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]

Member Avatar for ttheobald
0
188
Member Avatar for cheetuh

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 …

Member Avatar for tgreer
0
90
Member Avatar for rickymartin001

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. …

Member Avatar for GreenDay2001
0
211
Member Avatar for Mushy-pea

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) …

Member Avatar for Mushy-pea
0
140
Member Avatar for Phaelax

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 …

Member Avatar for jwenting
0
294
Member Avatar for hwfa

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 …

Member Avatar for MattEvans
0
113
Member Avatar for killaruna

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 …

Member Avatar for MattEvans
0
115
Member Avatar for MattEvans

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 …

Member Avatar for MattEvans
0
54
Member Avatar for kevin_smithers

[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

Member Avatar for jbennet
0
368
Member Avatar for chunkmartinez

[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. …

Member Avatar for chunkmartinez
0
86
Member Avatar for phillip9

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 …

Member Avatar for GreenDay2001
0
95
Member Avatar for MDGM

[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 …

Member Avatar for MDGM
0
143
Member Avatar for MattEvans

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 …

Member Avatar for MattEvans
0
117
Member Avatar for marwan4

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 …

Member Avatar for MattEvans
0
278
Member Avatar for cath120

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>

Member Avatar for MattEvans
0
100
Member Avatar for GreenDay2001

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 …

Member Avatar for GreenDay2001
0
267
Member Avatar for aparnesh

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 …

Member Avatar for aparnesh
0
90
Member Avatar for mo_show_me

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 …

Member Avatar for masijade
0
209
Member Avatar for MattEvans

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 …

Member Avatar for MattEvans
0
127
Member Avatar for kamleshpdude

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 …

Member Avatar for MattEvans
0
96
Member Avatar for kararu

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 …

Member Avatar for MattEvans
0
187
Member Avatar for Rashakil Fol

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 …

Member Avatar for Anonymusius
0
693
Member Avatar for MattEvans

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 …

Member Avatar for KevinADC
0
122
Member Avatar for 001

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 …

Member Avatar for MattEvans
0
682
Member Avatar for ATS

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 …

Member Avatar for josh06
0
158
Member Avatar for kararu

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]

Member Avatar for kararu
0
455
Member Avatar for Puckdropper

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 …

Member Avatar for Puckdropper
0
108
Member Avatar for big dummy

Try this for the CSS problem: In internet explorer: [B]Tools > Internet Options > Accessibility (bottom button in IE6)[/B] and uncheck everything.

Member Avatar for big dummy
0
141
Member Avatar for flub

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]

Member Avatar for flub
0
120
Member Avatar for outhier

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 …

Member Avatar for MattEvans
0
135
Member Avatar for Mushy-pea

[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 …

Member Avatar for MattEvans
0
341
Member Avatar for MattEvans

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, …

Member Avatar for MattEvans
0
228

The End.