Forum: JavaScript / DHTML / AJAX Nov 21st, 2006 |
| Replies: 2 Views: 4,165 JavaScript is not well-suited to this task. You need to use a server-side language to render the style sheet link dynamically. |
Forum: JavaScript / DHTML / AJAX Nov 19th, 2006 |
| Replies: 4 Views: 11,425 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,... |
Forum: JavaScript / DHTML / AJAX Nov 14th, 2006 |
| Replies: 8 Views: 2,007 |
Forum: JavaScript / DHTML / AJAX Nov 14th, 2006 |
| Replies: 8 Views: 2,007 FireFox is a standards-compliant browser. So if your page doesn't look correct in FireFox, then chances are your page isn't coded correctly. Start with a proper, complete DOCTYPE (yours isn't... |
Forum: JavaScript / DHTML / AJAX Nov 14th, 2006 |
| Replies: 8 Views: 2,007 This line of code in your page:
<a href="http://www.grafex.co.uk/" style="border-left: 1px solid black">Home</a>
Note the style, it seems pretty on-point to your problem. You should also note... |
Forum: JavaScript / DHTML / AJAX Nov 14th, 2006 |
| Replies: 8 Views: 2,007 If you're using a script someone else wrote, the best place to seek support is to ask the author.
What is a ".dwt" file? My browser didn't recognize it. Please revise the link to your page.... |
Forum: JavaScript / DHTML / AJAX Nov 14th, 2006 |
| Replies: 14 Views: 18,787 What does that have to do with scrollbars, Matt? |
Forum: JavaScript / DHTML / AJAX Nov 13th, 2006 |
| Replies: 14 Views: 18,787 All of the above post is related to events generated by the scrollbar. They won't help you "position it".
In your example, the image is likely in an IFRAME. The scrollbar is attached to the frame,... |
Forum: JavaScript / DHTML / AJAX Nov 13th, 2006 |
| Replies: 14 Views: 18,787 You cannot control the position of the scrollbars. |
Forum: JavaScript / DHTML / AJAX Nov 10th, 2006 |
| Replies: 5 Views: 1,577 I won't say it's impossible. But I've never seen it done, and haven't seen any examples, ever. The "hooks" to create and render CSS classes simply don't exist in the DOM. There is nothing to script.... |
Forum: JavaScript / DHTML / AJAX Nov 9th, 2006 |
| Replies: 10 Views: 3,722 Research the target attribute of the HREF element. |
Forum: JavaScript / DHTML / AJAX Nov 9th, 2006 |
| Replies: 5 Views: 1,577 I don't understand the question. Creating new CSS definitions would require that 1) you become a member of the appropriate W3C working committee, 2) fully develop the specification, 3) work with... |
Forum: JavaScript / DHTML / AJAX Nov 8th, 2006 |
| Replies: 3 Views: 2,978 Sorry. The way the web works is simple:
1. Create a page, using HTML, HTML forms, and whatever JavaScript and/or CSS is needed to perform client-side functions.
2. Create a server-side program,... |
Forum: JavaScript / DHTML / AJAX Nov 7th, 2006 |
| Replies: 3 Views: 3,583 Research the CSS "visible" property. |
Forum: JavaScript / DHTML / AJAX Nov 7th, 2006 |
| Replies: 4 Views: 12,305 These are called "progress bars", and they really can't be accurate. There is no way to pre-determine how long a page will take to load on any particular client browser. Also, browsers wait until the... |
Forum: JavaScript / DHTML / AJAX Nov 5th, 2006 |
| Replies: 2 Views: 6,077 Research the JavaScript "scrollto" functions. I've moved this thread to the proper forum. |
Forum: JavaScript / DHTML / AJAX Nov 5th, 2006 |
| Replies: 10 Views: 3,925 Well, think of it this way: how "big" is the head section of your page? A page contains a head, and a body. Does the head have a size? Can it be positioned, or have a border around it? No. Some... |
Forum: JavaScript / DHTML / AJAX Nov 4th, 2006 |
| Replies: 10 Views: 3,925 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... |
Forum: JavaScript / DHTML / AJAX Nov 4th, 2006 |
| Replies: 10 Views: 3,925 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... |
Forum: JavaScript / DHTML / AJAX Nov 4th, 2006 |
| Replies: 10 Views: 3,925 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. |
Forum: JavaScript / DHTML / AJAX Nov 3rd, 2006 |
| Replies: 5 Views: 3,790 Re-read my post. PHP is server-side code. JavaScript is client-side code. You cannot write PHP that will run on the client in response to a JavaScript onChange event. I don't know what "embedded... |
Forum: JavaScript / DHTML / AJAX Nov 2nd, 2006 |
| Replies: 28 Views: 27,017 Again, start simple, as I've shown. Then add styles, as needed. All positions follow the box model, and cascade (Thus "Cascading" Style Sheets).
Continuing my example:
<!DOCTYPE html PUBLIC... |
Forum: JavaScript / DHTML / AJAX Nov 2nd, 2006 |
| Replies: 28 Views: 27,017 No, you cannot, as there is no such thing as "layers" in HTML, or XHTML. Plus, CSS cannot assign "divs" to anything at all. A DIV is an element, and CSS can apply styles to a DIV, but it cannot... |
Forum: JavaScript / DHTML / AJAX Nov 2nd, 2006 |
| Replies: 28 Views: 27,017 Sorry, I don't use/know Dreamweaver. I code all my HTML, CSS, and JavaScript in a text editor. Note that the term "layer" refers to an older, proprietary Netscape-only tag/element. There is no such... |
Forum: JavaScript / DHTML / AJAX Nov 2nd, 2006 |
| Replies: 28 Views: 27,017 You don't have to do anything special to any "contained" block-level elements (divs). They will automatically adjust to changes to the containing element. You can't assign an "align" property to a... |
Forum: JavaScript / DHTML / AJAX Nov 2nd, 2006 |
| Replies: 28 Views: 27,017 Yes. Ok, so you're using XHTML. Tell me again (so I don't have to re-read the entire thread), what you're trying to achieve? There is no "center" attribute in XHTML. To do horizontal centering, you... |
Forum: JavaScript / DHTML / AJAX Nov 2nd, 2006 |
| Replies: 28 Views: 27,017 No. "Doctype" is short for "Document Type", and specifies to the browser the HTML/XHTML version your page is using. Until you know about doctypes and the various underlying DOMs they represent,... |
Forum: JavaScript / DHTML / AJAX Nov 2nd, 2006 |
| Replies: 28 Views: 27,017 In all of this discussion, "doctype" hasn't been mentioned. It is impossible to tell you what HTML/CSS code to use if we don't know which version of HTML/CSS you're using. |
Forum: JavaScript / DHTML / AJAX Nov 2nd, 2006 |
| Replies: 5 Views: 3,790 Client vs. Server. The only thing that will "activate" PHP code is a server request. There are two types of server request, GET, and POST. GET requests happen by typing in a URL or clicking a link.... |
Forum: JavaScript / DHTML / AJAX Oct 31st, 2006 |
| Replies: 2 Views: 1,280 You don't have a "name" attribute for your form tag. However, depending on the doctype you're using, you may want to switch to standard DOM methods, such as document.getElementById(), which will... |
Forum: JavaScript / DHTML / AJAX Oct 30th, 2006 |
| Replies: 1 Views: 3,548 A combination of CSS and JavaScript. I'll leave you the joy of researching this on your own, with just a few guiding hints: imagine that your FAQ Answers are within DIV elements. Investigate the... |
Forum: JavaScript / DHTML / AJAX Oct 30th, 2006 |
| Replies: 19 Views: 19,645 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... |
Forum: JavaScript / DHTML / AJAX Oct 30th, 2006 |
| Replies: 19 Views: 19,645 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... |
Forum: JavaScript / DHTML / AJAX Oct 30th, 2006 |
| Replies: 19 Views: 19,645 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,... |
Forum: JavaScript / DHTML / AJAX Oct 27th, 2006 |
| Replies: 7 Views: 2,552 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... |
Forum: JavaScript / DHTML / AJAX Oct 27th, 2006 |
| Replies: 2 Views: 2,368 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... |
Forum: JavaScript / DHTML / AJAX Oct 23rd, 2006 |
| Replies: 10 Views: 3,722 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... |
Forum: JavaScript / DHTML / AJAX Oct 21st, 2006 |
| Replies: 6 Views: 19,935 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. |
Forum: JavaScript / DHTML / AJAX Oct 21st, 2006 |
| Replies: 2 Views: 4,424 A simple web search for the phrase "JavaScript make homepage" turned up plenty of information on the topic. |
Forum: JavaScript / DHTML / AJAX Oct 14th, 2006 |
| Replies: 11 Views: 16,369 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... |