|
In fact, that about calling repetively the addWindow.getMaskElements(); is what i did, because i didn't want to modify the function already attached to the onload event of the document.
Thanks for your time!
Kenia
|
|
|
|
|
|
hi this is my code.i want to display images whose path and image name is from database but still i m not getting the slide show working it does not show me the message.any body help me?
<!--#include file="common.asp"-->
<%
OpenDataBase conn
sql="select * from newsimage"
set obj=server.createobject("adodb.recordset")
obj.open sql,conn,1,1
while obj.eof<>true
imagestorotate=imagestorotate & """/pdf/" & obj("imagename") & ""","
obj.movenext
wend
imagestorotate=left(imagestorotate,len(imagestorotate)-1)
'response.write("image pathe is " & imagestorotate & "")
%>
<html>
<head>
<title></title>
<script type="text/javascript">
var image1=new Image();
image1.src=<%=imagestorotate%>;
</script>
</head>
<body>
<img src="<%=imagestorotate%>" name="slide" width=100 height=56 atl="no image for path">
<script type="text/javascript">
<!--
//variable that will increment through the images
var step=1;
function slideit(){
//if browser does not support the image object, exit.
if (!document.images)
return;
document.images.slide.src=eval("image" + step + ".src");
if (step < 3)
step++ ;
else
step=1;
//call function "slideit()" every 2.5 seconds
setTimeout("slideit()",2500)
}
slideit()
//-->
</script>
</body>
</html>
image is not changing one by one plz help me for image change
coz my image is coming from database table which has 30 images..
|
|
|
|
|
how do i detect visitor mac address? somehow i manage to get a piece of php coding, but it only works on server side, but not on client side...
im running on apache server
|
|
|
|
|
The MAC address is not part of the HTTP request, so you cannot get it from the web browser just using PHP.
I've had a quick Google and found this: MAC address Java applet[^] - you might be able to adapt it for what you need.
|
|
|
|
|
var macs = {
getMacAddress : function()
{
document.macaddressapplet.setSep( "-" );
document.write( "Mac Address = " + document.macaddressapplet.getMacAddress() );
}
how do i call this function and display out in the website?
this doesn't seems working..
document.write(mac.getMacAddress());
Anyone help?
|
|
|
|
|
This is only a cursory glance but:
you've declared it as -
var macs
you're calling it as -
mac.getMacAddress()
|
|
|
|
|
I am creating a web page in Microsoft Expression Web 2. At one point on the page it plays an MP3 file located in a folder labeled "MP3s" using Windows Media Player. Right now the HTML code requires that the full name of the MP3 file (filename.mp3) be called whenever the MP3 is to play. I would like to be able to have the HTML, or maybe a Visual Basic script, call whatever MP3 file is in the folder, possibly using a wildcard character like "*.mp3" so that whenever the MP3 file in the folder changes, I will not have to change the code on the web page. There is never more than one MP3 file in the folder at any given time. I tried "*.mp3", but it does not work. Is there some way to do this?
|
|
|
|
|
For asp.net applications I know the iis will look at the vd that that url is configured to, figure out that it is an asp.net application, load the aspnet_isapi.dll routines. Beyond this it is not of my interest. The fact I am interested in learning is how does the iis know to call the aspnet_isapi.dll?
I am looking at creating my own isapi extension. But how do I tell the iis that this vd should be served by the extension I create?
|
|
|
|
|
Hello everyone.
I built a Data Service(ADO .NET Data service) accessing data with Entity Framework. I place it in IIS and it works in my computer.I built a windows Aplication and i consume the data server. Now I want to host the service in another machine IIS. The machine is in the same LAN.
How can i consume the data service hosted in another machine with my windows application?
Note:I'm working in C#.
Excuse my portuguese, but i'm portuguese and i'm giving the firsts stepes in this area.
|
|
|
|
|
Hi,
so how did you connected your windows application to your local data server? If you have used an URL, just exchange the localhost-part with the host-name (or IP) of your remote machine.
Regards
Sebastian
|
|
|
|
|
I SeMartens. Sorry a just answer today but i was at vacances and I did not had time to check my email.
As I am still beginner in this area i will try to explain:
first i built a ado .net data service by buiding a ASP.Net web aplication and on this project created an Entity model and then a service. Then i built a windows application with a reference to the service. When a ran it apeared a xml document with the information about the tables in the datra base. So far so good.
Now, i want to put the service( ASP.Net web aplication ) running on IIS and consume it with a windows appliction form.
At the end put the service( ASP.Net web aplication ) running on IIS in another computer.
the last two points i do not know how to do.
Thanks.
once again excuse my english but i try to explain and right as correct as i can.
|
|
|
|
|
Hi,
i'm not really familiar with the ADO.NET Data services but as it seems these are WCF services. So I suggest that you create a virtual directory within the IIS manager pointing to the output folder of your data service.
Within your client there should be a DataServiceContext object, which can be initialized with an url. Modify this url so that it points to your IIS.
If this works on your local machine, o put the client somewhere else and try again.
Regards
Sebastian
|
|
|
|
|
Hi SeMartens.
It's working. thanks for every thing.
Regards
Jonatan
|
|
|
|
|
hello , i am having trouble with validating an xhtml file and javascript, the javascript is external and works perfect until i put in the doctype etc... i really need help with this as its a college project and have tried various sources. .....
Here is the code ....
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="../structure.css"/>
<script type="text/javascript" src="gallary.js">
</script>
</head><body>
<div id="container">
<div id="gallery">
<img id="Photo" width="100%" height="100%" src="" border="3px" alt="Photo" />
</div></div>
<div id="logo">
</div>
<div id="image"><img src="../images/games.jpg" width="700px" height="200px" alt="Games" /></div>
<div id="contentbox">
<div id="content">
<a href="#" onmouseover='http://.....')">
<img src="http:
</a>
</div></div></body></html>
This has been shortened so its easier to see and it all works if i don't put the DOCTYPE in ... :s
Thanks
|
|
|
|
|
when i deploy my site on the server ,i get this error (Could not load type 'mtspg._Default'.
) who are know the reason , although its runinig in my local host good
|
|
|
|
|
Hi
i am developing a classic asp page using vbscript
i need to create a new node in an xml file with the data entered in to the form
plese help me how can i implement vbscript to a classic asp page
that can writes some data into the xml file
Thanks
Anil Veeraghattapu.
|
|
|
|
|
I've been asked to extend our logging fields to include a couple of other fields that weren't covered before (for the purposes of troubleshooting of course), does anyone have any suggestions other than standard IIS fields and Session ID to log?
We did consider logging IP but for the purposes of the site, it would be relatively pointless.
Thanks in advance.
|
|
|
|
|
It might help to know what you are already logging.
|
|
|
|
|
Browser type, Requested URL, .NET Session ID and alot of client specific properties. All timestamped of course.
|
|
|
|
|
to deploy the project in web sphere
My project is running in tomcat .I know the structure of creating the web application in the tomcat server.
webapps-contains the applications
project name - contains the WEB-INF and html files
WEB-INF contains contains classes and lib
classes contains class files
lib contains library files
and web.xml is parallel to WEB-INF
please tell me where to store html ,servlet ,xml file in web sphere and how to run the sphere
|
|
|
|
|
I am looking for a self contained simple example that demonstrates how the Code Project shows a Collapse Expand section for code snippets. Anybody willing to share it with me?
|
|
|
|
|
This can be done using an image, div and javascript. Put those +,- images in your page. Then, handle click event for it and hide/show the div containing code block. Also, change the images then.
Here[^] are a plenty of example showing that.
50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!
|
|
|
|
|
I have been struggling with this for a while now. I have an ajax function that calls an .aspx page into another .aspx page.
It works in firefox chrome etc but not in IE, but if I use the function to call a .html page it works in IE fine and I have no idea why its not working when i try and use it to call an .aspx. any help would be greatly appreciated.
Heres the code:-
ajax.js
function getReactionTXT(REACT_TXT) {<br />
if (!isWorking && http) {<br />
http.open("GET", "getreactions.aspx?reaction_text=" + REACT_TXT);<br />
http.onreadystatechange = SearchReactions; <br />
isWorking = true;<br />
http.send(null);<br />
}<br />
}<br />
<br />
<br />
function SearchReactions() {<br />
if (http.readyState == 4) {<br />
var div = document.getElementById('reactionSearch');<br />
div.innerHTML = http.responseText;<br />
isWorking = false;<br />
}<br />
}<br />
<br />
<br />
<br />
function getHTTPObject() {<br />
var xmlhttp;<br />
<br />
if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {<br />
try {<br />
xmlhttp = new XMLHttpRequest();<br />
xmlhttp.overrideMimeType("text/xml"); <br />
} catch (e) {<br />
xmlhttp = false;<br />
}<br />
}<br />
return xmlhttp;<br />
}<br />
<br />
var http = getHTTPObject();
var isWorking = false;
|
|
|
|
|
There is nothing wrong with the code as posted.
I copy and paste ed it and retrieved an aspx page.
|
|
|
|