|
Morning all.
I've been playing around with "customizing" the XMLHttp object using javascript to provide some extra functionality to it. Specifically, I've been trying to add a Timestamp field to the object, for tracking purposes.
Now as we all know, a javascript object is just a dictionary with string keys - which is why "object" members can be accessed through either the . operator or the [] operator. So far so good. Now since it's a dictionary, we're able to aritrarily add fields as and when we like, so the following code...
<br />
var obj = new ActiveXObject ("Microsoft.XMLHttp");<br />
obj.Timestamp = new Date();<br />
...should add this field to the object. I've tested under IE7 (no no - don't panic, not moaning bout Firefox - it's even stranger than that!), and alles ist gut. However, when I try it under IE6, I'm getting an "object doesn't support this property or method" error on the assignement of the new field - and a quick watch is telling me that indeed it's not there. (Which makes sense since the assignment is failing)
Anyone know what this might be - according to The Great God Google, there were no syntactic changes in the JS engine for IE7, just performance ones...
-- modified at 4:45 Tuesday 1st May, 2007
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
Hi can anyone help me in giving guidance to create barcharts and piediagrams using the crystalreport in .net. When i searched in the net I am getting all the .net charting softwares but not the guidance to create the charts using crystalreport.
Thanx in advance
|
|
|
|
|
Hi friends,
Give me some idea for working with Sharepoint portal in .Net.
Please help me.
Thanks and Regards
Prya
|
|
|
|
|
Hi,
I have a dotnet application in which i have to import data from an excel sheet and store datas in mysql table to display those datas in my dotnet application. Iam using this datas to display datas for generating employee salary slip in my dotnet application. pls do help me with source code in C#.
Regards
Vijay.
|
|
|
|
|
http://www.codeproject.com/script/comments/forums.asp?msg=1985635&forumid=12076&mode=all&userid=3585246#xx1985635xx
note: I have used free SQLHelper Class to connect with database.
Regards,
Mayank Parmar
Senior Software Engineer
Amba Tech
Gandhinagar, India
|
|
|
|
|
hi i want to create a web browser in .net 2005 which can restrict a porn sites and if any porn words matches then also restrict that sites.please help me and send some source code
|
|
|
|
|
fgfdhghgfd wrote: hi i want to create a web browser in .net 2005
In other words, you want to wrap IE and put your own UI on it. Why ?
fgfdhghgfd wrote: which can restrict a porn sites and if any porn words matches then also restrict that sites
Surely someone else has thought of this before you ? Either way, an add in seems like a better idea than bothering with the IE control.
fgfdhghgfd wrote: please help me and send some source code
ROTFL.
I'm afraid no-one is going to write it for you. Try to learn a bit about the task at hand, and ask more specific questions.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I was going to say I am confused on why they wouldnt just turn on site blocking in IE?
|
|
|
|
|
HI all
I want to display the deatils in pdf
I succeed but the application running only in local system not in FTP
it is saying "Active X control can't create"
can any 1 tell me what i have to do to run in FTP
I added a Ref. In my application "PDFCreaterPilot3Lib"
Keerthi
|
|
|
|
|
You can't possibly do more via FTP than push a PDF to your client, who would then need to open it themselves. Are you sure you don't mean HTTP ?
Perhaps if you posted some code so we had some idea of what it is you are trying....
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
HI, i am currently using visual studio 2005 C# and sql server 2005. I need a web service that can update a user's companyLogo int the database. When stored into database, the companyLogo would look sth like this
/9j/4AAQSkZJRgABAgEBLAEsAAD/4Q+TRXhpZgAATU0AKgAAAAgABwESAAMAAAABAAEAAAEaAAUAAAABAAAAYgEbAAUAAAABAAAAagEoAAMAAAABAAIAAAExAAIAAAAcAAAAcgEyAAIAAAAUAAAAjodpAAQAAAABAAAApAAAANAALcbAAAAnEAAtxsAAACcQQWRvYmUgUGhvdG9zaG9wIENTMiBXaW5kb3dzADIwMDY6MDc6MzEgMTU6MjY6MDMAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAeqADAAQAAAABAAAAQgAAAAAAAAAGAQMAAwAAAAEABgAAARoABQAAAAEAAAEeARsABQAAAAEAAAEmASgAAwAAAAEAAgAAAgEABAAAAAEAAAEuAgIABAAAAAEAAA5dAAAAAAAAAEgAAAABAA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f0jq/5X0/+DXnWPTm/WR7updZzbcl24tDSddIOn5lTP5NbFrN6dgNo+zjHZ6R5aRJJ/e3/AE9yr5OahA8NGRG7o8t8KzZoe4THHGQuHFqZf4r7D0rrXSusUfaOmZVeVX32HVv/ABjPp1/21eXz3l9Ou6NPVOkZVuJZSQYa4g6mPbY3/qHrqfq//jf6li10t
A very very long string of unreadable characters. Thank you
|
|
|
|
|
Hello everyone.
I am currently working on a team project for school using ASP.net and VB.net. The problem we are currently having involves panels as group boxes. On one of our pages we have several items grouped in a panel, however, this panel may be of variable width and height. This works fine in older versions of IE and in firefox, but when trying to display the panel in IE 7 it displays only as its pixel length and does not expand to fit the data as it does in other versions.
Does anyone have an idea on how to fix this or an alternate way to do a similar thing? Thank you.
|
|
|
|
|
I have a master page and it has one dropdownlist. I has two items. Is this possible that
in content page I can create the instance of this master page and get value of it's selected item in drop0downlist.
e.g mymaster.master is my master page and it has one dropdownlist
and in content page.
myMaster varr = new myMaster();
How can I grab the value of selected item in content page.
|
|
|
|
|
You need to set the @MasterType Directive and the you should be able to access it through the page.master property in your code behind.
Hope that helps.
Ben
|
|
|
|
|
I need to add to my website application the ability to receive up to
30K of XML data from a Windows client application. I know I can use an
XmlTextReader() to receive the data and put it into the cache. What I
am mostly not sure about is how the website is supposed to know that a
client is wanting to connect and send data. Do I set up a polling thread using a Listener socket to check for a connect request or is there a better way?
I have gone through books and web searches trying to find the best way
to send data from my client to the website, but most scenarios
seem to be the server sending data to the client. Any suggestions
would be greatly appreciated.
Craig
|
|
|
|
|
Just create a specific web page for the windows app to send the data to.
Then use the Request object to get the stream. Once you have the stream you can put it into an xml doc or whatever. All this code can go in your page load of that page.
I have some code that does this for cXML transactions. I can post it if you think it would be helpful.
Ben
|
|
|
|
|
For anybody who is having the same problem I was having, I solved my problem by attaching an asmx page to my website and simply using a WebMethod that takes a string as an argument. All I have to do is call this method from my client windows application passing it a string of data points. My WebMethod then writes the data to a file where my webpage reads it before displaying. Very simple, but difficult to find information on how to do this. I didn't know that an asmx page could be attached to a website that is not originally a web service unitil I just plain tried it. I guess that makes it a webservice/website. I am in the early stages of learning ASP.net. I hope I am doing this in a practical way. Only time will tell.
Craig
|
|
|
|
|
I have to design a usercontrol in asp.net, which will display image in table.
how do i place the image in usercontrol? how will i use it in html, and display in browser?
|
|
|
|
|
You import it into your aspx, and use it the same as you would any server control.
You would put the images on your server, and put the path to them in your user control, in the markup.
<%@ Register TagPrefix="anyPrefix" Src="~/pathtoascx" TagName="thecontrolname" %>
Then <anyPrefix:thecontrolname runat="server" id="wahtver"/> with create the control.
This stuff is covered in any book on ASP.NET, I recommend buying one and working through it.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Thanks for the update,but my problem is different..
i have a usercontrol which displays
student name
school name
link to different page
i want to write a code which would show this information one below the other like within table, and image in the background,
|
|
|
|
|
Hi.
I have a webservice - and I want to make sure that only MY application is using it.
Is this possible, in a secure way?
Thanks,
Cormac
|
|
|
|
|
|
Thanks.
Unfortunately, those techniques rely on username and password credentials. I need to prevent my users from being able to build their own applications andthen using my web service with their username and password.
Regards,
Cormac
|
|
|
|
|
Instead of using the username and password of the users, you can have a username hardcoded into your application. The users will not be able to get the username unless they have access to the code and even if they have access to the code, the password could be encrypted.
|
|
|
|
|
Thanks for your suggesstion.
However, this is not a solution; it is too easy to decompile .NET applications. Encrypting a password just introduces another problem: the encryption key and how to 'hide' that. Hardcoding is not the answer.
Unfortunately, I can't forsee any satisfactory solution.
|
|
|
|