@# Quotes DB     useful, funny, interesting





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



Comments:

<0> Hi everyone. how are you doing?
<1> we are all doing fine, thank you for asking
<2> (_)
<2> lol
<2> debonair23 you can ask
<0> I have a question, got some javascript programming thats really been bugging me. just looking for some quick help but not sure where to go
<0> but now that i just read the channel rules... i'll get to the point, lol
<2> ask ask np
<2> I don't know what they are
<0> basically i went to http://www.dynamicdrive.com/dynamicindex1/chainedmenu/index.htm and grabbed the demo they have there
<0> im trying to put a 3 way chained select box on a form with other text variables. i made some JS to do it, but mine refreshed the page and wipes out the info in the text boxes
<0> couldnt figure out how to save the variables with php, self submit the page, then repopulate the page so i decided to just use this
<0> but now that i have the page and everything working with no refresh, i can't quite figure out how to send the values of the drop down as post variables along with the variables php is sending (just html form variables)
<0> so i was hoping someone here might be able to at least get me started in the right direction on how to have php set the variables as hidden variables or put them in the post or anything to get them to the next page so i can put them in a database
<0> lol, too much?
<0> you there?



<0> anyone around?
<3> nope
<0> tnx :)
<0> i was hoping to get a little JS help, varang started with me a while ago but disappeared
<3> you can start by asking a related question frist
<0> well i have a three way chained select (box 1 triggers box 2, box 2 triggers box 3). I was wondering how to output the value of the box to a hidden form value or along with the other form elements somehow in the post so i could access them on the next page
<4> anyone here know ajax?
<4> i need help with something
<1> just ask your question
<4> when i use
<4> if($inf = mysql_fetch_array($res)){
<4> echo "formObj.amount.value = '".$inf["firstname"]."';\n";
<4> i can't get the scriptwrite to text box only using label
<1> ask in #php
<4> thats php?
<1> you tell me
<1> it's not js
<4> they said it doesnt look like php
<4> so i came here
<1> hrmph
<1> morons don't recognize their own crap
<0> its php
<3> debonair23: you shoud do that on the server side and save the value to the session or the next page's hidden field
<3> #php always like to kick the noobs to here ....
<0> yeah thats what i have no idea how to do
<4> they just kicked me
<3> debonair23, is your serverside take, need to process the post
<4> i told them you guys said it was php
<4> got banned
<1> my advice, try a different server
<4> thx
<1> those guys in #php have their heads shoved up their ***
<1> try dalnet
<0> lol, i guess i'll have to go do some reading and learn more about JS first
<3> bring value to next page should be serverside task
<3> not js
<4> http://dalphp.shoggoth.net/pastebin_view.php?792
<4> is this php?
<4> before i ask my question
<0> oh ok. well i'm using php and i'm using javascript to make these drop downs without a page refresh
<0> but all the variables are held up in javascript
<0> dunno how to get them to post and to the next page
<1> freakz, look at the first line
<4> i know
<4> but the other half
<3> teh select still form field, if you have a form, you will get it in the post
<1> yes
<4> ok thx
<0> but the variables are actually being put into the form. this is what the source looks like for the 3 boxes...
<0> <tr>
<0> <td valign="top">
<0> <font style="font-weight:bold">Categorization:</font>
<0> </td>
<0> <td>
<0> <select name="firstlevel" style="width:180px;"></select><br><br>
<0> <select name="secondlevel" style="width:180px;"></select><br><br>
<0> <select name="thirdlevel" style="width:180px;"></select>
<0> </td>
<0> </tr>
<4> :X
<0> what was that for?



<1> guess
<4> first time on irc and i know
<0> well i dont...
<0> thats why i asked
<4> @'s dont like it when you paste
<4> in the channel
<0> alright, well either way... you guys can see the code now
<0> its all dynamically interted through javascript
<0> the <option value="" blah blah isnt actually on the page
<3> [19:51] <3> teh select still form field, if you have a form, you will get it in the post
<3> freakz: is not only @ don't like it, jsut make everyone on the channel hard to follow what's going on
<0> it doesnt p*** it :(
<3> is the select inside a form? and you submit the form?
<5> If I create a closure on an object by doing something like someobj.callback = function () { alert(someobj); }
<5> can I clear it by just setting someobj to null?
<6> why not just alert(this) ?
<5> ah, I want to force my object to stay around until it's callback fires
<5> and I'm trying to stay away from storing references to them
<7> i was wondering if anyone would be able to point me to some documentation for sticky tooltips. i've written code to create a mouseover tooltip, but i want to be able to have the mouse go inside it and use the window instead of just following the mouse.
<8> How about just removing the part which makes it follow the mouse?
<7> the window disappears when you try to put your mkouse over it, 'cause once the mouse is over whatever has the mouseover on it, the window will leave
<9> For some odd reason, when i xmlhttp.send() something containing a semicolon, that semicolon and everything after it does not get sent. This is obviously just me missing something critical... Could someone point me in the right direction?
<9> Example of stuff sent is 'this reaches the server; this does not'
<8> Tried escaping the char?
<9> I don't really know how.
<8> \;
<9> Yes, but how do I manipulate the string (gotten from an input field) so it escapes?
<9> manually putting \; instead of ; makes no difference.
<9> using alert() I have determined that the ; reaches the send(), so that's where the problem is. Since it's in a variable, I feel it shouldn't need escaping, but ofcourse it does.
<9> where Perl would say: $scalar =~ s/\;/\\\;/g;
<9> variable.replace?
<8> Hm. I have no problem sending semicolons...
<8> Maybe your serverside script needs looking at.
<9> It dosn't get it at all.
<9> It's just a Perl my $foo = param('bar');
<9> use CGI qw/:standard/; # ofcourse
<9> maybe it's my form type
<9> xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
<8> Nope.
<9> Tried using multipart/form-data aswell. Didn't work.
<9> How do you grab the result on the serverside when submitting semicolons successfully?
<8> $_POST['varname']
<9> ah. PHP.
<8> That shouldn't matter though.
<9> No, not at all, unless Perl's CGI.pm is buggy.
<9> I'm having no trouble at all sending semicolons using just HTML
<9> <input type="hidden" value=";;;" name="semicolon"> gives me no grief.
<9> tcpdump shows: semicolon does not get sent.
<9> hence the problem is clientside.
<9> http://www.z0rz.net/~demonen/WebKonsept/wkChat/research/ <-- Would you care to inspect the code?
<8> Just a FYI... Container.innerHTML = Container.innerHTML+pagedata; <- javascript has the += operator for strings. :-)
<9> Ah, thanks.
<9> Every bit helps :)
<10> Hi
<9> Hello
<10> I was looking for a tutorial or some documentation about changin a select options when calling a function
<10> I know i have to define an array for each options set
<8> Wrong.
<10> Oh
<8> Those are already defined by the browser.
<10> Hmm
<11> He means changing all the options I think.
<10> yes
<10> i have to select items
<11> But then... I'd put a select in for each set, and hide the ones you don't want with some JS, rather than cripple it to only people with JS
<10> and i want toc haneg the options from the second one when i select something else on the first one
<2> I thought javascript was going to be dead but some more years
<2> heh
<8> selectRef.options.length = 0; selectRef.options[selectRef.options.length] = new Option('text','value');
<2> now I took over once again
<2> I = it
<10> ok, lemme try


Name:

Comments:

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






Return to #javascript
or
Go to some related logs:

check if a function is defined javascript
#skype
Xavi X7722R+ manual
darkside inurl:undernet
#php
#MissKitten
arial.ttf ubuntu
P4P800 irqpoll
#c++
#linux



Home  |  disclaimer  |  contact  |  submit quotes