|
|
NO.
You can access the varibales of the other form using javascript but action will take your page to only one url.
Code below:
Here u will be redirted to test1.html
|
|
|
|
|
So, you mean each HTML page can have one or more forms, but more than one form can not be submitted at one time, right?
Thank you, man!
|
|
|
|
|
|
Hi,
i want to embed a signed windows forms control (assembly with strong name, using a .snk key pair) into a html page. Using the normal <object>-tag works fine with the unsigned control, but doesn't work with the signed one! The signed control doesn't even open! In both cases i used the same html code. Is there information missing (e.g. about the key pair)?
Thanks a lot for your help!
Fridtjof
|
|
|
|
|
Hi,
here some additional informations:
1. I used sn -k key.snk for generating the key pair.
2. Then I used an attribute in the AssembyInfo.cs file to sign the control:
[assembly: AssemblyKeyFile("key.snk")]
3. In the html page the code
<object id="A" classid="http:ALib.dll#ALib.MyACtl"
width="568" height="416">
</object>
worked fine with the unsigned control. I used exactly the same code with the encrypted control. It seems to me that Internet Explorer cannot find the class "ALib.MyACtl" any more. Maybe since it is encrypted now???
Thanks for any advice,
Fridtjof
|
|
|
|
|
hai,
I'm new to asp...and i'm using javascript.I am developing a webpage where it has some list boxes..and the user has to select the values from the list boxes..when the user goes to the next page i want to set the user selection to session variables and display them...I'm getting the selections using form and Request.Form("..")..i want to know howto set these as session variables..
thanks a lot.
|
|
|
|
|
<%
Session("name") = Request.Form("name")
Session("surname")= Request.Form("surname")
%>
--junior coder--
|
|
|
|
|
I am developing a website that uses the same images on some secure and unsecure pages. I know I can't keep the secure images in the cache so I have to load them every time I link to a new secure page. I have a javascript that loads the images in the head section of the secure pages. It seems to work on Internet Explorer on Windows but other browsers/platforms are only displaying the first image. Does anyone know what might cause this problem?
Also, is anyone aware of a better way to keep secure images around(i.e. in the cache) or a way of tricking the browser into thinking that my previously cached unsecure images are actually secure, without getting the annoying popups about secure and unsecure items.
dzs
|
|
|
|
|
One thing you may want to try is using the following code in your page:
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
This should trickle down to the images as well, but don't quote me on it.
|
|
|
|
|
Is there an easy way to change References? I would like to change the references to a number of DLL's when going from test to production.
|
|
|
|
|
Hey there!
I've developing an webpage wich contains an ActiveX (signed), and a javascript to go with it. How do i sign the javascript part of the page??
Thanx
|
|
|
|
|
hi guys, this is one date that i have
Thu Jan 10 00:00:00 UTC+0800 2002
can i change is to any other format eg. "dd-MM-yyyy hh:mm:ss" or something else using javascript on the client side?
any help appreciated...
thx
"Rejoice always, pray without ceasing, in everything give thanks; for this is the will of God in Christ Jesus for you."1Thess. 5:16-18
|
|
|
|
|
Have you tried the Date Object?
"An expert is a person who has made all the mistakes that can be made in a very narrow field." - Neils Bohr
|
|
|
|
|
no.... could u help me out here.....
how can i change my exsisting string -> Thu Jan 10 00:00:00 UTC+0800 2002
to a more normal string like "dd-MM-yyy" or something using the date object???
thx...
"Rejoice always, pray without ceasing, in everything give thanks; for this is the will of God in Christ Jesus for you."1Thess. 5:16-18
|
|
|
|
|
strtotime possibly, seems to work with a UTC string
"An expert is a person who has made all the mistakes that can be made in a very narrow field." - Neils Bohr
|
|
|
|
|
Sorry I think I gave you a PHP solution, I must keep off the wine!
Try this:-
<br />
<script language="JavaScript"> <br />
<br />
time = Date.parse("Mon Jan 12 10:00:00 UTC+0800 2004");<br />
newDate = new Date(time);<br />
<br />
alert(newDate.toString());<br />
<br />
</script><br />
"An expert is a person who has made all the mistakes that can be made in a very narrow field." - Neils Bohr
|
|
|
|
|
First, you need to set up functions to return the day and month names, since the JS Date object doesn't include them:
Date._dayNames = new Array(
"Sunday",
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday",
"Saturday");
Date._dayNamesA = new Array(
"Sun",
"Mon",
"Tue",
"Wed",
"Thu",
"Fri",
"Sat");
Date.prototype.getDayName = function(abbreviate)
{
if (isNaN(this))
return "";
else if (true == abbreviate)
return Date._dayNamesA[this.getDay()];
else
return Date._dayNames[this.getDay()];
}
Date._monthNames = new Array(
"January",
"February",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
"October",
"November",
"December");
Date._monthNamesA = new Array(
"Jan",
"Feb",
"Mar",
"Apr",
"May",
"June",
"July",
"Aug",
"Sep",
"Oct",
"Nov",
"Dec");
Date.prototype.getMonthName = function(abbreviate)
{
if (isNaN(this))
return "";
else if (true == abbreviate)
return Date._monthNamesA[this.getMonth()];
else
return Date._monthNames[this.getMonth()];
}
Then, you need to use a regular expression to parse the format string and substitute the real values:
Date._reFormat = /(\\{0,1})(dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yy|y|gg|g|hh|h|ss|f+|tt|t|zzz|zz|z)/gi;
Date.prototype.format = function(format)
{
if (isNaN(this)) return this.toString();
if (!format || 0 == format.length) return this.toString();
var value = this;
return format.replace(Date._reFormat, function($0, $1, $2)
{
var fmt = $2;
if (!fmt || 0 == fmt.length) return "";
var ret = "";
if ("\\" == $1)
{
ret = fmt.charAt(0);
fmt = fmt.substr(1);
if (0 == fmt.length) return ret;
}
switch(fmt.toLowerCase())
{
case "dddd":
{
ret += value.getDayName();
break;
}
case "ddd":
{
ret += value.getDayName(true);
break;
}
case "dd":
{
var d = value.getDate();
if (d < 10) ret += "0";
ret += d;
break;
}
case "d":
{
ret += value.getDate();
break;
}
case "mmmm":
{
ret += value.getMonthName();
break;
}
case "mmm":
{
ret += value.getMonthName(true);
break;
}
case "mm":
{
if ("MM" == fmt)
{
var m = value.getMonth() + 1;
if (m < 10) ret += "0";
ret += m;
}
else if ("mm" == fmt)
{
var m = value.getMinutes();
if (m < 10) ret += "0";
ret += m;
}
else
{
ret += fmt;
}
break;
}
case "m":
{
if ("M" == fmt)
{
var m = value.getMonth() + 1;
ret += m;
}
else
{
ret += value.getMinutes();
}
break;
}
case "yyyy":
{
ret += value.getFullYear();
break;
}
case "yy":
{
ret += value.getFullYear().toString().substr(2);
break;
}
case "y":
{
var y = value.getFullYear().toString().substr(2);
if ("0" == y.charAt(0)) y = y.substr(1);
ret += y;
break;
}
case "gg":
case "g":
{
var y = value.getFullYear();
if (y >= 0)
ret += "AD";
else
ret += "BC";
break;
}
case "hh":
{
if ("HH" == fmt)
{
var h = value.getHours();
if (h < 10) ret += "0";
ret += h;
}
else if ("hh" == fmt)
{
var h = value.getHours();
if (0 == h)
h = 12;
else if (h > 12)
h -= 12;
if (h < 10) ret += "0";
ret += h;
}
else
{
ret += fmt;
}
break;
}
case "h":
{
if ("H" == fmt)
{
var h = value.getHours();
if (h < 10) ret += "0";
ret += h;
}
else
{
var h = value.getHours();
if (0 == h)
h = 12;
else if (h > 12)
h -= 12;
ret += h;
}
break;
}
case "ss":
{
var s = value.getSeconds();
if (s < 10) ret += "0";
ret += s;
break;
}
case "tt":
{
var h = value.getHours();
if (12 <= h)
ret += "PM";
else
ret += "AM";
break;
}
case "t":
{
var h = value.getHours();
if (12 <= h)
ret += "P";
else
ret += "A";
break;
}
case "zzz":
{
var off = -value.getTimezoneOffset();
if (off < 0)
{
ret += "-";
off = -off;
}
else
{
ret += "+";
}
var offH = Math.round(off / 60);
off -= 60 * offH;
if (offH < 10) ret += "0";
ret += offH;
ret += ":"
if (off < 10) ret += "0";
ret += off;
break;
}
case "zz":
{
var off = -Math.round(value.getTimezoneOffset() / 60);
if (off < 0)
{
ret += "-";
off = -off;
}
else
{
ret += "+";
}
if (off < 10) ret += "0";
ret += off;
break;
}
case "z":
{
var off = -Math.round(value.getTimezoneOffset() / 60);
if (off < 0)
{
ret += "-";
off = -off;
}
else
{
ret += "+";
}
ret += off;
break;
}
default:
{
if (/^f+$/gi.test(fmt))
{
var f = value.getMilliseconds() / 1000;
var div = Math.pow(10, fmt.length);
f = Math.round(f * div);
ret += f;
}
else
{
ret += fmt;
}
}
}
return ret;
});
}
Finally, call the new format function to format your date:
var dte = new Date("Thu Jan 10 00:00:00 UTC+0800 2002");
alert(dte.format("dd-MM-yyyy hh:mm:ss"));
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
|
|
|
|
|
Hello All,
I'm trying to setup some form of webproxy server. The proxy will be frontend and internet gateway for 2 seperate servers in the backend. Unfortuntely I'm a newbie when it comes to network programming in windows. Here is the logic, the proxy will be the first point for all incoming web traffic. The task is an efficient method of scaning incoming traffic on the http port(80) and ftp port(21) for a particular file format such as Word document(*.doc) or xml(*.xml) "Posted" or "Uplaoded" to the server. If any of these for file formats are detected it will be saved directly onto the proxy server, otherwise it will be redirected immediately to any of the 2 backend servers without saving it 1st onthe proxy server (if this is possible). I'll appreciate a better insight into how this might be done. Also suggestion of web links to resources for this task will be appreciated also.
Thanks
|
|
|
|
|
Hi everybody!
1. I have a pointer to IHTMLDocument, displayed in IE.
2. HTML Document contains scripts
3. How can I order execution of certain jscript functions in that document?
Thanks for you help.
|
|
|
|
|
Does anybody know if a web application that is running inside an iframe is able to take over the whole screen without hitting some button on the web application that contains the iframe. I'm using the iframe to create tab control of 8 different tabs. One of them is suppose to take over the whole screen when a certain button is clicked and the others would like to take over the whole screen when certain errors occur that would require the application to call the login screen to start over.
Any help would be appreciated.
Mike
|
|
|
|
|
You could just make the button open a new browser window
--
Help me! I'm turning into a grapefruit!
Phoenix Paint - back from DPaint's ashes!
|
|
|
|
|
I wanna open an html source with php which was generated by a cgi (which source I dont know)
the function fopen () is not so good with URL's, the "free" webpages allows its not.
Muad-Dib
mailto:adamo_piar@freemail.hu
Made in Hungary
|
|
|
|
|
I'm not entirely sure having never tried it, but there's the style attribute that you can place other CSS commands in, so you may have some luck with that.
--
Paul
"Put the key of despair into the lock of apathy. Turn the knob of mediocrity slowly and open the gates of despondency - welcome to a day in the average office."
- David Brent, from "The Office"
MS Messenger: paul@oobaloo.co.uk
Download my PGP public key
|
|
|
|
|
Hello Folks,
I want to add a checkbox element before anchor tag on a webpage on the fly without any manual intervention.
I have tried IHTMLElement2::insertAdjacentElement and also IHTMLDOMNode::insertBefore function but I am not able to do the same.
Code:
1st Approach
IHTMLElement *pInputElement;
hr = m_ctrlWeb.m_pHtmlDoc->createElement(L"INPUT", &pInputElement);
IHTMLDOMNode *pDOMNode;
hr = pAnch->QueryInterface(__uuidof( IHTMLDOMNode),(void**)&pDOMNode);
IHTMLDOMNode *pNewDOMNode;
hr = pInputElement->QueryInterface(__uuidof( IHTMLDOMNode),(void**)&pNewDOMNode);
pDOMNode->insertBefore(pNewDOMNode, vIndex, &pNewDOMNode);
//here vIndex is the postion of the pAnch(IHTMLAnchorElement)
//I am not very sure of the third parameter as to what has to be given there.
2nd Approach
IHTMLElement *pInputElement;
hr = m_ctrlWeb.m_pHtmlDoc->createElement(L"INPUT", &pInputElement);
IHTMLElement2 *elem3;
hr = pDisp->QueryInterface(IID_IHTMLElement2, (void**) &elem3);
hr = elem3->insertAdjacentElement(L"beforeBegin", pInputElement, &pInputElement);
//Here also I am not sure as to what the 3rd parameter has to be provided.
Please let me know if theres any specific approach to be followed.
Thanks in advance,
Swati
|
|
|
|