|
Hockey wrote:
ASP.NET from what I can tell has an advantage for the beginner programmer...thats for sure...
Yeah, apart from it being what I know best, I really thought it was the right choice for this guy, because of where he was coming from.
Hockey wrote:
.s- I have yet to find a CP eqivilant for almost anything I enjoy...this is a real amazing unique community in that sense...even for programming stuff
Yeah, I tend to agree.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I developed an app that worked fine. I then proceeded to make a change. The change essentially allowed certain frames to be loaded with different aspx pages depending on user actions. Well, after trial and error I got the dynamic frames working. Now however controls seems to be in limbo.
the two frames in questions that are loaded dynamically are shown correctly but they don't seem to be communicating.
Here is the basic structure of the app
-Mainframe - defines 4 frames
-All frames will be dynamic at some point (same frame different aspx pages loaded into them
-What happens in one frame effects what happens in others
-Using sessions variable to communicate information
Tough problem to explain I'm Afraid, but if you have any insight I would appreciate heraing from you.
Brian55
|
|
|
|
|
In JavaScript how do I assign a value (window.idForm.idVariable.value()) to a session variable in the Global.asa file? I guess the real question is how do I use ASP code in a JavaScript function?
tjm
|
|
|
|
|
When an ASP poage is requested by a user, the code is executed on the server and the resulting page is then sent out to the client as an HTML page - so it is perfectly easy to assign an ASP-value (so to speak) to a javascript variable/function (simply enclose you ASP code in your javascript within the usual code delimiters), but as your javascript is going to be executed on the client, you cannot do the reverse without a postback to the server - sending the value you want to use in the QueryString and then extracting that in your ASP code to do whatever you want.
cheers
Phil
PS - not bad for one sentence, hey!
|
|
|
|
|
Hi all well I have to make an ASP for a company wich goal is to produce dynamics reports on the fly by querying a sql server database. The project is to let the user create is own template of report by drag/drop fields name on a webpage (more or less like Crystal Report), then the template must be save in order to produce later dynamic report... I have lot of questions to ask, but the first are these one :
- do U know how generate excel spreadsheet on the fly (Excel is not on the server no component can be buy and the spreadsheet should have 3 or 4 sheets with fomulas and a pie chat on the last one)?
- do U know an asp script which do what I want?
Any help will be appreciate
Dont steal : the government hate concurrence.
http://dypso.free.fr
|
|
|
|
|
Hi guys
I'm using a CHTMLView, which embeds an IE WebControl using IWebBrowser2 interface and i'd like to expose my app's automation server to the control beeing embeded.
To be more precise, my app is hosting the IE control AND is an automation server and i'd like to tell the ie control where is the automation server or how to use my automation methods in vbscript/javascript
Thanks
|
|
|
|
|
My name is Christos Mavroyiorgos. At present, I’m a student at the University of Patras and I have to construct a tool and environment that someone could use in order to draw and construct charts as part of a process of designing a software system. Some examples are UML Class Diagrams, Data Flow Diagrams, and Entity Relationships Diagrams.
The technologies that I use in order to implement it are the following:
• HTML
• XHTML
• CSS
• PHP
• JavaScript
• XML
• DHTML
• DOM
It is not necessary to use all the above but most of them.
Main functionality should be that someone could Drag and Drop, Resize, etc the drawing elements.
In addition to the main functionality of drawing the charts at the client side, a model(?)and a construct should be developed (with PHP) so that the user of the tool could be able to save the graph and call it back at a later moment for editing (I think this would be server side interaction).
I would appreciate very much to know whether anyone could help me in order to carry out this project or give me hints , ideas and advise, in a step by step process, by having a close collaboration or even taking charge of the whole project and implement it on my behalf ?
In any case, I would like to hear ,as soon as possible on any conditions and terms you consider to be necessary for any kind of collaboration in order to meet the demands of a successful project.
Thanks in advance
Sincerely yours
Christos Mavroyiorgos
University of Patras, Greece
|
|
|
|
|
You say:
"...or even taking charge of the whole project and implement it on my behalf."
Christos, if you want your degree/ diploma or whatever, you really ought to earn it yourself. Asking for ideas and advice is one thing; getting someone else to do your work for you is another. If don't want to, or are not capable of, becoming a programmer, I would suggest you find some other way to earn a living.
TANSTAAFL, as someone once said...
Phil
|
|
|
|
|
I agree with you Phil.
Can you give me any ideas in order to begin with it?
the last days i am reading about Javascript,Dhtml,dom etc
|
|
|
|
|
Sorry, this isn't really my field, but I can't help wonder why you want to develop this as a web application - it sounds like it would be more suited to a desktop app, and as such could be relatively easily accomplished in Visual Studio, using VB or C# or whatever other language you like.
Use the right tool for the right job - makes all the difference!
Good luck
Phil
|
|
|
|
|
|
Wow - any sort of charting app will require some pretty complex JScript, and work on a limited subset of browsers. As such, if you're targetting IE6, why is it that you need to use PHP ? I think your teacher is an idiot. PHP is useless in the real world, that is to say, you won't be getting experience that will help you find a job.
No matter what, this is the wrong project to be implimenting as a web app.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I am aC++ and php programmer/scriptor (sp?) but know little about javascript and the document object model. How do I dynamically find the the top and left values (IN PIXELS) of an object with respect to the top left of the browser window. I use tables to format pages so objects can have parents, grandparents, great-grandparents,..etc. The clientLeft and offsetLeft in conjunction with the offsetWidth dont give me the values I need to set the proper location. I need a way to find the position with respect to the top left corner of the client area of the IE Explorer browser window.
I have searched the msdn and am not finding the answer.
Thanks a million.
|
|
|
|
|
Dear CPian,
in the HTML world, all tags have a STYLE called "position". The "position" style can have a few different values. The 3 most used that you should be aware of are:
inline
absolute
relative
The default one is INLINE which allows the HTML elements to be rendered as they are found within the HTML code. In other words they follow the flow of the code in respect of their parent element.
The ABSOLUTE positioning will ignore the hierarchy for of the element(in the HTML code) to wich is applied and position the element to exact coordinates having as origin the most top and most left of the browser wndow. This is why you will notice that all asolutely positioned elements also have a LEFT and a TOP style, style attributes that take as values numbers in pixels, picas, ems and percentages and a few others that my mind is missing now. So an element coded as such:
<DIV style="position:absolute; top:100px; left:100px;">I AM ABSOLUTELY POSITIONED</DIV>
will have its origin(top left corner of the DIV) to the coordinate 100,100 discarding any parent elements. No matter where it is found within the code, its position wouldn't change.
The RELATIVE positioning is the same with the ABSOLUTE with one main difference. It uses as an origin its parent elemets top most and left most position instead of the browser top most and left most position.
Hope I helped. :P
theJazzyBrain
Excellence is not an act, but a habit! Aristotle
|
|
|
|
|
Hi all !
i want to access .ini files in clients local filesystem using client-side javascript.....
can i do that ?
do i have any control on client's local system ?
please reply back asap if u know anything related to that...
thank you,
abhi
Abhijeet Jadhav
|
|
|
|
|
|
Hi...
thanks for the information ...
actually i want to retrieve the version of ActiveX component registered on the client-side from client-side javascript code.
so i am instantiating component by calling
var obj = new ActiveXObject(name_of_component)
and then i invoke its method Get_Version() which returns me the version of component. In this Function, i can read .INI file to retrieve the version.
But the problem is that all methods of COM interface return HRESULT value, so to get version, i need to pass version parameter by address.
Now How do we pass function parameter by address in JavaScript ?
Can you help me doing that ? or any alternative way if you can think of.
Please let me know ASAP.
Thank You,
Abhi
Abhijeet Jadhav
|
|
|
|
|
Hi there
Is there a way to retrieve a remote servers SMTP logs in ASP.Net using vb code. I need the logs for reporting purposes, any help will be greatly appreciatted.
Thanks
|
|
|
|
|
|
how to draw a rectangle on an image in asp .net
|
|
|
|
|
You can't do it on the client end, you need to do it on the server, and then you do it the same as you would in a WinForms app - if you're sending an image to the client, you first load it into a Graphics object and draw on it.
If you just mean put a rectangle on the form in the browser, that's a whole different ball game. Remember, your C# code exists for the sole purpose of generating HTML, all you can show on the client is what you can show in HTML, and by using JScript if you must.
Perhaps SVG would help here ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
hi
i want to create a new folder in my site with programming
when an event fires.
how i can do it with c#?
thanks
|
|
|
|
|
using System.IO;
and in your event handler:
DirectoryInfo r = new DirectoryInfo("myRootPath");
r.CreateSubdirectory("MyFolder");
Of course, as you've asked in the web development area, you need to make sure that your web app has permission to create a folder at this location.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I am developing a automated web data extraction program. One of the pages (POST) gets redirected. If I disable automatic redirection and attempt a GET to the redirection page, the server does not come back with the data (timeout). If I allow the redirection to occur, when I attempt to read the data (redirection is GET) I often end up reading a partial page (the transaction has not completed).
How can I tell the transaction completed for:
pFile = pServer->OpenRequest("POST", ....
:
pFile->SendRequest(NULL,NULL,(LPSTR)(LPCSTR)post_string,post_string.GetLength());
pFile->QueryInfoStatusCode(dwRet);
if (dwRet == HTTP_STATUS_OK) { <--- the status is OK even though the redirected read is in action at the time!
pFile->Read(htm_read_buffer, BUFFER_SIZE);
}
Thanks in advance!
|
|
|
|
|
Getting "the server returned an invalid or unrecognized response" error on the code listed below. The url is an asp page on my company's qa server that takes an
xml request, processes it and returns an xml response. The code works fine
at work when run from my win 2000 machine on our LAN but one of our clients
is complaining about the above error, he's using a win xp machine. I can reproduce the error if I take the code home and run it from my xp machine but I'm not a web developer so I haven't got a clue how to make it work. I searched msdn and found a few items regarding the above error, most of it I didn't understand but some of it suggested different IE security settings which I tried to no avail.
Any advice would be appreciated ...
var SXH_OPTION_IGNORE_SERVER_SSL_CERT_ERROR_FLAGS = 2;<br />
var SXH_SERVER_CERT_IGNORE_ALL_SERVER_ERRORS = 13056;<br />
<br />
var url = "someurl.asp";<br />
var oXmlHttp = new ActiveXObject("Msxml2.ServerXMLHTTP.4.0");<br />
var domReq = new ActiveXObject("Msxml2.DOMDocument.4.0");<br />
<br />
domReq.async = false;<br />
domReq.loadXML(document.getElementById("req").value);<br />
<br />
oXmlHttp.open("POST", url);<br />
oXmlHttp.setOption(SXH_OPTION_IGNORE_SERVER_SSL_CERT_ERROR_FLAGS,SXH_SERVER_CERT_IGNORE_ALL_SERVER_ERRORS);<br />
oXmlHttp.setTimeouts(30000, 30000, 30000, 90000);<br />
<br />
oXmlHttp.send(domReq);
<br />
Thanks
Andrew Bleich
|
|
|
|