@# Quotes DB     useful, funny, interesting





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



Comments:

<0> I've got a Submit button inside a form. Is there a way for javascript to press that Submit button if the user clicks somewhere else?
<1> Rex_Goodhear, yes
<1> you can just submit a form
<0> how do I do that?
<0> form.submit()
<0> ?
<2> Anyone willing to help me out with a little javascript?
<3> hi@all
<4> Rita12 is a private bot...
<5> i'm a bot
<4> great
<5> Rita12 + Anna` = ?
<5> we should be linked together
<6> hi all
<6> a bit of preblemm
<7> sup



<6> actually two
<6> how can i scroll text area to the bottom
<6> ff thinks that after change of its content i need to see the top of my text
<6> (im trying to limit text length there)
<6> idea ? directions ?
<7> hmm no idea....did u check the scroll properties?
<6> nope .. and the second one
<6> nix middle-click text-paste is byp***ing that script
<6> idea ? directions ?
<7> nopes, maybe someone else can help
<7> wait a while
<6> i will
<6> only ideas i got on freenode was "your browser sux, ff rulzzz"
<6> :/
<7> hehe
<8> hmmm... Im working on a sliding menu thing using JS and are having a few issues. Anyone care to help?
<8> or just point out obvious errors I should fix :P
<8> the actual HTML is here: http://pastebin.ca/122021
<8> the JS is here: http://pastebin.ca/122017
<8> the problem is that the menus dont slide at all. they just... POP from being there to going away, and vica verse
<9> might it be some issue ... php realted
<9> because the page this js is in .. is included in another page
<9> and so on
<10> shoudn't be if you are testing with the code you pasted :P
<10> lol
<9> till it get;s tot he index
<10> put the code you pasted in a test htm file and run it stand-alone
<9> it works like that ...
<10> then why are you wasting our time with posting it?
<10> then it's outside of the box
<9> :-S
<10> :)
<9> well i thought u might have had the same problem
<9> and allready know the solution
<10> not me
<10> as i said before, boil down your code to something that -does- generate the problem :) and paste that
<10> that will probebly make you find it yourself :P rofl
<9> damn thing ... well when i change the option form select, it gives me the error
<9> so ... the html is ok
<10> yes, you checked that yourself, and i rechecked it
<9> only the onchange event is somewhat problemativ
<9> problematic*
<10> how so?
<9> but why could it give me an error?
<10> what error does it give you? :)
<9> i'm not good with js so i don't know what could cause an error
<9> document.forms.THEFORM is null or not an object
<9> this is what ie tells me
<10> on what line of code?
<9> 114
<10> lol
<10> aaaah, that line !
<9> <form name="THEFORM" id="THEFORM" action="" method="POST">Numarul de oferte afisate:<select name="howmany" onchange="document.forms['THEFORM'].submit();">
<9> this is on that line
<10> and you've tried -> onchange="alert(document.forms['THEFORM'])" ?
<9> gives me a undefined
<10> odd... anyone?
<10> i could suggest you my normal strategy, copy all your code to some place, and cut away as much of code as possible untill you accidently fix the problem, and see what code you last cut away
<10> that always works in a "it works like this but not like that"-situation
<9> :))
<9> yeah i was thinking the same thing now ....



<9> but it's really weird you agre?
<9> agree*
<10> i've seen alot of weird things :) let's say it's unusual, but there will be a perfectly logical explanation for it :P
<10> probebly even one of those "ahaaaaa"-ones
<10> let me know if you find it :) or get closer to the source of the matter
<9> ok :)
<9> now i don't get it ...
<9> i put the paste in another file
<9> and it works
<9> pffff
<9> gonan start cutting away from that piece that dowsn't work
<9> maaann .. i don't get it
<10> keep cutting
<9> i've cut of all that i can
<10> ok, what's left? :)
<9> not even in a php echo '' anymore
<9> it all just the html left
<10> one file?
<9> form select and the options
<9> no ...
<10> 2 files?
<9> i can't make it in one file ...
<9> yup
<9> actually 3 files
<9> :))
<10> ok, put the content of the 3 files in a pastebin, WITH filenames and relative paths
<9> phuuuu
<10> or find it yourself :P
<9> that's a whole lot of sh*t
<9> just a sec :D
<10> then you didn't cut away enough :)
<10> it should be about 50 lines at most
<10> probebly even 20 should be do-able
<9> i will not cut away code that's not relevant to it ...
<9> HAAAA
<9> w8
<10> that's the -poooint- !!!!!
<9> i think i know
<10> "'(
<9> that form is within another form
<9> i guess that's not really allowed
<10> the whole point of all this is cutting away code that's not relevant to it.... jeez
<9> is it?
<9> :))
<10> ah
<10> there you go
<9> hmmm
<10> yes, that's it, can't nest forms
<9> ok .. gotta find a workarround :P
<10> told you it'd be something totaly retarded :)
<9> thnx for the ***istance
<9> haha :D
<9> yeah i simply forgot about the first form ;P
<10> can happen
<10> you can't split forms over multiple sectons eather... so don't go trying that now :)
<9> no .. wans't :P
<10> your problem is you've got some sort of mixed fields on the page belonging to different forms?
<9> was remothe the THEFORM form
<9> was removing the*
<10> here's what you do...
<10> well, what i'd do, but i'm no guru at this eather
<10> don't use forms :)
<9> lolz
<9> well ... i have to :D
<9> it there another was to submit that variable from the select in a onchange event?
<10> ah.... a bit of DOM should do the trick
<10> you can create a from on the page, doesn't matter where, with empty action and no innerHTML
<10> then just place your fields wherever you like and give them an id so you can find them
<10> then write a function that gathers all the values and changes the action property with a GET string with all the values
<10> something along those lines maybe? sounds slightly messy tho
<10> someone else probebly has a cleaner sollution
<9> brr
<9> nah


Name:

Comments:

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






Return to #javascript
or
Go to some related logs:

#java
my small guitar
#london
#london
#mirc
cathy-k malta
mehmeme
#skype mirc undernet
#linux
startproc fedora core 6



Home  |  disclaimer  |  contact  |  submit quotes