@# Quotes DB     useful, funny, interesting





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



Comments:

<0> anyone work w/ Msxml2.XMLHTTP ActiveX object?
<1> XMLHttpRequest?
<0> yeah.. that too
<0> wrote a perl script last night.. tested locally, works fine.. tried to access via js on another server, got permission denied error
<1> Yes.
<1> XSS.
<0> it tries to use XMLHttpRequest, but eventually ends up using Msxml2.XMLHTTP request
<1> Unsigned scripts must reside on the same domain.
<0> is there a way around that?
<2> theres my code http://html-channel.com/pastebin.php?id=6 and i dont get why i get undefine ... any help ?
<1> http://en.wikipedia.org/wiki/XSS
<2> oups .. sorry for not introducing my self ><
<1> pooky: Never use "javascript:" in your code.
<3> line #2 "test" not test
<1> And <object> does not have value.
<2> i tested with param and it woudent budge



<2> even if i add a new id to any of the param of my object it wont give me ther value
<1> Maybe if you explained what you're trying to achieve...
<1> And use event handlers, not "javascript:" in the href.
<0> me or pookey?
<1> Anyone.
<2> trying to change the value of the param in my object so i can switch movie feed from a lan folder
<4> hello
<0> I am trying to protect my javascript, so I wrote a perl script which detects if it is being accessed directly and returns garbage, but returns the proper js if accessed via a web page.. this worked locally, but not from a foreign site.
<1> Peterw: Futile.
<2> peterw if you have perl why use js ?
<1> Stick a copyright notice on it.
<0> well.. the perl is done... cause I don't know how to access the perl directly into the web page, as opposed to via an <a href> link.. and if I resort to <!-- #include --> it is my understanding that that syntax is .asp
<1> Anyone who would be skilled enough to want your script would know how to get it. The browser has to interpret the JS to execute it and thus it needs to read it. And what the browser can read, anyone can read.
<0> seemed that when I used the XMLHttpRequest to read and document.write it, that if you did a view source, it didn't show up
<1> But the data is there and you can get it otherwise.
<1> A simple alert() for example.
<1> Using document.write() is just plain silly.
<0> http://pastebin.com/862745 for my demo perl script
<0> http://pastebin.com/862737
<0> is the js code
<1> Stick a copyright notice on it and forget about that idea of yours. There is just one way to prevent people from reading your script and that's by restricting access to it. In which case the browser wouldn't be able to run it either.
<1> document.write()ing it only hurts one group of people: your users.
<1> And yourself if you pay the bandwidth bill.
<2> my original code ... who dosent return the right info http://html-channel.com/pastebin.php?id=7
<2> its why i started to put a alert and rem all the rest
<0> why is that?
<0> how would u do it if now document.write?
<1> Uses bigger bandwidth, is slower to execute..
<1> I wouldn't do it. That's what I'm been trying to tell it. It's a stupid idea.
<1> And a futile one at that.
<2> Peterw you cant realy prorect your JS code ... you can always use a other serverside language such as PHP or ASP to create the page tho
<1> If you can do something serverside you should.
<1> If it has to be client side then the best you can do is a copyright notice.
<0> yeah.. ok.. insulting people isn't really helping them. And I can't guarantee that they would have php or asp on their system.
<2> client dont need to have php or asp .. thats why we call it serverside
<1> I'm not insulting you. I'm telling you facts.
<0> then you can drop the pretence of stupid, etc, and just state the facts
<1> And as pooky says, what goes on on the server is not relevant for the browser and thus the user.
<2> it create a final page on the server and send it to the client direcly
<1> The browser merely reads text (HTML). It doesn't care how said text is generated.
<0> if I have a control on the page, which carries an OnClick command, how would I call my php from an onclick directive?
<1> Ajax is the only way.
<1> And in such cases, you do it all client side if you can.
<0> right.. hence making it available for all to see.
<1> Indeed.
<1> So now we've come full circle then I guess.
<2> its so basic it hurt me sometime
<0> Bringing me full circle that one feels a copyright statement deturs people from reverse engineering your code and using it.
<1> Yes.
<0> o.k.
<2> i dont get why somebody else soudent use the same code you juste created but if you want to tell that person <!--warn him--> ans now i exit running with a freecodeflag highup in the air
<2> i'm such a lousy typer ><
<2> Pilum have you look at my last URL ?
<1> The parameters need to be strings.
<2> as in value=" " ?
<1> No, as in what you send to the functions.
<1> Right now it's looking for variables which don't exist.
<2> <a onClick="test('vidtest2.mpg')" >vid1</a>
<1> Like that yes.
<2> still not working
<2> i dont have this part in the other test ether



<2> to put it realy simple ... how to i change a param value in JS ?
<1> If it behaved like other HTML object your code should have worked.
<2> it dosent
<2> you know any other example with other object ?
<1> alert(document.getElementById("test").value)
<2> like that ? <a onClick="alert(document.getElementById('test').value)" >vid1</a>
<1> For example, yes.
<1> It's just to see if it can read the value.
<2> error : object required
<1> Something bad with the reference then
<2> should be ok <param id="test" name="filename" value="vidtest.mpg">
<2> exact same code but changed to the object direcly insted of the param alert(document.getElementById("MediaPlayer").width) it give me the correct info
<2> so ... why cant i get/set info to/from the param inside it
<1> Try to get child nodes of MediaPlayer.
<2> how do i do that ? document.getElementById("MediaPlayer").getElementById("text").value ?
<1> No.
<2> it look weird
<1> .childNodes
<2> could you type a full sentence please ?
<1> I shouldn't have to. I gave you what you need to find out what you need.
<2> document.getElementById("MediaPlayer").).childNodes.item(0).value ?
<2> cauz it have more then one child
<1> I know.
<1> .childNodes[0]
<2> document.getElementById("MediaPlayer").childNodes[0].value give me not a object and w/o the value just give me undefine ... as at the begining
<1> Then I guess you can't access params.
<5> I have an object that I have created using JSON notation. How can I serialize this to a string? (In Mozilla I can use json_object.toSource() but IE does not have that. I need a cross-platform method)
<6> Has anyone used Yahoo UI event system in a big project and can share his/hers impressions?
<6> hm. I'm looking for a javascript multi-subscriber multi-fire event system that doesn't require me to take tons of other script with it. Anyone knows any?
<1> You don't make any sense to me.
<6> multi-subscriber - several registrations can be made to a single event. when the event is fired, it'll invoke all of it's subscribed handlers.
<6> multi-fire - each event can be fired number of times (instead of just once).
<1> And that differs from the browser's event handlers how?
<6> with nothing. I want to be able to add/fire/subscribe my own custom events
<6> across pages.
<7> Hello. I'm having some problems with a javascript function. I can't figure out why it errors out on me =/
<1> Haven't you learned to get straight to the point yet?
<7> :-/
<8> he has no question
<7> http://pastebin.ca/321592 <- this is the function
<7> it seems to stop at if (!sBar) return;
<7> and Firebug shows me this: uncaught exception: [Exception... "Could not convert JavaScript argument" nsresult: "0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS)" location: "JS frame :: http://linge-ma.ws/wp-content/themes/lazydays/js/mootools.js :: anonymous :: line 1492" data: no]
<8> Znuff, just look what line 1492 is
<7> uhm, it's not prototype, it's mootools :-/
<7> stefys, 1492 this.addEventListener((type == 'mousewheel' && window.gecko) ? 'DOMMouseScroll' : type, fn, false);
<1> I'm still not goint to touch it.
<7> but it's pretty :>
<1> If it stops at !sBar then $('searchAJResults'); must be at fault.
<1> No, it's damn ugly.
<7> $('searchAJResults') means id "searchAJResults"
<7> I have that defined in the dom, the dom is ready when that function gets triggered...
<8> Znuff is a blogger :/
<7> I'm a geek blogging
<7> if you call one post/week or even 2weeks blogging :>
<8> Znuff, you don't look like a geek to me
<7> not a javascript geek, true
<8> then what kind of geek ?
<7> general computer geek
<9> Prototype.js - Is there a way of firing (and binding to) custom events?
<5> Is there a way to get javascript to generate a warning message (the kind of message that goes in the Error Console in FireFox)?
<7> _Roman, why would you need that?
<1> Why would you want that?
<5> Because I want to alert the programmer that is using my code that a warning has occured (ie. a property was not set which really should be, but we can continue without it)
<7> they can just use firebug
<1> alert()
<5> is the answer, no you can not do what I need?
<1> You could generate an error on purpose heh.
<5> I want to generate a warning, not an error. (ie. something is not quite right, but it is not fatal) (in perl I would use warn() to produce the kind of thing that I want)
<5> ok
<10> I made a custom combobox with autocomplete. In a table I have a lot of thousands of records, which way is faster? to store the result in an array of objects (returning JSON from the server side) and later iterate them to add them to the result div, OR to call the function to add the items directly from the serverside?
<1> What kind of records?
<10> well, I return, {id:'', name:'', other_field:''}, ...


Name:

Comments:

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






Return to #javascript
or
Go to some related logs:

Hard rock aleluja - Finland Lord
#chatzone
hostname multihomed yast
#linux
#mirc
#AllNiteCafe
What is the nearest country to the UK to have staged the Winter Olympics ?
www-chatchut.com/isabelle.jpg
bander_83
mili malart



Home  |  disclaimer  |  contact  |  submit quotes