|
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
|
|
|
|
|
By default,such as img element,when we increase its height,it extend downwards and increase width leftwords.How can i change it,that is ,i need it to extend upwards when i increase its height?
谢谢你的帮助
|
|
|
|
|
You would position it further up and then extend the height.
"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[^].
|
|
|
|
|
Hi,
I have setup a simple HttpWebRequest system to use a remote login perl client. Unfortunatly, the perl code sends back multiple responses and when I use the HttpWebResponse.GetResponse() I only get the final response thus missing any cookies or the page I’m redirected too. I have tried looking in the cookies property and the HttpStatusCode property and they act as though no redirection occurred. How do I soluve this problem. I have tried both GET and POST code, and when I type the string in the web browser I get to the page with no problem.
Thanks
|
|
|
|
|
I need to check client side on the following...
File type must be jpg,
Must be a certain size,
And the input tag may not have nothing in it when submitted.
I may not use FSO client side, and neither does my boss want me to use server sided checking. HOW CAN I SOLVE THIS PROBLEM???
|
|
|
|
|
You can't solve your problem within the conditions you have given. The only reliable way to check user input is with server-side checking, so it should always be used even if some preliminary checks are done on the client side.
|
|
|
|
|
Getting OpenOffice to the web
Hello! We are 2 students at a Swedish university doing a theses on a "web-program(thin client) for open office". Is there anyone who has heard anything about this before?
The client is the webbrowser, which is any browser att all. The thing is that our goal is to get the GUI of OpenOffice to show in the webbrowser.
All that you would need to use a word processor, would be a computer anywhere in the world with a webbrowser on it. Mac, Linux, Unix, Windows, etc. This solution would drasticly lower the costs for companies.
We are thinking in the bounds of a webbmail program that runs on the web-server. We have a webserver and we are thinking about using some type of JavaApplet's to make it work with an internet explorer of some kind.
Does anybody know any leads on this? It would be very kind.
Thanx.
2 students strugling with a bigg project...
Locktotten...
|
|
|
|