|
I'm not sure what you mean, but try something like this
CSS:
tr.title<br />
{<br />
background-image: url(\Images\bar.gif);<br />
}
in HTML:
<tr class=title>
|
|
|
|
|
You can use that to tile an image or to have the image shown once on the background, but I haven't found a way to stretch it to exactly fit the element.
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
|
|
|
|
|
Is there a way to load an html page using DHTML. I have lots of HTML source already written, and I'd like to have a page with the following
<html>
etc etc...
<body>
<div id="menu">menu content here</div>
<div>load a previously written html document here</div>
</body>
</html>
Is this possible?
andy
|
|
|
|
|
you can useful DOM method inside JavaScript:
----------------------------
document.write(place your html code here);
|
|
|
|
|
can I do something like
document.write(../../xxxx.html)
?
|
|
|
|
|
Hi,
I would be really grateful for som info on this.
(1) How do I perform a javascript submit from a C++ client app. My own guess is that using CInternetFile::Write() would be a good start but I wonder whether this is enough or if perhaps special string formatting or additional data needs to be added to the written string.
(2) To do a HTML POST could probably be done in a similar way but how do the the "name= " and "action= " parameters fit into the picture?
(3) Are there classes in .NET that would do this whole thing a lot easier?
thanks and cheers
Adam
_____________________________________
Action without thought is not action
Action without emotion is not life
|
|
|
|
|
I have not idea about C++ but I can tell you that you need to do an HTTP POST not and HTML POST...
Have a look at the HTTP protocol. Also, I dont know if this is helpfl but you could use the Browser Control to make a browser within your C++ app.
The two most popular methods for sending data to the server through HTTP are the POST and the GET methods.
When you use the POST method, the extra data is passed along in the queristring. This is the string after the ? sign on long URLS...
On Get methods the data is passed within the body of the HTTP message...
It could be the other way round with POST and GET, I am not very sure... but I hope I gave some idea..
theJazzyBrain
Wise is he who asks good questions, not he who gives good answers
|
|
|
|
|
Hi all,
I know little about HTML and the like so I really need your help.
I have a bunch of bmp files named file1.bmp, file2.bmp etc
Is there any way I can show them in a HTML file so they would appear like an animated gif?
Basically show file1.bmp, wait a bit, show file2.bmp on top of file1.bmp etc...
Can this be done, 3rd party freeware tool would be fine, or do I have to build my own ocx control?
Thanks.
.Henrik
---
Any fool can write code that a computer can understand. Good programmers write code that humans can understand.
|
|
|
|
|
I believe that you can use the AdRotator object in ASP for this. It just takes a little bit of VBScript added to your HTML page...
"Welcome to Arizona! Drive Nice - We're Armed..." - Proposed Sign at CA/AZ Border
|
|
|
|
|
I would do a small JavaScript function to handle this...
I would initially load the first 2-3 pics and then for each one that I show I would start donwloading another one in order for the slide show to be fast...
Try using the setTimeout, setInterval functions in JavaScript... This will help you handle the timing...
Try using an aray or an object to store the Images that you download...
keep a numbered naming on your images so you will know which one is to be downloaded next...
The good thing about this is that you could potentially use transistions between your images...
theJazzyBrain
Wise is he who asks good questions, not he who gives good answers
|
|
|
|
|
Hi
I am trying to load a texture from an image I get from a Web Service. D3D provides a method TextureLoader.FromStream using which you can load a texture from a stream. This is the code I wrote to load the texture:
imageRequest = (HttpWebRequest)WebRequest.Create(URL);
URL is something like http://terraservice.net/ogcmap.ashx?version=1.1.1&request=getmap&layers=drg&styles=utmgrid_yellow&srs=epsg:4326&bbox=-122.427,36.66,-117.756,38.947913&width=1000&height=500&format=image/jpeg
imageResponse = (HttpWebResponse)imageRequest.GetResponse();
imageStream = imageResponse.GetResponseStream(); // get a "Stream" from the "Response" object
TextureLoader.FromStream(device, imageStream);
But TextureLoader.FromStream() fn. Gives an error message that “stream does not allow seeking”
Then this is the second thing I tried:
imageRequest = (HttpWebRequest)WebRequest.Create(URL);
imageResponse = (HttpWebResponse)imageRequest.GetResponse();
imageStream = imageResponse.GetResponseStream(); // get a "Stream" from the "Response" object
byte[] buffer = new byte[imageResponse.ContentLength];
imageStream.Read(buffer, 0, (int) imageResponse.ContentLength);
// imageResponse.ContentLength is long so have to cast to int
MemoryStream stream = new MemoryStream(buffer);
texture = TextureLoader.FromStream(device, stream);
but imageResponse.ContentLength is always equal to -1. I was able to save the image by doing:
Image img = Image.FromStream(imageStream);
img.Save("c:/junk/texmap.jpg", ImageFormat.Jpeg);
and it came out fine when i opened it in photoshop.
Then I tried following code (replaced imageResponse.ContentLength by imageStream.Length):
imageRequest = (HttpWebRequest)WebRequest.Create(URL);
imageResponse = (HttpWebResponse)imageRequest.GetResponse();
imageStream = imageResponse.GetResponseStream(); // get a "Stream" from the "Response" object
byte[] buffer = new byte[imageStream.Length];
imageStream.Read(buffer, 0, (int) imageStream.Length);
MemoryStream stream = new MemoryStream(buffer);
texture = TextureLoader.FromStream(device, stream);
but this gives following error while trying to access imageStream.Length while executing
byte[] buffer = new byte[imageStream.Length];
exception of type 'System.NotSupportedException' occurred in system.dll
This stream does not support seek operations.
Any ideas what to do?
sid
|
|
|
|
|
Hi,
I am developing a website.
1. How can I send the message out there about my site?
2. How can my site be searchable in Search Engines?
3. Any other helpful information for site promotion.
Please advise. Thanks
Pankaj
~~~~Pankaj~~~~
Follow your goals, Means will follow you ---Gandhi---
|
|
|
|
|
mittalpa wrote:
1. How can I send the message out there about my site?
There are several newsgroup that allow announcements of sites and products. Do not remember them at the moment. You might also check into sites that handle press releases, there are several.
mittalpa wrote:
2. How can my site be searchable in Search Engines
Go to the search engines and submit them. There are also sites and products that will do this for you. Personally, there are only a handfull of search engines that get much use so it is pretty easy to do by hand.
2 tips.. 1) search the net for Meta Tags and Robot.txt information. You should use both for your site to help search engines search your site. Meta tags can help keyword listings and site descriptions.
mittalpa wrote:
3. Any other helpful information for site promotion.
A good place to start on a buget is "affiliate programs". Search Google for that and you will find a ton. You can create an affiliate program or sub that out to another company such as DirectLeads.com or LinkShare.com. This can drive traffic to your site based on commisions for products sold or on a per click basis.
Another thing to check into is keyword advertising on Google. Easy to setup and can drive traffic to your site without a lot of cost if your keywords are specific enough.
Rocky Moore <><
|
|
|
|
|
Suggested improvement to:
a script that autimatically enters a the specified character at a certain point in a text box
By webProgrammer
Posted: 12 Aug 2003
This script could be improved with the addition of a line to detect and permit the use of the backspace key:
function mask(str,textbox,loc,delim){
var locs = loc.split(',');
for (var i = 0; i <= locs.length; i++){
for (var k = 0; k <= str.length; k++){
if (k == locs[i]){
if (str.substring(k, k+1) != delim){
if (event.keyCode != 8) //backspace
str = str.substring(0,k) + delim + str.substring(k,str.length);
}
}
}
}
textbox.value = str
}
|
|
|
|
|
thanks for the addition, I was about to add that myself, when I noticed your addition/fix.
|
|
|
|
|
Hi. I'm not sure this is the right message board for this question, but here goes:
I have a C# client that consumes web services that are written in java developped on Axis. I've had no problems with this until now when they introduced a web service that returns a file as an attachement using datatype javax.activation.DataHandler. According to the 'deliverer' of the service I have to write the stubs my self but should appart from that not have any problems using the service.
I have not yet figured out how to write the stub for the method returning a DataHandler object and I read somewhere that it is impossible to use a web service returning this datatype in a C# client. Then again somebody else said that if the 'deliverer' of the service implement a web service that reads the file and transmits it as byte[] that would be ok.
Can anyone tell me what is really the case? It would of course be most conveniant for me if I can write a consumer of the original service but if I need to get them to develop the extra byte[]-wrapper service then so be it. I guess it would be possible to write a component in java that the C# client uses for the calls to the web service, but my knowledge of java is rather small.
Thanks
/EnkelIk
|
|
|
|
|
Hi.
I found a component to make a .NET wrapper for the .jar defining the DataHandler class, so it feels like I have advanced one little step. So I include the wrapper dll and try to use DataHandler just like any object and the code compiles without warnings but I can't run it because as it turns out the DataHandler has no public default constructor. The error telling me that amy method cant be reflected.
Logically serializing works the same in both .net and on a java-plattform, and I have a sample code how to do this in java.
The java code looks like this:
java.lang.Class jafsf = org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory.class;
java.lang.Class jafdf = org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory.class;
qName = new javax.xml.namespace.QName("http://activation.javax", "DataHandler");
cachedSerQNames.add(qName);
cls = javax.activation.DataHandler.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(jafsf);
cachedDeserFactories.add(jafdf);
so obviuosly there are 'custom' serializers for the DataHandler object. Now how can I use these in .NET?
My code currently looks like this:
<system.diagnostics.debuggerstepthroughattribute(), _
="" system.componentmodel.designercategoryattribute("code"),="" system.web.services.webservicebindingattribute(name:="SecureCertificateFetcherSoapBinding" ,="" [namespace]:="http://some.where.tm/axis/services/SecureServiceFetcher" ),="" system.xml.serialization.soapincludeattribute(gettype(datahandler)),="" system.xml.serialization.soapincludeattribute(gettype(errorobject))=""> _
Public Class SecureServiceFacadeClientService
Inherits System.Web.Services.Protocols.SoapHttpClientProtocol
'<remarks>
Public Sub New()
MyBase.New()
Dim urlSetting As String = System.Configuration.ConfigurationSettings.AppSettings("MYDAC.MyService.SecureServiceFacadeClientService")
If (Not (urlSetting) Is Nothing) Then
Me.Url = String.Concat(urlSetting, "")
Else
Me.Url = "http://some.where.tm/axis/services/SecureServiceFetcher"
End If
End Sub
'<remarks>
<system.web.services.protocols.soaprpcmethodattribute("", requestnamespace:="http://some.where.tm/axis/services/SecureServiceFetcher" ,="" responsenamespace:="http://some.where.tm/axis/services/SecureServiceFetcher" )=""> _
Public Function getService(ByVal in0 As UserVO, ByVal in1 As SecureServiceVO) As <system.xml.serialization.soapelementattribute("getservicereturn")> SecureServiceVO
Dim results() As Object = Me.Invoke("getService", New Object() {in0, in1})
Return CType(results(0), SecureServiceVO)
End Function
'<remarks>
Public Function BegingetService(ByVal in0 As UserVO, ByVal in1 As SecureServiceVO, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult
Return Me.BeginInvoke("getService", New Object() {in0, in1}, callback, asyncState)
End Function
'<remarks>
Public Function EndgetService(ByVal asyncResult As System.IAsyncResult) As SecureServiceVO
Dim results() As Object = Me.EndInvoke(asyncResult)
Return CType(results(0), SecureServiceVO)
End Function
End Class
where the class SecureServiceVO contains the DataHandler and ErrorObject (which has a public default constructor).
My quess would be that I need to replace the
System.Xml.Serialization.SoapIncludeAttribute(GetType(DataHandler)), _
line with something pointing at the org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory.class;
How do I do this? And how do I specify that this is the serializer and there is another factory for the deserializer?
Please help!
/EnkelIk
|
|
|
|
|
Hello there,
I used ASP.NET to develop some web applications. I want to design a web page now, but not sure how to get it done, what's the procedures? Can anybody advise me where I can find the tutorials for web page design and how to get it published, etc? Thanks!
|
|
|
|
|
There are some good tutorials on www.asp.net[^].
"Welcome to Arizona! Drive Nice - We're Armed..." - Proposed Sign at CA/AZ Border
|
|
|
|
|
Anyone familiar with MSGRAPH.Chart?
I'm trying to write a script that generates a GIF on the fly based on values passed in as parameters. Basically I'm trying to reproduce the blue/pink used/free disk space pie chart shown in Explorer's drive properties.
Just about everything's fine, except that the exported GIF *always* has a white border around it, and no property I've found seems to get rid of it. The documentation (graph9.chm from Office 2000, off the top of my head) is worthless. I can email the HTML file (3KB) to anyone who cares to take a shot at it; I'd post it here but embedding HTML in these HTML-based forums isn't really a good idea.
My email is danield3_@_themail.com (remove the two underscores)...I'd be more than happy to post the results here once the problem is worked out.
|
|
|
|
|
Hello, I am trying to write a simple javascript function. I want to read in the values of heading nodes in an HTML document and then make a list of them. I want to then use this to make a template which contains a menu which can update the navigation bar depending on the html content. the code I used is
var headings1 = getElementsbyType('h1');
then I tried to access the element to produce a list using a for loop
var temp ="<p>"
for (i=0; i<headings1.childNodes.length;i++)
{
temp += headings1.childNodes[i].data;
}
temp += "<\/p>"
to make a list something like
NO. of H1s
firstchild
secondchild
etc..
No. of H2s
etc etc..
I''m quite new to DHTML, can anyone spot what I'm doing wrong?
thanks(or suggest a good tutorial?)
Andy
|
|
|
|
|
Check out Microsoft's Documentation[^] on getElementsByTagName().
This is in the W3C's DOM Level 1 ... always a good thing to use standards.
Get the elements:
var headings1 = document.body.getElementsByTagName("H1");
Show the length:
alert(headings1.length);
Show the list:
for (var i = 0; i < headings1.length; i++) {
alert(headings1.childNodes[i].nodeValue);
}
Wally Atkins Newport News, VA, USA
|
|
|
|
|
I have a dll which access the key store MY, the program works fine outside of IIS (VB for example). Within IIS (in an ASP file which uses the dll), I get error 5, which corresponds to access denied. I am calling CertOpenSystemStore. Please help.
Thanks,
AD
|
|
|
|
|
I try to localize my web application. When I put the French resource file
in Visual Studio.NET 2002 to generate the satellite assembly then it works.
But if I use Resgen and Al tool to generate the satellite assembly then it does not work. I use ILDASM tool to investigate them and I see the difference is
1. The satellite assembly is built by Visual Studio.NET:
.mresource public 'CustomControls.CustomControlResources.fr-FR.resources'
{
}
2. The satellite assembly is built by Resgen and Al tools:
.mresource public CustomControls.CustomControlResources.fr-FR.resources
{
}
Could you please help me to generate a satellite assembly using Resgen and
Al tools the same as Visual Studio .NET 2002 does (having quote characters)?
Thanks in advance.
|
|
|
|
|
I want to upload some image files to the web server dynamically from my webpage.I have a folder in webserver with write permission.But when i try to upload the file it asks for password each time .Pleas help me what to do with
source code.Its very urgent
|
|
|
|