tgreer 189 Made Her Cry Team Colleague

Please be more specific. There is no such thing as a "messagebox" in HTML. There are "alerts" and "confirms". Which server control are you using?

tgreer 189 Made Her Cry Team Colleague

Don't believe it. Davey is a machine. A welcome-bot. :)

Daniweb has been around since its inception.

tgreer 189 Made Her Cry Team Colleague

Since usually a user configures what player he wants associated with a particular media type, there is no provision in the DOM for media-related event handlers.

However, since this is a kiosk application, where you control the media type (WMV), and the player (Windows Media), and the browser (IE) then you may get away with some highly-specific code.

Check out this page on MSDN, describing the events associated with Windows Media Player and how to access them with JScript.

tgreer 189 Made Her Cry Team Colleague

The administrator should simply go to the "Users" control panel and change the password back.

tgreer 189 Made Her Cry Team Colleague

1. Bookmarking is part of the User Model for websites, not the Code Model. In simple English, that means if a user wants to bookmark a page, they'll do it with the built-in browser commands, regardless of a "bookmark link" or not. It would be a useless addition to your page.

2. Since bookmarking is part of the user model, each browser may or may not expose it to the DOM. That means you'll have to write browser-specific code, browser detection code, etc. In other words, you'd be creating yourself a maintenance headache.

3. This is the ASP.NET forum, not the ASP forum.

4. It would be a client-side function in any case, so the server-side language doesn't matter. You should post in the HTML/JavaScript/CSS forum for this:

5. But don't, because if you did I'd simply post to tell you to search [search] "bookmark this page" scripts[/search].

tgreer 189 Made Her Cry Team Colleague

CSS is not a programming language. It is a declarative language for defining styles. It has no variables, conditionals, loops, logic, or commands. If you want to "program CSS", what you need to learn is JavaScript. JavaScript is a scripting language for manipulating the browser Document Object Model, which includes assigning declared styles (CSS) to document elements (HTML).

tgreer 189 Made Her Cry Team Colleague

Do you mean JScript, or JavaScript? What does "cod" mean? You are posting in the ASP.NET forum, so I'm curious at one point you want to perform a "search". Within the client? Each browser has a built-in search feature, so I'm not sure why you'd want to code one in JavaScript. If you want to highlight search terms in a rendered page, you can do that server-side using techniques like those described in this article.

You need to ask a more specific question.

tgreer 189 Made Her Cry Team Colleague

Don't understand the scenario. If you:

1) serve somepage.php with a form on it
2) the form's action tag is set to "somepage.php"
3) user fills the form, submits it
4) somepage.php runs on the server, processes the form and then
5) generates the same html/css/scripts/form as in step 1, then:

Everything should be fine!

tgreer 189 Made Her Cry Team Colleague

I believe you are confusing JavaScript with Java.

tgreer 189 Made Her Cry Team Colleague

If you want all CountryIDs for ALL of a set of ProductCodes, then an "AND" query is definitely what you want:

seleft countryID from ECOMMERCE_shipping
where
ProductCode = 'A' AND
ProductCode = 'B' AND
ProductCode = 'C'
tgreer 189 Made Her Cry Team Colleague

In JavaScript? You can't. If you want to create a dynamic image in ASP.NET, look into the [search]System.Drawing[/search] and [search]System.Drawing.Imaging[/search] namespaces.

tgreer 189 Made Her Cry Team Colleague

The forum software uses code tags for posting code. They are clearly explained in the message editor when you post a message. Just follow the instructions. Also, we use full complete standard English here, instead of the substitutions such as "i"and "u".

I don't code in VB.NET sorry. In any case, ASP.NET Authentication is a well-covered topic with thousands of tutorials on the topic available on the web. Glancing over your code, I see no obvious errors. I tend not to use DataAdapters and DataTables and all that mess. I use stored procedures. You execute them, get the response into a simple DataReader, and do what you need to do.

tgreer 189 Made Her Cry Team Colleague

You can code ASP.NET in any .NET language, including C#. However, not all of the .NET Framework is applicable to web development. You can only do what a browser can do, and that same restriction applies to all web development languages.

The ASP.NET methodology is to set/get Properties, code event procedures, and call methods of objects as with any other object oriented langauge. However, the web isn't object oriented. So, Microsoft created a lot of "Web Server Objects" that use methods, properties, and events, to render HTML. It's simply a different approach than classic ASP or PHP, which is to script HTML directly.

Who's to say which is better? Well, me. :) I've coded CGI, ASP, PHP, and ASP.NET. I think smothering a complex object oriented layer on top of HTML is a needles complication. Given the choice between PHP and ASP.NET I'd choose PHP.

However, that isn't because an ASP.NET app can "do more" in terms of providing the final application more capabilities.

tgreer 189 Made Her Cry Team Colleague

Since they both render HTML, both are capable of "doing" whatever anyone can do with HTML. That's my main point: they are two different approaches to doing the exact same thing.

I would say that PHP goes about it's business in a much cleaner and straightforward way compared to ASP.NET. PHP applications then tend to be more portable and easy to maintain. I think PHP also has a larger talent pool to draw from.

But in terms of overall capability: no difference.

tgreer 189 Made Her Cry Team Colleague

Ok, then I'm very unclear what you're trying to do. You want all shipping codes for any of 3 different product codes?

select shippingID from ECOMMERCE_shipping 
where (productID = 'A' OR productID = 'B" OR productID = 'C')
tgreer 189 Made Her Cry Team Colleague
select shippingID 
from ECOMMERCE_shipping  
where countryID = 'X' 
and (productCode = 'A' or productCode = 'B' or productCode = 'C')

Something like that should do the trick.

tgreer 189 Made Her Cry Team Colleague

PHP and ASP.NET both do the exact same thing: render HTML, CSS and JavaScript. Therefore, one is not superior to another in terms of "security", which is largely a server configuration issue. Neither is one "better" for certain types of sites than the other.

You're using the wrong criteria then, in making this decision.

tgreer 189 Made Her Cry Team Colleague

Yes, you can do this in Flash or HTML. You don't need to code a "back" button, every browser already has one.

If you have specific programming questions, we'll be happy to help. If you're seeking a programmer to code a site for you, please post in our "Web Development Job Offers" forum.

tgreer 189 Made Her Cry Team Colleague

If you're only using HTML and JavaScript, then you aren't doing things in a standard way. The methods that do work (such as setting the action tag of your form to "mailto:") are highly dependent on specific browsers, operating systems, and email clients. If you've jury-rigged something together that works, more power to you, but it's going to be extremely hard for anyone else to test or help.

Typically, form results are delivered to a web server application via a POST. The application process the results and performs any variety of actions, including sending the results via SMTP to an email address. Thus the assumption and repeated question of "which server-side language are you using?".

Again, there isn't any standardized "client-only" method of emailing form results.

tgreer 189 Made Her Cry Team Colleague

Do a web search for "ASP.NET login page" and follow the directions from any of the thousands of pages on the topic.

tgreer 189 Made Her Cry Team Colleague

You're bumping a thread nearly 2 years old... it is doubtful you'll get a response from the original poster. Please start a new thread and ask your questions there.

tgreer 189 Made Her Cry Team Colleague

A simple web search for the phrase "JavaScript make homepage" turned up plenty of information on the topic.

tgreer 189 Made Her Cry Team Colleague

Again, which server-side language are you using to process the form and generate the email?

tgreer 189 Made Her Cry Team Colleague

The missing piece of information is the server-side language you're using. It would be better to post in the appropriate language-specific forum rather than the general HTML forum.

tgreer 189 Made Her Cry Team Colleague

Am I seeing another venerable and respectable term being hijacked? I've been an e-commerce developer since there was a web, and have never needed an "e-commerce" application to carry ads or have affiliates, etc.

An e-commerce application is any web-enabled application that is integrated with the normal business operations of a company. An e-commerce application need not even have a user interface or be tied to a "web site".

So my answer to the question is that Affiliate Programs are largely irrelevant to the vast majority of successful e-commerce applications.

tgreer 189 Made Her Cry Team Colleague

At least in the US, this is perfectly legal. It's their equipment, and the employer also pays for the employee's time. Thus, how that time is spent on that equipment is something the employer has every right to know. Using company resources and time for personal use, without express permission, amounts to theft.

(As I explained during the Napster days to an employee who had caused a serious crash to a network application by filling a network volume with MP3s. Her brilliant argument that PC stood for Personal Computer and that I had no right to delete her music notwithstanding.)

tgreer 189 Made Her Cry Team Colleague

CSS cannot stretch an image: a browser is not an image editing program. CSS can repeat an image, but the image must be designed naturally to tile well.

The typical technique is to divide an image that must "stretch" horizontally into three images, a left, center, and right. The center image will be a solid color and will be set to repeat/tile in the x-dimension. This gives the effect of stretching.

The technique for an image that must expand vertically is to divide it in two, a top that remains static and a bottom that is a solid that is set to repeat/tile in the y-dimension.

tgreer 189 Made Her Cry Team Colleague

I can see you put work into your visual examples, but I'm having a hard time figuring out what they mean.

However, stymiee has given you the proper starting point. First, place each of your form "blocks" into a "div" element, so that the page is organized well structurally.

Then, you can use CSS to position the forms relative to the page and each other. The "float" property is important to understand.

tgreer 189 Made Her Cry Team Colleague

The best way to design an ASP.NET application is to create the database with the proper constraints and stored procedures, then to drag various web controls onto the page and configure their design and runtime properties to create a good user interface, and lastly to code the business logic of your application by filling in the proper event procedures.

Sorry, yes I'm being sarcastic, but there really isn't another answer to such a broad question. If you have specific technical questions, please ask them, but your question is like asking "what's the best way to paint a picture?". Answer: apply pigment to a canvas.

tgreer 189 Made Her Cry Team Colleague

I like cakes that are funnelly.

tgreer 189 Made Her Cry Team Colleague

Closing this thread, since the question was answered and we're spiraling into pointless misunderstandings. This is just a housekeeping measure and doesn't imply that anyone said or did anything wrong. Cheers!

tgreer 189 Made Her Cry Team Colleague

It depends on the structure of your HTML. It is possible to size container elements, such as tables and DIVs, using CSS.

tgreer 189 Made Her Cry Team Colleague

Whoops! For some reason I thought we were in the ASP.NET forum. Sorry, and thanks for the correction.

tgreer 189 Made Her Cry Team Colleague

You are completely wrong. :)

PHP won't know or care how an HTML element was created, or how it got its value. As long as the element is part of a form with a proper action tag pointing to the PHP page, it makes no difference at all how the element was created or populated.

Also, an element that is submitted as a form isn't a GET request, it's a POST reqest. Perhaps that is your problem, looking for the values in GET, rather than POST.

tgreer 189 Made Her Cry Team Colleague

I understand. This has turned into a PHP question. You want to process the results of a form submission, and author a new page, populating the new page's form with the results from the previous form.

I suggest you ask a question about getting values from the Response object in the PHP forum. In short, PHP automatically creates an associative array named $_GET in which it stores all your query string values.

To create a textbox element that is populated with a value from a previous GET might look like this:

<input type="text" id="new_textbox1" value="<? echo $_GET['textbox1'] ?>" />

That assumes you've built a URL with ?textbox1=somevalue as a query string.

tgreer 189 Made Her Cry Team Colleague

It's the same technique. As long as every element has a unique "id" attribute, the element can be retrieved via the document.getElementById() method. Once retrieved, its attributes, including value, can be set.

The trick is to have a rational system of providing unique ids to your dynamic elements, as well as a method of storing them and/or recreating them as needed.

Please be more careful with your terminology. There is no such thing as a "PHP Form" (or "fields" in HTML, for that matter), so I cannot provide quality help without resorting to guesswork as to what you really mean.

tgreer 189 Made Her Cry Team Colleague

There is no such thing as a combobox in HTML. Are you posting in the correct forum?

tgreer 189 Made Her Cry Team Colleague

HTML doesn't have a "combobox" control. Do you mean a "select" element? If your select element has an id of "x", you would get the value of the selected option: x.options[x.selectedIndex].value; Proper terminology is very important in any technical discussion.

tgreer 189 Made Her Cry Team Colleague

Creating cookies is simple. Use the System.Web.HttpCookie class.

HttpCookie newCookie = new HttpCookie("myCookie");
newCookie.Values.Add("Key","Value");
newCookie.Expires = #12/31/2008#;
Response.Cookies.Add(newCookie);

That's untested code.

tgreer 189 Made Her Cry Team Colleague

Whether or not to save/store cookies is a user option. If a user decides to clear their cookies, there is nothing you can do about it.

tgreer 189 Made Her Cry Team Colleague

Define your counter outside of a function, that way it becomes a global variable which can be used by any function.

tgreer 189 Made Her Cry Team Colleague

Simply maintain a counter variable. Each time the "Add" button is clicked, it increments the counter. The "mySelect" function can use the variable to reference the proper text box(es).

function mySelect(x)
{
 document.getElementById("equipment_" + myCounter).value = x.options[x.selectedIndex].value;
 }
tgreer 189 Made Her Cry Team Colleague

Simple JavaScript will do the trick. The parts you need to understand:

1. the "return" keyword, and how it is used with a submit button to either perform or cancel a form submission (that is to say, if you really meant "submit" button in your question, as a normal button can do the same thing)

2. the "id" attribute... you'll need to give each HTML element a unique id, so that it can be referenced via JavaScript

3. the "document.getElementById()" method

4. how selects are referenced, their attributes and methods.

If you have a textbox and a select element in your form:

<form>
 <input id="myText"/><br/>
  <select id="mySelect"/>
    <option value="Volvo"/>Volvo
    <option value="Saab"/>Saab
    <option value="Fiat"/>Fiat
    <option value="Audi"/>Audi
  </select>
</form>

Then you could add an "onChange" handler to the select:

<form>
 <input id="myText"/><br/>
  <select id="mySelect" onChange="javascript:doSelect(this);"/>
    <option value="Volvo"/>Volvo
    <option value="Saab"/>Saab
    <option value="Fiat"/>Fiat
    <option value="Audi"/>Audi
  </select>
</form>

The "doSelect()" function might look like this:

function mySelect(x)
{
 document.getElementById("myText").value = x.options[x.selectedIndex].value;
}

Each time the user selects a new option in the select, the value of the selected option is copied to the textbox. The same technique could be done for hidden elements, and of course the function could be wired to the submit event of the form instead of the change event of the select.

tgreer 189 Made Her Cry Team Colleague

The JavaScript command to open a new window is the "open" method of the "window" object: window.open() .

tgreer 189 Made Her Cry Team Colleague

The control you seek is called a "combobox", and it doesn't exist in HTML. I experimented with some JavaScript to "create one" on this page. Enjoy.

tgreer 189 Made Her Cry Team Colleague

After a certain period of time, you cannot edit your post.

Your page is missing a doctype, so I'm not sure which version of HTML you're writing. However, since all the tags are lowercase, I can assume it's XHTML.

If that's the case, then centering is done with CSS, by setting the left and write margins of the top-most container element (such as the "body" tag", to "auto": body {margin:0 auto;}

Sulley's Boo commented: right* +5
tgreer 189 Made Her Cry Team Colleague

Before scripts can work as expected, the page and the underlying DOM have to load. There is an "load" event, of course, which can be tied to the page, typically in the body element with the "onload" event handler.

Another technique is to relocate your scripts from the head section to just before the closing body tag.

tgreer 189 Made Her Cry Team Colleague

That's a popular hobby these days, but not relevant to the original poster's question.

tgreer 189 Made Her Cry Team Colleague

They aren't necessarily "evil". They are a business. Specifically, they are in the business of scraping/gathering (but not authoring) content, and then finding ways to sell advertising against it. I think that is unethical, but "evil"? Not quite. However, that is their business model, so it's a given that everything they do is to further their own business interests. The proliferation of junk sites that are essentially "made for Adsense" is their fault. Such sites dilute the overall value/quality of the web. Does Google care? Of course not, since they make huge amounts of money off of these sites. So the overall effect of Google and AdSense on the web has been overwhelmingly negative.

I view them in much the same light as environmentalists view timber companies. Whatever short-term benefit they bring has to be compared to the long-term effects on the environment. Google's environment is the web, and they are polluting it for their own financial gain.

(Not to mention the immense opportunity and temptation for privacy violations, since they not only scrape massive amounts of content, cache it essentially forever, but also maintain search history, personal emails, site traffic patterns, etc.)

tgreer 189 Made Her Cry Team Colleague

Sorry, I place very little credence on anything Google says regarding "Search Engine Strategies". To essentially claim that their own bots are so flawed that they can't follow perfectly valid links, or that they can follow those links, but gosh, just can't index them properly, is just too ludicrous for words. They have a vested interest in the SEO-industry, which is more or less synonymous with the AdSense industry. They have a history of double-talk and obfuscation on the topic.

I believe what I see, and again, targeted searchs return pages with querystrings just fine.