@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19



Comments:

<0> Raevel, I'm using Firefox
<1> moein: document.all is not really something you should use :)
<1> moein: also don't count on .x always working either ;)
<0> Sembiance, I tried in Firefox and Konqueror now, and worked :) Now i will try in Safari and IE, if doesn't work, try to use another thing
<1> moein: hehe, whatever floats your boat :)
<2> you know whats funny, when you go to a site with google ads, and the ad in the window is a competitor of the site you're at.
<3> Sembiance how about newApplet_Embed['cl***']='mov'; ?
<1> ks: I doubt it.... newApplet_Embed.cl***Name = "mov" should work fine?
<3> nope
<4> ks you can set the cl*** proeprty in that manner, but it won't affect the DOM
<1> what type of object is newApplet_Embed, how did you retrieve it? does it currently have a cl***?
<3> take a look at actual code http://mediaburn.org/testcases/test_applet.html
<3> it raises error in IE



<1> ks: be careful with for(var x in obj) as if anything has extended obj you'll get functions too which could be bad :)
<1> ks: Maybe the error in IE is not where you think it is? :)
<3> yes
<3> it's appending a child
<3> Sembiance well it's just for cases where you have lot's of <param> to set. In my case it's only two
<3> this is with regards to for() btw
<1> ks: So is there some specific line or error you need help with in the code under IE?
<3> yep it's newApplet.appendChild(newApplet_Embed);
<3> that's what makes script debugger unhappy
<3> oops sorry it's one line upper
<3> newApplet_Embed.appendChild(el2);
<3> line 50 invalid argument
<3> newApplet.appendChild(newApplet_Embed);
<3> hm interesting
<3> i've added alert (which shows an HTMLObject in FF) and in IE I have Access denied
<3> newApplet_Embed.appendChild(el2); alert(newApplet_Embed);
<3> newApplet.appendChild(newApplet_Embed);
<5> how can I change the url in the address bar without refreshing the page?
<6> halibut: what do you mean?
<5> bewest, I want to change the get parameters without refreshing page
<5> so the user can copy the url and it will still point to the correct version
<6> ah
<6> you can't :-)
<6> changing the url always sends the browser to fetch the new page
<6> however, you /can/ change the fragment part
<6> location.hash = "whatever"
<6> would change the url to mydomain.com/index#whatever
<6> halibut: the typical pattern solve that problem is to offer a clear 'permalink'
<1> haliburt: Come up with a method of string data that represents your 'page state'. Whenever your state changes, modify the url after # with your state data
<5> bewest, yeah
<6> halibut: eg on google maps, they have a "Permalink" link which is always current
<5> I saw some mapping site do that though
<1> haliburt: Then make it so onload it checks to see if it has a # and if so, parses and restores state
<5> they must have had it after #
<6> halibut: only the fragment identifer can be changed
<5> bewest, is that after # ?
<6> yes everything following the "#" character in a uri is known as the fragment identifier
<7> where can I find some html code to make navigation inside cd contents easier?
<8> wtf..?
<7> something like a web site with links to all contents of my CD
<1> :)
<9> how do i get aTableCell.textContent = "&nbsp;" to do what i want (i.e. not display the literal text "&nbsp;")
<1> vinse: document.createTextNode('\u00A0')
<9> Sembiance: heh i'd *just* found that
<9> god i went through the same thing like a month ago and then forgot again
<9> thx!
<1> ;)
<10> does "complaints[i].childNodes[j].nodeType" correlate to the value between the <>'s? like will nodeType equal <thisValue>?



<9> airwave: no nodeType is an int
<1> airwave: you want nodeName for that
<10> Sembiance: there we go, thanks :)
<3> Sembiance how do I nest <embed> into newApplet = document.createElement("object"); ?
<3> it has following structure: <EMBED SRC="sample.mov" WIDTH="160" HEIGHT="144" AUTOPLAY="true"
<1> heh
<1> var myEmbed = document.createElement("EMBED"); myEmbed.src = "sample.mov"; myEmbed.width = "160"; newApplet.appendChild(myEmbed);
<3> wow, you're javascript GOD !! :)
<1> heh
<3> thanks
<1> no problem
<10> how do I create a form element using the DOM?
<10> document.createElement('form'); ?
<1> airwave" yup
<11> i tried to change the pages title using this code: http://nanobin.nanosouffle.net/1470 (t is defined in global scope). but although it rendered in the source (viewable in the firefox source chart extension) the actual title of the page didn't change until i did document.title = value; am i taking crazy pills or what?
<5> bewest, how to set the fragment identifier?
<12> I have two objects each listening for mouse events. Both work finee, but when I delete one, the other stops seing events. Is this a known problem/feature?
<5> Munger, try removeEventListener on the object before removing?
<12> halibut, I do that, but it still kills the event listener on the other object
<5> Munger, code example?
<12> Not a simple one. It's actually using Prototype.js, butt stepping throught he code reveals that it is doing nothing unusual - basically addEventListener()/removeEventListener() in the places where I would expect to use them
<3> Munger you need to unsubscribe ?
<3> dojo has nice event support
<12> ks. Well. I remove one of the DOM objects, aqnd the other stops seeing events whether I unsubscribe or not
<6> halibut: location.hash
<5> bewest, sorry got it
<5> was trying to set window.hash
<3> Munger try dojo toolkit if possible, it also has aspects, so you might have an 'advice' before the action
<3> they have irc channel here
<12> ks, No intention of using dojo. The drag and drop is pretty limited, like all the toolkits I evaluated
<11> Munger: as an experiment you could store a reference to both event listeners and then re-add the one that you aren't explicitly removing. if it worked, you could be sure that removeEventListener() was removing both. if it still didn't work it is something else
<12> dools, I do that. When a 'window' closes, I perform a check. If it's my window, I remove all my handlers, else I re-install them
<11> Munger: okay, so if you re-add the event listener that you aren't explicity removing after calling the removeEventListener method does it work?
<12> dools, It is most certainly removeEventListener() that is killing them all, as I can single step through in FireBug and everything works until I hit that line
<12> dools, Yes, but I have other instances where it's not quite as easy to detect the removal
<12> dools, To be precise, if two elements are listening to the same event in the same scope, removing one removes both
<12> dools, If one is listening to events in the local scope, and the other is listening at the document scope, then nothing strange happens
<13> how can i check the "type" of a variable?
<14> bbqfrito: typeof(variable)
<13> thanks... a string would be "string" i'm guessing?
<14> yeah
<13> danke
<15> I think I have a javascript problem with the following-- ignore the small php bit, just having trouble getting a confirm on submit js button to work.... code: http://pastecode.com/1394
<15> All I really need is help getting js to check how many checkboxes are checked (which my js does), if more than X are checked popup a confirm dialog (which mine does), then put that data into the html form I'm submitting (which I tried to do but I don't think works)
<16> Sembiance, when I seen in javascript blah.test = {} what does that normally mean?
<17> Ktron|work: getElementsByName returns an array of elements, even if there's only one item in that array
<18> GarethAdams, so I should probably replace document.getElementsByName('confirm') with form.confirm or similar
<17> not necessarily
<17> form.elements['confirm'] is good
<18> Well, I only have one confirmation element... alright, I'll give that a spin
<16> How do I check and see if an element value exists?
<18> CrazyTux, as in, whether it is defined?
<16> Ktron|work, yes
<16> typeof defined?
<18> I'd try not typeof undefined
<18> but...
<18> I'm not much of an expert


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #javascript
or
Go to some related logs:

smptd_client_restrictions
spivak.djvu
#perl
wlanconfig configfile
ubuntu xgl taskbars disappeared
resizer_reiserfs
what happen to yast online update suse 10.1
linux iotop linux
win4linpro ubuntu
#linux



Home  |  disclaimer  |  contact  |  submit quotes