| |
| |
| |
|
Page: 1 2 3 4
Comments:
<0> well... you have to be pretty lucky :P <0> i remember dalnet had one, but been a while i didn't checked <1> they said I have to search on freenode <0> on freenode? therE's only me on freenode, and you didn't answer my last question yesterday <0> ... guessing you're still on the same problem <1> what was your last question? <0> [10:28:52] <StaZ_work_> try to write static text in a response.write in your asp page, and open the apge directly in yoru browser... do you see the text? <1> :) <1> I found the problem <0> great what was it? <1> I think I left a "found the BUG!" sentence :p <1> but no one was interested <0> you didn't <1> yes I did, I remember 100% <1> but the bug was the following <1> I had a .html with some javascriupt
<0> i didn't close my freenode#asp window since yesterday and didn't disconnect <1> and from that javascript I opened a .asp <0> a .html cannot open an asp file using xmlhttp? <1> now I opened the .html with enter, which means it opened locally <0> oh <1> the thing was that I should have opened the .html like localhost/.../.html <0> oh i get it ok <0> well now that's a problem i couldn't have found <1> anyway <0> so what is it today? <1> now I am wondering how to build up an array in vbscript <1> like I need an array but it's length is variable <1> dim myarray(recordset.recordcount) does not work <0> that basically doesn't exist... though you can redimension it <1> dim myarray(1) then redim myarray(recordset.recordcount) does not work either <0> you must have a forward only recordset <0> that's okay there's an alternative <1> what do you mean? <1> if I have a forward only recordset, then I can use the previouse redim? <0> first you need an array Dim MyArr() || Redim MyArr(1) <- there it's initilialised then you loop the RS with an incrementable variable Dim I : I = 1 : Do While Not RS.EOF : Redim Preserver MyArr(I) : MyArr(I - 1) = RS.Fields("Name") : RS.MoveNext : I = I + 1 : Loop : RS.Close <0> here, colons are line breaks <0> a Forward only recordset is the default's ado opening method, it means you can only do .MoveNext, so therefore it cannot at all see how many records are in the recordset <0> OOPS it'S not Redim Preserver, it's Redim Preserve (no r) <0> the Preserve Keywords tells the machine to keep the existing values <1> I knew the preserve <1> but ****...I need to know how many records I have...and I need an array of the size of the records <1> forward only does not help me <0> lol <0> did you just read what i wrote? <0> it redims the array at each record of the loop... so you end up with an array of the size of the recordset, and it's aldready filled with data <1> ahh, I missed the pasted code... <0> forward only is enough in 99% of the cases, in fact, i never used anything else <1> but that can be done with a forward/ackward recordset as well <1> anyway thanks <0> you most probably don'T need a dynamic recordset <1> that's also true <2> Bandien, you can spek in here too <3> i know, but i wanted to paste you the code that i dont understand one bit <3> and i just didnt feel like pasting it here <2> www.pastebin.com <2> just see the rules and you know everything <3> http://pastebin.com/773958 <3> can u check this one ? <4> Hello! How can I load css stylesheets with javascript? <5> http://www.quirksmode.org/dom/changess.html <5> Bandien: document.write in a function = bad idea. <5> And... s.substr(0,s.length-1)? <5> What's the point? :-) <3> ok, let me be straight with you, there is this level i cannot p***, the name of it is "You must finish this sentence before you can read the next" <3> and in it, u see this wierd pice of javascript, its like like this <3> %3C%73%63%7....... and so on <3> and when i enter this in IE under web adress, i it translates mi this to that javascript code <3> which i dont understand :> <5> It's not "javascript code" <3> oh <3> sorry then <5> It's a hexadecimal representation of ascii code. <3> i thought it was javascript <5> And if you have an ascii table handy you can translate it into proper characters. <3> http://www.hack4u.org/index.php?code=sentenced <--thats the level <3> :>
<3> i see <3> i will try, well its a very long hexadecimal representation :> <3> but i`ll do it i guess now that i know at least what i have to do:> <5> No it's not long. It's several letters. <5> Each starts with % <3> http://pastebin.com/773966 <3> this is how many letters it is <3> so 3C stand for one letter right ? <3> then 73 for another <3> and so on <3> ? <5> Yes. <5> And scripts like that is the silliest thing ever. <4> I don't quite understand how to apply that code on quirksmode.org to my problem, which is loading different css style sheets for different browsers. <1> vbscript is a bit screwued up <5> Here's another one, Tumaini: http://www.quirksmode.org/css/condcom.html <1> I can't find a decent description on vbscript arrays <1> (properties, methods it has) <5> And this isn't a channel for vbscript either. <5> In fact... don't use it. <1> don't use what? the channel or vb? <4> Ah, that link was very helpful, thanks! <5> vbscript <2> Pilum, some coders do that type of lines in their script when they try to make the isers register <1> sometimes I have to use it <2> it shall be a warning message <5> _check_: Why? <5> I don't think I've been in a situation yet where I _had_ to use vbscript. :-) <0> _check_ look for vb6 arrays and remove the as Integer of the Dim Declaration and you get vbscript arrays <0> _check_ what i gave you earlier doesn't work? <1> no, that's ok <1> I just want to see how can I check if the array has or not data in it <1> Pilum, why? because the one I work for asks me to <0> ubound(MyArray) gives you the number of the last item <1> where dis you find that out? <0> i know this, caus i worked a lot of asp/vb and you could've found it looking for "vb6 array functions" on google i guess <1> error: Subscript out of range: 'ubound' <1> seems like vb is quite weak... <0> nah vb is not weak, it'S only slow <5> I hope you're doing ASP and not webpages then. <0> Pilum yeah he is <5> Although I would suggest to your employer that he checks out ASP.NET. :-) <0> _check_ hm i can't rememberhaving to check if an array... is... an... array... so... i'd need to see how you coded that maybe there's another way to do it <6> What are we talking about? <0> _check_'s asp's array problem <6> Asp 3.0? <6> What seems to be the problem? <0> checking if a variable is an array... soemthing like that <6> nvm, he can probably get that sort of help in #asp or #vbscript or something ;) <5> Indeed. <0> folks in #asp talks about everything but asp <0> :P <0> and #vbscript doesn't exist <6> though luck xD <6> tough* <5> Shows you how popular it is. :-) <6> Indeed. I wrote most of my Asp code using JScript. Alot better than VBScript IMO. <0> can you do stuff like JSON and anonymous method /functionnal programing in jscript? <6> ofc. <0> of course? i presume <7> hi i need lil help. having problem with putting this in innerHTML = '<a href="javascript://" onClick="window.open('test.html', 'pop','width=400,height=100');">link</a> <7> what's a workaround for this? <5> Never ever put "javascript:" in your code for starters. <7> i do, since if i use # once i click that, the opener page goes back to the top, javscript:// doesnt make that happen when clicking for a popup <5> Which is an entirely wrong reason for putting it in, since there are proper ways for handling that. <8> # will be fine if you return false <7> ic <5> Exactly. <7> thanks for that tip <7> so ill have to put in a return false for every linke of # ? <7> after the window.open <7> please ignore that though. the innerHTML is my problem :(
Return to
#javascript or Go to some related
logs:
SuSE10 ksh
#java CHATEAR CON ALGUN CHICO QUE ESTE CONECTADO #c++ adduser ssh #mirc GRE: status = -1 error = Input/output error, usually caused by unexpected termin #linux #linux undernet danusia
|
|