MattEvans 473 Veteran Poster Team Colleague Featured Poster

Simply allow the user to donwload the document rather than showing it in a popup window. A good browser will give an option; for the user to either save the file, or open it; when one clicks a link like:
http://mysite.tld/mydocument.doc
Opening the document should open it in the registered application for .doc files. To my knowledge, it's only internet explorer that defaults without asking to opening word files in an internet explorer-mixed-with-ms word window. It's an awful feature.
However, the print and save features of the File toolbar should work anyway; even when the doc is in an IE window..

MattEvans 473 Veteran Poster Team Colleague Featured Poster

Would you use linux ( more ) if it wasn't for the GPL, or do you have other misgivings about the platform?

I really like the GPL and other free movements most of the time; in that I can get most things I need for home and amateur use ( music development packages, IDEs, graphics tools, processing utilities ) for free, and up-to-date, from a command line. Although that's not really a 'goal' of the GPL, it's a result.

MattEvans 473 Veteran Poster Team Colleague Featured Poster

How do you manage this while using linux?

In short... that'd be quite difficult.

I don't avoid all GPL'd code/programs/etc on my system; but I do carefully read the licenses for any library I depend on in a project, because I wouldn't like to be forced to release under any specific license. If I did ever produce GPL'd code; it'd only ever be out of choice, but it does have the potential to taint a good re-useable production in the eyes of some, myself included; so it'd be never.

With re. to what jwenting said; I didn't think about how it might be interpreted in a court; I can't see how distributing programs that might potentially use functions of GPL binaries via dlopen could possibly be in breach of any term of the GPL; but a random jury could contain anyone; with any degree of specific knowledge, general world-view, and indeed interests..

MattEvans 473 Veteran Poster Team Colleague Featured Poster

Two quick, related, questions; totally unrelated to anything I'm doing or considering doing. I'm talking about C/C++ programs specifically, since I'm talking about header files, but, I guess the questions are development-platform independant.

It's a violation of the GPL to release closed-source software that dynamically links to a GPL licensed library ( talking GPL not LGPL here ); how? A dynamic link is established when a program is run, right? If so, distributing a program closed-source that relies on a library with the name of a GPLed library, couldn't be considered distributing a derived work, since any other library of the same name with the same interface could satisfy the dynamic linker.. I guess; that would be a derived work anyway though, since the header and interface would likely be covered by the GPL; and the closed-source program would have, in part, been derived from the GPL'ed headers.

However, what if the closed source program ISN'T compiled with headers from the library, but dynamically loads the GPL'ed library or program, implicitly, after dynamic linking, using something like dlopen ( on Linux ) or the Windows equivelent? Surely, the GPL cannot stop a closed source program from attempting to open something with the name of a GPL'ed library, and attempting to call any of the functions within that library.. That would be name squatting.

Ah.. I'm glad they have the LGPL and most decent libraries are under that.

Any thoughts, though? Is that ( second ) option …

MattEvans 473 Veteran Poster Team Colleague Featured Poster

lol.. didn't think of that.

did you try the first one I posted? that shouldn't hit the same problem.. because grep is opened with one line of arguement at a time.

otherwise; try this one:

find some_dir -name "*.some_ext" | xargs -l10 grep "some_expr"

looks similar to the find . -name "*.php" -exec grep -H "some_string" {} \; one; but it lets find collect the entire set of files and pipe them to the xargs command, which splits the set into blocks of 10 lines ( controlled using the -l flag ), and calls grep with those blocks of files as the last argument( s )..

with the split line set to 10; this one seems to run much, much faster than the other three ways.. You could change -l10 to be higher or lower, if you set it to 1 though you'll need to add the -H flag to grep again.

MattEvans 473 Veteran Poster Team Colleague Featured Poster

Here's a simpler one in the same vein:

grep "some_string" `find some_folder -name "*.some_extension"`

i.e. grep "cerr" `find . -name "*.cpp"` note backticks (`) rather than single quotes around the find subcommand..

MattEvans 473 Veteran Poster Team Colleague Featured Poster

Try this; it relies on the 'find' command.

find . -name "*.php" -exec grep -H "some_string" {} \;

Which translates in english to.. search (find) in this folder (.) for files matching the filter ( -name ) *.php [ recursiveness should be default ]; when each file is found, execute grep, look for 'some_string', and pass in the found filename ( where the {} placeholder is ). Because that effectively executes grep once per file ( rather than once for many files ), you need the -H option to force grep to turn on the output of the filename; it wouldn't bother otherwise for a single file grep.

Messy eh? No wonder they put this functionality directly into grep for the next version...

EDIT: By the way, use that with the /usr/bin/grep.

MattEvans 473 Veteran Poster Team Colleague Featured Poster
grep -r --include=*.php "some_string" some_directory

works in GNU grep 2.5.1

post output of `grep --version` and `grep --help` if that doesn't work... there might be another way.

MattEvans 473 Veteran Poster Team Colleague Featured Poster

this site lists some downloads for old versions:
http://www.oldversion.com/program.php?n=msie

however. your windows xp+ infected computer might not allow you to install an old ie while you have a new ie without removing the existing ie, and you cannot remove an ie version less than ie6, since xp relies on ie6 for many things.

solution? try using windows 98 or previous, or use linux and ies4linux ( http://www.tatanka.com.br/ies4linux/page/Main_Page ), or hope those versions at oldversion.com are standalone/hacked to allow them to run side-by-side with your latest ie version.

MattEvans 473 Veteran Poster Team Colleague Featured Poster

C++ with OpenGL is joyful. My dreams are powered by that combination.

But, it depends what you mean by 'game' really. One could write tic-tac-toe in PHP; one ( or more ) could write Quake 3 in C++ with OpenGL.

You can get OpenGL for Python, and other languages probably.. To be honest with OGL, the redraw time when presented with all necessay information can be way longer per cycle than the time taken to mess about multiplying matrices, calculating and reacting to collisions, or running basic AI algorithms... the point being, using a language that traditionally executes slower than C++ for the main part of the game ( the part that isn't implemented in the, often 3rd party, complete, and likely written in C or C++ graphics or physics libraries ) isn't necessarily a limiting factor.

What language would you like to write in, and what would you like to create?

MattEvans 473 Veteran Poster Team Colleague Featured Poster

Heh. I read that article and comments before making the post.. I'm firmly on the "it's not a bug" side of the fence, although it may or may not be a misinterpretation of the specification, which is another matter entirely. Looking at that Mozilla link makes me think that Opera have done it better ( by avoiding it ).

It has annoyed me in the past, that onunload doesn't work the same everywhere. But I can't think of a single case where it's truely neccessary to do something when a user 'unloads' a page, at least not any case that can't be worked around by looking at the problem in a different way.

Besides; you can never tell if a user turns the computer off, or sends a terminate signal to the browser, or unplugs their net connection ( ok, you can.. but you can't tell which one they did ).

MattEvans 473 Veteran Poster Team Colleague Featured Poster

Go to the list of all threads in this forum, or to anywhere where a hyperlink to this thread exists ( including user control panel it seems ), mouse over the link to this thread until the summary of the message content pops up ( little yellow box )..

Screenshot attached. Do you normally get a little yellow summary box when you mouse over a message? If you don't for whatever reason ( browser etc ), then you're 'immune'..

HTML isn't disabled globally. If it was, we'd be looking at plaintext and manufacturing our own post requests.. It's disabled in posts because it is escaped; seemingly at point-of-request rather than at point-of-receipt... or perhaps the summary is extracted at point of receipt, before the escaping has been done. Either way; it's a security risk.

MattEvans 473 Veteran Poster Team Colleague Featured Poster

The standard doesn't well indicate whether onunload should be called when a browser window is closed, or if the browser is closed, or when the page is changed. It says:

W3C Event Model Specification for 'onunload' : "The onunload event occurs when the user agent removes a document from a window or frame. This attribute may be used with BODY and FRAMESET elements."

Since techincally, the document is never in a window or frame ( it's on a server silly! ) there's no real necessity to implement onunload, or onload >_>

Seriously; browser developers shouldn't implement this EVER. It's too much of an annoyance. You get 'web developers' making sites that have onload="return false;" onunload="window.location = 'elsewhere'" onunload="window.open('dont_leave.html')" onunload="while(1){alert('Come back!');}" et-cetera.

Opera doesn't call onunload, when going backwards and forwards between pages - with good reason; it remembers javascript state between pages; thus, the javascript is not unloaded in the normal sense. I suppose then, in Opera certainly, you're more likely to get an unload fired if and and only if the browser is closed. However, I'm pretty sure that closing the application stops javascript, thus ignoring remaining events. It should.

Firefox, I don't know. Do they remember JS state through navigation history?

MattEvans 473 Veteran Poster Team Colleague Featured Poster

To see if cookies are enabled; try and set a cookie and then try and read it back. If you can't, cookies are disabled.

To see if javascript is available and the version, try and use some javascript; ( http://javascript.internet.com/user-details/javascript-version.html ) - bearing in mind that javascript version does NOT well-indicate javascript capabilities..

Pop up wndows, I imagine you won't be able to find out reliably: pop-up windows are handled by the browser AND/OR plugins. The best you could do is try and throw a popup, and if that page was accessed, log the user by checking a unique cookie ( assuming cookies are enabled ), and then use some AJAX on the original page to collect the result of the test. Unfortunately, that won't prove whether the window poped-up, opened in a background window/tab, etc.

Flash.. hm. A browser that supports flash SHOULD send an application/x-shockwave-flash MIME type in one of the HTTP request headers ( Accept I think ). Whether or not it does is down to the browser, I'm pretty sure that most don't, and that likely won't contain version info. Make a flash app, if it runs, flash works.

If you actually want to collect this info rather than just inform the user; you'll likely have to use AJAX to send javascript info back to your server dynamically.. For flash, you can access URLs using query strings or postdata dynamically, and use that to send data back to the server. …

MattEvans 473 Veteran Poster Team Colleague Featured Poster

Hybridize?

<a href="#" onmousedown="changeImages('topevents', 'images/topevents-over.gif'); return true;" onmouseup="changeImages('topevents', 'images/topevents-over.gif'); return true;" onmouseout="MM_startTimeout(); changeImages('topevents', 'images/topevents.gif'); return true;" onmouseover="MM_showMenu(window.mm_menu_0728010700_0,0,49,null,'topevents'); changeImages('topevents', 'images/topevents-over.gif'); return true;">

I haven't used 'code tags' for a good reason.

Note: You need to make sure that where more one statement ( a statement in javascript is terminated by a semicolon ) is put in a sequence; that return [something]; is only ever the LAST statement in that sequence.

MattEvans 473 Veteran Poster Team Colleague Featured Poster

Yes. Providing it is within a container with a fixed size.

If the table is a direct child of the body element; apply CSS attribute: height:100% to the table, and also to the body and html elements to meet the above criteria. See the first response to this thread: http://www.daniweb.com/forums/thread26630.html.. Ignore the suggestion that it's invalid XHTML; you don't need a class for the html element anyway; since you only ever have one on a page, just use an element selector, as shown in that example.

Once the table has height/width 100%; any cells without a given height/width respectively will automatically fill to the remaining space.

The table will be height:100%+, because if it gets alot of content, that will have to go somewhere; and generally it will expand down rather than sideways, unless it's a string of unbroken characters.

MattEvans 473 Veteran Poster Team Colleague Featured Poster

Hm. I'm using Opera, but I checked on Firefox aswell.

It wouldn't be a browser issue. If the forum software is putting unfilterered HTML into that part of the output; any browser should process it.

MattEvans 473 Veteran Poster Team Colleague Featured Poster

<iframe src="http://fusiongroups.net/test.html" />

I noticed this a while back... it seems that any html in the first part of the body of a message gets interpreted in that little preview box that shows the first part of a thread when you mouse over the title in a forum view... is this known about/considered a problem? If my suspicions are correct; mousing over this thread's title on the daniweb community board listing page title will execute some javascript from another server in a child context of a daniweb page = not good.

Dani commented: Thanks for the heads up +10
MattEvans 473 Veteran Poster Team Colleague Featured Poster

I'm working on an XML game engine at the moment ^_-.. I'm allowing as much as possible ( objects/object traits, map layout, hopefully objectives [ basically everything except binary graphics and sound ] ) to be defined and linked up using XML.. In this case; the XML becomes a sort of 'pseudo source code' and it's thus important for it to be structured and easily interpretable at a glance. The interface should be elegant, the implementation should be quick ( and optionally dirty ); and both should be as portable as possible. In my case, a part of the interface is the structured input..

But if you're just considering save games; as in a player's postition and status in the game at any given point in time; you may WANT to keep those files unreadable - otherwise you'll encourage cheating =P.

Certainly don't worry about time-taken-to-load when considering an option; whether you're opening the game and loading in resources based on an XML manifest, or reading in a players position to re-enter the game :- the load time will usually be a one-off; which becomes irrelevant when compared to optimizations you can make elsewhere; say in the game cycle; physics engine, AI, redraw code, or anything else that has to be done repeatadly..

It might even be faster if you use a good XML parser ( I'd advise looking at an existing one rather than custom building, Apache's Xerces project is very full featured, and pretty stable, …

MattEvans 473 Veteran Poster Team Colleague Featured Poster

I'm not getting on london tubes anyway. :p
Damn iraqis.!

>_< Even in jest; don't blame iraqis for the actions of a handful of radical muslims who ( mostly ) don't even hail from iraq - that's a very `american government' thing to do.

- on the subject of this meet as it seems to be gathering a bit of interest; middle england would be ok for me; as said, trains go all over..

But, definitively; where is middle england?

And, what would be the plan-of-events? I would say some technical outing would be in order, given our collective interest; but then, as established in this thread last year; drinking is another common interest =P

Does anyone know of any interesting tech events around middle england? Without an event it'll be a load of people sitting in a room wondering what the point is... == not my idea of fun.

MattEvans 473 Veteran Poster Team Colleague Featured Poster

There is nothing specific about blogs that generates more traffic. Unless you have something interesting to say and enough interested people to visit frequently; a blog will generate no more or less traffic than any other site. Things like RSS are only useful if people actually care enough to 'watch' your channel, which implies they are interested in the source of the channel, i.e. your site.

Pingback seems like more of an egotrip than anything functionally useful. I can get a relatively good idea of 'who' links to my pages by logging the HTTP referer request header, and any other website developers who care enough should be able to do the same to find out if I link them.

What you're describing ( allowing other people to come in and edit pages freely ) sounds more like a Wiki to me. Blogs are usually interlinked articles by one author, with perhaps user submitted comments under each article. Wikis on the other hand, are like a public free-for-all; the information is added and maintained by visitors and resident admins if necessary. Forums are about halfway inbetween. I prefer forums, personally.

There's very little 'technical' about a blog to be honest. User comments don't make something a blog, or not a blog; so if I wrote my daily workings in plain old HTML and uploaded them somewheter, I could still legitimately call it a blog - a (we)blog is just a fancy word for an online diary, basically.

MattEvans 473 Veteran Poster Team Colleague Featured Poster

You can make CSS files server parsed... Either as SSI with an Apache htaccess directive, or using some other server language to generate the CSS file automatically.

You can include arbitrary text through CSS using the 'content' property in newer browsers; i.e:

<html>
<head>
<style type="text/css">
.placeholder
{
  content: "hello!";
}
</style>
</head>
<body>
<span class="placeholder">...</span>
</body>
</html>

! This doesn't work on IE <= 6; no idea about 7.

However; importantly: the 'date modified' reported if you server-parse certain CSS is going to be the date that the CSS file was modified, not the date that any individual document that links the CSS was modified.

If you want to server parse all CSS:

AddHandler server-parsed .css

Doing the above should allow you to write <!--# --> blocks in your CSS, as you would in shtml.

If you want to parse SOME CSS, ( I used to use SSI to server-parse XML files called ssixml, and ssixsl [ if you wonder; 'why not sxml?'; try pronouncing it with <=3 syllables ] ).

It's probably better to make a custom name than server parse ALL CSS files, server parsing takes some amount of time and processing; in this example, all files with extension 'ssicss' will be server parsed. The AddType line is important because some newer browsers choke on CSS/JS served as text/html...

AddType text/css .ssicss
AddHandler server-parsed .ssicss

In both cases, that information can be added to some .htaccess file that will …

MattEvans 473 Veteran Poster Team Colleague Featured Poster

To digital-ether:

It only makes sense to use this approach ( php in js ) from a caching perspective... assuming text/html requests aren't updated frequently; they can have long cache times; an XKB + header text/html response from php or otherwise that's never going to change can be cached on user's PCs and in interim public caches along the way. Every time the cached page is viewed in a browser only the javascript has to be requested again, the response from which is only ever going to be about 30 bytes + header ( assuming 1-byte character encoding.. )

Result is, the first time a page is requested through some network, 2 requests are sent, and the 1KB page and 30 byte js file have to be downloaded. Assuming the time a PHP parser at the server takes to read and process a long file and a short file is the same ( which isn't true, but may aswell be compared to transmit time differences ) it would be better to have a single response : there's less bytes to transfer, since '1 hits' is less bytes than 'document.write('1 hits');', and since the page doesn't need a '<script src=', and since there's only one HTTP header required for the response... There's not much in it, but if the page is dynamic anyway, there would be no point NOT including the hit counter output in the generated page directly.

But if the page in question ISN't dynamic; the …

MattEvans 473 Veteran Poster Team Colleague Featured Poster

Mm. Indeed and agreed. but it's probably worthwhile listing all of the drawbacks of mailto: actions; rather than a simple script somehere ( not neccessarily on the same server where the site is hosted ).

When I had a similar problem ( sendmail blocked ) with some dodgy cheap hosting my old employer used; I set up individiual scripts on my own private full-featured hosting package to handle email forms for clients. As far as I know, those scripts are still in-use...

Perhaps I should start running a third-party service... Set up an account for some silly price like £10 for life ( guaranteed for five years ), and use your own private mailto script, with configurable IP-blocking and a timed IP lock and referer check to protect againt automatic mailbombing... I'm sure such things exist already, but I can't seem to find them by perusing.. It'd almost be money for nothing. ( disapears to plan ).

MattEvans 473 Veteran Poster Team Colleague Featured Poster

Go back to using

document.getElementById('a2z:saveMessage')

and ignore what I said about not using the a2z:, I didn't realise that your serverside application would prefix that to the element's id.

you should avoid outputting this:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

in the middle of the page... it's invalid after or inside the document's root element; it should be the first line of an html file.

MattEvans 473 Veteran Poster Team Colleague Featured Poster

I'm assuming, not knowing JSF atall, that you're trying to refer to some element created by this line...

<h:inputHidden id="saveMessage" value="#{addEditController.successfulSave}"/>

and, again, not knowing JSF, I'm guessing that will resolve to:

<input type="hidden" id="saveMessage" value="some_value" />

In which case; why are you using:

document.getElementById('a2z:saveMessage')

Try using just 'saveMessage' as the Id. If that doesn't work, can you post the HTML output (View Source from a browser) instead of JSF?

MattEvans 473 Veteran Poster Team Colleague Featured Poster

If Javascript's object lifecycle is anything like Java's; objects created using 'new' stay resident even after they go out of the scope of the function that called new, provided something else is referencing that object somewhere.. perhaps, the XMLHTTP objects do some kind of forced binding to a single static controller object whenever open() is called... even if they don't; try:

function Thing()
{
  var myself = this;
  window.setTimeout(function(){myself.say_something();},100);
  this.say = "hello there";
  this.say_something = function()
  {
    alert( this.say );
  }
}

function something()
{
  thing = new Thing( );
  return;
}

something( );
alert('did something');

In Opera, I get 'did something' and then 'hello there'.

There's a very weak binding in that the 'myself' provided in the function created for the ( also asyncrounous ) window.setTimeout( ) function refers to the instantiated 'Thing'. That's clearly enough to keep the object alive for at least until the timeout clicks... I'm sure there is some such similar behind-the-scenes binding going on somewhere in XMLHTTP.open( ), because the XMLHTTP has to be 'connected' (pardon the pun) to something that calls its onreadystatechange when the readystate changes; that will keep it from being GC'd.

MattEvans 473 Veteran Poster Team Colleague Featured Poster

:stymiee> <form action=mailto:your@email.address method="POST" enctype="text/plain"> >_< messy and it's not just a case of being unable to modify data : most browsers will dump you to a default mail client (if one exists) with (at best) the form data in the message body. (assuming that that default mail client is even configured to send mail) the user then has to go click 'send' themselves; that is convolution to the max. at worst, the browser will spit an error, or won't do anything.

if you want to be sure that most users will be able to use your form, get a better hosting provider. if there's some legitimate reason why just ONE hosting provider that you're using won't let you access any kind of server-side script, and you need to keep a site with that hosting provider.. rent one that does let you write script, and use that one solely to send the mail.

<b>Welcome to http://myprimarydomain.tld!</b>
...
<form action="http://myotherdomain.tld/mailscript.php" method="POST" enctype="text/plain">
...
</form>

I'll rent you a one-function script on one of my domains if you're desperate...

Otherwise, you're probably better off just writing your email address on the page and asking people to email you the information if they feel like it. That's pretty much what action=mailto equates to.

MattEvans 473 Veteran Poster Team Colleague Featured Poster

Why not use a table? That's what tables do well; that's not what two unrelated elements do well without some javascript hacks.

If you fixed the height on the two columns' mutual container and set both of their heights to 100% it might work... But if you're using floats and/or non-flow positioning to get the side-by-side columns, it probably won't work...

Tables != Evil.

MattEvans 473 Veteran Poster Team Colleague Featured Poster

First, the files need to be on and accessed via a HTTP server (with PHP installed), not just in a local folder...

If they are; what happens when you just access 'http://yourdomain.tld/counter.php"?

You should also add this line to the php file, put it right at the top after the <?php tag:

header("Content-Type: text/javascript");

Some browsers will complain if you ommit that.

MattEvans 473 Veteran Poster Team Colleague Featured Poster

Well. there are a few methods for getting script output 'into' HTML. But, you have to understand; HTML is not a programming language, it's a document markup language.

One way to get script output into HTML is to generate HTML entirely programmatically. That is, 'print' HTML code directly to a users browser, and the parts that are 'dynamic' can just be printed in with the rest of the HTML. That principle is used quite heavily in languages like PHP; you can write pure HTML, and write blocks of PHP code directly inside the HTML code using 'special markers' to determine the start and end of the PHP. The page is prepared when the user requests it, and sent back different each time. ASP uses the same principle ( embeded code in HTML ). Perl and C++ do the opposite; you output HTML by literally printing it "to the user's browser" as a string.

You can also use something called SHTML ( server-parsed HTML ), it's a very basic system; you write special comments in your HTML code like this: <!--#directive parameter="value"-->, the server looks for those comments, and replaces them by performing the provided directive; an example is: <!--#include virtual="path_to_script"--> : the server will read that when an HTML page is requested; look for the script at "path_to_script" on the server itself, execute it, and place the reply from the script in the data that is sent back to the browser. You need to save the files that …

MattEvans 473 Veteran Poster Team Colleague Featured Poster

...if you want to write a hitcounter that records hits from any and all users; you cannot use Javascript - it can't write data to anywhere except cookies, which are unique to each user's browser.

so, you'll have to use some serverside application/script/method to record data permanantly at your server.

PHP: http://www.developingwebs.net/phpclass/hitcounter.php

Perl/SHTML:http://www.akamarketing.com/simple-hit-counter-with-perl.html

C++: http://www.daniweb.com/code/snippet596.html

ASB (with VBScript): http://www.webwizguide.com/asp/tutorials/hit_counter_tutorial.asp

etc..

The key is, these are programs that run at the server, Javascript in a browser is a client program. Javscript when used as an ASP scripting language is serverside, but the details of making a hitcounter using that would be more of an ASP question than a Javscript question.

You can use AJAX browser Javascript to talk to server programs, but the server program has to be there to record permanent non user-bound data, and infact, any kind of permanent data that you yourself can read..

MattEvans 473 Veteran Poster Team Colleague Featured Poster

Your usage of '.' is possibly bad:

blogs/(.*)/(.*)/$
blogs/(.*)/$

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:

blogs/(.*?)/(.*?)/$
blogs/(.*?)/$

or

blogs/([^/])/([^/])/$
blogs/([^/])/$

and replace all other uses of '.' except where no ambiguity could possibly arrise.

You should also note, that this: blogs/(.*)/(.*)$ should probably match 'blogs/test/' aswell as 'blogs/test/test'; because .* means zero or more anythings.

Put [L] flags on the end of each rule as well, because they all look like they should be terminals..

If you're still having problems, post (exactly) what it is you want do; it seems like your trying to do at least 2 folder/query transformations, add trailing slashes where they're missing, and some of your rules are perhaps redundant/conflicting.

MattEvans 473 Veteran Poster Team Colleague Featured Poster

roryt>> I like to think of the scrollbar as being nothing to do with the main page (being a ff user). Also i think it tends to make the website worse if you change the scroll bar.

That depends where the scrollbar is to be honest. Sometimes; you might have a scrollbar on an iframe/frame/overflow:auto; element, and that's a dirty grey scrollbar very much 'inside' the page.

roryt>>I think websites look more professional if they just leave the scroll bar alone because if you don't mess with it nobody will notice it.

Fair enough; when the only intent is to change the right-hand scrollbar on the window; because that almost always loks silly in a different color. As mentioned, scrollbars can popup inside the page; and those certainly should be styleable, I promise they look silly and out-of-place in the middle of very colorful themes.

MidiMagic>> These settings actually belong to Windows Control Panel.
MidiMagic>> That's because IE is part of Windows (cheat! cheat!). Other software doesn't have access to internal Windows parameters.

That's not the reason. Colors can be changed by any application that uses old-school windows controls, and there's nothing to stop developers from making their own scrollbars if the existing ones aren't sufficient. if anything, the control panel settings are there to help application developers pick the colors that that a user wants to see rather than inflict all applications with them. Mozilla don't change scrollbar colours at the user's whim …

MattEvans 473 Veteran Poster Team Colleague Featured Poster

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 text, while <strong> is a meaningful (buzzword: semantic) attribute for text that can be considered media-independant, even process independant.

That said; I don't see why they can't continue to co-exist simultaneously as they do now.. I might want to write in bold without having to worry about screenreaders yelling at their users, or the importance of my bold words being considered too highly..

MattEvans 473 Veteran Poster Team Colleague Featured Poster

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 part of an official CSS spec.

It's annoying; I know, grey scrollbars only look correct within certain color schemes. On the up-side; Firefox's UI and rendering is so utterly hideous anyway, that I sincerly doubt any full-time FF users will notice.

MattEvans 473 Veteran Poster Team Colleague Featured Poster

It's not so much 'bandwidth overkill', Flash is good in terms of filesize; often smaller than bitmaps ( including gifs ) and even movie formats; considering images in Flash are usually vectors and fills, and SWFs are highly compressed.

The only real problem is forced separation from the rest of the ( HTML ) page... By design; SWFs aren't images, and have to be embedded as objects directly into HTM or viewed standalone; thus they can't replace image formats in all contexts ( i.e. CSS ). That 'issue' will likely never be resolved; because it isn't what SWF sets out to be.

The <img> tag in HTML can always be replaced with some block level element with a background image; meaning that site GUIs that make heavy use of images can be smaller and neater in markup, and under CSS control. This isn't possible with SWF objects. They have to be on each every page and each one has a reasonably sized lump of <object><?delegate> markup. That's a structural drawback in my eyes that can't be fixed; however fast data is sent.

MattEvans 473 Veteran Poster Team Colleague Featured Poster

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.

MattEvans 473 Veteran Poster Team Colleague Featured Poster

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, but with CSS, you can make individual links look however you want; and make them a bit 'interactive' using CSS :hover/:visited/:link styles....

To disable underline for example:

a.myspeciallink{
text-decoration:none;
}

Then make links like this:

<a class="myspeciallink" href="http://example.tld">I have no underline!</a>

Other CSS can be applied also; you can make <a>s block level (with display:block; and then give them a fixed size and background color/image (which can change using CSS :hover), put img tags inside them, and so on, and so forth.

~s.o.s~ commented: Good point, I missed that one. +21
MattEvans 473 Veteran Poster Team Colleague Featured Poster

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; which is honestly a good thing for Java.

I use Javascript over Flash for most things; use Flash only if you want a microapplication completely separated from the rest of a page embedded within a page.

MattEvans 473 Veteran Poster Team Colleague Featured Poster

If i remember my ASP correctly, then this kind of thing should work; although it's somewhat ugly looking...

<a href="[URL]http://www.someurl.com[/URL]" onclick="openwin('<% Response.write(testvar);%>');" target="_blank"><img src=http://www.pic.com/pic.jpg width="125" height="125" alt="some picture" border="0"/></a>

If you're still having problems, the ASP forum might be the better place to ask.

MattEvans 473 Veteran Poster Team Colleague Featured Poster

ok, after looking more carefully at some other threads, i can see why.

with that in mind, i withdraw my question.

MattEvans 473 Veteran Poster Team Colleague Featured Poster

Another possibility is that the post that caused the banning has been deleted.

hm, i suppose so, I did a search through all of the guy's other posts, and that's the only reason i was suprised.

I'm wondering if it was an automatic response to a bad word which is embedded in another word in that post. In that case, it's a case of (expletive deleted)-for-tat censorship.

ha! it took me a while to see what you were talking about there.. does daniweb even have a 'bad word' filter.. it's not really the kind of thing you can test without getting into trouble >_>

i'm going to reiterate again; i don't want to spark debate and speculation, or argue with any moderatorial decisions, particularly if there's more to this than first appears, which i know there may well be.

MattEvans 473 Veteran Poster Team Colleague Featured Poster

lolz.. i think perhaps it was only that i was searching google from a different perspective; since i've personally never used object tags for anything but java/flash/etc in html pages, where you do occasionally need to provide more information in the tag definition.

anyway, the page where i found that code was on the first result for a google search of:

object html inside html

any search like 'object embed html' or 'embed html with object' gives pages that compare the embed tag and object tag, of which there are many.

google respects order of terms, to a higher degree than people sometimes think... i find, the most fruitful complex search queries start with the most important word, then continue with some kind of question, without the words 'how do i', and, in this case, without any words that might pollute the results with uneccessary information. (i.e. embed)

just a tip ^_-

hmm, i suppose you'd need to know that (for the most part) cgi scripts reply in the type "text/html" to know that that was what you needed to search for in the first place; but yes, regardless of the way a page is prepared at server, the request for [data] in object tag expects a reply of type [type] not a file on the server of type [type]; any time you see HTML in the browser window after requesting a cgi-script's data, the script sent data of the type 'text/html' (or 'application/xml+xhtml' …

MattEvans 473 Veteran Poster Team Colleague Featured Poster

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 with regard to organisation though, so don't take my word for it.

Just a suggestion >>
Perhaps Javscript/DHTML/AJAX could be split into ECMAScript (Javascript/Actionscript etc) in programming, and DHTML & AJAX in web development; since DHTML and AJAX require a very specific subset of Javascript, and graphics is indeed, only one aspect of Flash.
<<

MattEvans 473 Veteran Poster Team Colleague Featured Poster

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:

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

note the single quotes; double quotes obviously wont work here.

if that's not the problem; perhaps you need to be more specific about exactly what you're trying to do..

MattEvans 473 Veteran Poster Team Colleague Featured Poster

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 finding out if he's put it up elswhere on another domain, seeing as he wont need to connect to your server to get the pages this time... i'd advise regular searches on google for the next few months for blocks of your copyrighted text, i know that's probably an uneccessary hassle, but at least (s)he wont ever be able to host your pages on a site and have it google indexed.

MattEvans 473 Veteran Poster Team Colleague Featured Poster

I've just noticed the user 'rgtaylor' (http://www.daniweb.com/techtalkforums/member153332.html,) appears to have been banned from daniweb, was there a reason for this other than the reply in this topic?

http://www.daniweb.com/techtalkforums/post368478.html#post368478

if there's more to it than that, fair enough and i'm not asking for details; but if this post is the only reason, that's a bit harsh is it not?

i ask only because, in my previous interactions with rgtaylor personally, he seems like a knowledgable and helpful person, and the reply in that thread isn't so severe, although it's clearly in an angry tone.

as in title, please delete this thread, or otherwise let me know if discussion of banned members/reasons for banning isn't allowed, (i can't see anything on the daniweb page 'o policies that says it isn't, but i'm well aware that this could be seen as asking something that's not really any of my business)

as i hope i've stressed, this is a question not a complaint; was that post the only reason rgtayor was banned? if not, ok, you(s) know what you're doing; if so, is that really a bannable offence? daniweb rules say a 5 point infraction is given for a first-offence personal insult.

MattEvans 473 Veteran Poster Team Colleague Featured Poster

you don't need all of the fields; try this:

<object type="text/html" width="300" height="300" data="http://url/file.html"></object>

http://3spots.blogspot.com/2006/02/positioning-html-web-pages-inside.html

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 method? i'm suprised the W3 keep changing their mind about this really, a while back, iframes were supposed to be 'the way forward'.

to be honest, I prefer SSI (server side includes of any breed, not just SHTML) to stick things 'into' pages.. admitadly it forces cache-reduction/elimination, and causes marginally longer fetch times; but at least i don't have to worry about unsupported browsers and deprecated tags, to so much of a degree anyway.

MattEvans 473 Veteran Poster Team Colleague Featured Poster

add a:

background-attachment: fixed

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 with it at some point..