IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-10-24 20:19:38
Channels: 41
Logged Lines: 6230436
Size: 1834.74 MB
Powered by
Channel Info
Network: freenodeChannel: #html |
Search in www.irclog.org
Log from #html at freenode 2006-07-13
[10:39]<znzjs>at least using xmlhttprequest means you're all in one page
[10:39]<znzjs>:)
[10:39]<rdrdwqw1>but still how do i call a function on the page or set a text box on the page
[10:40]<rdrdwqw1> and how do i change the link
[10:40]<znzjs>from inside the iframe?
[10:40]<znzjs>I don't think you can
[10:40]<rdrdwqw1>link is not in the frame
[10:40]<gjss>sigh.
[10:40]<rdrdwqw1>the function or text box is in the frame
[10:40]<gjss>oh well, ignore me.
[10:41]<rdrdwqw1> well it can be done in ie (deciding to ignore the fact for this that ie does not comply with web standards)
[10:41]<znzjs>noss, I think they are from the same site, else he'd have tons of cross domain issues making iframes an impossible solution (not that they're great to begin with)
[10:42]<znzjs>Adam1213, document.getElementById("myIframe").document.getElementByID("myFormControl").value = 'new value'; should work, but like noss was pointing out, they need to be in the same domain (as in _exact_ www.foo.com and foo.com will not work even if they load the same page)
[10:42]<znzjs>s/ID/Id/
[10:42]<gjss>cross domain issues will sandbox javascript.
[10:42]<rdrdwqw1>they are the same domain
[10:42]<gjss>from the iframe you will have window.opener set to the window of your.... opener.
[10:43]<gjss>you can reach all functions in it through that.
[10:43]<rdrdwqw1> what is window.opener (I don' know that much jst)
[10:43]<znzjs>the window object isn't standard though
[10:46]<gjss>Adam1213: you also have window.top and window.parent
[10:46]<znzjs>noss, are all global JS functions registered as properties of window.opener?
[10:47]<znzjs>hmm I suppose they would need to be, but then how do you troubleshoot naming conflicts like a function named document() :P
[10:50]<znzjs>oh huzzah
[10:50]<znzjs>Adam1213, http://developer.mozilla.org/en/docs/DOM:window.frameElement thats exactly what you want for Firefox :)
[10:51]<rdrdwqw1>finaly
[10:51]<rdrdwqw1> it works parent.document.saveform.c_array.value='".$str."';
[10:52]<rdrdwqw1>I am not sure on the link stil
[10:52]<rdrdwqw1>still
[10:53]<gjss>that violates good application design. you should hide the internals with a function call.
[10:53]<znzjs>and use getElementById() instead of using an element's name to access it
[10:53]<rdrdwqw1> its there such a thing as parent.function()
[10:54]<gjss>window.parent is the window object of the parent.
[10:54]<mz-mznw>noss
[10:54]<mz-mznw>who's the boss
[10:54]<gjss>that is where its global context is, hence all its functions.
[10:54]<mz-mznw>pin me to the cross, you got a nice salad id like to toss
[10:55]<mz-mznw>at all costs
[10:55]<mz-mznw>i win you lost
[10:55]<mz-mznw>you flinched i flossed
[10:55]<mz-mznw>i wanna eat yo special sauce
[10:56]<gjss>a silencing ban might be a good idea.
[10:56]<mz-mznw>are you threatening me
[10:57]<mz-mznw>did he call me a lamer
[12:10]<rvgrtn>How do i use a piece of text (using <a>) to submit a form... valid ofcourse...
[12:11]<rvgrtn>without javascript
[12:11]<rvgrtn>or with, aslong as its valid
[12:11]<gjss>32
[12:19]<gjss>RvGaTe: you dont.
[12:19]<rvgrtn>guess it'll be a styled submit butten then...
[12:19]<rvgrtn>button
[12:34]<wzzvnw>is anyone here good at forms? I need to know how to group 2 radiobuttons together
[12:34]<wzzvnw>do i give them the same name or something?
[12:34]<mnzmzjjv>yes
[12:34]<mnzmzjjv>the same name
[12:36]<wzzvnw>then how do i check which one is selected? :O
[12:36]<mnzmzjjv>eg: <input type="radio" name="aname" value="1"><input type="radio" name="aname" value="2">
[12:36]<mnzmzjjv>if the user selected the second one, the value will be '2'
[12:37]<wzzvnw>okay thanks
[13:06]<rmrgvn>i have the following shameless stolen html: http://adante.11011.net/files/c3.html
[13:07]<rmrgvn>my question is, I would like to be able to treat the <div>card</div> elements as regular text blocks, what is the easiest way for me to do that?
[13:08]<rmrgvn>by which i mean, i'd like to be able to type "some text [Card] more text", then <p>, and start a completely new line
[13:08]<dzmzaivnz>Hmm. If a form has multiple submit buttons is it possible to set a default one that is triggered when enter is pressed?
[13:09]<gjss>the server side should be able to see that no submit button was pressed and default at its own choice.
[13:10]<dzmzaivnz>Mm. That would be nice. I bet there's not an easy way to do that in the silliness that is ASP.NET. Thanks. :)
[13:32]<wjznm>how let a div / span be "clickable" ?
[13:32]<mnzmzjjv>it sounds like a bad thing to do
[13:32]<mnzmzjjv>accessibility problem
[13:33]<wjznm><a href=".."><span>,,,</span></a> just doesnt work
[13:33]<wjznm>only the text content is clickable
[13:34]<wjznm>so the only way is JS ?
[13:34]<mnzmzjjv>what effect do you want?
[13:39]<dzmzaivnz>It is indeed only doable through javascript, and I wouldn't really recommend it unless you absolutely have to.
[13:48]<npcaa>hi how can you make wrap="hard" work on a textarea?
[14:12]<rmrgvn>when i press enter in a text field, it sends as an action the first submit button present
[14:13]<rmrgvn>this is kind of annoying, how do i override this?
[14:37]<wwjww>how to dynamically hide / unhide div ?
[15:27]<zfa>when i put a link tag to a favicon in the head, can it just point to "favicon.ico" (relative to the dir of the html), or need i have a complete url with domain?
[15:28]<gjss>it can be relative
[15:42]<rvgrtn>does anyone see a black square with green border when opening this page: http://www.ipv.nl/ (should be clearly visible next to the logo)
[15:47]<lrsxcgypn_>no
[15:48]<rvgrtn>Lashknife_, OS / browser / version?
[15:48]<lrsxcgypn_>winxp, ie/ff/opera all latest versions
[15:49]<rvgrtn>thx... anyone else ?
[15:58]<mzzch_uc>hi all.
[15:58]<mzzch_uc>got a quick question about drop down menu
[15:58]<mzzch_uc>i need to use one bit of php code to duplicate a drop down menu code
[15:58]<mzzch_uc>so it wil be : menu 1 | menu 2 | menu 3
[15:58]<mzzch_uc>how can i make the actual menu itself line up correctly to each menu number?
[16:03]<mgrfn>Hi, I can't get my backgrounds to display properly.. They are divided into 3 div's and just meant to display one after another with content layered ontop. http://www.followingparis.com could someone plz help? thanks
[16:11]<lrsxcgypn_>if they're supposed to be on top of each other
[16:11]<lrsxcgypn_>where is the positioning then?
[16:12]<mgrfn>err sorry, not on top.. but umm.. stacked sorry
[16:12]<lrsxcgypn_>even stacked, where is the position attribute?
[16:12]<lrsxcgypn_>now they are simply 1 after the other
[16:13]<mgrfn>ah! lemmie try that (sry im a dolt)
[16:13]<lrsxcgypn_>width: 100%
[16:13]<lrsxcgypn_>instead of auto to get max width







