tgreer 189 Made Her Cry Team Colleague

Sorry for the late reply. The answer is "yes". Research the CSS "display" attribute. Setting it to display: none; will cause the element to not render, which removes any space it would normally consume on the page.

tgreer 189 Made Her Cry Team Colleague

I tend not to worry too much about these issues. If a user uses shortcuts around my navigation, I assume they know what they are doing, and what results they'll get. If there are any complaints, I simply demonstrate that the issue has been addressed in the site's navigational elements. Done.

I also realize that most users quickly tire of "sexy interface effects", and while I pass no judgment on fading/layers or gendv's courseware system, it's not an effect I'd use, personally. If an effect is getting in the way of usablity, then do away with the effect.

tgreer 189 Made Her Cry Team Colleague

Remember the web is client-server, and ASP.NET doesn't change that.

File uploads are done via the <input type="file" /> HTML element.

That takes a file, plain and simple. So if the user wants to upload an entire folder, they'll need to zip it up into a single zip file, and upload that.

It will be up to your server code to process that zip file.

tgreer 189 Made Her Cry Team Colleague

Well, there you go. Have the back button append a querystring variable, and have all your "onload" scripts check for the presence of that variable, and act accordingly.

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

Make sure you're using all the relative SQL namespaces.

tgreer 189 Made Her Cry Team Colleague

Well, yes, eventually, the form will be filled out and all the form's values posted back to the server, where some server-side code will process it. I assumed that much.

It seems, though, that the user was asking how to move the value around within the form, prior to posting the form back to the server.

I don't know why, but my code shows how to do that. This one gets a big "shrug" from me... I think we've answered the threadstarter's question, and haven't heard any feedback, so...

tgreer 189 Made Her Cry Team Colleague

You haven't done a read, and you instantiate your reader incorrectly. You don't need a DataAdapter if you're using a Reader.

conn.Open();
SqlCommand command = new SqlCommand(sqlString,conn);
myDataReader = command.ExecuteReader();

while (myDataReader.Read())
{
// do whatever you need to in this loop, including:
// MarketName.Text=myDataReader["FileName"].ToString();
}

Note that if you were really in a loop, the value of your textbox would be set and reset for each record in the results. Likely, you're just returning one row, so wouldn't need the loop. You'd still need to perform a myDataReader.Read() though.

Also, the ExecuteReader() method has on overload where you specify a behavior that it will return a single read, for better efficiency.

tgreer 189 Made Her Cry Team Colleague

What I like to do:

1. Perform the query
2. Use a SqlDataReader for a forward-only journey through the results
3. Simply assign the values from the Reader to the appropriate controls: myTextBox.Text = myDataReader["fieldName"].ToString(); There are other ways, involving DataBinding some ADO.NET stuff to your controls - I've never bothered with them. I like my code to be self-documenting and very straightforward, and never had any issues with a simple query or storedproc to get the data, and then do whatever I want with it.

tgreer 189 Made Her Cry Team Colleague

You've not supplied enough information. I'm not familiar with any octal-to-decimal operator, sorry.

Perhaps you could post the relevant code?

tgreer 189 Made Her Cry Team Colleague

I don't see that any of your variables are typed. Is this VB.NET? Is it loosely typed?

tgreer 189 Made Her Cry Team Colleague

Since this is a Kiosk, and you're therefore not concerned with cross-browser issues, do a web search on "execWB" for your printing issue.

tgreer 189 Made Her Cry Team Colleague

Have an "onload" function. The script would look at the document's referrer. If the documents are named in a logical way, for example "page1", "page2", then you can do a substr on the name, get the number, and tell which direction you came from.

If you're running fullscreen, then what back button are you pressing? If you have built your own navigation buttons, then you can handle this with a querystring variable.

Sulley's Boo commented: =') +2
tgreer 189 Made Her Cry Team Colleague

adnan: if there is no language barrier, please do us the favor of posting real, complete English sentences, using punctuation and capital letters where appropriate, and which don't contain non-English words such as "wud" and "n".

Thank you.

tgreer 189 Made Her Cry Team Colleague

You're quite welcome. That is a good book, though, to start with. It's a good foundation, you just have to learn the real-world lessons. Feel free to post any other questions you have.

tgreer 189 Made Her Cry Team Colleague

It's not going to post back? Yeah, that's a loaded term. He could be saying that he's testing for "IsPostBack" on Page_Load, and not seeing the value there. If that's the case:

Of course you wouldn't. Only server-controls have their values from the Form stored with them. If you're using an HTML hidden element, or a QueryString key-value pair, you need to find it's value in the REQUEST object.

Or, he could be saying he isn't going to "post" the value "back" to the server application... in which case, this isn't an ASP.NET question, it's a JavaScript/HTML question.

adnan: sorry, but you need to ask extremely clear questions. I know we probably have a language barrier, but keep trying. We all want to help. Can you share some of your code with us? Perhaps that would help.

tgreer 189 Made Her Cry Team Colleague

A web browser, regardless of which, can only communicate to a web server via an HTTP REQUEST, which come in two flavors: POST, and GET.

POST = A form.
GET = A querystring.

That's all.

A server-side language, such as ASP.NET or any other, can only generate a RESPONSE. That response can be any document for which there is a corresponding MIME type. If HTML, you can place HTML, CSS, and JavaScript in the response.

Despite all the fancy bells and whistles in ASP.NET, all it does is generate RESPONSE objects. It can do all sorts of fancy stuff along the way, but that's the final result.

There are a couple of different mechanisms for shuttling values between the client and server.

One of them is the ViewState, which on the client side is a big nasty encoded hidden input element, but on the server-side becomes an "object" with methods and properties.

The other is to use ASP.NET to create client-side scripts and place them in the RESPONSE.

campkev commented: Well put +1
tgreer 189 Made Her Cry Team Colleague

Yes, that doctype isn't complete. Read this article on doctypes.

The problem you've encountered is related to the "box model", and each browser has a different one. Consider this zen-like question: where is the "center" of an empty element? How do you align a round smiley face with the bottom of something?

You can see there are lots of ways to answer those questions, and when a browser answers them in a way we don't expect, we're puzzled.

So here are my suggestions:

  • Don't use the "background-position" attribute.
  • Don't use a background image at all in the "body" tag.
  • Do use a DIV or SPAN to contain your image.
  • Do use the CSS "position" to control that SPAN or DIV.
tgreer 189 Made Her Cry Team Colleague

According the CSS specification, it's "bottom left", not "left bottom". Try that and let us know. You can't trust IE, it will do all sorts of wild things. You actually can't trust ANY browser if you don't have a proper DOCTYPE set in your pages. You have a partial, incomplete DOCTYPE.

tgreer 189 Made Her Cry Team Colleague

JavaScript is a scripting language. It is interpreted, not compiled: there is no compiler.

tgreer 189 Made Her Cry Team Colleague

This isn't the PHP forum, and your project is a bit too involved for the casual volunteer to help out. Forums such as this are best used for very specific questions about a particular aspect of HTML/CSS/JavaScript.

tgreer 189 Made Her Cry Team Colleague

Thanks, Dani (cscgal). I'd never thought of using a hover style to swap a background. <slapping head> brilliant!

James: Yes, each LI. Instead of using a CSS class definition, you'd use a CSS "identity" definition. Give each LI element a unique ID. Have a corresponding CSS declaration, normal & hover.

tgreer 189 Made Her Cry Team Colleague

The site you reference, and the CSS-hover style, are for changing attributes the browser can actually change via CSS: fonts, colors, borders, etc.

The CSS specification/implementation doesn't allow for actually changing an image, as you seem to be asking. No "hover" or anything else you can do client-side is going to dynamically alter the "text" on your images.

You want to use old-fashioned image rollover code, if your buttons/links are going to be images.

tgreer 189 Made Her Cry Team Colleague

You can refer to the parent window via JavaScript as "opener".

However, if your JS menu simply contains/builds hyperlinks, you can still use the "target" attribute within those links, can't you?

You can also specify <base target="_parent"> within the header on the page, so that all hyperlinks go to the parent page.

tgreer 189 Made Her Cry Team Colleague

To change the innerHTML of an element, you need to use the (wait for it) "innerHTML" property of that element.

<html>
<body>

<a href="#" onclick="this.innerHTML='<strong>You changed me</strong>';"><em>Change from emphasized to strong.</em></a>

</body>
</html>

This also avoids using the out-of-date document.write() or document.writeLn() methods.

Killer_Typo commented: w00t, worked out perfectly. thanks. +3
tgreer 189 Made Her Cry Team Colleague

I would use a script that toggles a CSS style, from "display:none" to "display:inline", for example.

tgreer 189 Made Her Cry Team Colleague

Nixpix: the "SELECT" element is very versatile. When you have the size set to "1", or no size attribute at all, which defaults to "1", then the OPTION elements are displayed as a dropdownlist activated by a small "arrow" widget. You want to change the color of this arrow.

You cannot. It is rendered by each browser, and there is no CSS attribute you can apply.

tgreer 189 Made Her Cry Team Colleague

The message editor on Daniweb is part of the vBulletin forum software.

tgreer 189 Made Her Cry Team Colleague

A common mistake, trust me! Thank you for completing the thread, though. Mistakes are just as instructive as tutorials.

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

I see nothing wrong with that code. Both image tags are properly formed. As long as the images are truly located in the same folder as that page, you should see them.

You might check the permissions of each graphic, though I'm not sure what setting would prevent the graphic from being seen...

Is the site private, or can you give as a link to it?

tgreer 189 Made Her Cry Team Colleague

Without seeing the site, it's hard to tell. It sounds like you have an issue with "paths". You can have an absolute path, or a relative path. In almost all cases, you should use a relative path for your "local" files, those images and files that are part of your site.

So, step 1: do some research on "relative paths" and see if you can resolve the problem. If not,

step 2: respond with either a link to your site, or a very small snippet of your code, something with one of the failing images or links in it.

Web development is a lot of fun, I think. Welcome to the site and to the world of web development.

tgreer 189 Made Her Cry Team Colleague

There is no "sleep" or "wait" operator in JavaScript. You can set a timer, though, and when the timer expires, it will execute a function.

setTimeout("alert('hello')",1250);

You could have it wait so many milliseconds, and then execute an empty procedure, I suppose.

tgreer 189 Made Her Cry Team Colleague

If you ask a meaningful question, you'll get useful information. Your question is way too general for anyone to give a meaningful answer.

Are you coding in C#, VB.NET, or another .NET language? Do you know about the "Web.Mail" class? I assume you've already done extensive web searches, found articles such as this one on "How to POP3 in C#", which you find lacking for some reason. Why?

How much code have you already written? Does it work? What error message are you getting?

tgreer 189 Made Her Cry Team Colleague

Well, that's my point: the "meta refresh" tag is a solution to a specific problem, which has nothing to do with WML vs. HTML or converting from one to the other. Marking this thread "solved" would mislead someone who actually needed help converting WML to HTML.

I'm glad you solved your problem, but your problem had nothing to do with the question you asked.

tgreer 189 Made Her Cry Team Colleague

Please don't bump old threads which have nothing to do with your question.

tgreer 189 Made Her Cry Team Colleague

I'm willing to admit I have a comprehension problem. Since the dropdownlist automatically expands, in both IE and FF, to the length of the longest value, I do not comprehend how you're having a problem.

The VB code wouldn't help, since we're discussing a web application, correct? VB isn't a web development language, so how it builds dropdownlists isn't relevant. You can post your HTML, but that won't help much either: I know how HTML behaves.

You haven't answered some initial questions, such as "what browser are you using", so I doubt I can help you further.

tgreer 189 Made Her Cry Team Colleague

This article discusses the nuances of dynamic controls.

tgreer 189 Made Her Cry Team Colleague

This is a server-side operation. Please ask the question in the forum for whatever server-side language you use.

tgreer 189 Made Her Cry Team Colleague

This isn't a WML-to-HTML conversion question, though. Redirects and login authentication are done via server-side programming.

tgreer 189 Made Her Cry Team Colleague

Could you please use real punctuation? No sentence structure I've ever seen requires a "..?" at the end of it.

I don't understand your question. Users navigate from one page to another by clicking on hyperlinks.

tgreer 189 Made Her Cry Team Colleague

What isn't clear is if the poster is asking how to write an existing MP3 into a database, as a BLOB, or if the question is how to actually encode/create an MP3, presumably from an audio source.

The incoherent l33t blather of the next post further degrades the thread: trying to answer threads like this is like trying to conduct complex diplomatic negotiations using finger paint, pidgin, and smoke signals.

tgreer 189 Made Her Cry Team Colleague

WML uses essentially the same tags as HTML. You would basically convert the <wml> to <html> , and <card> to <div> .

You would combine the "anchor" and "go" tags to a single <a> tag, and so on. A few simple "search & replaces" with a good text editor is all you need.

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

Ah, VB.NET. Sorry, I code in C#, so immediately things look sloppy to me: no parantheses after your method calls, no line termination marks... but that might be normal in VB.NET, I don't know.

Perhaps someone who knows/uses VB can step in... but the concept looks fine. What does or doesn't work?

tgreer 189 Made Her Cry Team Colleague

well like, dude, u no, it's kewl, watever u wanna du

That is so annoying! When did the English "I" and "you" become "i" and "u"? "Wanna" isn't a word once you're past the age of about 3. I'm so tired of responding to posts full of what amounts to baby talk. And I don't work on a ranch, so please don't call me "dude".

Which browser are you using? Both FireFox and IE will expand the size of the "select" to match the longest "option", by default. So, I'm not sure how you generated that screenshot.

However, you can style the select to make it any size you like. Simply add a CSS style attribute to the select tag:

<select style="width:250px;">
<option>short option</option>
<option>A much longer option which will be truncated in the 'select' because the select is styled to 250pixels</option>
</select>
tgreer 189 Made Her Cry Team Colleague

The various "document.write()" methods are deprecated, and will not work in all doctypes.

tgreer 189 Made Her Cry Team Colleague

Research the "background-image" and "background-repeat" CSS declarations.

Edit: sorry, I see you are using background-image . But "background-repeat" is likely what you want instead of float/clear.

tgreer 189 Made Her Cry Team Colleague

Your message is very hard to read, because of the writing style. I don't get a clear picture of what you're trying to do. You want a script that will write/run another script based on the date?

The proper way to do that would be to have a single script which defines various functions. You call the function you want to run, based on the date. There is no need to "write" anything dynamically.