888 Posted Topics
Re: I moved to Web Hosting, Server configuration. Your question isn't a scripting question, and I think the folks most qualifed to answer the question will be in this forum instead. | |
I've often wanted a true blog/forum hybrid. I know exactly what I want, until I try to describe it! I think I basically want a forum, but one that doesn't look so rigidly structured as a forum. Also, I want something a bit more user-oriented, than topic-oriented. I'd like a … | |
Re: Troy is absolutely correct. From your code posting, I can see that your server-side language is JSP. JavaScript is client-side. There is nothing you can do CLIENT-SIDE to build an array from data that exists on the SERVER. Therefore I'm moving this thread to the JSP forum. I wish you … | |
Re: "Layer" is not a standard term for web development. If you're referring to a div element, you should use the term "div" or "block-level element". How are you positioning the element? Via CSS? Or with JavaScript? | |
Re: Yep. That site is mal-formed. The "txt" extension has been given to a sound file. Firefox simply prompts you to open the file or save it. | |
Re: Since you're learning, which is fantastic, I won't give you a complete answer. I think you should research "Regular Expressions", often referred to as "regex". | |
Re: What is a "hover box"? When you say you "want it to go to another URL", what is the "it"? What's wrong with a standard hyperlink? | |
Re: This probably isn't a JavaScript problem. It could be a problem on your machine. Does anyone else experience the problem on your site? | |
Re: If you have a programming question, I could probably help. If you want a premade menu script, there are lots of them out there. The Google Ads associated with this thread might be a good place to start. | |
Re: What doctype are you using? Without a doctype, you'll have different behaviors in different browsers. Try adding "margin: auto;" to your div's inline style declaration. | |
Re: You can do this with a Server Side Include (SSI). The syntax depends upon what server you are running. Is the site run with ISS, Apache? Does the server support PHP, ASP, or what? A purely "client-side" technique is to write the content of that section of each page via … | |
Re: You return a SqlDataReader as the result of the .ExecuteReader() method of the Command object: [code] SqlConnection myConnection = new SqlConnection(myConnectionString); SqlCommand myCommand = new SqlCommand(mySelectQuery, myConnection); myConnection.Open(); SqlDataReader myReader = myCommand.ExecuteReader(CommandBehavior.CloseConnection); while(myReader.Read()) { Console.WriteLine(myReader.GetString(0)); } myReader.Close(); //Implicitly closes the connection because CommandBehavior.CloseConnection was specified. [/code] | |
At my various jobs, I've always introduced what I call the "dot game" to my team. Start by placing three dots on a whiteboard (or paper, of course). Draw a line between any two dots. Place a new dot anywhere on the line. A dot can only have three lines … | |
Re: So this is a web app then, correct? Then the files should be in a folder accesible to the web app, not the root of your server. Do you need help using StreamReader, then? | |
Re: It's just "print()". You can get PHP hosting affordably. Lots of options. I use a company called "ShinySolutions": [url]http://www.shinysolutions.com[/url] | |
Re: Can you use the "RegisterClientScriptBlock()" method, instead? | |
Re: What is a "lacation reading"? I find it difficult to visualize your scenario. Can you post a link to the site? | |
Re: The quintessential example of CSS menus is the "suckerfish dropdowns". Note that a "dropdown" is equivalent to a "flyout", I think. If you do a web search for "suckerfish dropdowns", you'll find everything you need. If not, just post questions to this thread and we'll work it out. | |
Re: ViewState can be very tricky. Try using a Session state variable for this, or, the tried-and-true method of writing a cookie instead. | |
Re: I'm sorry this went unanswered, I hoped someone else would chime in. Without server-side coding, the only suggestion I have is to setup a mail group in your mail server. Your form submits to one email address, and your mail server then distributes to the group. | |
Re: Create your own 404 page: [url]http://www.4guysfromrolla.com/webtech/061499-1.shtml[/url] [url]http://www.thesitewizard.com/archive/custom404.shtml[/url] [url]http://www.highcontext.com/Articles/howto/404.php[/url] | |
Re: That would violate the browser security model. Browsers are not supposed to author files on a user's system. The exception that has been provided is the cookie mechanism. Even if you use StringBuilder to build a "file"... what are you going to do with it? You have to render something … | |
Re: The problem with xhmtl, css, and height, is that percentage heights refer to the percetange of the containing element. The parent element is "body". So, you have to give the body tag a height of 100%, as well as all child tags. | |
Re: I would take a different approach. I would GENERATE the CSS from values stored in a database. Allow the users to modify these values, not by editing the CSS, which most users won't be skilled enough to do, but rather by presenting a standard data-entry form. If you want to … | |
Re: The typical way to do this is to create all the controls you need in the original document. You set the CSS Visibility property to "hidden" for the controls you don't want to show. Then, code for some event (like a button click). The event handler would set the visibility … | |
Re: Create an array. Store the ID of the DIVs into that array when the user makes them visible. Each time they click a link to make a div visible, iterate through the array, toggling all the other divs. | |
Re: On a large system I helped develop, we had this issue. Customers could order various products for print, and see a real-time PDF of the customized product before they ordered. Each product could have a custom form, and each form element could have custom validation. We didn't find any shortcuts! … | |
Re: I don't... that's what scrollbars are for! I know you want an actual answer, not a lecture. Look at the "scrollTo" method, that should get you started. However, consider that you are replicating a function that already exists and that users expect. When you take away something that a user … | |
Re: What have you tried? Multiplying by "100" would appear to me to be the first step. | |
Re: I noticed this was unanswered. Speaking only for myself, I don't understand some of your terminology. I don't understand, when you speak of "arrays", whether you mean ASP arrays, JS arrays, or what. Can you post some sample code? Or just describe in plain English what you're trying to do? | |
Re: The exact formula isn't published. But it isn't links from your site, it's links TO your site, that count. And those links are also weighted by the "rank" of the page linking to you. If you can get MicroSoft to link to you, for example, that link would be "worth" … | |
Let's see if I can completely strike-out, with a third unanswered post: I would like to know how to store binary data in the app.config file for a C# application. These are basically text strings, but they do include one or two "binary" characters, such as decimal 12. I need … | |
Re: Since you asked for a "site", I suggest doing a web search for "suckerfish dropdowns". | |
Since nobody answered the thread on Binary File IO, I took a different approach. Now I'm having another problem. As I process a very large (>2GB) binary file, I store the byte position at certain points. Then, I reposition the file as needed. I store the byte positions in a … | |
Re: I would suggest using a control that supports custom paging, but that wouldn't help in your environment. I would have a loop, reading your products out of a database. Write pure HTML out to a file. Use a counter, when your loop iterates through a given number of products, close … | |
Re: It's going to be difficult to help you with a coding issue if you don't write code! Part of the issue is determining what, exactly, you want to "hover over". If you want to hover over an image or a hyperlink, then the basic is to supply the "alt" attribute. … | |
Re: Hmm. Hard to answer without seeing the code and pages. My guess, and it's just a guess, is that CSS is positioning the various elements, so digging though the code-behind pages won't help you. | |
A software vendor has expressed interest in sponsoring my site. They asked me to author a marketing proposal. Basically, I would run their banner in selected spots, as well as let them send out mailings to my site members who have opted-in. This in exchange for a set montly fee … | |
Re: Or, the "web" domain can simply connect to the database on the other server. Nothing fancy, just a basic connection string. | |
Re: That's a very bad idea. A user could craft any statement they like? They could wipe out the entire database. Your question is a bit too general to give a meaningful answer. Give them a textarea, and pass in what they type as the value of the CommandText property. | |
| |
Re: [url]www.w3.org[/url]. They have validators and badges you can post on your site. | |
Re: Dare I say it. I like the layout. I'm not a big fan of the color scheme. I'm typing this reply in a 3-toned pastel purple box. I have the faint taste of grape Bubblicious bubblegum in my mouth. I have the urge to draw a unicorn, and change all … | |
Re: With JavaScript? You have to build a querystring. | |
Re: I have a thorough article on my site dealing with the thorny topic of dynamic controls: [url]http://www.tgreer.com/aspnet_html_04.html[/url] Let me know if it helps. | |
Re: I'm having difficulty understanding the question. What attempts have you made so far to write this script? If you want to capture the mouse movement and have it fire a JavaScript function, you'll have to use browser-specific code: [code] // id browsers var iex=(document.all); var nav=(document.layers); var old=(navigator.appName=="Netscape" && !document.layers … | |
Re: C#. The syntax is much cleaner and "obvious" than VB.NET. | |
Re: You need to empty the current selection range. [code] function addtb() { document.selection.empty(); document.getElementById("TextEditor").focus(); cmd = 'InsertInputText'; document.getElementById('TextEditor').document.execCommand(cmd,'true'); var TE = document.getElementById('TextEditor'); var TEcn=TE.children; for (i=0;i<TEcn.length;i++) { n++; if(TEcn[i].id == "") TEcn[i].id = "tb" + n; } } [/code] | |
Re: Just my $0.02 worth to the conversation... I know this might sound arrogant, but I feel that providing quality content through good posts is my contribution to a forum. I don't mind ads, in fact, I vigorously support them, as long as they are professional and don't get in the … | |
Re: As another idea, look at the DOM properties for "screen.width" and "screen.height". Based upon those, you could use JavaScript to change the size of your window. The content should be structured either to resize automatically (use percentages, floats, etc. for your elements' size and position), or to stay centered. |
The End.