Forum: JavaScript / DHTML / AJAX Sep 11th, 2008 |
| Replies: 4 Views: 781 To me, Javascript/HTML/CSS animation always feels like an ugly hack: sure there are libraries available to assist with the lack of any built-in support for graphics*; but then there are libraries to... |
Forum: JavaScript / DHTML / AJAX Jun 27th, 2008 |
| Replies: 24 Views: 46,331 In my comment about the document being on a server; I'm pointing at the sillyness you also note in the W3C's wording: that of an implied concept of a browser 'removing' a document from some kind of... |
Forum: JavaScript / DHTML / AJAX Jun 26th, 2008 |
| Replies: 24 Views: 46,331 Really not nonsense, There's nothing in standard HTML + JS that mandates the existance of a _window_ let alone an event when it closes. Each browser handles its idea of a 'window' in a different way.... |
Forum: JavaScript / DHTML / AJAX Apr 15th, 2008 |
| Replies: 24 Views: 8,253 The first meta tag in that page is in the wrong place... move it to be inside the head section. Try validating the code aswel, correct any errors and see if it still has a problem. |
Forum: JavaScript / DHTML / AJAX Mar 2nd, 2008 |
| Replies: 4 Views: 3,079 Initially, the click handlers for all objects are assigned to the size change function. When you click an object for the first time, the size is changed, and the click handler for that object is... |
Forum: JavaScript / DHTML / AJAX Feb 29th, 2008 |
| Replies: 4 Views: 3,079 Right.. not entirely sure what you're after; I can't work out which you want:
1: The first 'click' to perform 'sizeChange' and the next click to perform 'sizeRestore' ( and then to repeat for... |
Forum: JavaScript / DHTML / AJAX Feb 27th, 2008 |
| Replies: 11 Views: 4,707 Alternatively, try this trick, if you don't mind presetting the available colors ( in a way, it's better because those colours can be defined in the CSS ). This works by dynamically changing the... |
Forum: JavaScript / DHTML / AJAX Jan 26th, 2008 |
| Replies: 3 Views: 2,045 Using the Javascript XmlHttpRequest object ( all common modern browsers have it, although it sometimes has a different name ), you can issue a HTTP request to any page or program on your server, and... |
Forum: JavaScript / DHTML / AJAX Sep 11th, 2007 |
| Replies: 13 Views: 21,209 >>I guess this is one of those choices the OP would have to make based on his requirements.
Pretty much.
>> But in return of all this you get flexibility, the ability to change the logic... |
Forum: JavaScript / DHTML / AJAX Sep 11th, 2007 |
| Replies: 13 Views: 21,209 If all the functions are equal with equal parameters, or equal ( or derivable ) functions where the parameters can be easily derived programatically per link, i.e. via setting some dummy property on... |
Forum: JavaScript / DHTML / AJAX Sep 11th, 2007 |
| Replies: 13 Views: 21,209 Ah yep, I get it. Hm.. thinking about it though.. Fungus1487; you could save a bit of transmission bandwidth with 6000 links involved, if you onclick="return some_function()" and make sure... |
Forum: JavaScript / DHTML / AJAX Sep 11th, 2007 |
| Replies: 13 Views: 21,209 If you mean directly in the href attribute of an anchor element; href isn't an event handler.. so that smells worse to me.
I guess the event chain for a user click on an <a> element is something... |
Forum: JavaScript / DHTML / AJAX Sep 11th, 2007 |
| Replies: 13 Views: 21,209 Try: <a href="#" onclick="some_function( );return false;" /> I haven't tested it, but, it's advocated here: http://blog.reindel.com/2006/08/11/a-hrefjavascriptvoid0-avoid-the-void/, and it makes... |
Forum: JavaScript / DHTML / AJAX Jul 28th, 2007 |
| Replies: 24 Views: 46,331 Heh. I read that article and comments before making the post.. I'm firmly on the "it's not a bug" side of the fence, although it may or may not be a misinterpretation of the specification, which is... |
Forum: JavaScript / DHTML / AJAX Jul 28th, 2007 |
| Replies: 24 Views: 46,331 The standard doesn't well indicate whether onunload should be called when a browser window is closed, or if the browser is closed, or when the page is changed. It says:
W3C Event Model... |
Forum: JavaScript / DHTML / AJAX Jun 23rd, 2007 |
| Replies: 14 Views: 4,082 Go back to using
document.getElementById('a2z:saveMessage')
and ignore what I said about not using the a2z:, I didn't realise that your serverside application would prefix that to the element's... |
Forum: JavaScript / DHTML / AJAX Jun 23rd, 2007 |
| Replies: 14 Views: 4,082 I'm assuming, not knowing JSF atall, that you're trying to refer to some element created by this line...
<h:inputHidden id="saveMessage" value="#{addEditController.successfulSave}"/>
and,... |
Forum: JavaScript / DHTML / AJAX Jun 11th, 2007 |
| Replies: 4 Views: 2,644 Use the code given by stymiee; also, take the <SCRIPT Language="Javascript"> and </SCRIPT> tags out of the .js file... they are not needed in this case. |
Forum: JavaScript / DHTML / AJAX Feb 26th, 2007 |
| Replies: 8 Views: 1,638 That's not JavaScript, it's VBScript.
it also looks like that should be executed on an ASP page (server application/script), rather than as client side script.
For client-side scripts, you do... |
Forum: JavaScript / DHTML / AJAX Feb 25th, 2007 |
| Replies: 8 Views: 1,638 What code are you actually executing? Perhaps there is an error in your code somewhere, or perhaps you're not calling the code at the right time/atall.
This site can be useful; it's certainly very... |
Forum: JavaScript / DHTML / AJAX Feb 25th, 2007 |
| Replies: 8 Views: 1,638 No.
You don't need two opening tags.
Either:
<script type="text/javascript" language="javascript">
blah, blah, blah, blah
</script> |
Forum: JavaScript / DHTML / AJAX Jan 30th, 2007 |
| Replies: 7 Views: 2,515 Eek. Be careful that you check that the page still looks ok on all of your target browsers.
Try and look for a document type that doesn't cause ill effects but is still standardised, perhaps one... |
Forum: JavaScript / DHTML / AJAX Jan 30th, 2007 |
| Replies: 7 Views: 2,515 Probably; delete it from the top of the page and see what happens :mrgreen:
Personally, I'd try and work around it rather than remove it. If you set the body height to something like 1400 pixels... |
Forum: JavaScript / DHTML / AJAX Jan 30th, 2007 |
| Replies: 7 Views: 2,515 The entirely grey background works how you want in opera (although the images appear too high on the page to be seen properly). The background is short in Firefox 2, but the image appears in the... |
Forum: JavaScript / DHTML / AJAX Jan 10th, 2007 |
| Replies: 13 Views: 6,896 Using the target _blank attribute on a hyperlinked anchor tag is generally more likely to get past popup blockers...
That's not so good because you can't control the spawned window's size... |
Forum: JavaScript / DHTML / AJAX Oct 30th, 2006 |
| Replies: 19 Views: 19,733 ah, you got me there, but the ramifactions are a consideration; however small.
it's not just doctype aswell, different browsers need to be considered regardless of doctype..... |
Forum: JavaScript / DHTML / AJAX Oct 30th, 2006 |
| Replies: 19 Views: 19,733 nope, not with my doctype anyway (transitional)
yerp, there is. it seems the action is taken from the first form.
i didn't use any absolute positioning in the end, i let the button in... |
Forum: JavaScript / DHTML / AJAX Oct 28th, 2006 |
| Replies: 19 Views: 19,733 is that not JS though?
EDIT: infact, it's not just JS, it's erroneous JS, should be
onmouseup="window.location='somepage.htm'" |
Forum: JavaScript / DHTML / AJAX Oct 28th, 2006 |
| Replies: 19 Views: 19,733 you can hyperlink the entire contents of a div... put an enormous image inside it, set the overflow to hidden, and hyperlink the image :P
i have a q, i was gonna start a thread but this is close... |