@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2



Comments:

<0> hmm, the window problem seem strange give up,
<1> how can i change the value of a dropdown list through javascript commands?
<0> http://www.quirksmode.org/js/options.html
<2> hi there. im trying to add BB code to a section of my site, ive done bold, italic, paragraph, but am now trying to add images. ive got it to display ok like: [img]www.link.com/pic.gif[/img] but i cant actually convert it then
<2> i did actually try: mytemp = mytemp.replace(/\[img\](.*?)\[\/img\]/ig, "<img src=""$1>");
<2> but i think thats where its gone wrong, but not sure where, im ***uming its something todo with src=""$1>"
<2> can anyone shed some light please?
<2> actually, think ive fixed it :p
<2> do know if you are doing a replace, similar to: mytemp = mytemp.replace(/\[img\](.*?)\[\/img\]/ig, "<img src=$1>"); if i want to have another variable, would that then be $2 ?
<3> hi
<3> i have a function that gett an event parameter and is called onmousemove
<3> and the function sets 2 X, Y vars with the mouse pos
<3> i want to get the mouse position whenever i want not on mousemove without p***ing an event
<3> but if i call just like that i get error



<0> furtive:http://www.cabel.name/2006/03/nintendo-ds-lite-second-look.html
<4> lol
<4> good ending
<4> know where i can get one in canada?
<0> the best bet is likshang
<0> s/ liksang
<4> yeah
<4> i still like my micro
<0> i may want a umpc
<4> not until one with kbd comes out
<0> the one in intel video?
<4> i read that the one in the video is over a year away. i saw another one that had a soft book sort of flap with kbd in it
<0> the fabric keyborad
<4> i don't think the kbd was fabric, just attached to a fabric flap. fabric kbd could be cool though.
<0> ic
<5> i have a popup <BODY onLoad="javascript:popUp('sound.html')"> how can i prevent it loading anoter popup when the user refresh?
<4> popups ****
<4> and that's one reason why
<5> sound on a website aswell :)
<4> and don't use javascript: inside event handlers
<5> client is the boss so ..
<6> <body onload="popUp('thiswillmostlikelybeblocked.html');">
<4> hehe
<4> the client isn't always right
<4> and pilum makes an excellent point as usual
<5> yes noticed that aswell :)
<5> would it be smart to use mplayer embed instead?
<4> sure, if you want to ignore everyone who isn't using windows.
<5> if i play sound on the website then the user cant turn it off..
<5> i fins music on websites anoing so i wouldnt stay long on a site with fixed music
<4> agreed
<4> most flash based music players at least have a volume or mute button, if that's any help
<5> hm should have thought about that :)
<5> think thats a good option thx
<4> np
<4> ht311: http://www.nintendo.com/screenshotgallery?gameid=ad5a45fd-b1c2-403c-970a-9e3ffa35a5b8
<0> heh, just saw that on digg too
<4> i'll get a ds lite about same time that game comes out, maybe
<0> seem i feel much better when it is above 0 degree outside.
<7> hello ppl
<7> someone could tell me if i encode @ from an email address string with HTML &...; will protect them from email collectors script ?
<7> or i need javascript..?
<2> is there a way to check the size of an image/img? because i need to check an images height/width to ensure it's not bigger than a certain size
<0> you should be able to the read the offsetWidth and offsetHeight off an img element
<2> even if the image is dynamoc?
<2> erm, dynamic
<0> yes
<0> after is loaded
<2> actually, it wont be dynamic, the user gets a popup box to enter their image, and once pressed ok, i then need to run that check
<0> no way to tell until the file is uploaded
<2> ahh, so i cant do it then?
<0> Yes
<2> well, without uploading



<0> yup
<2> oh lol
<2> worked out and i can do it with: x = document.getElementById('picture'); where picture is the css cl*** name, but is there a way to do it, if theres no cl***, because the image is going to be added via: mytemp = mytemp.replace(/\[img\](.*?)\[\/img\]/ig, "<img src=$1>");
<0> huh? Id is Id, cl*** is cl***, and unless that $1 is a url, else you can't get it to work
<2> well, that code just creates: <img src="theuserspiclink.gif">
<0> if your server have theuserspiclink.gif
<2> suppose i could just do: <img src=$1 id=="something"
<2> sorry, i mean www.theuserspiclink.gif
<2> erm id="something"
<0> ok, you will be able to get it work then
<2> does an alert need to be before a return?
<2> sorted, all working
<2> thanks for the help ht311
<0> np
<2> with that, ive now built a function to check the width and height of the image, and informs the user of this.thats all fine etc. but now, ive got a button which saves the details, is there anyway to interupt a form action="somefile.php" if the checkSize() function returns a value bigger than one i set?
<2> if that makes sense
<0> onsubmit="return checkSize();" return true or false depend on the result
<2> ahh ok thanks!
<2> if its > a size i want, return false right?
<0> y
<2> as no matter what i return from checkSize() its still submitting the page
<0> you do this ? onsubmit="return checkSize();"
<2> yea got: onsubmit="return checkSize();">
<2> could it be something to do with my function then?
<0> may try this onsubmit="return(checkSize());", but i think is your code
<6> That shouldn't make a difference heh.
<2> yea, i think its my code, would you mind taking a look if i upload to pastebin, its only a few lines
<0> go ahead
<2> http://pastebin.com/598458
<2> think i might have fixed it
<2> checking
<2> nope
<2> :s
<0> you sure the image is loaded? alert your getOff add alert everywhere
<2> yea, think its definately loaded: <img id="picture" src="http://localhost/test/preview.gif">;
<2> is from the source of my page
<0> hmm
<0> you sure you getting the value > 20 then?
<2> yea, because its displaying the alert message
<2> its weird
<0> i don't have first hand experience of onsubmit myself, but never heard of any problem for canceling, Pilum?
<6> Personally I tend to avoid the problem.
<6> By calling .submit() "manually"
<0> i don't even use submit button at all :)
<2> so you can manually submit the form?
<0> yes
<6> You can transfer to my account if you want. :-P
<0> what do i get in return? :)
<6> Less money to waste?
<8> lol
<2> ffs
<0> looking at this, http://www.playdigitalblue.com/products/qx5/info
<2> made my own submit thingy i.e form.submit() from a <a href.. and its still sending no matter what
<0> check the button to type="button"
<0> not submit
<6> form.submit()?
<2> Pilum yea
<2> i think i'll come back to it, once ive sorted the page code out, theres probably some mistake in there stopping it working
<0> get a debugger
<0> heh why?
<6> Because I've seen it wreak havoc hehe.
<2> ht311 as i say, to be honest i think its probably because my code ****s.. and needs tidying


Name:

Comments:

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






Return to #javascript
or
Go to some related logs:

#chatzone
#linux
#MissKitten
#MissKitten
tukye
adeline suck
#linux
#linux
#MissKitten
#linuxhelp



Home  |  disclaimer  |  contact  |  submit quotes