Forum: JavaScript / DHTML / AJAX Nov 19th, 2006 |
| Replies: 4 Views: 11,327 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 4th, 2006 |
| Replies: 10 Views: 3,911 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,911 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,911 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 Oct 30th, 2006 |
| Replies: 19 Views: 19,478 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,478 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,478 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 13th, 2006 |
| Replies: 4 Views: 12,503 There is no such thing as a combobox in HTML. Are you posting in the correct forum? |
Forum: JavaScript / DHTML / AJAX Jun 8th, 2006 |
| Replies: 2 Views: 4,455 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. |
Forum: JavaScript / DHTML / AJAX Jun 8th, 2006 |
| Replies: 2 Views: 4,068 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... |
Forum: JavaScript / DHTML / AJAX May 8th, 2006 |
| Replies: 6 Views: 1,934 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... |
Forum: JavaScript / DHTML / AJAX May 8th, 2006 |
| Replies: 6 Views: 1,934 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. |
Forum: JavaScript / DHTML / AJAX May 8th, 2006 |
| Replies: 6 Views: 1,934 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... |
Forum: JavaScript / DHTML / AJAX May 6th, 2006 |
| Replies: 9 Views: 11,983 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:... |
Forum: JavaScript / DHTML / AJAX May 6th, 2006 |
| Replies: 9 Views: 11,983 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,... |
Forum: JavaScript / DHTML / AJAX May 6th, 2006 |
| Replies: 9 Views: 11,983 Look at the "overflow" attribute.
The trick is handling how content that is bigger than its container is handled, not vice-versa. |
Forum: JavaScript / DHTML / AJAX May 1st, 2006 |
| Replies: 9 Views: 4,919 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... |
Forum: JavaScript / DHTML / AJAX May 1st, 2006 |
| Replies: 9 Views: 4,919 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. |
Forum: JavaScript / DHTML / AJAX May 1st, 2006 |
| Replies: 9 Views: 4,919 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:
... |
Forum: JavaScript / DHTML / AJAX May 1st, 2006 |
| Replies: 9 Views: 4,919 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... |
Forum: JavaScript / DHTML / AJAX Mar 29th, 2006 |
| Replies: 6 Views: 2,602 We're venturing off into another discussion. I don't know the particulars of the OP's environment or application, but in general, I say "hands off" on anything that is in the User Model. This... |
Forum: JavaScript / DHTML / AJAX Mar 28th, 2006 |
| Replies: 6 Views: 2,602 Wait... I know IE provides an "oncontextmenu" event handler. I'm not sure about FireFox.
You could code that in the body, as so:
<body oncontextmenu="return false;">
However, this is where I... |
Forum: JavaScript / DHTML / AJAX Mar 28th, 2006 |
| Replies: 6 Views: 2,602 I think you'll have to code to the Event object, which has cross-browser issues. But the Event object is created when any event occurs, and you might be able to tell if a click was a left or a right... |
Forum: JavaScript / DHTML / AJAX Nov 26th, 2005 |
| Replies: 10 Views: 6,437 ...but it did work for me, IE and FireFox. |
Forum: JavaScript / DHTML / AJAX Jul 11th, 2005 |
| Replies: 7 Views: 7,725 Please post your question in a new thread. |
Forum: JavaScript / DHTML / AJAX Jul 6th, 2005 |
| Replies: 10 Views: 34,125 Make sure you use "Form1" instead of "myForm", for one thing. I don't see why you need two buttons. Or, why you need to set a Session variable. But that's all beside the point: it's saying it doesn't... |
Forum: JavaScript / DHTML / AJAX Jul 6th, 2005 |
| Replies: 10 Views: 34,125 Your error is because, in ASP.NET-world, the "onclick" attribute points to SERVER code. So the compiler is looking for a "printMe()" method in your code-behind page. In a way, then, yes - it's... |
Forum: JavaScript / DHTML / AJAX Jul 6th, 2005 |
| Replies: 10 Views: 34,125 First, your print button can be an ASP.NET Web Server control, or not. Thinking it over, it might be good to use one, since then you can run both client and server-side code for it.
Let's talk... |
Forum: JavaScript / DHTML / AJAX Jul 5th, 2005 |
| Replies: 7 Views: 7,725 Did that answer your question? Any feedback? |
Forum: JavaScript / DHTML / AJAX Jul 1st, 2005 |
| Replies: 7 Views: 7,725 Ok, this is very rudimentary, but consider this page:
<html>
<head>
<script type="text/javascript">
function parseState()
{
var q = unescape(location.search);
q = q.substring(7,... |
Forum: JavaScript / DHTML / AJAX Jun 30th, 2005 |
| Replies: 7 Views: 7,725 I would append a querystring, containing the value of the previously selected state. Then, author an onload script that checked for the querystring value, and make that the selected option in the... |
Forum: JavaScript / DHTML / AJAX Jun 13th, 2005 |
| Replies: 20 Views: 43,212 That's only the case with locally loaded HTML files. Once you publish to a website, your users will not get that message. |
Forum: JavaScript / DHTML / AJAX Jun 7th, 2005 |
| Replies: 5 Views: 15,080 Yes, you're correct. It is much slower in FireFox. I'm running Windows XP, SP2, English.
If you can strip down a sample page that includes ONLY your news scroller, and post it here, I will do what... |
Forum: JavaScript / DHTML / AJAX Jun 7th, 2005 |
| Replies: 5 Views: 15,080 This probably isn't a JavaScript problem. It could be a problem on your machine. Does anyone else experience the problem on your site? |
Forum: JavaScript / DHTML / AJAX Apr 26th, 2005 |
| Replies: 20 Views: 43,212 I think you'll need some server side code. Something that looks at a timestamp, a rolling counter, a database value, something... and automatically authors the appropriate image tag. Right now, I... |