575 Posted Topics
Re: Your usage of '.' is possibly bad: [code="regex"] blogs/(.*)/(.*)/$ blogs/(.*)/$ [/code] Both of these will match for 'blogs/folder/folder/'. Because '.*' means anything including 'folder' or 'folder/folder' So, in that case the rule that is checked first will be the one that redirects successfuly. Try using: [code="regex"] blogs/(.*?)/(.*?)/$ blogs/(.*?)/$ [/code] or … | |
Re: it wont work in Firefox/Mozilla. The development team consider that such properties aren't part of any official CSS standard; which is true, because they aren't. Scrollbar colors are an Internet Explorer extension; some other browsers have adopted it to follow suit, but I doubt Mozilla/Firefox ever will, unless it becomes … | |
Re: PNG transparency doesn't work well for me in a webpage context on Microsoft Internet Explorer <= 6; PNG background transparent images have a grey background instead (notably; my connection does funny compression things to all images; but it only seems to negatively affect IE). If that issue was fixed; I … | |
Re: it does seem a bit leniant to give another chance after giving a 24 hour cease and desist warning already.. if he doesn't remove the hidden hiearchy as it can be accessed via HTTP, definately go forward with further legal/ISP/registrar action; if he does remove it, you might have difficulty … | |
Re: If I remember my spec docs correctly; one of the driving forces for strong rather than b is that vocally (in context of screenreading technology); strong can mean 'talk loudly and/or assertively' whereas b is a bit meaningless outside of visuals. So <b> is a media specific presentational choice for … | |
I've just noticed the user 'rgtaylor' ([url]http://www.daniweb.com/techtalkforums/member153332.html[/url],) appears to have been banned from daniweb, was there a reason for this other than the reply in this topic? [url]http://www.daniweb.com/techtalkforums/post368478.html#post368478[/url] if there's more to it than that, fair enough and i'm not asking for details; but if this post is the only … | |
Re: Java still has a use, but not any more on 'popular websites'; Java is used often for graphical simulations of physics, maths, network principals - it can still be found, and it certainly works on windows, the only change is that MS don't package a proprietry JVM with Windows anymore; … | |
Re: Instead of using CSS + JS + etc to make fake links without an underline; why not consider using different classes of link with different styles? You can avoid using JS entirely that way. (A)nchor is the only element that can have a CSS :hover pseudoclass in IE <= 6, … | |
Re: Use the code given by stymiee; also, take the <SCRIPT Language="Javascript"> and </SCRIPT> tags out of the .js file... they are not needed in this case. | |
...a search for my name on Google (without a space, [as my display name]); puts something related to me on the top of page 2 of the results; two things infact; and something on page 3 aswell. All those other MattEvans had better watch out... ;) If I'd signed up … | |
Re: the code you have provided wont work unless 'testvar' is some global variable. if you want to pass the string 'testvar' to the function openwin: [code="HTML"] <a href="http://www.someurl.com" onclick="openwin('testvar')" target="_blank"><img src=http://www.pic.com/pic.jpg width="125" height="125" alt="some picture" border="0"/></a> [/code] note the single quotes; double quotes obviously wont work here. if that's not … | |
Re: group of questions 1: 1. There is no 'most powerful' language for anything... If you want high speed and compact, compiled code, you can write serverside programs in C; but if you want a bit more simplicity and a webpage-based language with lots of existing modules to help with oft-used … | |
Re: you don't need all of the fields; try this: [code="HTML"] <object type="text/html" width="300" height="300" data="http://url/file.html"></object> [/code] [url]http://3spots.blogspot.com/2006/02/positioning-html-web-pages-inside.html[/url] works ok for me in opera 9 and firefox 2.. doesn't seem to work atall in IE6 though. =musing= hm.. i wonder, how one would address parts of the inner document using this … | |
Re: Back to the original topic; JavaScript and ActionScript are both ECMAScript with environmental extensions; if you posted a question specifically about ActionScript (not graphics or animation!) into the (new!) JavaScript forum, I imagine people there will be happy to help and discuss... I don't know if that's a bad tactic … | |
Re: add a: [code="CSS"] background-attachment: fixed [/code] to your body tag's CSS rules; if you want the background to stay still wherever the user scrolls. bear in mind, this might not work in all browsers,.. i can confirm it works in IE6 and Opera, but I seem to remember having trouble … | |
Re: [code="CavaScript++"] try { var t1 = time(); while(!myspace.is_boring()) { myspace.use(); } assert ((time - t1) < NOT_LONG); bebo.wonder_what_the_what_that_is(); while(girlfriend.using(facebook)) { girlfriend.laugh_at(); } } catch( Lameness l ) { while((8*2+1)!=(8+2*1)) { something_more_productive.do(); sleep(0); } } [/code] | |
Re: Technically; .org is for non profit organisations; .com is for companies, and .info is a new one for just about anything informative. In reality, it's up to you. I prefer .com; because if you type 'example' into some browser address bars; it turns it into [url]http://www.example.com[/url]. | |
Re: my webserver's well wierd, i have a cpanel frontend i can login to plus various ftp clients on my pc; if i upload a perl script and set the permissions correct i get a 500 error, if i overwrite a working perl script (using ActiveState Komodo) i get a 500 … | |
Re: Hm, I thought perhaps you might have wierd browser identification settings.. But apparently not; I tested that code in Firefox 2, and in Opera 9 ( which can pretend to be other browsers; and is pretending to be Mozilla today ). In both cases; Netscape 5 is given back, as … | |
Re: I like the rep system, it's taken me since I signed up to get my relatively few points, but I'm proud of the total that only I can see.. I think 'new entrants' should get more rep or that rep given should be less dependant on the givers rep; why? … | |
Re: Here is some example code. The returns are the important bit: [code] <html> <head> <script> function checkForm() { var oTarget = document.getElementById('must_be_hello'); if(oTarget.value=="hello") { //Returning true! the form will submit. return true; } else { alert("Sorry you cannot submit anything but hello"); //Returning false. Not today thanks. return false; } … | |
Re: Did you solve this yet? I would have to put it down to a bug in IE. I tested on IE6 and can confirm the same behaviour... it occurs only when the padding is expressed as a percentage. I can't really suggest a fix if it is indeed a bug; … | |
Re: Your question needs more clarification; development of what, and maintenance of what: [code="CPP"] #include <iostream.h> int main(void) { std::cout << "Hello, world!"; } [/code] That code cost more (time) to develop than it will to maintain, and some 'real-life' trivial/one-function applications are the same. Others are not; things like web … | |
Re: Perl is a good language for isolating and extracting data from formatted text (i.e. (X)HTML). Some parts of Perl are like C++, most of it isn't; but it's easy to grasp. XSLT can be used to extract and present data from well-formed XML (i.e. XHTML), but it is very 'strict' … | |
Ok, so I use Windows Live Mail Beta, don't know why, but they "invited" me ages ago, and it looks quite attractive, so I keep it. Sometimes, I get these yellow errors: "Windows Live Mail was unable to complete this request", today though, they're not going away. Also I get … | |
Re: if your CSS files are ALWAYS in the folder that maps to [url]http://yourdomain.tld/css_directory/[/url], you can use an absolute link as follows: [code] <link rel="stylesheet" href="/css_directory/style.css" /> [/code] This is useful if your linking files are in folders nested to levels deeper than 1 from the document root.. note, it can … | |
Re: I'm not disputing the validity of the rest of your post; but: [quote="MidiMagic"] - The div tag doesn't know how to use an onclick attribute, because a div box isn't a clickable object. [/quote] The onclick attribute can be given, correctly, on (almost) every visible element. See [url]http://www.w3schools.com/jsref/jsref_onclick.asp[/url] for a … | |
Re: Hm.. when I use color with any rgb code (i.e. #ff0000) it becomes green; when I use a word (i.e. red) it works fine: RED (COLOR="#ff0000") RED (COLOR="red") I get that same green with any RGB code. I don't know whether this is only in preview.. I guess I'll have … | |
Re: The latest dreamweaver is quite good, but don't rely on the 'live-edit' features; if you don't know HTML they wont help you learn, and if you do know HTML you'll find them to be a hinderance. As long as all you want is a syntax coloring text editor with a … | |
Re: Are you getting any specific errors in the firefox error console? I believe FF will reject XMLHTTP connections to pages that aren't on the same domain that the script runs from; I imagine that's amplified by the fact you're trying to connect to 127.0.0.1... Easiest way to get around this … | |
Re: To 'interact' between javascript and PHP, you have to either use PHP to create javascript code, or use XMLHTTP requests in javascript to access PHP scripts and then handle the output if neccessary. You cannot write javscript code that directly invokes PHP code. javscript is processed on a client's computer; … | |
Re: First up, add a body tag around the body, and a html close tag after everything: [code] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>AlienNet Public Access Gateway</title> <embed src="audio/thunder3.wav" autostart="true" loop="false" width="0" height="0"></embed> <link rel="icon" type="image/png" href="http://alienlinux.homelinux.net/images/alien.png"> <link rel="stylesheet" href="mystyle.css"> </head> [COLOR="red"][B]<body>[/B][/COLOR] <ul class="banner"> test </ul> <ul … | |
I like Wikipedia; so much infact, that when searching for information in Google, I've got into the habit of prefixing 'wiki' in front of whatever term I'm looking for, because I'm pretty sure wikipedia will have an enlightening/well-written/interpretable entry; perhaps a basic entry, but that's sometimes the best place to … | |
Re: Post some code, and the error message you're experiencing. It's a bit difficult to understand what you're doing/where the problem might be. The result of the XSLT transform and the relevant javascript is the part I'd consider to be important to look at, given that you say the problem is … | |
Re: - you could use iframes (inline frames) but i wouldn't suggest it, this situation pertains better to frames if its a choice between the two; - you can get a certain amount of 'global control' using sitewide stylesheets, but often not enough; - beyond that, using some PHP, Perl, ASP, … | |
Re: That last cell ( the one with the [inlinecode] [/inlinecode]) should be colspan = 2, otherwise you'll have a mismatch in your columns per row... It doesn't need a width either; it will inherit the 'correct' width automatically... I can't really see the problem you described, but changing that cell's attributes … | |
Re: Considering that you're asking someone to fix and/or refine your site's entire design, I would advise that you hire another webdesigner.. [url]http://www.daniweb.com/techtalkforums/forum59.html[/url] It would not be easy to diagnose the problems in the CSS, without say, consultation, and access to your site's content management system. I would suggest that the … | |
Re: [quote="evank"] innerHTML, innerText, and outerHTML don't work. [/quote] innerHTML certainly works. Providing that you have a valid reference to the <style> element that you want to extract; innerHTML will return the 'body' of the style; that is, any rules in the style, exactly as is is in the <style> itself. … | |
Consider the following code: [code="PHP"] <?php function important_function( $i ) { printf ("<p>Called for the %sth time.</p>\n", $i); return ($i < 3); } function loop_with_and( ) { $ret = true; for( $i = 0; $i < 10; $i ++ ) { $ret = $ret && important_function( $i ); } return … | |
Re: :ooh: they're not so bad.. i don't see how this one is 'pretty' though: :pretty: looks to me like it's got red eyes and enourmas eyebrows.. :scared: | |
Re: You can certainly use form controls as javascript controls; there's no point implementing drop-down lists in Javascript manually for example. Things to consider are just that; you have to put form controls in forms to validate pages correctly; and if you put a submit button on a form, it'll try … | |
Re: you cannot put a <hr/> inside a <p>... you shouldn't put anything that constitutes a block ( this includes hr, a div, or another p ) inside a p For example: [code=HTML] <p>This is a paragraph!</p> <hr/> <p>And this is another</p> [/code] It's usually quite easy to terminate <p>s correctly.. … | |
Re: the problem you're having is related to references/pointers vs values, which is something JS handles automagically.. ( by passing all non-primitives by reference, similar to Java ) so, when you pass an array into a function, a reference to the array is passed. if you do anything [B]via[/B] that array … | |
Re: You should be able to just , refresh the page ; this will clear HTML on the page. There are a number of Javascript methods; discussed here, don't use the <meta> tag atall, because it seems you want to 'invoke' the refresh rather than have an automatic (timed) refresh. [url]http://grizzlyweb.com/webmaster/javascripts/refresh.asp[/url] … | |
Re: [quote="Fungus1487"] [code] <input type='button' onclick="isEmpty(document.getElementById('name'), 'Please Enter a Value')" value='Check Field' /> [/code] [/quote] that won't validate on submit, it'll validate, but not submit. if you want to validate, you have to conditionally stop the submit, which is done by returning false within an onsubmit event. the function is right, … | |
Re: Personally; I'd prefer to recieve plain text email. The biggest problem you're likely to hit with email + CSS is linking... for the same reason pictures from remote locations don't load by default; linked CSS ( i.e. link href="" ) isn't going to load by default. There's a risk of … | |
It's neccessary to manually refresh every page after navigating to it. This is OK, but I keep thinking old pages are current (i.e. if I navigate into a forum that I visit frequently, it might still be a listing from a few hours ago, thus I wont see any changes, … | |
Re: You should use a CSS style to set margin or padding attributes, the W3C won't like it otherwise, infact, I would personally advise that you do so; for reasons pertaining to better project mangement, quick continuity, reducing code repitition, and 'staying cool'. On the body; these two properties get a … | |
Re: Take out the ;charset=UTF-8 part of the content type meta header, and any UTF-8 content type header you may be sending at the server. If you are using an <?xml etc ?> directive, take out the charset (or is it encoding?) attribute. Your page reports being encoded as UTF-16LE... But … | |
Re: [quote]i comment as much as i can, but only in short bursts.[/quote] ahah... same here, i think 1hour's documentation to 10 hour's coding is a reasonable ratio... it's not just laziness either; i might change something, and then I'd have to rewrite the documentation aswell as the dependancies =P i … |
The End.