|
What should be the final view/look of that piece of structure?
Means: In which way you want to use it?
Which browser(s) and version(s) do you use (exactly) to look the results up?
Do you have the page online?
Is there a reason that binds you to realize the structure with nested-tables?
|
|
|
|
|
That page is not online now.
I am Using Internet Explorer 6.0 with service pack 1.
The sturcture is something like tree view. User can drill down to the Parent To Child. User can expand and collapse the records so I need to use the nested datagrid which finally render the nested table. The posted code is part of html output of that page. You can view that output if you want me to mail that html to you then i'll mail to you.
|
|
|
|
|
firefox doesn't use fireEvent.
and i want to fire an event when the value of the text changed, and when firing the event i should pass the key that has been press or the event it self?
Faris Madi
Nothing Comes Easy (N.C.E.)
|
|
|
|
|
I believe you use createEvent(...) and dispatchEvent(evObject)
led mike
|
|
|
|
|
Greetings all!
I'm quite new to javascript so i may have some rather silly kind of questions... but anyway here's the problem...
I want to loop through all the elements in a form so as to check their values in order to validate the relevant fields, i thought i could get the number of form objects within the form using "formName.length." Then use a loop to go through all the form fields.
It seems formName.length is not working for me ... it's returning "undefined" or "0" values. How could i get the number of form objects within a certain form.
My code is as follows:
[CODE]
window.moveTo(100,100);
window.resizeTo(300,460);
//window.locationbar.visible=false;
//window.menubar.visible=false;
//window.personalbar.visible=false;
//window.scrollbars.visible=false;
//window.statusbar.visible=false;
//window.toolbar.visible=false;
//window.resize=false;
//window.resizeable=no;
var elementNo;
elementNo = document.registrationForm.length;
//elementNo = document.registrationForm.txtFirstName.value;
var num;
num = document.forms[0].length;
var counter = 0;
var myMessage = "Please ensure that you have filled in the following fields:\n";
var myFieldsAlert = "";
var myAlertFlag="0";
function validate(){
//
alert("abc "+elementNo);
alert("abc "+num);
/**/
while(counter<elementNo){
//
if(registrationForm.elements[counter].value==""){
myFieldsAlert += "-"+registrationForm.elements[counter].id+"\n";
myAlertFlag="1";
}
if(registrationForm.optGenderM.value!="0" || registrationForm.optGenderF.value!="1"){
myFieldsAlert += "-Gender\n";
myAlertFlag="1";
}
counter++;
}
/**/
/**/
if(myAlertFlag=="1"){
alert(myMessaage+myFieldsAlert);
}
else{
registrationForm.submit();
}
myAlertFlag ="0";
/**/
return false;
}
[/CODE]
Could someone please enlighten me on the issue at hand and propose a solution. (By the way the code is in a HTML page which is called up as a popup).
Any help would be greatly appreciated...
|
|
|
|
|
Hi
I am using COM object in Web Application. There is a problem to solve authentication & authorization issue for Server site. At the time of using the COM object it shows the error " ACCESS DENIED ". If I am writing <identity impersonate="true"> in web.config, it is OK but the AJAX file is not accessible for that reason.
if I am using iisreset in Run command, then the whole application is OK, but it is not possible to reset iis again and again in production server. Have you any idea for this?
For more clarification, suppose there is a link in a Web page interface. After click the link, one Word document will open. How we solve authentication/authorization issue in iis without affecting to other files like AJAX.
I am using ASP.NET with C#. I am not using MTS.
any idea, please write.
regards
|
|
|
|
|
Use component service dcomcnfg to authorize component to particular user
|
|
|
|
|
Hi all friend,
I want to retrieve data as image from access database. I stored some image into access database. This field's datatype is OLE Object. When i want to read, convert stream, and write bitmap, i get some error.
1)OleDbDal.Images objImages = new OleDbDal.Images();
2)DataTable dt = objImages.GetImage(Convert.ToInt32(iId));
3)byte[] buffer = (byte[])dt.Rows[0]["Image"];
4)System.IO.MemoryStream objMemStream = System.IO.MemoryStream(buffer, true);
5)objMemStream.Write(buffer, 0, buffer.Length);
6)Bitmap objBitmap = (Bitmap)Bitmap.FromStream(objMemStream, true);
7)objBitmap.Save(Response.OutputStream,System.Drawing.Imaging.ImageFormat.Gif);
Line 1 to 5 is OK. Line 6 has error found. Error message is "Invalid parameter". If you have solution, could you help me.
Thanks.
-- modified at 4:28 Wednesday 4th October, 2006
-- modified at 5:14 Wednesday 4th October, 2006
hklinn
|
|
|
|
|
I don't have any answer to your question but I would like to know why you are performing such a task. To store images directly in a Access database is not the best thing to do, especially if you plan to have any volume of users on the system. A hundred images in the DB and it will slow right down...
A better plan would be to save the files into a directory and reference their wherabouts in the database. You would be able to build pages with the images in a much similar way as you would do if you had saved them in the database.
The benefits of this would be:
Quicker database with less data stored in it.
Quicker to get the images when needed. Because you dont have to process the binary code.
The only thing you might lose is security, because they could simply be accessed via a browser if the user knew the file name...
|
|
|
|
|
You won't lose security with this method if you Restrict Access to page, and have a redirect to login page.
Dennis Jeffrey
|
|
|
|
|
I'm not sure if were getting our wires crossed on this one. Storing the images in a database is the most secure way of doing things. Storing the images in a folder on the server is less secure because they could be accessed from any web broswer by requesting their file name from the server. All servers as far as i'm aware will serve up an image if it is requested without questioning it authority.
I believe there are ways of protecting certain folders on your server which is another option. But the main question should be do you need such precautions. Why are you storing the images and what are they off?
|
|
|
|
|
I'm sure that my reply was to agree with you. I'm not the original poster.
|
|
|
|
|
Hi,
I added a customized button in IE that Shows a customized toolbar. Problem is that I can't make it HIDE the toolbar. I don't know if I have to change button's CLSID in registry, as I suspect that the following key
CLSID = {E0DD6CAB-2D10-11D2-8F1A-0000F87ABD16}
refers to a button that only SHOWS the toolbar. It should have the same behavior as IE "Favorites" button.
Anyone ?
Thanx in advance!!!
|
|
|
|
|
Am i correct in thinking that what you are trying to do is present a custom button on screen usn html/css/jscript and then are having trouble changeing the visability?
else PM my with what you are trying to do and send me some scripts
Brad
Australian
Have you tried Rebooting it?
|
|
|
|
|
Anybody found anything that does code coverage of JavaScript?
|
|
|
|
|
Coverage? Or do you mean the other way around?
Possibly Camouflaging scripts?
You might use server-side java-scripts or signated ones. First ones are just loaded as an object or external script and accordingly set to the appropriate read-rights par ftp.
If you just want to make it 'strongly not recommended' up to 'impossible' to understand what the script works out, well... What about crazy hieroglyphic names for variables, short-forms of if/then/else-constructs and as much functions as possible?
If you want to make it heavily difficult for the normal user to 'see' your scripts you should use an xml-http-request instance and use it as a loader for your external javascript-segments normally bound inside the body. And then replace the innerHtml of any given Element that has an id-Tag with this script. That performs a runtime/asynchronous call of the script only accessible in RAM. No temporary files, no Cookie-handling, no Session-Sets...
But if you really meant Coverage as used for covering something up, get into the details, etc. then you should install the latest opera, read anything about storing sessions and edit them in author-mode, buy a good Javascript 1.3/1.5-Reference and spent some time with HT-Tracks WebSite-Copier. With that you're on the best way to 'investigate'. You might be, because you truly don't wanted to know about simple tasks like 'hacking' and 'jacking', do you?
Well, possibly i misunderstood the whole question.
So, i really don't know if any of this might have had helped you if you're through with practicing it, but maybe?
Just try it, take your time.
If you got special questions you're free to send me an e-Mail. Please be specific and precisely as you're able if you're asking for help.
You know, code is poetry, fine and tasty; ...but taste sometimes isn't discussable.
You're Welcome,
Paeth.Claudius-Raphael
|
|
|
|
|
hehe, thanks for trying elyphe but that isn't what I meant. Code coverage is part of testing your applications. So you run unit tests and then you get coverage stats that tell you how much of your code is tested. It is a pretty important part of testing. Wikipedia has a good explanation[^].
|
|
|
|
|
Thanks for the advice during the wikipedia link. Okay, now i know.
But to be true i would've never ever thought that there are people in this world that check how complete (or better: at which rate) a code-complex was testet.
You need those results for planning projects and to see how efficioent your coder's section is by presenting your continuous struggle to financier's, huh? (...action ...reaction; uuuaaaargh!)
Whatever, i think my first reply might have amused you under that conditions, hehe
But isn't it possible to use the watcher/debugger/slayer functions given in ecclipse, flash 8, .Net St. 2005 or even in Office's Java Script Debugger? I mean, where's the problem to filter out the JIT-Message-Handles? As far as i know you have full capability to revise any single phrase of a conduct in runtime or even run marked parts in statistic mode, so it catches what you want.
But probably i'm once again too far away from that piece of reality you've asked for.
Won't make any more suggestions, sorry, i think it's better to shut up sometimes....
8)
Well, i really don't know if any of this might have had helped you if you're through with practicing it, but maybe?
Just try it, take your time.
If you got special questions you're free to send me an e-Mail. Please be specific and precisely as you're able if you're asking for help.
You know, code is poetry, fine and tasty; ...but taste sometimes isn't discussable.
You're Welcome,
Paeth.Claudius-Raphael
|
|
|
|
|
Thanks for the idea on using watcher/debugger in Eclipse or VS 2005, that might just work though.
Paeth.Claudius-Raphael wrote: ou need those results for planning projects and to see how efficioent your coder's section is by presenting your continuous struggle to financier's, huh?
No, it is for my own benefit. Would you write code without unit tests? I wouldn't anymore and I also hate to write code without code coverage analsysis too.
Unit tests without code coverage are less effective. You can be sure you will miss certain paths through your code. Code coverage will tell you what extra tests you need to write to cover all your code.
|
|
|
|
|
For real,
i understand what you had in mind, but on my side it's another task, because i don't code complete applications. Most of the time i'll just help out with modularized components developed under the aspect of following truly the given guideline and therefor restrictions; so i never had the problem to make the impossible possible and code up a fully featured app running independent.
The code clips i've produced since yet, have been almost small (about 300 to 500 wraps) the biggest one was building a pure scripted 3D-Tetris-Variant (About 4800 wraps). That was the first project where i ever used try-catch-blocks and similar functions, so you see, i'm no pro. Just spending my time with that to get deeper into it.
I also have absolutely no plan, what kind of tools are out their for scripting purposes, because i do coding by writing on paper, imagining it overall, then script it module per module, class by class and in the end when i got every necessary particle, i put it together.
That's why i never have had problems with debugging until now. I'll do the main testing while i make changes and in the end completely roll-up the whole set manually under certain conditions.
So again, it's not professional, but i can learn how it comes to the failures the code produces. And i think you're winning with it, because the library i got now after 2 to 3 years of massive scripting is mostly reusable, what gives me benefit in time and less stress for working on new projects.
Well, it's all in the head (though clean and precisely documented), but i am the coder who has to use these scripts, so they are my tools and spare parts.
Sorry, if i disturbed your peace with these statements, but i wonder how others, like you, who are interested in doing things the processing professional way, think about it.
If you might wanna answer, feel free, it would be nice to read your opinion.
You know, code is poetry, fine and tasty; ...but taste sometimes isn't discussable.
You're Welcome,
Paeth.Claudius-Raphael
|
|
|
|
|
I might have you wrong but I think it is dangerous to be over condifent when it comes to coding. Any reasonably complex system is too big to fit into your head as a whole. That is why unit testing couple with code coverage is such a useful tool.
No programmer I have ever known can understand every single path through a system. Those that said they can are invariably proven wrong with some code coverage analysis.
And it applies whether you are doing applications or libraries. It is all code at the end of the day and all code contains multiple paths.
|
|
|
|
|
You really woke my interest for the 'code coverage'-thang.
You got some good (res)sources to become informed about the procedere/schemes used in cc-analysis?
I want to read some more about that.
To point it out:
No, i think you don't got me wrong and i know that it sounds self-confident in the way i told my thoughts 'bout that thematic.
You might understand if you think of it as my specialty, meaning the way of handling systems.
I don't know why, but like others who are able to describe pictures precisely which they've seen once for some seconds (and that years before...), i'm able to memorize how dataflow behaves and to predict how it should by source but in reality will, because of the surrounding setup.
I think it is because i started with, e.g. assembler on 6510 when i was nine to ten years old and stepped on to fortran, cobol, etc. and 68k assembler just a year later. Or another example; due to interest i was able to speak english (in simple sentences) before i got into school, just by hearing music and listen to the talks of my aunt and their irish and english friends. (I'm native german, sorry.. forgot to tell about that)
Well, however that's really nothing special. Just interest & training. I thought it possibly might let you follow my mind with that background-information. That's why i'm telling you.
So back to my request, if you have some links or literature to get deeper into it, please send some more info. Or (it sounds like) if you have gathered information in your own projects about the efficiency the analysis brought to your codework, please tell some' details. I think it is most interesting to hear/read special reports from insiders.
...
Wow, seems you really really woke my interest for that, because of the confusing stack of words i call sentences. The bunch of letters i produced in here gives no sense it seems.
payah, what da heck, nevertheless, would be nice to read from you...
You know, code is poetry, fine and tasty; ...but taste sometimes isn't discussable.
You're Welcome,
Paeth.Claudius-Raphael
|
|
|
|
|
|
Thansk Richard. It is currently in closed beta with a release planned for next week. It won't be free though and it is the only one I have found. We need choice, including OS options like I have for unit testing and CI builds.
|
|
|
|
|
HI
Guys,Can any one let me know how to make the web application DDA(disability discrimination act) compliant, so the disable persons(blind,deaf etc) could also access our web application with out any hinderance, plzzzz reply ASAP,thankx in advnace for ur help.
|
|
|
|
|