tgreer 189 Made Her Cry Team Colleague

Yes. You'll either need to use a commercial product, such as activePDF Toolkit, or learn the PDF Format. It isn't too terribly hard, for simple PDF files.

tgreer 189 Made Her Cry Team Colleague

Since it's a server control, it's expecting the "onclick" attribute to contain a server-side method as its value. That's one problem.

It's been awhile, so this might not be 100% correct, but I think what you need to do is code the server-side ItemDataBound event. Within that method, you check the argument type, and if the control is an image button, then use the control's ".Attributes.Add()" method to code your onclick statement.

tgreer 189 Made Her Cry Team Colleague

The central point is, with ASP.NET, you need to forget HTML. Stop thinking of rendering a "table". Instead, use an ASP.NET Server Control. It will render the table.

There are lots of "Repeater control" examples on the web, if you search for them.

tgreer 189 Made Her Cry Team Colleague

Oh well.

tgreer 189 Made Her Cry Team Colleague
tgreer 189 Made Her Cry Team Colleague

It's probably loaded as an external JavaScript. Viewing the source should show you all of the script tags. You can then navigate directly to the script file. I don't recommend this except for educational purpose, to learn how a certain effect is achieved. You should only download and use scripts that have been made available by their author(s) for sharing.

tgreer 189 Made Her Cry Team Colleague

Sorry. Include the "\s" special character within your character class. You'll need to escape the blackslash WITH a backslash. For example this works:

function testRegEx(x)
{

  var regex = new RegExp("[^A-Za-z0-9\\s]");

  if (x.value.search(regex) != -1)
  {
    alert("Invalid Entry.");
  }
}
tgreer 189 Made Her Cry Team Colleague

The "autocomplete" is an often very annoying and disruptive "feature" of a particular browser or browser plug-in (like the Google Toolbar). As far as I know, a standardized autocomplete was never made part of the JavaScript DOM, so you can't do what you're trying to do.

tgreer 189 Made Her Cry Team Colleague

You have to provide a path to the image. HTML documents use URLs for paths. If the image is in the same directory as your html file, then you use the filename.

The tag is "img":

<img src="myImage.jpg">

tgreer 189 Made Her Cry Team Colleague

You could use an expression modifier, to add the /s to your character array. I haven't tested it, and it's late, but try:

function PasteAlphaNumeric(objEvent)
{
  var strPasteData = window.clipboardData.getData("Text");
  var objInput = objEvent.srcElement;
  if (strPasteData.search("[^A-Za-z0-9][B]+/s[/B]")!=-1)
  {
    alert("The character you attempted to paste is not allowed for this field.");
    objInput.focus();
    return false;
  }
}
tgreer 189 Made Her Cry Team Colleague

Why use the querystring? Can't you use POST rather than GET? Also, you aren't supposed to enter HTML tags into a textarea... it should automatically "break" text according to the browser window size.

tgreer 189 Made Her Cry Team Colleague

Because that will cause the control not to be rendered at all. That wasn't the question. It was how to make it appear and act disabled. This makes sense... users understand a "disabled" control. They don't always understand a control that mysteriously vanishes!

tgreer 189 Made Her Cry Team Colleague

Exactly, I should have been more clear. You have to use the "style" property, and the value contains your delimited style declarations. Thanks, Peter.

tgreer 189 Made Her Cry Team Colleague

This is a topic that comes up now and then, and one I've had to face in my own life. I have never received any "certification" in any technology. Yet, I've made a lifelong career in IT, and have been a senior programmer, a Vice President, a Director of Development, etc. In my case then, I've managed to do without any certification. Results are what matter. Similarly, when I hire, I look for aptitude and desire, rather than certifications.

That said, it can't hurt. It demonstrates self-motivation, and implies at least a baseline of knowledge. In an environment where everyone and their pet claims to be a "web designer", that might just the edge you need.

Sorry, but I can't give you specific advice on specific courses. I wish you the best!

tgreer 189 Made Her Cry Team Colleague

Remember that the "C" in CSS stands for "Cascading". That means there is a hierarchy of styles. If two style definitions conflict, the most specific wins. So for a particular img, if you wish to override the class definition, then provide an inline definition for that image.

tgreer 189 Made Her Cry Team Colleague

You've entered the "raster/bitmap" vs. "vector" arena. Photoshop creates raster images. That is to say, pictures made out of little colored blocks. How many blocks? What size blocks? That's called "resolution". A high-res image will look great when you print it, but look terrible on screen. That's because a monitor can't display all those blocks. It will simply "throw away" what it can't display. The result is a jaggy mess. The opposite is true, as well. A lo-res image may look fine on screen, but terrible when printed.

The answer is to produce "vector" images. Vectors are mathematical constructs: description of lines, curves, and so on. That makes vector images smaller, but harder to digest. They have to interpreted, by a device, that will decide that a particular line or shape can be optimally drawn by, you guessed it, a particular set of rasters.

EPS files can contain either rasters, vectors, or any combination of both. So a Photoshop EPS will be rasterized, an Illustrator EPS (if the artwork is natively produced in Illustrator), will be vector. By "converting to outlines", they are asking you to "trace" your shapes to produce vectors. Illustrator can do that, so can Corel Draw.

In any case: you need to shop for a "vector drawing program".

tgreer 189 Made Her Cry Team Colleague

EPS is a file format based on the PostScript programming language. Many design applications can save files as EPS. EPS used to Illustrator's "native" format; now Illustrator actually saves its files, internally, as PDFs.

Forget EPS for the moment. If not with Illustrator, then with what application would you create the file? In other words, you must have some design software you use to create your files. What is it? Chances are it can save as EPS.

If you have no software at all, then you need to shop around based on what features you'll actually use. I'm not an artist, so can't advise. I know Illustrator's nearest competitor is Corel Draw.

tgreer 189 Made Her Cry Team Colleague

Make sure you do your testing from a web server, as opposed to local files.

tgreer 189 Made Her Cry Team Colleague

I'm still not clear what you want to do. If you already have a working select list, then a user selects an option by clicking that option. Surely you don't want to select an option when the user "hovers" over an option. That would render your select list unusable, as a user could never browse through the option list. The first one they touch would get "selected".

If you code the "onmouseover" handler for the select control, the user won't even be able to see any of the options. The event will fire as soon as the mouse enters the control; none of the options will have a chance to display.

That leaves you with coding "onmouseover" for the individual options. You can do that, but again, the first one the user touches will trigger the event, making the control virtually useless.

That isn't how Google Suggest works.

Please try another explanation. Use short, clear sentences. Explain each step. Tell us what you have already have working, and what isn't working. Show us small code sections to illustrate.

If you'd like to do me a personal favor, please capitalize "I" in your postings.

tgreer 189 Made Her Cry Team Colleague

Wrap the img tag in the new window with an anchor declaration. Code the onclick handler for the anchor, using self.close:

<a href="javascript:self.close();"><img src="http://www.tgreer.com/tgroup.png"></a>
tgreer 189 Made Her Cry Team Colleague

I think he's actually asking for a way to CLOSE the opened window. You can use the "self.close()" method in the opened window. I would not tie that to the click method of the displayed image, however. Display a "close me" button, instead.

In actuality, though, this is completely unnecessary. Everyone understands how to close an open window; there is no need to code an extraneous control.

tgreer 189 Made Her Cry Team Colleague

Neither works for "Web design". These are "page layout" applications, referring to printed pages, not web pages. And as I mentioned in your other thread (yep, you double-posted! That's a no-no, but we'll let it slide this time), your choice really depends on your workflow. For example, if you want to design meta-templates for a VDP application, you'd pick InDesign, as it has the most plug-ins for that workflow (xmpie PersonalEffect, for example). Similarly, if you're designing for eventual PDF production, you'd also lean toward InDesign.

tgreer 189 Made Her Cry Team Colleague

Depends on what you want to do. For basic page layout, either is fine. However, if your page layout is part of a more complete production workflow, you'll want the program that has the best support for that workflow.

tgreer 189 Made Her Cry Team Colleague

Return an array, containing the values.

tgreer 189 Made Her Cry Team Colleague

No. JavaScript can do cookies, though.

tgreer 189 Made Her Cry Team Colleague

You want to turn a QueryString argument into a PHP variable?

tgreer 189 Made Her Cry Team Colleague

That's up to you. I sincerely hoped you'd stay and contribute.

tgreer 189 Made Her Cry Team Colleague

Your question isn't clear. A user selects options by clicking the mouse. I'm sure you know that, but that appears to be what you're asking. Please be more specific, and it would help tremendously if you would use real words and complete sentences. Otherwise people have to struggle to understand your message.

tgreer 189 Made Her Cry Team Colleague

Have you looked at any of the literally hundreds of discussions and scripts for DHTML drag/drop on the web? I'm still not clear if you want to do this CLIENT SIDE, or whether you are asking about ASP.NET server-side controls.

You also say you want to set the "properties" of graphic objects. What properties?

tgreer 189 Made Her Cry Team Colleague

Please post separate questions in a separate thread. Also, please don't use "chat shorthand" in forum messages. Rather, fully type out all words, and use proper spelling and punctuation. When seeking clarity, be clear!

Tell me exactly what it is about the checkbox situation that you want to "validate". First, are the checkboxes mutually exclusive? That is, are they part of a group of choices, and the user must pick one and only one of them?

tgreer 189 Made Her Cry Team Colleague

Just because the .NET Framework is "free", doesn't necessarily mean it's legal for you to distribute it. You need to research the issues by going to the Microsoft website. This is excerpted from a page on MSDN:

Note If you choose to use the Dotnetfx.exe or redistribute it with an application created by you, you must have a validly licensed copy of the Microsoft .NET Framework SDK (or Visual Studio .NET) and any use or distribution of Dotnetfx.exe is subject to the terms of the end user license agreement you received with the Microsoft .NET Framework SDK (or Visual Studio .NET). If you do not have a validly licensed copy of the Microsoft .NET Framework SDK (or Visual Studio .NET), you are not authorized to use or distribute Dotnetfx.exe.

tgreer 189 Made Her Cry Team Colleague

I welcome your participation in the HTML, CSS, & JavaScript forum. Many of the links you've posted are interesting. However, the main purpose of the forum is discussion. Rather than simply posting links, I'd appreciate it if you'd provide some commentary about the links, such as your opinions, questions, etc.

Also, when someone joins a forum, it's implied that they'll do their fair share of question ANSWERING. Please review some of the active threads and try to provide some relevant input.

Otherwise, you'll give the impression that your real motive for posting is just to provide an excuse to show your signature line. While Daniweb extends this courtesy to members who've made at least 10 posts, merely posting links isn't quite in the spirit of things!

tgreer 189 Made Her Cry Team Colleague

I listen to a lot of different styles, but as a guitar player myself, I tend to focus on simpler, acoustic performers. I like music that "features" simple instrumentation and "interesting" vocals and wordplay. "Interesting" might mean a distinctive voice. I'm always trying to find some great "new" guitar player or singer, not only because I enjoy that type of music, but because I like one-upping my friends with my new "discovery". One such recent find was Martin Sexton.

tgreer 189 Made Her Cry Team Colleague

Yes, data should be validated client-side, server-side, and also database-side.

tgreer 189 Made Her Cry Team Colleague

Most of the time, n-tier actualy refers to 3-tier. The concept can be extended, though, to describe any system that uses code or server-separation to achieve a process.

I regularly work on projects that require several steps, and those steps are often divided betwee discrete programs and/or servers. One could call that "multi-tier" or "n-tier". For example, a customer presents me with a database. They want that data to generate a personalized print mailing campaign.

These are some of the steps:

1) data conversion (their data may not be organized "properly")

2) address extraction, conversion, sorting

3) PostScript and/or PDF generation
3a) image manipulation
3b) copyfitting
3c) page device commands
3d) postal barcoding

4) Archival

5) Printing

There also may be web-based components, for reporting or order generation. As a software engineering project, each of those steps might be called a "tier", and handled as a separate sub-project. That would be an "n-tier" development project.

tgreer 189 Made Her Cry Team Colleague

I mean, if the user must pick one, but only one, of the checkboxes, then you should give them all the same name.

If you must give them a separate name, then you will have to inspect the ".checked" property of each checkbox in your validation function.

Do you know how to look at the ".checked" property of a checkbox?

tgreer 189 Made Her Cry Team Colleague

Interesting topic.

I assume you're referring to programming projects, at least that's the context I choose for my reply. Discounting school projects, my first "on my own" programming project was in a language now called "PL/B". At the time it was called "Databus". I rewrote a code module that would allow users to page through a data file one record at a time. It would accept various input controls, such as arrow keys, and also allow users to key in characters, and it would jump to the relevant record. When the user selected a record, it would return the ISAM key for that record back to the calling program. Not bad for a pre-windows, pre-GUI, 2GL DOS based program. It was called "SRSCAN", for "SubRoutine, file scan". I ended up writing many, many "SR" programs, and even developed a code-generator that would produce standardized PL/B programs.

It's still in use, too, along with hundreds of thousands of lines of code I eventually wrote for that company.

tgreer 189 Made Her Cry Team Colleague

If they are mutually exclusive, then give them all the same name. Otherwise, you'll just have to look at the "checked" property of each checkbox.

tgreer 189 Made Her Cry Team Colleague

A 1ms interval? Yes, I'd imagine that would cause problems. Either it isn't enough time for your function to run, or the element hasn't been rendered yet.

Sorry, you can't run cross-domain scripts. You're welcome to keep searching and correct me if I'm wrong (it won't be the first time!), but your best bet really is to do server-side screen scraping.

tgreer 189 Made Her Cry Team Colleague

You cannot do this client-side, because that would mean a script from your domain would need access to the contents of a page from another domain, and browsers don't allow that. You'll need to use a server-side language to perform what's called "screen scraping". I found this discussion on client-side scraping: http://ask.metafilter.com/mefi/23180

tgreer 189 Made Her Cry Team Colleague

Agreed. I'm not denying the talent apparent in the site. There's certainly a great deal of technical ability being demonstrated. That doesn't mean it's "good design". Consider someone with a vast vocabularly and encyclopedic knowledge of the English language, but who constantly uses rare or obscure words in his conversation. Would you say he's a "good communicator"? No!

tgreer 189 Made Her Cry Team Colleague

...and to prevent caching, you'd use:

<META NAME="ROBOTS" CONTENT="NOARCHIVE">

which I've done. However, that doesn't force them to throw away anything they've already cached. In fact, Google's FAQ says you can request they remove items from their cache, which they will respond to on a case-by-case basis. Excuse me? Shouldn't I decide who can and cannot "cache" my content?

Now, my site is just a tiny little site promoting my consulting business. I want it to be widely indexed, and I host technical articles in the hopes of drawing traffic. So I have to admit, I want search engines to find me. I would think that forum operators, who derive substantial ad income from the content of their sites, would be in an uproar about Google caching their content. Each time somone views a cached copy of a page, that's a hit stolen from your site.

I use Google. But somewhere in the recent past they crossed the line from being a search engine company, to being an advertising broker. In order to continue to drive ad revenue, they need content to piggy-back. If that means scanning entire libraries of copyrighted material, and caching every site they crawl, so be it. I think that's going too far.

tgreer 189 Made Her Cry Team Colleague

Yes, that works. You can also attach client-side event handlers with the "Add" method of an ASP.NET Server Object's "Attributes" collection.

So if you have a JavaScript function which you've placed in your document's "HEAD" section, named "myFunction()", and you want it to run when "myButton" is clicked, you can code:

myButton.Attributes.Add("onclick","<script>return myFunction()</script");

An important note: the "myFunction" JavaScript function should properly return "true" or "false". If "true", then the form submit occurs, and then the server-side "click" event handler, if any, will run. If "false", then the form submit is cancelled.

tgreer 189 Made Her Cry Team Colleague

The webserver is IIS, the database server would be SQL Server, and the application server layer is also IIS, though specifically it's an ISAPI DLL which interacts with IIS. Think of it as the "ASP.NET" server.

When I say "business logic", I'm referring to the implementation of the specific goals or reasons behind the application. Why are you writing the application? What is it supposed to do? It's rarely just "gather information from a user and store it in a database". In other words, HOW you gather information, via a specific form, a series of forms, a "wizard", a file upload, etc. isn't a business rule. That's interface design, and it's very important, but it isn't dictated by business logic.

You store that information in a database. The business logic doesn't dictate whether to use inline dynamic queries or stored procedures, or inform you how to layout your tables (usually).

A business rule might be "check to see if the person is already a customer, and if so, show them their purchase history".

When a think 3-tier, I don't think in terms of servers, I think in terms of functionality: all code to write, read, update, and "maintain" the database, goes either in the database, via stored procedures, or a database "class" in my application. All interface work is in external JavaScript and CSS files, with only the bare mininum done via ASP.NET "server objects" and their properties. Business logic is done in ASP.NET code-behind files.

tgreer 189 Made Her Cry Team Colleague

tayspen,

Please, please, please - give your messages some careful review and thought before you post them. I'm asking very nicely: use proper spelling, punctuation, grammar, and capitilization. I hope you like Daniweb and stay around for a long time, but you'll find it much easier if you adopt a more professional posting style. Re-read and correct your messages before hitting the button! Otherwise, I'm afraid people might start to ignore you, which can be very frustrating.

Try this:

textBox2.Text = "\"" + textBox1.Text + "\"";

The backslash is the "escape" character, sometimes called the "literal" character, and allows you to specifiy characters in a string that are otherwise reserved. Since it precedes the double-quote mark, it's saying, "I wish to include a double-quote in this string".

tgreer 189 Made Her Cry Team Colleague

Well, there might be a way to do that... but it's not something I'd ever do, so I haven't investigated it. I strongly discourage you from doing this, for several reasons. Perhaps the most important, it would violate user expectations. A user expects to be able to click hyperlinks. Finding themselves suddenly unable to do so, they'd most likely close the browser, rather than clicking "back". Also, it is probably unethical, though I'm willing to give you the benefit of a doubt and assume you have a perfectly honest and valid reason for wishing to do this.

That said, look into "screen-scraping". You could get the content of the target site, and output it into a new window, with your own code to attached (such as a CSS style that set all anchor tags to "display: none"). You'll need server-side code for that.

I'm pretty sure that JavaScript won't work, because browsers won't "trust" or allow a script to run across domains.

tgreer 189 Made Her Cry Team Colleague

Hmmm, am I socially retarded? Or actively anti-social by choice? There's a difference! It really depends on the context and setting. I can put on a good act, if needed, and in certain settings can be sincere about communicating well, promoting goodwill and friendliness, and so on. But at the core, I either want people to leave me alone, or to do things my way. :) I think that makes me a "nerd", although many argue it simply makes me arrogant!

In any case, I think "geek" has evolved to connote an unconcious, uncontrolled, unbridalded enthusiasm about computer technology, to the exclusion of anything else.

tgreer 189 Made Her Cry Team Colleague

With all the recent news and attention to the latest Google products, I've found myself becoming increasingly paranoid about Google. Have things started to take a creepy turn, or is it just my imagination?

For example, the Google Library Project, and the Google Print Project. Who gave Google the right to scan anything they wanted? Since when did an "opt-out" option trump copyright and express consent?

As an author, I'm sensitive to issues of copyright and express consent. This made me wonder, why are we so complacent about Google?

What do I mean? Well, do a Google search. See all of the "cached" content? When did I ever give Google permission to cache my entire site? That's MY content! I own the copyright. Yet Google has cached it, so that anyone can see my content without actually visiting my site! Morever, THEY derive ad revenue from that content, not me.

I would think forum operators in particular would be outraged at this hijacking of their content, yet no one seems to mind.

Once you start down the road to paranoia, it only gets worse. What information about me and my searches are they keeping? How long are they keeping it? With whom are they sharing it? I was an Adsense publisher, before they unilaterally and with no justification or explanation terminated me... that means they also have my social security number. I find that a bit alarming.

Google: I've decided that I will charge …

tgreer 189 Made Her Cry Team Colleague

I disagree, I think that "2advanced" site is horrid. It's way too busy, hard to impossible to navigate, and it isn't readily apparent what the site is even about. With stuff zipping and zooming around all over the place, there isn't anywhere for the user to FOCUS. Good graphic design focuses the attention of the user (reader, consumer) on a product, idea, or brand. This site appears to be about... science fiction watercraft?

tgreer 189 Made Her Cry Team Colleague

The term was used to describe performers who would bite the heads of animals, or eat bugs, in freak shows or circus acts.

I don't know how the term came to describe techno-gadget-afficionados. I prefer "nerd" to "geek", personally.