@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet


Comments:

<0> hey all, can I ask a Q?
<1> Don't ask to ask.
<0> i'll take that as a yes..
<0> well its more to see if anybody is awake..
<0> anyway
<0> I have a page, which contains an iframe
<2> ewww
<0> ya ya
<0> i know
<0> anyway
<0> the main page has a link which is meant to set the src property of the iframe



<0> 'javascript:(document.getElementById(\\'pages\\').src=\\'page.jsp?f=f\\')'
<0> if I click this, the whole page goes to page.jsp
<0> but
<0> 'javascript:alert(document.getElementById(\\'pages\\').src=\\'page.jsp?f=f\\')'
<0> changes the src correctly
<0> the two statements are identicle, save for the "alert"
<0> identical even
<0> .. anybody?
<1> Hmmm, I would try changig "javascript:(" -> "javascript:"
<0> same difference hey..
<0> put the brackets there to see if it would work
<0> and it does it in both IE and MFF
<1> `O_o`: If it comes to compatibility I use onClick="function_name();"
<1> `O_o`: With regards to iframe reloading - document.frames['iframe_name'].src='';
<0> peroxide: it does the same thing!
<0> as does document.x.src=''
<0> why would a stupid alert statement stop it from malfunctioning?
<0> actually, if I do an alert() around the statement you gave me, it doesnt navigate to the src, but neither does the iframe
<0> only getElementById will work with alert.. EISH
<0> well if anybody is awake or cares, found a solution, i said javascript:var x = (document.getElementById(\\'pages\\').src=\\'page.jsp?f=f\\')
<3> hi@all
<4> Is there a way I can read a file from disk using Javascript?
<4> Basically File input operation?
<5> why does the XMLHttpRequest send GET variables in ISO-8859-1, while POST variables in UTF-8?
<6> Hi Folks
<6> Does anybody know about Domapi?
<7> I know of its existance if that's what you're asking. :-P
<6> ok
<6> I'm having a doubt in how to print a WINDOW widget from domapi..
<6> when I set window.print(), it prints the whole content inside the browser
<6> not that specific window
<7> Try self.print();
<6> let me see..
<6> just a moment
<6> no.
<6> it doesn't work
<6> I think thats the Window, is not a Window Object from the browser, I mean an Opened Window.. But a new DIV.. you know
<7> I guess you'll have to wait around for [Torgo] then.
<6> self.print(). caughts everything
<6> ok



<6> I'll be here..
<7> Yeh it would, since it's a window object.
<6> anyways thanks
<6> yeh, but it's a new div
<6> hi pilum
<6> Is Torgo in the room ?
<7> Look for yourself.
<8> If he were he would have kicked you for asking, so I guess he's not.
<9> I'm POSTing some data using XMLHttpRequest. Works fine in IE, but FireFox just reloads the page. Any off-the-cuff ideas why?
<10> no
<9> ajax event is started when use clicks <button onclick="<ajax call>">
<10> 'cause normally that's the opposite, everything works with FF and not with IE
<9> yeah. it really suprised me too :-)
<10> is that a submit button?
<9> no. just a <button>
<10> weird
<10> how can it reload the page? not possible
<10> you're messing up somewhere mate :)
<10> did ya check the javascript console ?
<9> yeah, not errors in console or firebug
<9> thanks anyway Aquel :-)
<11> Is there a function that detects when a user has input data into an input field with the ENTER key?
<7> You can make one...
<11> well, I see onchange
<7> No good.
<7> It triggers when the field loses focus.
<11> it triggers when the field contents have changed
<7> ... which is when the field loses focus on a text input.
<7> Use onkeydown or onkeypress and then check which key was pressed.
<7> http://www.quirksmode.org/js/introevents.html
<11> Pilum, good idea. Thanks
<12> Hi, is it possible to focus a text field w/o using the body onload ?
<7> Sure.
<8> window onload?
<12> yeah
<12> how do you do it
<12> do i just <script>document.getElementById('text').focus()</script> anywhere ?
<8> window.onload = function() { document.forms['formName'].elements['textFieldName'].focus(); }
<8> Or an equivalent
<12> i see
<7> Lo RoBorg
<13> hey Pilum
<14> hello
<7> Hello.
<7> Heh


Name:

Comments:

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






Return to #javascript
or
Go to some related logs:

#MissKitten
#windows
#MissKitten
#linuxhelp
asuis sis
#php
blood +hydrologics
#MissKitten
convert unsigned char* to wstring
haxi fis sorm



Home  |  disclaimer  |  contact  |  submit quotes