| |
| |
| |
|
Page: 1 2 3
Comments:
<VaranG|aN> cheers~ Pilum :) <VaranG|aN> that window can still have server side code? <VaranG|aN> it has to be an existing one / <Pilum> Lo RoBorg <RoBorg> lo <VaranG|aN> javascript has struck back with ajax <VaranG|aN> ajax unbelievers are campaigning against it maybe <StaZ[home]> hello folks <ht311> lo <StaZ[home]> i got a little structural question : I need to have related data in a webpage, 2 got 2 list boxes and i need to fill the second with data related to the selected item in the first... my question is : what i the most efficient way to store this data generated from PHP : a 2D array, cl***es, or put i in an XML parser? or anything else i could not know <ht311> do you mean you don't need to use ajax stuff? <ht311> i use object as hash table for these kind of stuff <ht311> {value1fromselect1: [va1,val2 .....], ...} <StaZ[home]> ya something like that <ht311> I love json ;) <StaZ[home]> hm u know where i could see an example of impletation of your... "hash tables" ? i'm not sure it's something like that :http://weblogs.asp.net/ssadasivuni/archive/2003/09/17/27902.aspx <ht311> you not need that complicated <ht311> s/you don't <StaZ[home]> welll u got an example caus i don't really see what u talking about :-/ <ht311> http://www.html-channel.com/pastebin.php?id=7 <ht311> something like that <atarix64> hey how can I get the top, left, width, and height of a div that is relatively positioned? <VaranG|aN> .style.left <VaranG|aN> .style.width <VaranG|aN> .style <VaranG|aN> etc <atarix64> ok but I tried to alert those values and the alert is just empty <StaZ[home]> ht311 kewl thanks! <ht311> np <ht311> atarix64, how is it styled/positioned ? <atarix64> well right now is absolutely positioned in the stylesheet <atarix64> top: 50px; left: 300px; etc <ht311> it should show <ht311> either way, if you set the style directly to the div with inline or id selector <atarix64> but what about in the stylesheet <ht311> with cl***? then you need to see the runtimeStyle or computedStyle in FF <VaranG|aN> is it possible in javascript to drap and drop elements into a page ? <ht311> no way to detect what being drop <VaranG|aN> I'm asking this because microsoft did a library out of Atlas in Javascript <VaranG|aN> called Drag&Drop <ht311> it is drag and drop html element, not something from windows to the browser <VaranG|aN> yes html element I meantt <P|LuC> salut <P|LuC> quelqun peu maider en francais ? <Pilum> Try #htmlfr if they're still active. <VaranG|aN> lofl <VaranG|aN> did it exist a french html channel ? <Pilum> Oops, I thought I was in #html hehe. <Pilum> Yeah <atarix64> if a div is inside of another div, how can I make the innerdiv belong to the body of the document? <atarix64> like re***ign the body as its parent <Pilum> document.body.appendChild(divObj); maybe. But be warned that that will alter the rendering of it as well. <atarix64> ok thanks <mdew> [11:22] <Eliza18> heya,for free porn galerys... take a look at -> http://70.82.96.110/HardCore-XXX-Pictures.scr <mdew> hmmm thats not ok <rbo> is there a way to get the full path except the html page itself <rbo> or the full path .... <boing> hello <boing> can i change the title of a window, if i'm in a script that belongs to a html that is inside a frame ? <boing> i've tried window.document.title = "'.$last.'"; but it doesn't seem to work <grazzy> ueh.. $last isnt going to work .. thats for sure <boing> oh, sorry <boing> window.document.title = "test"; <boing> like that <boing> it's inside a php script... <grazzy> have you tried for instance parent.window or something? <grazzy> havnt worked with frames for ages <boing> document.parentWindow.title = "test"; <boing> hmmm... <boing> nope, didn't work <boing> neither did parentWindow.title = "test"; <ht311> document.title.innerHTML = "blah" <boing> ht311: even from inside a frame ? <ht311> top.document.title.innerHTML = "blah" <ht311> ***ume they are in the same domain <boing> nope, didn't work :( i must be doing something wrong <boing> i've got something like <frameset rows="*,*"><frame src="update.php"><frame src="input.php"></frameset> <boing> and update.php refreshes from time to time and needs to change the title of the main page .... <ht311> http://www.dynamicdrive.com/dynamicindex2/titlescroll.htm <ht311> no .innerHTML needed <boing> perfect ! <boing> thanks a lot <boing> can i make a window stay on top, without having to focus it ? <ht311> can have it in IE but not in FF <StaZ[home]> hey guys, syntax question : var MyTable = {0: {0:"text1", 1:"text2"} } ; <- how can i get the "text2" in there without a for(something in something) <sk8ing> wtf, why are you doing that? <sk8ing> MyTable[0][1] <StaZ[home]> that's the striped down version of an "hash table" or thing like that to fill selects <sk8ing> but... var MyTable = [["text11","text12"],["text21","text22"]]; <sk8ing> makes more sense to me <StaZ[home]> i store ID fields from php <StaZ[home]> that's the first 0: <sk8ing> I see <StaZ[home]> but okay i get the trick now i guess i was using a for-in to get the first generation of elements and was wondering what do to with it :P anyway thanks i see how it's accessed now <StaZ[home]> by the way... what would be the official name of what i'm doing so i could find data on google about it <sk8ing> using an array? :) <sk8ing> you can add multidimensional to the search <ht311> json <StaZ[home]> ahh json... damn i saw you said that earlier thought u were talking to someone <StaZ[home]> lol <StaZ[home]> thanks to you both <ht311> don't think you can use number for property name <StaZ[home]> well it works <StaZ[home]> http://www.333photo.com/clients/neworder.php <ht311> cool <StaZ[home]> that thing is great :D <ht311> obj.a same as obj["a"] <ht311> with this, you can play with object in a lot of ways <ht311> http://www.json.org/ <StaZ[home]> hmm i see the point of text property name now.. makes a lotta sense... didn't know they were actually transformed as property name, was taking them for indexes <ht311> i think so <StaZ[home]> let me test that out <StaZ[home]> oh yes it works <StaZ[home]> makes even clearer code! :D <ht311> much easier than xml <StaZ[home]> yeah i guess... <ht311> i am surprise you didn't know this before :P <StaZ[home]> i never ever heard of json <StaZ[home]> other than validating a form or open a popup... i never did much stuff in JS... <ht311> but you hang around here long enough :) now you know <StaZ[home]> yeah well i'm still a programmer so the "programming logic" is the same cross-language so i can still help some people about logical problems <StaZ[home]> but i'm glad you showed me that off! <ht311> now you can apply all you know about object to this <StaZ[home]> what you mean? <ht311> member, hash table, arry, method etc <ht311> {mymethod1:function(){alert();}} <StaZ[home]> O_O <ht311> http://javascript.crockford.com/ <StaZ[home]> oh wow <erwinpogz> hello, how can i get the number of lines of text inputted on a TEXTAREA ? <ht311> count the line break <StaZ[home]> erwinpogz you "could" count the number of \n (carriage return) character... but a Textarea has word warps... so it could be impossible <StaZ[home]> ht311 is line break an actual character? <erwinpogz> ohh i see <ht311> yup, but warps is not <Fernando> yow <erwinpogz> ok, thanks StaZ[home] <StaZ[home]> np <Fernando> got a question with ajax. <Fernando> im trying to post someting to a script <Fernando> how do i put the vars <ht311> define "script" <Fernando> php script <Fernando> how do i put the vars so i can retrieve them on $_POST['varname'] on the php script? <StaZ[home]> in VB... the XMLHTTP object has a .Open method to open a webpage and another one to send data in the URL format : item=val&item2=val <ht311> you need to send like var1=a&var2=...... <StaZ[home]> so it must be pretty similar <erwinpogz> Fernando put it on the <form <Fernando> oh <Fernando> great
Return to
#javascript or Go to some related
logs:
consergy solaris __cxa_get_exception_ptr Where did the deposed Shah of Iran finally find refuge ? #linux What does a piscatologist excel at ? #php #windows #php b14ck #linux
|
|