@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3



Comments:

<0> hi folks
<1> howdy
<0> Im declaring some constants in an inline javascript chunk in my HTML file, but theyre not accessible from an included javascript file (included via <script> in the head)... They work in Firefox, but not in MSIE... is this normal/is there a workaround?
<1> there's no need for a workaround.
<0> or an alternative method then, to phrase it better :)
<1> guessing you're doing something wrong, cause it should be seemless and transparent
<1> show us what you've got ( http://nomorepasting.com )
<0> one moment then sir
<0> http://nomorepasting.com/paste.php?pasteID=62477
<0> thats the HTML file
<0> and then inside ajax.js (included in the head), the various const's ive defined there are reported as not defined if i try and access them
<0> only in MSIE though
<2> const?
<1> is it time for JavaScript 2.0 already?
<1> get rid of the const



<0> am I crosspolenating programming languages again?
<1> no
<2> lanaguage is deprecated too
<0> I tried var actually and it made no difference
<0> unless I didnt refresh the page properly
<0> ah
<0> stupid me.
<0> so what's wrong with const?
<1> it's not used until js 2.0 afaik
<0> how do you declare a constant in JS then?
<1> and nobody is there yet
<3> furtive: it's in the 1.5 ref. :-)
<2> carefully
<1> oh noes!
<1> photographic memory?
<3> I wish.
<3> I thought I remembered seeing it there so I looked it up. :-)
<1> google let me down
<1> so did apple
<0> just doing a quick scan of google and a few random sites seem to imply that "const Foo = 'bar';" is perfectly normal JS :S
<0> ah wait, JScript
<0> i guess thats enhances
<1> you guys already talk about the Google Web Toolkit? http://code.google.com/webtoolkit/
<1> [Torgo] yeah i hear you. The good news is some people don't like designing their sites purely in java
<4> hi all.
<4> I need to open a window to maximum height and width. but when I specify the 'top' I cant see the scrollbar . why?
<5> hey guys
<5> I have a little problem
<5> I want to verify an XML document each few secondes, and if it has changed, I want to call a function
<5> any of you can help ?
<6> how about ask your question frist?
<5> you wasn't on the channel when I did :P
<5> I want to verify an XML document each few secondes, and if it has changed, I want to call a function
<6> and you using xmlhttprequest?
<5> yup
<6> put a timestamp in one of the node inside the xml document then. compare with the last request timestamp
<7> hi
<6> hi
<7> i would like to implement a instant search in a site - for example i have a panel with categories, when i start tiping it automatically shows a searchbox and highlights and focuses the link of the found category
<7> this wouldn't be big deal, but if i have more than one of these panels i don't know in witch to search
<7> any of you have an ideea about how to address this?!
<6> either you prebuild an index base on the content of the page or you loop through the text node of the dom tree
<7> ht311 yeah, i know that's not the problem. is more of a technique problem than implementation one
<7> i need to do this extra usable and clear
<7> what happens is that a customer looks at a big list with categories let's say, but is time consuming to read every category to find what he wants
<7> you think is a good ideea to search in the panel that has the mouse over it?!
<6> no
<7> (the cursor is not necesary over the panel that the user is looking at - that's the problem)
<6> you want a static place for the search box, consisten across the page. people know where to type when they need to the function
<7> ht311 any interesting ideea on how to do this or something similar?
<7> i will have a search box
<6> i mean when you mouseover to open the box will be annoying
<7> no no
<7> i have a categories panel (or more)
<7> user hovers mouse over it and it gets highlighted - a red border or something (not important how)
<8> hi..i have one js problem
<7> this will attract the attention (i hope) to the user that the focus (his focus) point is there
<7> if he starts typing, every match in the panel becomes highlighted
<8> Line: 41 Char: 5 Error: Object expected



<8> how can i know what is wrong? 0_0
<7> something similar to FF search when it's enabled to automatically search when you type
<6> i am confused, you idea seem find, not sure what you need ...
<7> :) i guess i just answered myself finaly while thinking on how to explain it to you
<6> pib: go to line 41, somewhere there you p***ed a null or undefined as parameter for some operation
<7> you think it would be a nice feature or enoying?
<6> optocus: what i said inthe begining is how you can do that :D
<8> line 41 is not a javascript line but an html line
<6> pib: may be an external script file
<8> mm
<8> i c
<8> maybe this line no? -->
<8> document.write('<link rel="stylesheet" type="text/css" href="' +cssDir+ 'styles.css">\n');
<6> optocus: sure is nice, depends on your use case, you may not even want to show all the category upfront. (usually, i dealing with hundreds of rows)
<6> pib: you just blind me.
<6> alert cssDir
<8> it is correct
<8> before it has cssDir = "styles/";
<7> ht311 that's exactly the case :) a site with huge number of categories (like amazon)
<7> ht311 do you know a site where i can find an A to Z tutorial on JS but werry werry comprehensive (browser issues, etc...) ?
<7> JS core language, DOM, events, etc...
<8> can someone pls try this textarea editor for me?
<8> i think their code is wrong
<8> http://www.dynamicdrive.com/dynamicindex16/openwysiwyg/readme.html
<6> the demo work
<8> yes
<8> i noticed that's why i installed it
<8> it gives an error
<6> and we are not really care 3rd party code
<8> when running
<8> these guys should post their code with errors :\
<6> no, the demo work, no error in IE
<8> try to install yourself
<8> i would like to see it working
<6> i won't
<8> it just takes 2 minutes
<8> ok.thank you anyway
<9> can i change an image on a page when the user clicks a checkbox?
<1> mother ****ing ipod bull****
<10> it's not water resistent?
<11> im trying to compare two strings like txt == lastSaved, but it returns false but i can see that both strings are equal
<11> its very unusual
<1> laptop doesn't see it
<10> chillkat: they are not
<11> but i see them using alert and they are..
<10> maybe you have a space somewhere
<1> spaces at begining and end?
<1> write something to compare each character in each string
<1> but i can guarantee you that == isn't broken
<11> checking for spaces
<11> no white spaces :(
<12> hey guys... any of you written a function that loops through the form element and creates a string from all elements and values?
<1> sure
<12> furtive can i see how you did it?
<8> eh,sk8ing i found hotmail trick :p
<10> heh
<1> var foo; var blah document.formName.elements; for (var i = 0; i < blah.length; =++) {foo += blah[i].value;}
<10> what was it?
<1> or words to that effect
<1> O I L E R S W I N ! ! !
<12> hey guys... to get a value of a select element i use the .value notation but how can i do get the values of a multiple select?
<2> loop options, check selected boolean of each
<13> hello i'm having a JS problem
<13> i just need a lil help
<14> hi all..can someone help me to p*** the javascript value to php withod loading the page?
<15> hi! how can i prevent the image from column 1 from overflowing at column 2 when i resize the window?
<13> Hello i need Some JS helpl have a js file which positions a menu by top and left, but how would i get it to center it, i tried the css style left:auto; right:auto but that isn't working for me
<9> for a table?
<9> margin-left: auto; margin-right: auto;
<14> hi all..can someone help me to p*** the javascript value to php withod loading the page?
<16> yop all
<17> greetings
<18> hi all
<18> i need help on manipulating a frame with javascript


Name:

Comments:

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






Return to #javascript
or
Go to some related logs:

#AllNiteCafe
KB892130 torrent
#linux
#c++
#php
./eggdrop: error while loading shared libraries: libtcl8.4.so: cannot open share
#linux
Undernet #Clujenii
#AllNiteCafe
#linux



Home  |  disclaimer  |  contact  |  submit quotes