|
Master Mind`z wrote: Do i need to learn CSS if I want to learn web developing?
No, but it sure will help.
Master Mind`z wrote: is it possibe by reading some books and practicing.
Yes, that's the only way I've ever learned anything, and I'd say it's the best.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
ok thank u friend.
I will try definately
|
|
|
|
|
I want to remove a TABLE node by using the following javascript.
e = document.getElementById( "tableId" );
document.body.removeChild( e );
However, it doesn't remove the node. It says "Invalid argument" in the second line of code.
Can someone point out why it won't let me do that?
|
|
|
|
|
It might not be a child of the body...?
Generally, i'd write e.parentNode.removeChild(e) to detach the element e from its parent, unless i was absolutely certain that the node i was removing was a direct child of the body. Heck, i'd probably do it then too, just 'cause it's obvious what i'm doing. Also, it reminds me of that cartoon where the hapless character saws off the branch he's sitting on...
---- ...the wind blows over it and it is gone, and its place remembers it no more...
|
|
|
|
|
You're right, it's actually a direct child of a DIV tag.
But the DIV element doesn't support removeChild(), so how would I remove the table tag?
|
|
|
|
|
Independent123 wrote: But the DIV element doesn't support removeChild(), so how would I remove the table tag?
Yes it does.
Did you even try the code i gvae you?
---- ...the wind blows over it and it is gone, and its place remembers it no more...
|
|
|
|
|
I'm sorry, it went over my head that you were saying that the code you wrote would do the job. I'll try it now.....
|
|
|
|
|
|
Hi i need ideas/ or any help in creating a audit functionality.
I want to audit
1. user logins to application
2. under each session what transactions are made
3. under each session, transaction pair what sql server table, data was accessed, changed, updated, deleted.
Can we do this with triggers?
ANY HELP would be great
|
|
|
|
|
dotnetroookie wrote: Can we do this with triggers?
Yes, if you're only auditing actions on the database, triggers make a lot of sense
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi folks,
Can anyone tell me how to check the visitors MSOffice plugins version using javascript.
Thanks in advance for your reply.
with regards.
Rajesh Rangaraj.
|
|
|
|
|
I downloaded the firefox 3 installer ( firefox-3.0b2pre.en-US.win32.installer.exe) from this link. (It shows as Minefield that I have no idea. maybe codename)
And I'm trying to do some javascript stuffs with FF3. and I come out a few questions...
1. Generators
function fib() {<br />
var i = 0, j = 1;<br />
while (true) {<br />
yield i;<br />
var t = i;<br />
i = j;<br />
j += t;<br />
}<br />
}<br />
<br />
var g = fib();<br />
for (var i = 0; i < 10; i++) {<br />
document.write(g.next() + "<br>\n");<br />
}<br />
it seems interesting. It helps us to write the shorter code.. but I don't understand why we need to do this.. I have googled about this and I can't think of any useful scenario where this code fits in.
Does anyone know the case where we can't live without this feature??
2. Iterator
This one is awesome.. vote 5.
3. Array comprehensions
var evens = [i for (i in range(0, 21)) if (i % 2 == 0)];
No. It doesn't work.. Has anyone tried this thing with Firefox 3? Actually, what the doc said is that it should work in both Firefox2 and Firefox3.
4.let
This one is also another awesome thing.. The example below (from Mozilla doc) shows the power and usefulness of "let" keyword
var list = document.getElementById("list");<br />
for (var i = 1; i <= 5; i++)<br />
{<br />
var item = document.createElement("LI");<br />
item.appendChild(document.createTextNode("Item " + i));<br />
let j = i;<br />
item.onclick = function (ev) {<br />
alert("Item " + j + " is clicked.");<br />
};<br />
list.appendChild(item);<br />
}<br />
5. Destructuring assignment
<br />
var a = 1;<br />
var b = 3;<br />
<br />
[a, b] = [b, a];<br />
This is also useful. But it doesn't work with Firefox2 (the doc said that it should work. ) anyway, it works fine with Firefox3.
6. Expression closures
function(x) x * x
I have no idea about how to use this in my project.. Can anyone give me the example about how to use this closures and why we need this?? Thanks.
I haven't tried with expression generator, array reduce and etc.. I'm not so sure why "Array comprehensions" doesn't work in FF3. and also, I would like to get the explanation about Generators and Expression closures with examples.
Thanks in advance..
P.S: I should have posted this post in lounge. :P (just kidding)
|
|
|
|
|
Michael Sync wrote: Does anyone know the case where we can't live without this feature??
I don't know of a situation where it's indispensable, but it can make life easier. Heck, that goes for all of these.
It's a common pattern: there's a generated set that you're gonna iterate through, but there are a large enough number of elements... or calculating each element costs enough... that you'd rather do so on an as-needed basis. For instance: a Google Reader-style "virtual list" where additional list elements are loaded only when the user has scrolled past the already-loaded elements.
Michael Sync wrote: No. It doesn't work.. Has anyone tried this thing with Firefox 3? Actually, what the doc said is that it should work in both Firefox2 and Firefox3.
Works for me - in fact, i use them in CPhog. You do need to define the range() function in order to make the example work.
Michael Sync wrote: I have no idea about how to use this in my project.. Can anyone give me the example about how to use this closures and why we need this??
These are just shorthand for a function that returns a value.
---- ...the wind blows over it and it is gone, and its place remembers it no more...
|
|
|
|
|
Hi All,
I wanted to read the file from the disk with the help of javascript. I am using the tag for browsing the file. I want the content of whole file which is selcted by pressing browse button in the javascript variable? How can i do that?
Thanks In advance...
Rk..
|
|
|
|
|
One more thing I forget to tell is I am using the following code to read the file:
function ReadIt()
{
var filename = 'client side file-name';
if (confirm('Do you want to see what we put on your computer?'))
{
var fso, a, ForReading;
ForReading = 1;
fso = new ActiveXObject('Scripting.FileSystemObject');
file = fso.OpenTextFile(filename, ForReading, false);
while (!file.AtEndOfStream)
name += file.ReadLine( ) + "\n";
alert(name);
}
}
And when i run it through server I am getting following error:
"Automations server cannot create object"..
Can any one Please suggest?
Thanks,
RK..
|
|
|
|
|
KambojR wrote: I wanted to read the file from the disk with the help of javascript.
You don't. Not in a webbrowser. That would be a horrific security hole.
---- ...the wind blows over it and it is gone, and its place remembers it no more...
|
|
|
|
|
Then is there any way to do this??
Rk..
|
|
|
|
|
A nice chunky Java applet
|
|
|
|
|
Can you plz provied me the code?
Thanks,
Rk..
|
|
|
|
|
|
Hi Johnny,
I know it's in Java, But can you plz give me the java code to achieve this functionality??
Thanks,
RK..
|
|
|
|
|
I can't, but a Google search turns up lots of results. I would seriously rethink why you want to access a local file because whatever you do is going to be thoroughly unpleasant to use.
|
|
|
|
|
I haven't played around much with Java but I'm pretty sure anything accessed via a webbrowser is going to have a hard time reading for the users local disk..
Michael Davey
biproject.com rss and blog news in a more palatable format
mobile edition now available!
|
|
|
|
|
You have the file input field in a form. The user submits the form to your server, which causes their browser to upload the file as part of the request. You then have the file to use as you wish.
---- ...the wind blows over it and it is gone, and its place remembers it no more...
|
|
|
|
|
Hi All,
Acctually what i wanted to do is, I need to create a report and for report layout I wanted to read the file from the client machine. this is the reason why i wanted to read the file from client machine.
Thanks,
RK..
|
|
|
|