there is a < div > tag but it disappeared on posting. Its in the table cell.
ajisthekingofpop
Posts
-
AJAX using DIV throws a runtime error -
AJAX using DIV throws a runtime errorthe Jscript code is: function GetXmlHttpObject() { var xmlHttp=null; try { // Firefox, Opera 8.0+, Safari xmlHttp=new XMLHttpRequest(); } catch (e) { // Internet Explorer try { xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); } } return xmlHttp; } function stateChanged() { if (xmlHttp.readyState==4) { alert('got data'); //document.writeln(xmlHttp.responseText); var item = document.getElementById("cont"); //alert(item); var res = xmlHttp.responseText; item.innerHTML = res; //.innerHTML=; } } function loadArticle(id){ //alert('id is ' + id); xmlHttp=GetXmlHttpObject(); if (xmlHttp==null) { alert ("Your browser does not support AJAX!"); return; } var url="articles.aspx"; url=url+"?id="+id; xmlHttp.onreadystatechange=stateChanged; xmlHttp.open("GET",url,true); xmlHttp.send(null); } the htnl sits klike this
o.k assigning just "hello" to the innerHTML of cont works fine, but try and assign responseText and I getthe runtime error.
-
AJAX using DIV throws a runtime errorI have a div which is embedded inside a table. I can manually find the element using getByElementId("mytag"); I can even statically assign innerHTML, but my problem occurs when i try and assign it the responsetext from a XMLHTTP Object. If the DIV tag exists out the table on its own, then everything workds fine, its just when the div is embedded inside a table or even a form. What am i doing wrong, someone please help. I can document.write the responseText and its correct, I can even statically assign 'hello' to the innerHTML of my tag and all works. Any suggestions would be appreciated.
-
Product Activation and Licensinghey mike. thanks for the suggestion but it was my first port of call.
-
Product Activation and LicensingI am looking for a cost effective, software licensing and activation system which can easily be integrated within a .NET software package. I am looking for systems which automate activation either over the internet or/and over an automated phone system.
-
Obfuscator : which one is best?ok. thanks. ive had a good look at that document before. What Obfuscators do you guys use?
-
Obfuscator : which one is best?Which C#/.NET Obfuscator is best? Price and feature wise? I wise looking at the professional edition of dotfuscator but the price for the professional one is just silly. Any recommendations would be welcome.
-
VC++ Linking error to do with += OperatorI have created a class with the following defined: friend CStrTemp& operator += ( CStrTemp& i, const CStrTemp& s ); and then: template CStrTemp& operator += ( CStrTemp& i, const CStrTemp& s ) { ///code and return } Everything compiled but when it tries to create the executable it throws up the followinf error: CString.obj : error LNK2019: unresolved external symbol "class CStrTemp & __cdecl operator+=(class CStrTemp &,class CStrTemp const &)" (??Y@YAAAV?$CStrTemp@D@@AAV0@ABV0@@Z) referenced in function "class CString __cdecl operator+(char,class CString const &)" (??H@YA?AVCString@@DABV0@@Z) Any help would be appreciated as I just cannot understand why it is not working.
-
Is real-time programming can be done with C# & .Net?No just for the fact its an Enterprise Framework that potentially generated MSIL and CLR byte-code thats run on some type of 'virtual machine' runtime. Its like Java all over again but imho alot cleaner.
-
Launching Device Manager or manipulating device manager from C++Thanks David. :(
-
Launching Device Manager or manipulating device manager from C++No. They are custom drivers that have been written for our specific hardware. I have looked high and low for information on it. Im sure its possible but MSDN doesn't have all that much information. The Linux world makes it so much easier :(
-
How to vopy data pointed by a "Void* " pointer to "CString" objectvoid* pVoid = 0; CString csData; pVoid = new BYTE(100); I would do the following: memcpy(&csData, pVoid, 100); //I would use a #define for the 100 tho because it make sit easier to understand Now this has copied the data from one object to another WITHOUT using a reference.
-
Launching Device Manager or manipulating device manager from C++I want to be able to prompt the Device Manager to install some driver files from a specific location from C++.
-
Launching Device Manager or manipulating device manager from C++Sorry to be such a pain. Can you eleborate a little? I have used both these functions in the past but how on earth would I use them to prompt the device manager to install some drivers from a particular location?
-
Parsing XMLIf its C# you are working in, then just deserialise the XML document into a standard POCO (Plain old CLR object) and then run a loop on it to take all the data you want out and place it into an Array (or Generic List).
-
How to play a encoded video file ?No. You can't really do that. All you havwe done is ASCII encoded the binary data and potentially added a massive overhead to the processing. You cant just past such an encoded object to a video player and it can work out what to do with it. I personally would never encode video data into base64 and then embedd it in XML. That is asking for trouble.
-
Launching Device Manager or manipulating device manager from C++I want to be able to automatically install some driver files for use by my application. I have looked high and low and cant find any API documentation to help me out. Does anyone know of a way?