|
How to create an int variable, or create an int from string, '1' to 1
<italic>Work hard and a bit of luck is the key to success. You don`t need to be genius, to be rich.
|
|
|
|
|
In javasript, I`m a beginner
<italic>Work hard and a bit of luck is the key to success. You don`t need to be genius, to be rich.
|
|
|
|
|
|
Hi All,
I'm attempting to center three div layers within a tabbed view, I'm using a function that was written by a co-worker which is great but I cannot find out were to callout the "resize" within the code.
Here is what I have for the function:
function centerDivs(){<br />
widthOfDiv = '720';
centeringTheDiv = (screen.width) ? (screen.width-widthOfDiv)/2 : 0;
document.all["LayerOne"].left = centeringTheDiv;<br />
document.all["LayerTwo"].left = centeringTheDiv;<br />
document.all["LayerThree"].left = centeringTheDiv;<br />
}<br />
<br />
<body onload="centerDivs()">
Now! where do I plant the resize method within the code. I've tried to center these layers by surrounding with a table and centering through the "center" tag but the layers always snap back to the left.
Any suggestions would be great.
Thanks In Advance.
Nino
|
|
|
|
|
<script language="JavaScript1.2">
function centerDivs(){
widthOfDiv = '740'; //put the div width into variable
centeringTheDiv = (screen.availWidth) ? (screen.availWidth-widthOfDiv)/2 : 0; //find out where the middle is widthwise
//do this for each div layer
secondlayer.style.left= centeringTheDiv + 'px';
firstlayer.style.left = centeringTheDiv + 'px';
thirdlayer.style.left = centeringTheDiv + 'px';
firstlayer.style.visibility = "visible";
}
</script>
<SCRIPT LANGUAGE="JavaScript1.2">
function reDo(){ window.location.reload() }
window.onresize = reDo;
</SCRIPT>
<body onload="centerDivs()">
Nino
|
|
|
|
|
hi,
how can put hyperlink on flash objects in my web pages?
|
|
|
|
|
|
Hi, Im trying to find some resources on making config changes to IIS when installing my web app. Specifically I add a new application mapping to pass .swf extensions through aspnet_isapi.dll
Anyone have any links/info on this. I just want to write a .NET Installer class for this task to add to my setup project.
TIA
|
|
|
|
|
In case anyone DOES actually use the search function
This code lists all the available properties, and tests adding and removing an application mapping:
DirectoryEntry iis = new DirectoryEntry("IIS://LOCALHOST/W3SVC/1/ROOT");
iis.UsePropertyCache = false;
Console.WriteLine("Path:{0}",iis.Path);
foreach(string prop in iis.Properties.PropertyNames)
Console.WriteLine(prop);
PropertyValueCollection pvc = iis.Properties["ScriptMaps"];
for(int i=0;i<pvc.Count;i++)
Console.WriteLine("{0}",pvc[i]);
pvc.Add(@".swf,C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll,5,GET,HEAD,POST,DEBUG");
Console.WriteLine("======================");
for(int i=0;i<pvc.Count;i++)
Console.WriteLine("{0}",pvc[i]);
pvc.Remove(@".swf,C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll,5,GET,HEAD,POST,DEBUG");
Console.WriteLine("======================");
for(int i=0;i<pvc.Count;i++)
Console.WriteLine("{0}",pvc[i]);
|
|
|
|
|
Please any one have the code to import address book from hotmail account into my webpage.
|
|
|
|
|
using 2003 server -
ISAPI extension extracting several headers from the request
and write them to a txt file ,
the problem is (after debugging the extension)
the createFile returns INVALIDE_HANDLE_VALUE
and the getLastError() = 5.(access denied)
the txt file's location is right next to dll (cause he is creating it);
i have opened the folder's permissions to everyone and still same error
createFile param:
"headers.txt",FILE_ALL_ACCESS,0,NULL,CREATE_ALWAYS,FILE_ATTRIBUTE_NORMAL,NULL
i have tried various manipulation on this method's param
but without any success.
if anyone has any idea ??
|
|
|
|
|
I start a new project. Create a new html page with multiple frames. I now want to link the frames to an asp page so I can use the code behind functionality. I have tried to create seperate asp pages then direct the frame to that asp page but I get an error. The VS complains about
This is a vexxing prolem for me. Help is appreaciated.
I an working in VS environment. the message points to the first line and states that there is a parse error. the first line is
<%@ Page language="c#" Codebehind="DataControl.aspx.cs" AutoEventWireup="false" Inherits="DACISV2.DataControl" %>
the asp page is DataControl. The HTML in the multiple frame HTML page is
Any assistance is appreciated
|
|
|
|
|
Hi,
Is there anybody knows how to use The FrontPage EMail function?
I want send a form's information to an email address, I configured my FrontPage Server Extension already. I want to custom the content in the email body, not just the form, How can I use ASP to finish it?
Thanks a lot in advance!!
Alan Shen
Alan Shen
MCAD for .NET Version
^~^~^~^~^~^~^~^~^~^~^
Great idea is the beginging of success!
|
|
|
|
|
I want to knw how to call a web service without using a proxy and giving xml as input instead of objects.This xml should be automatically serialized into an object at the service
|
|
|
|
|
My scenario. I have a left frame with a search button that is querying using Microsoft Index server. Here is the html for it in the left frame
<FORM action=simple.asp method="GET">
<INPUT type="text" size="25" name="searchPhrase">
<INPUT type="submit" value="Search" onClick="parent.test.location.href='rightFrame.html';>"
My question. How do i make the search results from the left frame after clicking the search button to be displayed in the right frame. I tried looking some help on the web. Most solution suggested using the solution above. It is not working for me. Thank you in advance for all your help.
|
|
|
|
|
can't you try putting target="right Frame ID Attribute" in the form tag??
|
|
|
|
|
Gavin,
Thanks for your reply. Can you elaborate on your solution. I am not quite following what you mean by Frame ID attribute.
<input type="submit" value="Search" onclick="parent.test.location.href='rightFrame.html'; target="right">"
|
|
|
|
|
Each frame element should have an ID attribute, e.g. ID="right" and ID="left" to allow scripts to differentiate between them. The onclick script returns HTML text which should be structured to include the attribute Target="right" - I'm not sure how to do this, since you haven't posted your script, but it must be easily done. For an easy cheat, view the source from the Microsoft MSDN website and follow the example of how they implement it.
On the other hand, you could get away from frames entirely, since they are deprecated elements that most developers consider obnoxious. Look into the positioning elements of CSS for a more robust solution that is supported by more browsers than just IE.
"If it's Snowbird season, why can't we shoot them?" - Overheard in a bar in Bullhead City
|
|
|
|
|
hi,
try to use folllowing example.
As you said, your frameset code is some thing like following one
<frameset cols="20,*">
<frame id="left_frame" src="left.htm">
<frame id="right_frame" src="right.asp">
</frameset>
now you are posting your values from left frame right, and you want to load results in right frame, right
now try to use following <FORM> tag in your left frame page
<fomr id="frm" method="post" action="right.asp" target="right_frame">
now look at here, I am targeting frame action to right frame by using the right frame ID which I have declared in the frameset code.
I hope now you can go with it
all the best
|
|
|
|
|
I am trying to finish this csv import page, I can currently import files that are located in my C or D drive but if I try to import a file from my desktop I keep getting the error 'File Not Found'. Can anyone help me on how I can address the file from my desktop or network.
I am currently submitting the address from a file-field in a form
then using this code to read the file:
csv_to_import = replace(Request.Querystring("csvImport"),"'","''")
set fso = createobject("scripting.filesystemobject")
set dct = fso.opentextfile(Server.Mappath(csv_to_import))
If anyone can help would be greatly apprecieated.
regards,
JB
|
|
|
|
|
Hi there,
Currently, I have a C++ program running that communicated with
a communication device. I can execute commands and receive responses
via my C++ program to/from this device.
Now,i want to setup another version of this system with WEB BASED
capability. And i want to reuse back my existing resources which is
my C++ program. My questions are:
1. Is there any web technology that be able to integrate with C++ program?
2. Is it possible that ASP.net be able to do the job with combination of
c# or vb.net?
3. How about open source web environment which we can integrate with
C++ program?
4. How can a web browser always listen to the server's response if
there has changes going on from the communication device
without refreshing the whole web page?
Pls suggest a suitable architecture for my system in order to run in
both windows and web application with only 1 back-end engine.
Thanks.Pls as soon as possible.
|
|
|
|
|
1. Is it a dll or exe?
You can try to import the dll into your asp.net project, if it fails, you can write a wrapper and try via a exe or try via a dll that can be imported.
-> exe, you can call exe's and pass arguments to them.
2. I'm not sure what job you're talking about, but I think so. You can also use a general (winforms/services) dll from C#(Vb.net) or use webservices.
3. I'm not sure what you mean by this.
4. I'm thinking in the line of a service. The page will reload, but always the cached version until a flag or something is checked. Then it will refresh.
Hope it helps a bit, good luck.
"If I don't see you in this world, I'll see you in the next one... and don't be late." ~ Jimi Hendrix
|
|
|
|
|
I know this is possible, but currently have no time to look into it, so hoping somebody out there will give me the answer
What Im wanting to do is to call a .dll from a .js
Say I've made some HelloWorld.dll with a
hello() system.Console.write("hello")
then in a .js want to call this function how do I do this??
function hello(){
var helloDll = new ActiveXObject("HelloWorld");
helloDll.hello();
}
Would this work if i put it in system32 folder or something..??
apreciate any help Spaceus
How terrible is wisdom when it brings no profit to the wise
|
|
|
|
|
I have a table, with the field name GroupId and GroupName as primary key. In a asp file, I connect to the database and execute an insert query. What if the record which i`m going to insert is already in the database. How do I catch the error?
<italic>Work hard and a bit of luck is the key to success. You don`t need to be genius, to be rich.
|
|
|
|
|