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



Comments:

<0> is window.opener cross browser thingy?
<0> or geko only?
<1> yes
<1> it's everywhere
<0> yay!!!!
<1> Capso, I have a little bit of knowledge about what is often called ajax, but I don't really know what it is - it's always better to just ask though
<2> stupid paypal.
<2> you can only specify a country-wide tax, or a fixed-dollar amount tax
<3> Ok I think I found a header I can be happy with... *phew
<4> ah google to the rescue...
<5> Anyone know of any good methods of using AJAX to grab the output of the same page as being viewed, with different URL Queries/GET variables?
<5> The traditional and easier method has been to send the GET var to another page and display the output of that...
<5> But that seems a bit unprofessional to me.
<1> well the way to do it if you want to use methods to speed up the users perception of loading is to send reduced requests that duplicate the functionality
<1> e.g. calling a server-side script without refreshing the page in http://jibbering.com/2002/4/httprequest.html



<6> everything I know about XHR I learned from JibberJim
<7> everything i know about love i learned from bewest
<1> a dirty hack would be to use an IFRAME swapping technique to swap in the new page with the different request after it's loaded
<1> but to be honest it's generally not a good idea to use anything ajax with different GET's as it breaks the fact the URL points to the current state
<5> JibberJim: Neat... I'm looking at the example...
<5> JibberJim: But how well does that example work with a simple link?
<5> JibberJim: And not a form?
<1> exactly the same, but with return false on the <a rather than the form
<5> Right.
<5> JibberJim: Ah, you're using ASP here.
<5> JibberJim: But it'd probably work the same with PHP... both Server-Side. :D
<1> yes, it's just an example
<5> Right.
<5> JibberJim: Heh, I might have a bit of trouble/fun converting it to support simple links, however. ;P
<0> if I want to listen to checkbox, do I use onchange or onclick or something else?
<2> not really
<5> Mikedub: To whom are you speaking?
<2> <a href="#" onClick="AjaxFunction(); return false;">blah</a>
<2> you
<2> something like that, anyway
<2> I'm no javascript guru
<8> glen_quagmire: onChange would be best
<8> glen_quagmire: because the user may be using their keyboard
<0> really?
<8> yes
<5> mikedub: Right, I've got that much, but the actual JS depends upon some form elments.
<2> so grab the form elements in the function
<2> document.getElementByID('inputfieldid').value
<0> gxti: thanks onChange is nice
<5> mikedub: I'm not using a form at all.
<2> ??
<8> Capso: so what do you mean it depends on form elements?
<5> mikedub: All I'm doing is refreshing the page with the GET vars.
<2> okay
<2> then use php and javascript together
<9> Surely you can accomplish that just by clicking a link...
<5> GXTI: I'm talking about the JS on JibberJim's page.
<2> javascriptvar = <?php echo $_GET['whatever']; ?>
<5> Sure... I haven't tried it yet.
<9> I'm just not sure where the use for ajax is here.
<5> To call the server-side script without actually refreshing the page.
<2> but you're refreshing the page to use new get vars
<9> What's the benefit? :)
<9> It sounds like you have to redraw the page anyway, since the content will change.
<5> So clicking the link will send it the get var and it outputs whatever it does accordingly.
<5> Not the whole page.
<2> ajax is good for little chunks of info, imo
<5> Right... this is pretty much a small chunk.
<2> well, i guess i don't get it then.
<9> Oh, so you're trying to do RPC without any actual RPC.
<9> Just 'get the whole page again in JS, but only pull out certain bits'
<5> Or have the PHP only output certain bits...
<10> Include a parameter to the server-side process so that it just hands you the piece to be changed, yes.
<5> Page: index.php; Link on page: index.php?somevar=value; index.php sees if $_GET['somevar'] == "value" ... and outputs some form ...
<5> Doesn't have to output some form, could be anything.
<5> With AJAX, I'm just trying to make that a bit more seamless.
<5> Windrose: That's what I'm having some trouble with.
<5> Haven't been able to get it to accept just the little piece
<5> What's the PHP equivalent of ASP's: Request.ServerVariables('HTTP_ACCEPT')+'' ... if anyone knows?
<10> Capso: a quarter of an hour with Jim's guide should help you ... I'm using 'ajax' to retrieve a status message from a server, at intervals; the server-side script outputs a short string, which is then innerHTML'ed into a reserved spot on the page.



<9> Capso: $_SERVER['HTTP_ACCEPT']
<5> Oh, hah.
<5> Windrose: Neat.
<0> how do I know if <input type="checkbox" is checked or not in javascript?
<0> i get HTMLInputElement
<9> It has a checked property.
<9> `dom2 htmlinputelement
<11> Found for dom2 - htmlinputelement - http://www.w3.org/TR/2003/REC-DOM-Level-2-HTML-20030109/html.html#ID-6043025
<0> mattmcc: you're the best thanks
<5> mattmcc: One more thing: ASP: indexOf('message/x-jl-formresult') ... PHP: ?
<6> what does "local *FOOBAR;" do in perl?
<6> I'm curious about the * part
<10> bewest: 'declares' a local glob.
<9> Capso: strpos, probably. I ***umed that's a method of a string object.
<6> a local glob
<6> oh
<6> Windrose: erm what about @_ ?
<6> wait, what's special about the * in the earlier part?
<10> bewest: @_ is the parameter list to a subroutine.
<6> I'm looking at local *FOO; open(FOO...)
<10> bewest: the * indicate that the name 'FOOBAR' is a glob.
<0> is there javascript container that i can insert/find/delete?
<0> something like std::map
<12> map of stds
<7> man.... all the std's i got, you'd need a ****in globe
<12> ha
<12> a globe
<5> Windrose: Still here?
<10> Partially ...
<13> Any know anything about domains?
<12> Windrose: drinking already? :p
<12> jbrimble: I have some
<12> they shine my buttockses
<5> Windrose: http://pastebin.ca/80870 -- See anything wrong there?
<13> I've got a domain, and i've set it up to redirect to another URL on a different port. I was told this could be done, but it's not working
<13> www.domain.com goes to domain.dyndns.org:8080
<13> at least, it should.
<12> jbrimble: #apache
<9> mod_proxy?
<5> Windrose: It's just a copy of JibberJim's, but with PHP... not sure if I got it right... it doesn't seem like it, because I get the following from FireFox: Error: uncaught exception: [Exception... "Not enough arguments [nsIXMLHttpRequest.send]" nsresult: "0x80570001 (NS_ERROR_XPC_NOT_ENOUGH_ARGS)" location: "JS frame :: index.php?a=1&b=22&total=23 :: calc :: line 13" data: no]
<9> Looks like it didn't get enough arguments.
<5> mattmcc: Talking about the JS error, right?
<0> how do I close a window in javascript?
<9> window.close() ?
<9> Capso: Yeah.
<5> mattmcc: Hm... did you check out the paste?
<9> Capso: No, I was just reading the exception.
<0> that dosn't close
<5> mattmcc: http://pastebin.ca/80870
<5> When echo'ing out $_SERVER['HTTP_ACCEPT'] I didn't see a "message/x-jl-formresult"
<9> I would think if JS raised an exception of that sort, it didn't send out the request at all.
<5> Damn.
<1> capso yeah
<1> put the .send("Mozilla is a buggy piece of crap") in there and it'll work
<1> rather than just .send()
<14> go a new coder used to table based layout starting on Tuesday - she's only 18
<14> trying to get started
<14> anyone know a good short webpage to get her started with symantec layout?
<15> semantic
<15> not antivirus
<14> lol - semantic :P
<5> JibberJim: Ah, neat.
<14> any ideas?
<1> an 18yr old "intern" krisp.... hmm
<15> krisp-athome: Just spotted http://www.ermanz.govt.nz/news-events/archives/presentations/semantichtml.html
<15> looks good at forst glance
<14> what's wrong with an intern??!?!?
<15> *first
<14> cool
<12> krisp-athome: nothing if it's a hot chica :)
<5> JibberJim: I see... the send just needed an arg.
<5> JibberJim: However, I'm not seeing message/x-jl-formresult in $_SERVER['HTTP_ACCEPT']
<15> krisp-athome: is it a hot chica?
<1> first up Capso, make sure the page doesn't submit to anything when running the request, so you know the request is coming from the xmlhttprequest


Name:

Comments:

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






Return to #web
or
Go to some related logs:

#math
Perl magahal
exec(ls) php
#qemu
mac mini dapper i386
python +queue modul
#centos
#gentoo
debian the x system keyboard settings differ
#lisp



Home  |  disclaimer  |  contact  |  submit quotes