| |
| |
| |
|
Page: 1 2
Comments:
<0> Hi, Back again :) : Trying to change attributes in a textarea for a font, but no matter what I appear to set (style.font, style.fonstyle etc) I cant seam to find one that works apart from font size. Any one know for bold / Italics / underline what the correct values are? <0> (sorry if this appears trivial but its driving me nuts!) <0> HA-HA - cracked it! <1> hello <1> I have a sound file and I want to play it on my webpage but only once per browser session.. any advices on how to do this? <2> hey <3> Hi. <2> i need somehow to display a .ini file that is on the server <2> or i can change it`s extension to .txt or whatever is needed <3> You're entirely in the wrong channel then. <2> php ? <2> can`t this be done with javascript ? <3> PHP would do it. <3> Firstly, javascript is client side. <2> well i don`t know if my host supports php
<2> that`s why <2> i know is client side <2> but <3> Secondly, it doesn't have a file i/o object. <2> maybe i can access the file by it`s address <3> Then it'd be no different from making a link. <2> but the file is encoded somehow <2> i mean <3> Last I checked, .ini files were text/plain <2> there are [General] <2> micul_inger=45223 <2> all4Jesus=44483 <2> cEi_aLeSi=4122 <2> i need to display it as a trivia TOP <3> Looks like a common format to me. <3> As I said, you're entirely on the wrong track. <3> You need serverside of some sort. <2> not that [General] and micul_inger=23 <2> aha <2> hm <2> thanks <4> hello can anybody tell me how i can check onclick a javascript variable and add it to the same href clicked!!! somehting like <href onclick="home.php?startleft=variable"> <3> No such thing as <href> <3> <a href="#" onclick="window.location.href='home.php?startleft=' + variable; return false;"> <4> aaa ok <4> i will try it <5> Hi <3> Hello. <5> can you please tell me why does this not open a popup window in firefox ? http://pastebin.com/726226 <5> in works in ie <3> Because you have spaces in your attribute list. <5> ok thank you <3> And it's document.body.clientWidth | .clientHeight in IE. screen.width | .height works in both. :-) <4> pilum - i tried your solution but i think there is something wrong with my variable - when in the external js file i test with alert('scrollmargin is ' + this.scrollLeft + ''); i get the correct values - but when i introduce your code directly in me file like this: <a href="#" onclick="window.location.href='home.php?startleft=' + this.scrollLeft; return false;"> it gives me 0 - any idea? <4> scrollleft is undefined in my file <3> 'this' refers to the anchor tag.. <4> so how can i refer to scrollleft as a global variable <4> or is there no posibilty to get it from the external js file to my php page <3> A variable? <3> A property I hope you mean. :-) <3> 'self' or 'window' <3> Hm <3> document.body it is <4> document.body? <3> document.body.scrollLeft <4> ok i will se <4> e <4> pilum - document.body.scrollLeft is 0 all the time while this.scrollLeft alerts in the external js give me correct values - any time - seems not to refer to the same variable or am i wrong <3> document.documentElement.scrollLeft then <4> still 0 - may it be because the scrollleft variable is just used in the external js? <3> Nope. <4> ufff <6> how can i print the id of a object? <3> alert(object.id) <6> <form id=medlemsside action="javascript:Validate(this);"> | function Validate(obj){alert(obj.id);} <6> you see any flaws in that one? <6> i get undefiened as a alert response.. <3> Ewwwww <3> Never put 'javascript:' <3> ... in your code <6> how would you do it elseway?
<3> The proper way <3> <form id=medlemsside action="something.ext" onsubmit="return Validate(this);"> <6> but i don't want it to submit for real.. <6> sorry..my bad:p <3> Then you return false. <6> ahh..i forgot the return before Validate() in onsubmit.. <6> thansk alot:) <4> me again: with mouseout event i call the function scrollend in my external js - there i placed alert('leftposition is ' + this.scrollLeft + ''); so everytime i stopp scrolling my x cordinate is displayed .... to be continued <4> now in my main document i added the following code: <a href="#" onclick="alert(document.documentElement.scrollLeft)"> - so when i click it should show me the same value - but still remain 0 - can u just give me a clue why the values do not corespond to each other <4> last try really ;) <4> no last try? <4> hi could anybody help me with this synthax? window.open("tienda.php?nav=4' + this.scrollLeft + '","_parent"); doesnot introduce the variable correctly <3> parent.location.href="tienda.php?nav=4" + this.scrollLeft; <4> thanks pilum <0> elo again: any idea on how, in a textarea with the slider hidden, to prevent the user pushing of the bottom of the screen and un-hiding the slider? <0> I've tried counting the characters, but you cant predict where they will start typing inthe area <7> stop worry about that, you shoudl trim input after. <0> I could, but then wouldnt you loose the WYSIWYG effects and end up with scrollbars appearing and dissapearing. Also, I'm not sure how to even work out when a user has gone off the bottem of the textarea... <7> set it to overflow:hidden <0> I would need to be able to react to a newline, when the cursor was anywhere on the bottom line of the textarea, and so would need to be able to find the position of the cursor <8> scroll=no <0> kewl - I didnt see those in manual! <0> ta - i'll give ita go <0> Ok- the css overflow:hidden works fine, but "scroll=no" and css "scroll:no" still dont stop the user being able to carry on entering text past the bottom of the textarea <0> no, cant find a no scroll option for a text area - but at least I'm halfway there with teh scroll bar :) <9> hi. I need to setFocus on a certain input from my page. What's the attribute I should use for 'onloadpage'? <3> 'onloadpage'? <3> WTF is that? <9> it's a work for you to understand when I need to set focus <3> This "invent your own event handler" day or something <9> :> <9> no, I just wanted you understand what I needed <9> I need to set focus to a form input. how do I do that? <3> window.onload = function() { document.forms['formname'].elements['inputname'].focus(); } <9> thank you <9> Pilum: sorry for bothering [AGAIN]. If I have more than 1 function to be executed at start, what should I do? <9> got it, works with adding another line and another function. thank you very much:) I needed that. <3> Hehe. <10> i r t3h javascript0r <11> i r the javascript0r! <12> simple question, i run a simple example with a message box confirmation. It works fine, but after the output message, the browser trying to load. what might be? <7> <a href="#" onclick="alert('blah');return false;">blah</a> <12> correction: the examples is with ok cancel buttoms <7> it is not the point of which button or link <12> and using firefox, on ie is just fine <7> and you can't expect I am able to read your code without seeing it <7> return false will cancel out the action/event, use it at the right place <12> i have make it simple but still have problem with firefox here is my link http://83.168.41.246/msgbox.php <7> crap. forget document.write <7> hmm, there is no output window in MS script editior <3> Idiots. <3> Getting popups from this errorsafe site, saying that there's some crap in my registry. Looks like SP2 firewall thingie. <3> Not so plausible when I'm on Linux. :-P <13> how do i convert a string to json key/value obj? <13> anyone? <7> that will be the only case you can use eval <13> thanks, eval didn't seem to work... let me try again <7> ***ume the "string" you talking about is a json string <13> right <13> eval('{"id":"iddd"}'); <13> that generates JS error in firefox <3> Ewww <13> invalid label <13> what's wrong with that? <3> Avoid eval() at all costs. <13> ok... what's the alternative? <14> the alternative to do what? create an object? <13> yeah, from string <14> ah, from string <14> where do you get it from? <13> from serverside <3> Not familiar with json. Seems ht311 has answered you already. <13> pilum, that didn't work <15> Hello Pilum, cybergues
Return to
#javascript or Go to some related
logs:
clvm: subprocess post-installation script returned error exit status 3 #london small bisnass melita cabel hello kabul etsene #MissKitten wdc wd2000jb 00KFA0 Error:mplayer execv #MissKitten #chatzone
|
|