@# 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



Comments:

<0> yereth@server:/www/htdocs/wharf/stable> file indexworks.php
<0> indexworks.php: ASCII HTML document text, with CRLF line terminators
<0> can anyone explain to me why this might be?
<1> yereth: Its onclick, not onClick
<0> onclick doesn't exist, IE says
<2> hi
<2> anybody active?
<2> <form action="search.php" target="small" onsubmit="window.open('','small','height=150,width=400');"><input name=search>
<2> <input name="Input" type=submit value="Search by name">
<2> i wanna put scrollbar in it,
<2> how can i do that?
<3> Dr-Linux: http://www.javascript-coder.com/window-popup/javascript-window-open.phtml google is nice for questions like that
<4> How to reverse JSON? var myObj={name:'thomas'}; such that someFunc(myObj)="{myObj:{name:'thomas'}}"
<4> Serialize an object to a json string?
<5> `jif
<6> Write your own json formatter that you use when serializing your objects.



<5> iratik: woosta has some code that does it
<6> it's very easy
<4> I've never figured out how to make a recursive function to step through an unlimited hierarchy, link?
<6> FF intrinsicly supports that using toSource() function.
<4> Its apparently pretty easy, but I've never understood
<4> FF is a library?
<6> FireFox
<6> let me write something really quick that'll show you how it would work
<4> That doesn't help much, where's woosta's code?
<6> Since no-one wants to do SCHOLO with me
<4> (I mean a firefox only function)
<6> Ask Woosta.
<7> there's a function for it on json.org already
<6> when he gets online.
<6> see, easy
<6> <- still writes yet-another-json-formatter.
<4> alright, I ***umed it wouldn't be on json.org because everything I've seen was to convert an object in another language to json
<4> Ahh its called a stringifier
<4> btw. Is there a minifier out there or would I have to hammer that out too?
<5> iratik: the link is http://rick.measham.id.au/jif.js - but its dead right now, hastle woosta when he gets back
<7> iratik what would a minifier do?
<8> Wow p0windah, that's a nice site!
<7> this is new: www.edea.se/articles/caching_selections
<9> hi all...what's the proper way to put the quotations in<body onload=setTimeout("window.location='url'"...I can't get it right!
<7> "a \" b \" c " or "a ' b ' c"
<9> so <body onload="setTimeout(\"window.location='url'\".... ?
<9> i'm lost...too many " and '
<9> "onload=setTimeout(\"blah='blah'\", 4000)" ?????
<10> \ only means something to a JS parser; it doesn't mean anything to an HTML parser
<11> why make things so complecated? write a simple function...
<10> the HTML parser just sees everything between " and the following " as an attribute value, regardless of whether its ends with \
<11> <head><script ....> function shoot() { setTimeout(....); } </script></head> <body onload="shoot();" ...
<11> that avoids the need to escape anything
<10> <script ...>window.onload = function () { ... } ...
<10> <body>...
<9> hey all.hey all...how do I embed 3 sets of quotation marks into a line, such as: onload="setTimeout("window.location='......' ?
<9> oops
<12> onload="setTimeout('window.location=\'......\'');" ?
<13> don't
<9> no?
<9> why not?
<13> use a function ref instead
<12> yeagh maybe better make a function
<10> the HTML parser only sees the " it doesn't care about backslash
<9> yea i liked how it was more compact tho
<13> separation of content and behaviour
<9> thats the way i originally had it
<9> yea....true
<9> alrighty, guess I'll stick to my original way
<9> thanks!
<9> have a good day
<12> deltab it's a \' not a \"
<10> oh
<14> can i sell something that uses tinymce, which is under the LGPL
<15> hi
<15> is there any type that is a hash but that can held the same key multiple times
<15> sound stupid, but I'm in a point where I need to be able to do {"getContent":vals,"getContent":vals}
<16> Currently, with the AJAX Code here: http://nanobin.nanosouffle.net/1400, it grabs EVERYTHING from the output when the link "Test" is clicked... which is, http_request.responseText... and puts it inside <span name="myspan" id="myspan"></span> ... this is okay if you're getting the response from another page, but I want the output of the SAME page, but not all of the output... just the latest output, of the var_dump($_GET); ... any ideas?
<16> (Let me know if that got cut off or if you still don't understand the question).
<17> ok, I'm trying to write a function to change the properties of an element on the fly. I have to be on the right track, but I can't quite figure it out...is this right?: eval("myelement.style."+propertyname)=propertyvalue;
<18> hi folks



<18> i have a question about javascript : whats the sense of making the 'href="#" in '<a href="#" onclick="javascript:somefunction();">klick</a>' ? why not just making '<a href="javascript:somefunction();">klick</a>' ?
<18> whats the mysterious secret about the href="#" ?
<17> I think if you don't use the # it tries to change the url to itself
<17> and cause mess up the call to your js funciton
<17> i've had it happen before but I can't remember the exact circumstances
<16> http_request.responseText gras the response of the whole page...
<18> hm ok
<16> How can I just get the response from a specific DIV Id from that page?
<17> anyone have a solution for me?
<16> Something like: document.getElementById('test').http_request.responseText ?
<18> response from a div? afaik only the http-server is able to response
<16> lehmann: Right... but grab only the contents of specific div within that.
<18> i'm not sure if i get that......you have a html page with a div and you want to sent that div's content to another html page?
<16> It's the same page...
<18> ah ok
<16> But you see...
<16> http_request.responseText just grabs the WHOLE thing...
<16> So, when you output it... you have the initial page, then the same page within that page.
<17> ok, now I have this and i'm not getting an error but it isn't working...anyone??? eval("myelement.style."+propertyname + " = " + propertyvalue);
<16> With every time the function is run.
<16> Right?
<18> Capso: sorry i have no idea, didn't know you can do $('div').http_request.responseText ....... i don't know very much about javascript
<17> is that an "I don't know", "I don't care", or "just a minute?"
<16> Does it matter?
<16> The response was useless as an answer.
<10> eml: myElement.style[propertyName] = porpertyValue;
<10> er, emlove
<17> ...im checking it now..thanks deltab
<16> Any ideas about my question?
<17> deltab it isn't working....
<16> I want to be able to use AJAX to grab the output of GET vars of the same page.
<16> Any ideas?
<17> deltab: I rewrote it. Here is that I have: myelement.style[prop] = propval;
<10> Capso: you can only access elements if you use XML
<10> Capso: if you can change the server script, make it optionally only output the part you want
<10> emlove: the syntax looks okay, so the problem is with the values of myelement, prop or propval
<17> deltab: myelement=document.getElementById("tablename")...prop="BorderWidth"...propval="1"....
<10> prop should be borderWidth
<10> propval should contain a unit
<17> *groan* you are right....it's borderWidth...darn caps...
<17> got it..thanks deltab...now another error has cropped up..so back to my code! thanks for your help!
<15> is there a way to simulate a real stack type ??
<15> I mean where you can push a key named getContent two times without the second one replacing the first one
<19> how do I load external html into div ?
<15> ks: using XMLHTTPRequest object
<15> ks: that's the whole ajax thing is about
<16> deltab: Still there?
<10> yes
<10> nvictor: Arrays have a push method
<16> deltab: How might I do this with XML tags then?
<16> (I suppose that's what you mean by XML elements.)
<10> tags indicate the start and end of elements
<15> deltab: the problem is that what I'm talking about is rather object than array since being accessed by key
<16> Right.
<16> deltab: Alright, so, how'd I do this with XML elements?
<10> Capso: XMLHTTPRequest will automatically parse XML responses, and make a DOM object tree available
<10> and then you can use all the usual methods
<10> however your script would have to output well-formed XML
<10> you'd also be generating a whole page just to get part of it, which is wasteful
<16> Yeah. :/
<16> Any better way?
<10> add an option to output only the part of the page you want
<16> The thing is... I don't want to make separate pages with parts of code to just output that page...
<16> I wan to keep this all in one page.
<10> hence adding an option
<16> How do you mean?
<10> what server scripting language are you using?
<10> oh, php
<16> Right.
<10> if ($js == 'yes') {
<10> ?><html> ....
<20> you don't have to use XML, either
<20> you can output HTML


Name:

Comments:

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






Return to #javascript
or
Go to some related logs:

#suse
#css
#linux
gentoo vedio card config
#math
guiss extension
#php
freejerk
debian kaffeine-xine part
dapper + lexmark + z715



Home  |  disclaimer  |  contact  |  submit quotes