|
Does anyone know how to make MS Visual InterDev <!-- show this text --> in the source view? I have been unable to find a setting for this. All the source view shows is <! >; when I am editing in raw HTML I want to see everything.
INTP
|
|
|
|
|
Haven't got it installed anymore and I may be completely wrong but don't you just right click the "show this text" bit and one of the options is to reveal? Apologies if that is wrong.
regards,
Paul Watson
Bluegrass
South Africa
Christopher Duncan quoted:
"...that would require my explaining Einstein's Fear of Relatives"
Crikey! ain't life grand?
Einstein says...
|
|
|
|
|
Any got a good article or somethin about licensing ActiveX-components. I’ve read MSDN but not satified.
I don’t realy get the point of how to distribute the lic-file and where my customers should place the file to make my ActiveX run on their cpu-s.
...and justice for all
APe
|
|
|
|
|
I am writing a tool band object using C++ and Visual Studio.NET 2003. The
toolband object is a regular ATL/C++ dll inproc server project.
Environment: Windows XP Professional SP 1, Visual Studio.NET 2003 installed, IE
6.0 SP1 (all the Windows update patches applied for everything)
The object (CToolBand) is derived from the classes CComObjectRootEx,
CComCoClass, IObjectWitSiteImpl, IDispatchImpl, IInputObject and IDeskBand.
The SetSite method is implemented as follows (excerpts with error handling
stripped out):
STDMETHODIMP CToolBand::SetSite(IUnknown *punkSite)
{
m_spSite = pUnkSite;
....
CComPtr<IServiceProvider> spService;
m_spSite->QueryService(IID_IServiceProvider, (void **)&spService);
CComPtr<IServiceProvider> spService2;
spService->QueryService(SID_STopLevelBrowser, IID_IServiceProvider, (void **)&spService2);
spService2->QueryService(SID_SWebBrowserApp, IID_IWebBrowser2, (void **)&m_spWebBrowser2);
CComQIPtr<IConnectionPointContainer> spCPC = m_spWebBrowser2;
CComPtr<IConnectionPoint> spCP;
spCPC->FindConnectionPoint(DIID_DWebBrowserEvents2, &spCP);
spCP->Advise(GetUnknown(), &m_dwCookie);
}
The Invoke is also implemented as:
STDMETHODIMP CToolBand::Invoke(...)
{
if(dispid == DISPID_BEFORENAVIGATE2)
{
ATLTRACE(_T("BeforeNavigate2"));
}
return E_NOTIMPL;
}
What I cannot understand is that I receive BeforeNavigate2, NavigateComplete, DocumentComplete, Quit, PrivacyImpactedStateChange events (and also the TitleChange, Progress, StatusTextChange, PropertyChange etc.).
But I DO NOT receive the SetSecureLockIcon (DISPID_SETSECURELOCKICON) at all, although I am sure that I tested with a SSL 128bit site.
In my header file this DISPID have the value 269 (ExDispID.h)
In fact, I made a sample VB application with a form hosting a web browser control, and I received the setSecureLockIcon event, so I don't think is something from my browser settings.
I suspect that is something regarding the current implementation of SetSite and/or Advise methods, since this is not a web browser control, but a toolband object hosted in the rebar control.
Maybe I query for the wrong IWebBrowser2 object? I get the application object, but the SetSecureLockIcon event is fired for the browser control and not the browser application?
I feel that I mismatch something.
I can't wait the replies!
Thank you,
Cristian Amarie
|
|
|
|
|
In netscape 7.1 the height of the popup is comin much less
even in mozilla 1.4 the same problem is there, can any one help
the following is the code used by me
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<SCRIPT language="javascript" type="text/javascript">
<!--
var win=null;
function NewWindow(mypage,myname,w,h,scroll) {
settings='width='+w+',height='+h+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,"",settings);}
// -->
</SCRIPT>
</HEAD>
<BODY>
<B>
<A href="mypage.html" onClick="NewWindow(this.href,'popup','250','150','no');return false" onFocus="this.blur()">click here</A>
</BODY>
</HTML>
|
|
|
|
|
Use a proper measurement unit, don't leave it up to the browser to guess. So instead of '250' and '150' use '250px' and '150px'.
regards,
Paul Watson
Bluegrass
South Africa
Christopher Duncan quoted:
"...that would require my explaining Einstein's Fear of Relatives"
Crikey! ain't life grand?
Einstein says...
|
|
|
|
|
I have a textbox that I need to change it's lang(similar to alt+shift) when it is getting focus on the clientside via javascript.
please help
|
|
|
|
|
Using JavaScript you can manipulate the values of attributes in tree nodes. Get a reference to the element e.g. document.getElementById("MyTextBox") and then reference it's child attributs.
regards,
Paul Watson
Bluegrass
South Africa
Christopher Duncan quoted:
"...that would require my explaining Einstein's Fear of Relatives"
Crikey! ain't life grand?
Einstein says...
|
|
|
|
|
Hi!
I just want to ask if anyone knows how to make the horizontal scrollbar to not appear and put the word on the next line (instead of continually scrolling in one line)
Your immediate answer will gladly be appreciated.
|
|
|
|
|
I'm going to presume you are writing to the iframe and not talking about flowing an entire page.
an iframe's document is the same as a main window's document. so, did you try sending a "< br >"?
Vinny
The Blades of Grass
cut me
still
|
|
|
|
|
Hello! I wrote a JavaScript Tree application. Each node has a text link of this type:
<a href="javascript:void(0)" onclick="clickOnNode(this_id)">
In clickOnNode() event handler I call some 'callback' function and then select a node being clicked.
function clickOnNode(nodeId)
{
// Call some 'callback'
tree.select(nodeId);
}
Inside of tree.select() I check if Ctrl key was depressed during a mouse click using 'event.ctrlKey'. If Ctrl was pressed it allows multi-select just as Windows explorer does.
It works in IE, but doesn't work in Mozilla because of it's different event model. Instead 'Ctrl'+click immediately opens a new browser tab!
Could you please give me a link or even better provide me with a chunk of code showing how to check 'Ctrl' button in Mozilla and prevent additional tab from opening?
Thanks a lot.
|
|
|
|
|
Hello everyone, Ive been searching for two days now to find a free component that will resize a jpg, gif image after upload and then replace the original. Is there such a component out there (free) or should I stop looking.
Does anyone know where to find such a component, would be greatly appreciated.
Thank you.
|
|
|
|
|
AngelofPeace wrote:
Is there such a component out there (free)
Absolutely it is free - It is called the Microsoft .NET Framework!
What you want to do it to load your image into a bitmap object, draw it into a second bitmap (to the scale that you want) and then save the second bitmap object back to disk.
Bitmap sourceBmp = new Bitmap(fileName);
Bitmap destinationBmp = new Bitmap(reqiredWidth, requiredHeight);
Graphics g = Graphics.FromImage(dest);
g.DrawImage(SourceBmp,0,0,requiredWidth,requiredHeight);
destinationBmp.Save(fileName);
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar
Coming soon: The Second EuroCPian Event
|
|
|
|
|
ASP & SQLserver2k & Windows2003
I use ASP to add data to 2 tables
I have 2 tables: Invoice and InvoiceDetail
Invoice contains: InvoiceID, ClientName, InvoiceDate........
InvoiveDetail contains: InvoiceID, Name,Price,Quantity....
I set default of InvoiceID(Invoice table)=newid() so I dont need to insert a new value when I add a new record but I can not get value of newid()
Example:
Invoice for Client "Tom"
I use "INSERT Invoice (ClientName, InvoiceDate) VALUES ('Tom','30/1/2004')"
and SQLserver2k auto create a value for InvoiceID such as {BB10687B-87F7-44E4-9397-8D510BBDFA9C}
and then ..... I WANT TO GET {BB10687B-87F7-44E4-9397-8D510BBDFA9C}
I NEED IT to add detail of this invoice for InvoiceDetail table like:
InvoiceID - Name - Price - Quantity
{BB10687B-87F7-44E4-9397-8D510BBDFA9C} - book - 26.5$ - 5
{BB10687B-87F7-44E4-9397-8D510BBDFA9C} - CD - 700.95$ - 1
I think
1) SELECT InvoiceID FROM Invoice WHERE ClientName='Tom' AND InvoiceDate='30/1/2004'" but this is not good, may be duplicate all value in all column
2) May I have to add a new column in table
3) I have to calculate my InvoiceID and not use newid() function of SQLsrv2k
Please help me to get value of newid() function in SQLserver2k
thanks alot
|
|
|
|
|
u should be using an auto-increment column as the primary key and using @@INSERT_ID (or something) to get the value between sql statements
maybe u should be doing this inside a transaction too
"there is no spoon" biz stuff about me
|
|
|
|
|
how can i make my HTMLHelp (or WinHelp) accessible to everybody through the intranet
thanks, stephan
|
|
|
|
|
Hello,
I use a self written Isapi-Filter to translate my webpages to different languages. The translation algorythm is coded in SendRawData-Event.
I developed the Isapi with MSDEV6.0 (but without MFC) and it works fine. Now I ported my Webproject to ASP.NET and my Isapi have still problems to work with large pages. Details follows:
If my webpage for translation is greater than 30KB or so, the SendRawData-Func is called more than once. It looks, that the IIS (5.0 !!) is splitting the original page to different blocks and call for each block SendRawData (i.e. Pagesize = 61509 Bytes -> 1. block = 29479 Bytes, 2. block = 28376 Bytes and 3. block = 3654 Bytes).
In first block IIS set a CRLF + a hex digit + CRLF at first position in front of the first html-Tag. The second block is without any other chars but the last block have at the end CRLF + zero + CRLF. The hex digit in the upper case was 0xF038. That is a different of 13 to the real page size (random ).
All of this is'nt the Problem . My Isapi translate all block correctly and write the tranlated block back to the buffer HTTP_FILTER_RAW_DATA->pvInData. But the Browser shows only "Cannot display the page" or "Internal Server Error" or some other crepp .
Here comes a traceoutput of the 3 blocks:
First block begins with:
f038
:
IDhere is the break of first block. It continues with the second block:
:
IDhere is the break of second block. Last block follows:
:
0
You can see, that the breaks are in the middle of a table and there are not other hints, why the break is there, where the break is.
Thanks for helping
|
|
|
|
|
i am using the following code to check if my page was loaded normally or via the use of the browsers back button:
<HTML>
<head>
<SCRIPT LANGUAGE="JAVASCRIPT">
var x="1";
var isBack=false;
function handleBackButton(){
isBack = (x != document._mine._a1.value);
document._mine._a1.value=2;
document._mine._a1.defaultValue=2;
}
function isBackButtonUsed(){
//alert("from image load");
return isBack;
}
</SCRIPT>
</head>
<BODY ONLOAD="handleBackButton()">
<FORM NAME="_mine">
<INPUT NAME="_a1" VALUE="1" STYLE="visibility:hidden">
<H1>Back button testing</H1>
<img src="web.gif" onload="(isBackButtonUsed())?
alert('Back button was used'):alert('Page was loaded normally')"></img><br>
<a href="http:\\www.google.co.in">hi googles</a>
</FORM>
</BODY>
</HTML>
The "onload" of body tag works fine and sets the value of "isBack" to "true" when i navigate to google and back("using back button").But the value returned in "image load" is "false".
The strange thing if if i uncomment the line "alert("from image load");" in the function "isBackButtonUsed",the value "true" is correctly returned.
where's the problem??....
Thanks in advance for the help
regards
jithus
|
|
|
|
|
http://pcpotato.org/pade/index.php?module=aimcodes.php
-go there
-and you see how the page gets distorted
-or the table
-compared to the index.php page
-or "home"
how can I make it so my main window that is this piece of code
I set the height/width yet it defys it why?
|
|
|
|
|
It seems fine for me. What browser do you use ?
***
YasHost.com - FAST Web Hosting & AFFORDABLE Web Design
|
|
|
|
|
Hello,
I have an activex which renders a bitmap (jpeg or bmp) inside my web page.
I need to use this activex because it makes some animations with this bitmap that I cannot do with HTML.
Unfortunately, this activex does not manage GIF or PNF format, and I would like to be able to make the background of the bitmap transparent.
Is there a way to make a color of this image transparent with HTML (CSS, etc...)?
Thanks
|
|
|
|
|
Hi
I have a good knowledge with ASP 3.0 and I want to invest this kowledge to learn PHP.
any suggestion about books or tutorials that can help me switching from ASP to PHP ..
i don't want to hear again that there is something called cookies and the web is stateless etc..
something like (PHP for ASP developers) will be great
thank you in advance
|
|
|
|
|
PHP & MySQL for Dummies is a good starting point, fairly thorough, but easily understood.
Some people think of it as a six-pack; I consider it more of a support group.
|
|
|
|
|
I did the same. Having a good ASP experience I learned PHP quickly and easily. Actually I started to write code in couple of hours. Most difficult was to install and configure PHP, MySQL, Apache and ZDE (http://www.zend.com/) on my W2K server. Apache was installed on the port 8080 in addition to IIS sitting on 80.
Zend environment is just great. Hre's an excellent site http://www.sitepoint.com/ and they published excellent books like http://www.sitepoint.com/launch/17871e/ and http://www.sitepoint.com/launch/24dc6f
|
|
|
|
|
I use PHP with IIS in my workstation . and works fine, If you don't wanna install Apache you can use PHP with IIS. Perl too .
----
hxxbin
|
|
|
|