|
Google it?
First result[^] from searching "dynamic stylesheet javascript".
|
|
|
|
|
Reading client side serial port in a web application.
Code of treatment of strings in hexadecimal where "0 (zero)" it does not indicate end of string, for managing of devices in the client side.
Scenario:
I am working with a web application in Visual Studio 2005, which needs receives information from peripheral devices connected to the serial port of the client’s pc. It is needed to obtain the information of the above mentioned devices to realize certain processes and to display it on screen.
I’m working with an ActiveX for the managing of the serial port. This part was developed in Javascript.
I send or receive commands like this:
F0 F1 0B 19 02 00 00 00 00 03 05 02 0F
Problem:
The problem is that due to the fact that in Javascript all strings are zero-terminated, Javascript considered the sixth byte (00) to be an end of the string and cut off the rest of it.
If someone knows some solution to this problem already be with JavaScript, VBScript or components .NET would be of great help … Thank you
|
|
|
|
|
AFAIK you can't count on a Javascript interpreter to represent your bytes they way you want it to. I mean you could make an array of numbers but they might be 32 bit for all you know. I think you would have to have an interface in the ActiveX control that was designed to deal with this. Like take a hex string or base64 or something and do the conversion internally before writing to the port.
But I have no direct experience with this issue, I'm just guessing.
you haven't told us what your problem is (apart from an inability to think clearly).
Pete O'Hanlon - the C# forum
|
|
|
|
|
Hi all
I need to create a web site and host it on a server somewhere, and i need to create a page in that website that submits a form and send the form data to a/an (application, web service, anything) on another machine (My pc) for example
could anyone help me please ?!
i don't know where to start
Regards
|
|
|
|
|
You haven't explained which technologies you want to use. Your question is of too basic a nature to be handled in a forum. I suggest you choose your tools and then buy some books and learn how to use them.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Hi Guys,
I am struggling from two days.i want to convert the binary format to image and assign the image to datalist.
i writen the code like this.
the value is coming from database through item array[6]
string nani = Convert.ToString(ds.Tables[0].Rows[0].ItemArray[6]);
byte[] mybite = new byte[nani.Length];
System.IO.MemoryStream mstream = new System.IO.MemoryStream(mybite,0,mybite.Length);
ds.Tables[0].Columns.Add("imagefile_");
how to assign the image to datalist.
i want to assign the image to imagefile_.....
pls help me .....
Regards........
|
|
|
|
|
Either
1) Write a HTTPHandler that handles requests for images
2) Write a separate ASPX page that handles the requests and is configured to return binary image data instead of HTML
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
hi
can any body tell me how can i create a popup with click a button? i wrote this code but it dose'nt work.
Response.Write("<script>function d(){windows.open(Default2.aspx);}</script>")
|
|
|
|
|
It should be window.open(.. rather than windows.open(..
|
|
|
|
|
|
hi
can any body tell me how can i create a popup with click a button? i wrote this code but it dose'nt work.
Response.Write("<script>function d(){windows.open(Default2.aspx);}</script>")
|
|
|
|
|
Seriously -- don't.
Use a hyperlink. That's kinda the whole point of having hypertext.
|
|
|
|
|
Hi Guys,
I have an asp.net page that has a Dropdownlist control linked to ListSearchExtender to have an incremental search feature. And my problem is that, everytime I key in something in the dropdownlist there's also a text at the top of the dropdownlist will display, this is the prompttext.
Is there a way to manipulate the Promptext either placing it next to the dropdownlist control at the right or just simple remove it?
I just can't find a way if how to manipuate or remove the promptext.
Hope you can help me with my current problem.
Thanks
hifiger2004
|
|
|
|
|
I need to create an IM Service just like the MSN Messenger,
but I don't know where to start from, what is the form of the server application
because I don't want the clients to poll data from the server every some seconds,
is there an application that I can put it on the Host that the client can open a tcp/ip session (winsock) with it,
what is that application? any idea may help.
thanks
|
|
|
|
|
I have spacer div with a height of 5px. In FF and Opera, the page is displayed correctly. In IE6, the div was significantly larger (about 20px).
Here's the style that works in opera and firefox:
.netSpacer
{
width:100%;
height:5px;
line-height:5px;
padding:0;
border:0;
margin:0 auto;
background:transparent;
}
I had to add overflow:hidden; or font-size:0px; to make it display as expected in IE6. It took me an hour to figure that out. I hate IE.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
This is a well known problem with IE. For some reason it thinks that an element has to be at least one character (1.0em) high.
Setting the font size changes the size of em unit so that one em isn't higher than the specified height. Setting overflow keeps the contents from expanding the element. The contents is still one em high, but only part of it is visible.
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
Salam Guys,
I have a small problem right there, here are my 2 small functions in which i'm trying to add two images in each row & set the onclick event of each image to trigger a function depending on the Image Type : I hope you can understand those stuff :
<br />
<html><br />
<head><br />
<title></title><br />
<script type="text/javascript"><br />
<br />
function AddRow(id){<br />
<br />
HiddenNumber = document.getElementById("MyHidden").value;<br />
var Args = AddRow.arguments;<br />
var tbody = document.getElementById(Args[0]).getElementsByTagName("TBODY")[0];<br />
row = document.createElement("TR");<br />
<br />
var ArgsNumber = Args.length;<br />
var Minus = ArgsNumber - 1;<br />
<br />
for (var i = 0; i < Minus ; i++)<br />
{ <br />
var td = document.createElement("TD");<br />
td.appendChild(document.createTextNode(Args[i+1]));<br />
row.appendChild(td);<br />
}<br />
AddImages("C:/wamp/www/Edit.gif",'Edit');<br />
AddImages("C:/wamp/www/Delete.gif",'Delete');<br />
<br />
tbody.appendChild(row);<br />
HiddenNumber++;<br />
}<br />
function AddImages(Path,ImgType)<br />
{<br />
var td = document.createElement("TD");<br />
var MyImg = document.createElement("input");<br />
MyImg.type = "image";<br />
MyImg.src = Path;<br />
<br />
if (ImgType == 'Delete')<br />
{<br />
MyImg.id = "Delete["+HiddenNumber+"]";<br />
MyImg.onclick = DeleteRow(MyImg.id);<br />
}<br />
else if (ImgType == 'Edit')<br />
{<br />
MyImg.id = "Edit["+HiddenNumber+"]";<br />
MyImg.onclick = EditRow(MyImg.id);<br />
}<br />
td.appendChild(MyImg);<br />
row.appendChild(td);<br />
<br />
}<br />
function DeleteRow(FrmName)<br />
{<br />
<br />
document.write("Salam, This is the DeleteRow function My Name is "+FrmName);<br />
}<br />
function EditRow(FrmName)<br />
{<br />
document.write("Salam, This is the EditRow function My Name is : " + FrmName);<br />
}<br />
</script><br />
</head><br />
<body><br />
<input type="hidden" value="1" id="MyHidden" name="MyHidden"><br />
<input type="button" value="Click Here" onclick="AddRow('MyTable','Amine','Yesfi','Assimi','Karim')"><br />
<table border="1px" id="MyTable"><br />
<tr id="FirstRow"><br />
<td id="FirstColumn">FirstColumn</td><br />
<td id="SecondColumn">SecondColumn</td><br />
</tr><br />
</table><br />
</input></input></body><br />
</html><br />
<br />
this is the page try it Please. the main problem is with the onclick event, there are 2 cases :<br />
<br />
First : MyImg.onclick = DeleteRow(MyImg.id);
<br />
the sencond one is MyImg.onclick = "DeleteRow("+MyImg.id+")";
<br />
it drives me crazy Guys, please try your best if you ever have a solution send it to me please i have to deliever the page on time.<br />
<br />
<br />
Salam <br />
<br />
Mohammed Amine Ouriaghli <br />
<br />
<br />
<br />
<br />
try to be good if you can't be the best
|
|
|
|
|
hi everyone,
I have a slight problem with update panel.
<asp:updatepanel>
<contentpanel>
<asp:textbox id="dob" runat="server" autopostback="true" ontextchange="getAge">
<asp:textboc id="age" runat="server">
//cs file
protected void getAge(object sender,EventArgs e)
{
txtAge.Text="24";
}
now the problem is after after age is populated, i lose focus from age textbox after the update panel is updated. i even tried txtAge.focus();
how can i focus to age textbox ??
Suman
Suman
|
|
|
|
|
I am developing a website and a problem has been occured..well i have seen a lot of website(probably all) that when you join the website..the website send's you auto respond mail for activation link in email to your email address by which you activate your membership on that particular website.
i want to do stuff similler to above while i dont have any idea..also i want to send my website's member's to newsletter automatically(Something like alert!). any help is heartly appreciated..
thank's in advance..
Manoj Sahu
|
|
|
|
|
|
Hi Friends,
i have one problem .Pls help me. i am having image(not url) in database and i want to show that image in webapplication .how i have to convert that image and show the user.
pls help me..
regards...
kiran
|
|
|
|
|
Make a proxy page that loads the image from the database and sends it in the response using Response.BinaryWrite .
Use the url of the page as src in an img tag in a page.
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
Hi all,
I'm trying to share my calendar via web here in our ofc. I'm using this command
"My Shared Calendar"
But this just give an error of missing parameter and stuff... Why is this happening...
But when Im using only the outlook://calendar without the mailbox name I see my calendar. Hope someone enlighten me with this..
Thanks....
-=H=-
|
|
|
|
|
help pls
-=H=-
|
|
|
|
|
Now in its third year, MIX is an intimate opportunity for cutting-edge technical, creative and business strategists to engage Microsoft in a conversation about the future of the web. Come explore the latest wave of opportunities and help redefine the boundaries between: content and commerce, PC and TV, Windows and the Web. The event is hosted in Las Vegas, March 5 -7.
Keynote presentations from Steve Ballmer, Scott Guthrie, Guy Kawasaki, and other distinguished speakers will unveil the latest web-oriented products and technologies. A comprehensive program of sessions for designers, developers and business strategists will be led by industry experts. And there will be hands-on labs and workshops for developers and designers.
Discounted registration ends January 15. The event is sure to be a sell out. Register here for MIX08[^].
|
|
|
|