Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: jtaal
  • Order by date
  1. jtaal

    Object copying

    This is awesome, working around javascripts reference copying. Do you know if the same behaviour goes for the Array () object?
  2. jtaal

    Object copying

    Could i try something with a recursive (?) function that copies with a special copy if the type is an Object and normal copy else? Does an Array has the same behaviour???
  3. jtaal

    Object copying

    <script language="javascript"> function constr () { this.value = Object (); this.value.val = 'oldval'; this.someotherval = 'xxx'; } function realCopy(o) { var tmp = new Object(); for (p in o) tmp[p] = o[p]; return tmp; } var obj = new constr ()...
  4. jtaal

    Object copying

    I already thought of this. The only problem is that I hav recursive objects and i want them to be copyed (not reffed) as well. I don't think this will work for my application.
  5. jtaal

    Netscape/IE Problem

    in Mozilla (NS) events are called in a different way. The first parameter of an on... function has the event object, while IE has a (sortof) global event object. use some what like this: function fixEvent(evnt) { if (typeof(evnt) == "undefined") evnt = window.event; if (typeof(evnt.layerX)...
  6. jtaal

    Object copying

    Hi all, Is there a way to make the following script work as i would expect it to? <script language="javascript"> function constr () { this.value = 'oldval'; this.someotherval = 'xxx'; } var obj = new constr (); obj.someotherval ='yyy'; var obj2 = obj; obj2.value = 'newval'...
  7. jtaal

    available width &amp; height

    this is what i finally found :) var x,y; if (self.innerHeight) // all except Explorer { x = self.innerWidth; y = self.innerHeight; } else if (document.documentElement && document.documentElement.clientHeight) // Explorer 6 Strict Mode { x = document.documentElement.clientWidth; y =...
  8. jtaal

    available width &amp; height

    How do i find out the available width and height of a browser window. I checked out some docs and it said window.innerHeight and window.innerWidth. But: when i do alert (window.innerHeight); using IE 6.0 it says 'undefined' while using Mozilla 1.6 it gives me a reasonable 698... i also checked...
  9. jtaal

    Javascript Loggin

    Hi all, Does anyone know a good way to 'log' javascript activity. Preferably to a file, but something like a separate window or something is just fine.
  10. jtaal

    IE stange rendering:fishy stuff

    I have 2 pieces of html: <body> <form style=&quot;border: 1px solid gray;&quot;> <br> <br> some text 1<br><br> </form> some text 2 </body> the other one <body> <form style=&quot;border: 1px solid gray;&quot;> <br> <br> some text 1<br> </form> some text 2 </body> Obviously the difference is...
  11. jtaal

    Ignore additional events

    shouldn't you try to use return false instead of just return???
  12. jtaal

    IE gives error when writing innerHTML property

    This is actually precisely what i was looking for!!! Tnhx alot
  13. jtaal

    IE gives error when writing innerHTML property

    Is that function crossbrowser/platform indepentent???
  14. jtaal

    IE gives error when writing innerHTML property

    I knew i was right, this means i have to rearrange my whole structure :( My tables don't know how much cols there are gonna be, and if i don't know that i can't create the td's before i fill them. The major downside to this is that i'll want a colspan somewhere along some tr, and that's not...
  15. jtaal

    IE gives error when writing innerHTML property

    view the following simple script: <body> <table border=1> <tr id='row'> </tr> </table> <script language=&quot;JavaScript&quot;> <!-- document.getElementById('row').innerHTML = '<td>hello world</td>'; //--> </script> </body> This should display 'hello world' with a border around it. Mozilla...
  16. jtaal

    retreive data using javascript and php

    This is what i ended up with: <script language=&quot;JavaScript&quot;> <!-- Data retrieval functions via xmlhttp request var xmlhttp = null; var xmlhttpSupport = false; var xmlhttpDestination = null; var xmlhttpCustomCallback = null; var xmlhttpParser = null; function loadXmlhttpSupport() {...
  17. jtaal

    retreive data using javascript and php

    Does anyone know a way to retreive - platform/browser independently! - data using javascript and php. The situation is like this: i'm building a page with several basic elements, like textboxes checkboxes etc. Another - less basic - element, called listview, has a great deal of relevant...
  18. jtaal

    Textzoom and CSS

    OK, i have fixed width/height <div> blocks, other layers depend on there sizes... So i want to know if the text inside a <div> is bigger than usual I can't use relative, because strange thing happen if i do that.
  19. jtaal

    Textzoom and CSS

    Another Problem: Textzoom in Mozilla and Netscape resizes text even if the font-size: is somewhat like 11px. IE doesn't resize these if the user tries to resize tekst... It's not that i don't want text to be resized by the browser (Maybe there is a way, if you know please tell). I want to...
  20. jtaal

    How to make text nonselectable

    If i'd create a spacer IMG with exactly the same width and height in that DIV, it might just work. This is gonna be a pain, because all de DIVs can change their horizontal sizes :-(

Part and Inventory Search

Back
Top