tgreer 189 Made Her Cry Team Colleague

Let us know. Remember to mark the thread solved if this answered your question.

tgreer 189 Made Her Cry Team Colleague

Do your Insert Query, the do a SELECT @@IDENTITY Query immediately afterward. It's best to do both in a stored procedure with the Identity as an OUT parameter.

Try this link: http://www.netomatix.com/adonetauto.aspx

tgreer 189 Made Her Cry Team Colleague

A very clear explanation, Dani. Thank you.

tgreer 189 Made Her Cry Team Colleague

No, you're standing on flawed reasoning. Feedback is not a scientific poll.

Wait a minute, back up the bus. No one claimed that feedback was a scientific poll. I'm saying, the only feedback you have is feedback given. That's all. If you are using feedback to make decisions about the site, scientific or not, then those are your parameters.

You can make no assumptions whatsoever about feedback not given. The vast majority of site users float in and out without perhaps ever noticing a certain aspect of the site. Dani assumes that since they didn't complain, they must be in favor. That's an unwarranted assumption and is not a sound basis for making decisions.

Feedback may not be either, but that's the system in place. So when 6 or so users complain about something, you can't balance that against the 97,000 who don't, assume that's 97,000 in FAVOR, and ignore the 6 who care enough to give feedback because they are the minority. Flawed reasoning.

You take those 6 votes, ask for more feedback, ("Is anyone in FAVOR of the way things are...?) and make a decision on that feedback. While not scientific, it's better than giving "opinions in my favor" to people who've expressed no opinion at all.

Dave Sinkula commented: Good points. +11
tgreer 189 Made Her Cry Team Colleague

Dani, your "no complaints" argument is your standard flawed reasoning. The only feedback that matters is the feedback you've been given. You can make no assumptions about this nebulous "non-feedback / non-complaint" crowd. Hey, George Bush hasn't complained anywhere about Daniweb - he must endorse it!

There is no downside to making these things optional. Those who don't complain and like all the defaults will leave things alone. Those who want to disable certain options, can. Where's the issue?

tgreer 189 Made Her Cry Team Colleague

...but now, by reading the latest feedback on the issue, you realize that the annoyance of the hover previews is unrelated to speed, and that the all-or-nothing option of disabling all client-side JavaScript does not address the issue. Also, removing control over an aspect of the site that was previously optional is in hindsight, perhaps, not wise. I respectfully request, as an interested reader/user of the site, that you make this optional again. It dramatically, negatively, affects the usability and enjoyment of the site.

tgreer 189 Made Her Cry Team Colleague

I don't post anymore... but I do occasionally browse. The floating popups are very annoying, like having tape stuck to your fingers. Please reinstate the option to disable popups.

tgreer 189 Made Her Cry Team Colleague

A post just to show my new extremely apropros signature, and to provide c>you et al an opportunity to give me bad rep. How very off-topic of me.

~s.o.s~ commented: Nice signature. +20
Rashakil Fol commented: Thanks for the opportunity ;-) -1
christina>you commented: Thanks for the opportunity! :-D -3
arjunsasidharan commented: :D like your signature +3
tgreer 189 Made Her Cry Team Colleague

!

tgreer 189 Made Her Cry Team Colleague

That should work. You need to return either true or false, and call the function using the "return" keyword as vishesh has shown. He's missing the terminal semicolon, but it should still work. Also, you can't code both an "onsubmit" for the form AND "onclick" on the submit button. Your code would run twice. Pick a single event handler, use the "return" keyword, and make sure each code path in your function returns either "true" or "false".

tgreer 189 Made Her Cry Team Colleague

Many people agree, that the "body" tag should be treated as a top-level block element: the "box" everything is in. Another viewpoint is that it is a syntactical (rather than structural) element, and so doesn't have any "dimensions" in and of itself.

Since there is no agreement, the solution is treat the body element like an "open" and "close" statement that has nothing to do with position, size, etc. and to either put everything within a table, or a DIV.

tgreer 189 Made Her Cry Team Colleague

I think I see what you mean... you've set a border on the body element, and your page contents are breaking through that bottom border. Unfortunately, it isn't clear how the "body" element should be treated in the current HTML specifications, so each browser does things differently. Instead of styling your body tag, put all of your page's contents in an DIV, and style the DIV. That should resolve the issue.

P.S. You've also get both your menu DIV and your main DIV floated left. That won't work. Remove the "float: left" from the DIV with all your text.

tgreer 189 Made Her Cry Team Colleague

But, where are you expecting the content to go? With small enough browser window, everything breaks. I've looked with both FF and IE and I'm not sure I see a problem.

tgreer 189 Made Her Cry Team Colleague

JavaScript is of course standardized. What confuses many is that it's a scripting language, so interacts with the underlying DOM, and that each doctype has its own DOM. Morever, JavaScript is used with other, non-HTML DOMs as well, such as Acrobat. However, the language itself is standardized.

I've been a web developer since the web's inception, and coded EDI and BBS systems prior to that... in all that time, in all the systems I've written or been involved with, there has never been a situation where we had to code around a "non-JavaScript" user. Not once.

So while I am absolutely all for people developing their own coding standards and best practices, I would recommend spending zero time worrying about "non-JavaScript" users.

tgreer 189 Made Her Cry Team Colleague

Well, all the mouse event handlers are just that: event handlers. The events are provided by JavaScript. Also, the "style." is a reference to the DOM, and again is JavaScript. So while you may not have written any JavaScript functions, or put anything inside of script tags, your solution DOES use JavaScript. My point is, though: that's perfectly fine.

tgreer 189 Made Her Cry Team Colleague

This entire discussion is very amusing. In short, you have to use JavaScript for most of the questions in this thread. There is no reason not to do so, either. If you want a real-world solution, don't impose silly restrictions. This is like saying "I need directions from my business to yours, but I'll only take left turns".

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

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

That's what CSS is for: positioning, sizing, and styling HTML elements. It sounds like you're either not sizing your table elements, or if you are, you're using percentages.

Instead, you should provide CSS rules for the table, tr, and td elements, using absolute pixel measurements.

For example:

<style type="text/css">
table {width: 500px;}
</style>

Place that in the head of your document, and any table will be 500 pixels wide, no matter the browser window size or screen resolution.

tgreer 189 Made Her Cry Team Colleague

We simply disagree that CSS is unrelated to "content".

In fact, it allows the HTML to be solely content. Ask yourself what "BGCOLOR" has to do with the "content" of your site, and perhaps you'll see my point.

tgreer 189 Made Her Cry Team Colleague

Puck - it's all in your mindset. When you realize that CSS was invented to FIX issues with HTML, or to SIMPLIFY/STANDARDIZE HTML (so that we didn't have a lot of custom-to-the-browser tags like "layer") - then perhaps learning CSS won't be such a hurdle for you.

tgreer 189 Made Her Cry Team Colleague

That's fine, but... what is the question?

tgreer 189 Made Her Cry Team Colleague

Sorry, but I've read this a couple of times and don't see a question. Could you distill all of the above into a single, succint, specific question?

tgreer 189 Made Her Cry Team Colleague

I don't know what they do. You haven't shown the entire element, so I don't know if you're still trying to use "embed', or if you've switched over to "object".

This page documents problems and and workarounds for XHTML and Flash.

tgreer 189 Made Her Cry Team Colleague

The "embed" element isn't within the XHTML specification. It's been replaced by "object".

tgreer 189 Made Her Cry Team Colleague

I still don't understand. The validator allows you to validate something you paste in, or a URL. In either case, PHP renders HTML. You shouldn't be pasting the PHP, you should be pasting the results of the PHP program.

To repeat:

Browse to your file. View Source. Copy. Paste.

tgreer 189 Made Her Cry Team Colleague

A quick perusal through your CSS didn't show that you were defining any absolute point sizes. Relative terms like "medium" will be displayed... in relative terms. :)

In the future, could you please just post scaled down versions, only those portions directly related to your question? Thanks.

tgreer 189 Made Her Cry Team Colleague

Browse to your page. Select "View Source". Copy it all. Paste it into the appropriate spot on the validator page.

tgreer 189 Made Her Cry Team Colleague

Who says you can't validate? Just copy and paste the URL into the appropriate spot on the validator page.

tgreer 189 Made Her Cry Team Colleague

Any window you open, with script, you can close, with script.

The typical approach is to add a button with onclick="self.close();" .

If you're asking how a user would close a fullscreen window... toggle out of FullScreen mode (F11 on Windows platform), and close it normally.

tgreer 189 Made Her Cry Team Colleague

Start by changing your "submit" button to a regular "button". That way when you click the button it won't try to submit the form to a server-side process.

tgreer 189 Made Her Cry Team Colleague

You cannot pass variables, per se, between JavaScript and PHP. However, your PHP script can certainly author JavaScript, including JavaScript variables. I hope that makes sense, because it's late and I don't feel like debugging all that code you posted. Thanks for using code tags, though!

Seriously, with your JavaScript, use PHP to simpy "echo" the JavaScript variable.

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

That should work fine, if IIS is installed properly:

http://server_name/folder/appname.aspx

So, you likely have an IIS configuration issue, which is outside the scope of this forum. You should post in the Site Configuration section.

You need to test first:

1) Can you access your app on the machine itself, using "localhost" as the server name?

If this test fails, you don't have IIS running correctly.

2) Can other machines access the app, using the IP address of the IIS server as the server name?

If the this test fails, then you have a network configuration issue. 192.168 numbers are "local IP" addresses, and your network could be divided into subdomains, you could have a firewall on the machine blocking inbound traffic - all sorts of issues, none of which are ASP.NET questions!

tgreer 189 Made Her Cry Team Colleague

I cannot tell you anymore than I already have:

You access via a browser:

http://servername/appname

The "servername" is the name you've given the IIS server. That's all there is to it - there isn't a big mystery here.

You can also access via IP address:

http://192.168.xxx.xx/appname

tgreer 189 Made Her Cry Team Colleague

ASP.NET works with IIS. You access ASP.NET applications through a web browser. Whatever you've configured a particular IIS installation's server name to be, is how you access it, via WAN, LAN... whatever.

tgreer 189 Made Her Cry Team Colleague

My experience was on a development machine, where I installed VS.NET. Later, I installed IIS, and things never worked correctly. I searched MSDN, and saw that this was a common problem, and then had a "fix" script, which didn't work.

So, uninstalling both, then re-installing IIS and VS.NET after, solved my problem.

That may not help you, if IIS and VS.NET are on two separate machines.

However, a clean re-install might not be a bad idea.

tgreer 189 Made Her Cry Team Colleague

This is the ASP.NET forum. Is that what you're asking about? If not, I can move the thread to the ASP forum, just let me know.

ASP.NET and IIS can get into problems based on which was installed first. This may seem like overkill, but the best catchall solution is to uninstall VS.NET and IIS, and then reinstall 1st IIS, and 2nd VS.NET.

tgreer 189 Made Her Cry Team Colleague

Please re-read my prior message. Your "li-related" style declarations are not complete. You need to provide a complete margin AND a complete padding, for every element, or else each browser will determine its own. Your page looks fine in Firefox, but the images overlap in IE. Don't leave spacing at the whim of the browser: declare it explicitly.

tgreer 189 Made Her Cry Team Colleague

For spacing issues, make sure you always set the "margin", and the "padding", for all affected elements. Otherwise, each browser will set a default, and the default may not be what you want.

tgreer 189 Made Her Cry Team Colleague

Just read through the error messages carefully: they describe the problems and solutions. For example, your doctype expects "type" rather than "language" in your script tag: the error message says exactly that.

tgreer 189 Made Her Cry Team Colleague

I'm denied access to those images. I'm afraid I cannot add anything to my previous explanations. The scrollbar effect on the site you reference is achieved by styling that one div with "overflow: auto", as I've mentioned.

tgreer 189 Made Her Cry Team Colleague

I really didn't understand all of that. The basic trick is to organize your site into a series of DIV elements/containers.

Those that you want to display a certain size, but hold longer content, you assign the CSS "overflow: auto" style.

tgreer 189 Made Her Cry Team Colleague

Look at the "overflow" attribute.

The trick is handling how content that is bigger than its container is handled, not vice-versa.

tgreer 189 Made Her Cry Team Colleague

No, sorry. You talk about tables and urls, but show me DIV tags. These DIVs are also located in the HEAD section of your document, which is incorrect... there just is no way to answer the question "how do I change the URL of a DIV tag in the HEAD of my document", because:

1. DIV elements do not go in the HEAD section, and
2. DIV elements do not have a URL attribute.

In any case, the "setAttribute()" DOM method can be used to change/set an element's attributes, or, you can refer to an element's attributes directly, using the syntax I've already shown.

tgreer 189 Made Her Cry Team Colleague

I still don't understand the question... did my answer not make sense to you?

Since DIV elements do not have a URL attribute, I don't know what to tell you to do.

tgreer 189 Made Her Cry Team Colleague

I'm still not seeing/understanding this. DIV elements do not have a "URL" attribute, so your example doesn't make sense to me.

Ignoring all of that, can we "abstract" your question this way:

How do I change the attribute of an element, based on a variable passed into a function?

My answer would be, assuming you have a variable "getid" that corresponds to the ID of the element you wish to modify: document.getElementById(getid).attributeName = "attributeValue"; If that doesn't work, you can try the DOM method "setAttribute()".

tgreer 189 Made Her Cry Team Colleague

You already are... the variable is passed into "getid", and then subsequently into "rowid". I don't know what "menu" you're passing it into. I see a "window.open" command, is your menu a page in a new window? Then simply include your "getid" variable as a querystring parameter in the URL for the new window.

The new window can also refer to variables in the parent window using the "self.parent.getid" syntax.

Your scripts are a bit sloppy: some missing semi-colons, and also, it's good practice to enclose procedure bodies in curly-braces (including your if/else conditional statements).

tgreer 189 Made Her Cry Team Colleague

Hyperlink an image.

<a href="http://www.jscode.com/js_auto_bookmark.shtml" alt="bookmark"><img src="myImage.gif" alt="bookmark" /></a>
tgreer 189 Made Her Cry Team Colleague

1. Select the text you want hyperlinked.
2. Click the hyperlink control widget.
3. Click "OK".