|
We are doing the UI part in JSON format. we got new feature for the next release. I have searched so many links, but I got only javascript with this requirement, not the json. So, I have posted here.
I am not saying that your answer is not correct, but I think that the answer, which he has given is not suitable to my question.
Thanks,
Visala
|
|
|
|
|
Oh, maybe it was just your wording that threw me into judgemental waters. You can't program with JSON, only with JavaScript, which will use your JSON data to manipulate DHTML elements to present tables, selects etc. Try looking for some resources on DHTML and JSON serialisation. I'm can't help more than that, 'cos I don't really know more.
Pits fall into Chuck Norris.
|
|
|
|
|
I created table dynamically, but I am not getting the right click option even I use setcapture() and it is not displayed like a popup.
The function, which I have written to generate the table is as follows. If you find anything to do, please let me know
function createDynTable(row, col)
{
oContextMenu.innerHTML="";
//oContextObject=oTarget;
iMenuItems=0;
oContextMenu.setCapture();
// get the reference for the body
var mybody = document.getElementsByTagName("body")[0];
var mydiv = document.createElement("div");
// creates a <table> element and a <tbody> element
mytable = document.createElement("table");
mytablebody = document.createElement("tbody");
// creating all cells
for(var j = 0; j < row; j++) {
// creates a <tr> element
mycurrent_row = document.createElement("tr");
for(var i = 0; i < col; i++) {
// creates a <td> element
mycurrent_cell = document.createElement("td");
// add edit cell;
mycurrent_cell.ondblclick = function (evt) { editCell(this);};
// creates a text node
currenttext = document.createTextNode("cell is row "+j+", column "+i);
// appends the text node we created into the cell <td>
mycurrent_cell.appendChild(currenttext);
// appends the cell <td> into the row <tr>
mycurrent_row.appendChild(mycurrent_cell);
}
// appends the row <tr> into <tbody>
mytablebody.appendChild(mycurrent_row);
}
// appends <tbody> into <table>
mytable.appendChild(mytablebody);
mydiv.appendChild(mytable);
// appends <table> into <body>
mybody.appendChild(mytable);
// sets the border attribute of mytable to 2;
mytable.setAttribute("border", "2");
//return mytable;
oContextMenu.innerHTML=mytable;
iMenuItems++;
}
Thanks,
Visala
|
|
|
|
|
visala wrote: So, if you provide the logic for this scenario, its fine.
But, the answer you have given is not appropriate
Actually, the answer is spot on. This is NOT the forum for this question. There is an ASP.NET and a web programming forum on this site. Either would have been a more appropriate choice. There are reasons that we don't just have one forum here on the site - it's so that people can find answers to problems in readily accessible locations without having to wade through questions about technology's they couldn't care less about.
|
|
|
|
|
Hi all,
I want to know.. that how many serial ports can be
supported by Windows OS:
Windows 98
Windows XP
Windows 2000
Windows 2003
The Serial Ports (COM ) in d sense//
Physicaly present
and Virtualy also..
plz reply I m waitng..
thanks in advance..
|
|
|
|
|
hi all,
i develope one application in VS2005
and it requires .NET framework 2.0 installed to execute
at Client side.
so can anyone tell me the details of
min System requirements for the framework 2.0.
Actualy i dont have the access to microsoft right now..
so plz dont give me Microsoft site's reference.
thanks in advance..
waiting for ur reply...
|
|
|
|
|
One way around this is to google the question and view googles cache of a MS page.
Supported Operating Systems: Windows 2000 Service Pack 3; Windows 98; Windows 98 Second Edition; Windows ME; Windows Server 2003; Windows XP Service Pack 2
More than I thought....
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
* Supported Operating Systems: Windows 2000 Service Pack 3; Windows 98; Windows 98 Second Edition; Windows ME; Windows Server 2003; Windows XP Service Pack 2
* Required Software:
o Windows Installer 3.0 (except for Windows 98/ME, which require Windows Installer 2.0 or later). Windows Installer 3.1 or later is recommended.
o IE 5.01 or later: You must also be running Microsoft Internet Explorer 5.01 or later for all installations of the .NET Framework.
* Disk Space Requirements: 280 MB (x86), 610 MB (x64)
|
|
|
|
|
I am using windows installer. I need to find where A product was installed and copy the packed dlls to the installed folder. So users are forbidden to change the install path.
My questions are:
1. How to invalid the “browser” button so that users cannot change the install path?
2. How can I run some code(e.g. call a dll) at the very beginning of installation? By over writting "Install" and "BeforeInstall" methods, it can only run after the dlls were copied to installed path!
thanks so much!
do it.
|
|
|
|
|
please any one give me help on that
i want to work with primavera V5.0 integration API from the visual studio 2008
and i don't know how i call them and work with them
|
|
|
|
|
Do they not have a website ? I've never heard of it, and I assume many others here are the same, how can we help ?
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
thx for your reply and yes thay have
and that's it
www.primavera.com
and i just want to know how to deal with the API in .net
|
|
|
|
|
Looks like it's a Java control. Which means, you can't. Unless you create a java window and write tons of code to communicate between C# and the fake child window that is really a Java app.
Christian Graus
Please read this if you don't understand the answer I've given you
"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 all,
I am planning to develop a website which have a simulator where allows users to design thier nail design online. This will be something drag and drop the design to the fingernail in 3D mode.
I would like to ask can this implement in C# with Managed DirectX? And, how do I implement this using C# wi9th Managed DirectX?
Thanks.
|
|
|
|
|
I have a very large application and I am trying to get a handle on its working set, I suspect the same methods are being repeatedly jitted and chucked out of memory because of memory constraints.
How can confirm this, is there a tool that will let me watch or log what the runtime is up to ? I have already confirmed using the .NET performance counters that methods are continually being jitted when I repeat the same actions in application. Now I want to drill down an determine exactly which methods are being repeatedly jitted when I repeat these actions ?
Regards
Ray
"Je Suis Mort De Rire"
Blogging @ Keratoconus Watch
'Cos the righteous truth is, there ain't nothing worse than
some fool lying on some Third World beach wearing
spandex, psychedelic trousers, smoking damn dope
pretending he gettin' consciousness expansion. I want
consciousness expansion, I go to my local tabernacle
an' I sing with the brothers and sisters -- Alabama 3
|
|
|
|
|
The full version of .NET Framework does not implement code pitching (discarding JITted code). Only .NET Compact Framework currently does this. See http://msdn.microsoft.com/en-us/library/ms231445.aspx[^] for a note on this.
Do watch out for dynamic assemblies for XML serialization, which if I recall correctly can end up being repeatedly recompiled if you don't use the right options to cache the serializer assembly. These are built by generating C# code and invoking the C# compiler so their cost is very high indeed. See XmlSerializing your way to a Memory Leak[^].
Otherwise, be sure you're disposing all objects you use which have a Dispose method or implement IDisposable . If you don't, the object's finalizer may need to be run, which causes it to survive the first GC and pushes it into an older generation. See "Finalization and Performance" in Garbage Collector Basics and Performance Hints[^].
Finally, for tools, FxCop will tell you if you haven't called Dispose on your member variables in your class's Dispose method, if your member variables implement IDisposable. To follow what allocations are happening where, try CLR Profiler[^].
DoEvents: Generating unexpected recursion since 1991
|
|
|
|
|
Thanks Mike, plenty to chew on here!
Regards
Ray
"Je Suis Mort De Rire"
Blogging @ Keratoconus Watch
'Cos the righteous truth is, there ain't nothing worse than
some fool lying on some Third World beach wearing
spandex, psychedelic trousers, smoking damn dope
pretending he gettin' consciousness expansion. I want
consciousness expansion, I go to my local tabernacle
an' I sing with the brothers and sisters -- Alabama 3
|
|
|
|
|
I downloaded and installed dotnetfx2 but none of the dll's are showing up in the references list (add references to a project) in the IDE.
I have xp sp2 and visual studio 2003
Any suggestions?
Steve S.
|
|
|
|
|
sas9491 wrote: Any suggestions?
Install Visual Studio 2008 (possibly one of the free editions if your budget doesn't stretch to a fullblown version). The problem you've got is that you are trying to see .NET 2 from an application that only recognises .NET1.1. You need a minimum of VS2005 before you can see .NET2.
|
|
|
|
|
Thanks Pete, That was the issue. The world is spinning in greased grooves once again.
Experience is know you've made this mistake before
|
|
|
|
|
Along with what Pete said;
VS2003 is only meant to build against 1.0 and 1.1. Microsoft makes money by creating newer versions that have newer features that can't be run on older systems. You have to update to VS2005 at the minimum or just skip to VS2008.
VS2005 only allows you to see the .NET 2.0 assemblies (partially because the functionality is kept from 1.0 and 1.1), but you cannot build applications to 1.0 or 1.1 framework. With the WinFX (now .NET 3.0) extensions you can build and see the .NET 3.0 framework.
VS2008 is meant to work/build to either .NET 2.0 or .NET 3.0 or .NET 3.5 (you will see all of those assemblies). You can't see/build to 1.1 or 1.0 frameworks.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios[ ^]
|
|
|
|
|
Have anyone used Word viewer ocx ? (available here at :http://www.anydraw.com) I have downloaded its evaluation version and it works fine . Will this version become expired so that I need to purchase it ? Because when using this component there is no sign of alert saying it is an evaluation version. Has anyone used this component knowing the answer ?
|
|
|
|
|
It has a buy now option on the website, so what do you think (especially as it has a selling price of £535.86)?
|
|
|
|
|
Hey, everyone. I ran into a little puzzler this morning that took me back to my early days of OOP, and I'd appreciate it if someone could point out what I'm failing to understand.
I was attempting to check the values of two System::Drawing::Point objects for equality, and the equality operator did not behave as I expected. Now, before you jump all over me about it, I do understand the difference between using the virtual method Object::Equals() and the equality operator '==' on two handles. Well, at least, I thought I did until I decided I might just be crazy a few minutes ago.
I know that operator== will only check to see if two handles refer to the same instance unless it is overridden to do value checking instead, but it is overridden for the Point class. MSDN reports that System::Drawing::Point::operator==() "compares two Point objects. The result specifies whether the values of the X and Y properties of the two Point objects are equal."
My silly little test case (in C++/CLI) follows:
Point^ p1 = gcnew Point(0, 0);
Point^ p2 = gcnew Point(0, 0);
label1->Text = (p1 == p2).ToString();
label2->Text = (p1->Equals(p2)).ToString();
Label1 reads "false" and label2 reads "true," which is the behavior I would expect if the Point class didn't override operator==, but it appears to. I've Googled around and searched through a few forums, but haven't found anyone complaining of the same issue.
I know this just has to be some silly little error that I'm making, either in implementation or understanding, and I'm going to be embarrassed when someone smacks me with the clue bat. I'd much rather understand and be embarrassed than continue to misunderstand, though.
Thanks, gang, and try to be gentle.
|
|
|
|
|
With my minimal C++ knowledge, the code you supplied is working how it is suppose to (in C++). I could understand if MSDN was making reference to the VB or VC# aspects of the == operator. If you are sure the MSDN article was for C++, then the only thing I can say is "Microsoft is only perfect" (try not to laugh to hard at the statement). Microsoft and its employees could have been mistaken in that aspect (wouldn't be the first time).
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios[ ^]
|
|
|
|