|
Check if user are there, if not create the users via ASP.NET web configure, then pass those user info to them !!
Regards,
Jaiprakash M Bankolli
jaiprakash.bankolli@gmail.com
http://jaiprakash.blog.com/
|
|
|
|
|
now when I am trying to connect to IIS it displays dialog asking for Computer Name when I do that it pop Up error : System Cannot Find the path specified
Please do help me at the Earliest.
Develop2Program & Program2Develop
|
|
|
|
|
What were you trying to achieve? Can you tell what steps did you follow? Can you past here the exact error message so that it is easier to pin point the error ?
Regards,
Jaiprakash M Bankolli
jaiprakash.bankolli@gmail.com
http://jaiprakash.blog.com/
|
|
|
|
|
I have a page designed and laid out entirley using CSS. The main content of the page sits in a DIV and so does a sidebar which runs down it's side. The problem I have is that the side bar is pretty much all of the time shorter than the content DIV. What I wanted was some code to force the sidebar DIV to replicate the height of the content DIV and therefore act like two td cells in a table. Anyway I came up with the following Javascript code which is run on the pages onload event.
function FannyFart() <br />
{<br />
var ContentHeight = document.getElementById("Content").clientHeight;<br />
document.getElementById("ctl00_SideBar").style.height = (ContentHeight + "px");<br />
}
This code seems to work and provides correct outcome except for two scenarios. A: When a validator appears dynamically. B: When the page content changes upon and AJAX async call.
Now obviously this is because by code is not running because the page onload event is not happening. How can I have my code rerun on any change to the page?
|
|
|
|
|
Attach the function to the onresize event of the Content div (as well as the onload)
|
|
|
|
|
<div id="Content" onresize="FannyFart()">
The following works in IE but not in FF ( thats FireFox and not Fanny Fart... chuckle )
Theres also resizeend and resizestart which dont make any difference. Can't seem to find anyone else with this problem so I will have to come back to it. Luckily for me its doesnt look that bad and FF compatibility isn't actually essential for this.
Do you think this is the best way to do it? I couldn't think of anything else?
|
|
|
|
|
I can't see the code numbnuts....
Have a look here for the difference between FF and IE event methods: linkety (hint: FF uses addEventListener , IE uses attachEvent )
|
|
|
|
|
function FannyFart()
{
//Do A Fanny Fart
var ContentHeight = document.getElementById("Content").clientHeight;
document.getElementById("ctl00_SideBar").style.height = (ContentHeight + "px");
}
<div id="Content" onresize="FannyFart()">
And that bits in the page
|
|
|
|
|
window.onload = function() {
var el = document.getElementById("ctl00_SideBar");
if(window.attachEvent) {
el.attachEvent("onresize", FannyFart);
} else {
el.addEventListener("resize", FannyFart, false);
}
}
Try that bad boy out. Of course if you'd had a look at the client side reference for the MS AJAX library you could use:
$addHandler($get("ctl00_SideBar"), "resize", FannyFart);
See here
|
|
|
|
|
Sam Heller wrote: How can I have my code rerun on any change to the page?
Call it whenever you change the page...?
----
It appears that everybody is under the impression that I approve of the documentation. You probably also blame Ken Burns for supporting slavery.
--Raymond Chen on MSDN
|
|
|
|
|
Which event is that? It occurs on page validation and ajax calls and a few other places. Where do i catch all of these events?
|
|
|
|
|
Sam Heller wrote: Which event is that?
Whatever you want it to be. You change the page. Well, you or code you control in some fashion. Once the document has loaded, it changes in response to code somewhere telling it to change... so whenever code does that, have it call your resize method.
----
It appears that everybody is under the impression that I approve of the documentation. You probably also blame Ken Burns for supporting slavery.
--Raymond Chen on MSDN
|
|
|
|
|
Hi all,
A quick question
I have a select box and a button on a web page.
The user will choose a value in the select box then hit the button.
I need the chosen value to be stored in a php session variable and the user redirected to second webpage.
Any help would be fab !!!
Thanks lots
John
|
|
|
|
|
At Time of clicking on the button you have to submit the form then fetch value by
$storeValue = $_REQUEST['selectName'];
and then store the value in a variable and then
S_SESSION['sessionvariableName'] = $storeValue;
then open the another file you want to show.
--------------------------------------------------------------------------------------------------
Hiral Shah
India
If you think that my answer is good enough and can be helpful for other then don't forget to vote.
|
|
|
|
|
Here is what I would do:
<code><?php
session_start();
$options = array("Option1", "Option2", "Option3");
if ($_POST['submit']) {
if (in_array($_POST['option'], $options)) {
$_SESSION['selected'] = $_POST['option'];
header("Location: secoundpage.php");
exit();
}else {
$error = "That was an incorrect selection";
}
}
?></code>
<html>
<head>
<title>Welcome</title>
</head>
<body>
<form action="" enctype="multipart/form-data" method="post">
<code><?php echo $error; ?></code><br />
<select name="option">
<code><?php
foreach ($options as $value)
{
$sel = '';
if ($value == $_POST['option']) {
$sel = "selected=\"selected\" ";
}
echo "<option {$sel}value=\"{$value}\">{$value}</option>\n";
}
?></code>
</select>
<br />
<br />
<input type="submit" name="submit" value="Submit" />
</form>
</body>
</html>
Brad
Australian
- Me on "Public interest"
If you actually read this let me know.
|
|
|
|
|
Hi, hope someone is able to help me.
I want to cause the client's browser to expand to full screen mode (like hitting the F11 key) when the user load my webpage. I was thinking of using javascript function which will be called when the page body loads eg. Anyone can provide a sample code for the exec_function()? Thanks in advance.
|
|
|
|
|
That is impossible.
You can resize the browser window to fit the screen, but even that is not guaranteed to work, as most browsers can be set up to disallow this.
---
single minded; short sighted; long gone;
|
|
|
|
|
I have seen this done with Java.
Brad
Australian
- bryce on "Problems with Code Project"
*sigh* Maunder's been coding again...
|
|
|
|
|
If it can't be done in JS, how about asp.net or C# ? Are there commands that I could use, in some way, to cause the browser to go full screen ?
|
|
|
|
|
The only way I can think of would be to set Kiosk mode on a shortcut, but I've always had problems with setting a URL and Kiosk mode at the same time...
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
|
Hi, I have a photography website and am trying to set up a shop for it, but I have no knowledge of web programming, I have found a shop that uses java script (I don't want anything more advance)
The shop has a list of items that have a checkbox next to them, when you click the checkbox its adds up the total cost of the order in a box at the bottom, but being a photography site I need the checkboxes to be drop down lists so the customer can select the size of print that they want. I don't know how to make each list option have a cost attached to it. Below is the source code for the shop, if anyone can understand what I am talking about and is willing to help I would be very greatfull.
<script language="JavaScript">
var Cost, Grand_Total;
function tally()
{
Cost = 0;
if (document.orderform.Item1.checked) { Cost = Cost + 26.15; }
if (document.orderform.Item2.checked) { Cost = Cost + 26.10; }
if (document.orderform.Item3.checked) { Cost = Cost + 26; }
document.orderform.Total.value = "£" + Cost;
}
function pound (amount)
{
amount = parseInt(amount * 100);
amount = parseFloat(amount/100);
if (((amount) == Math.floor(amount)) && ((amount - Math.floor (amount)) == 0))
{
amount = amount + ".00"
return amount;
}
if ( ((amount * 10) - Math.floor(amount * 10)) == 0)
{
amount = amount + "0";
return amount;
}
if ( ((amount * 100) - Math.floor(amount * 100)) == 0)
{
amount = amount;
return amount;
}
return amount;
}
</script>
<form method="post" name="orderform" action="mailto:me@mydomain.com" enctype="text/plain"">
<table border="0">
<tr>
<td colspan="2"><p>
<input type="checkbox" name="Item1" value="Item1_chosen" onclick="tally()" />
Item One (£26.15) </p>
<p>
<input type="checkbox" name="Item2" value="Item2_chosen" onclick="tally()" />
Item Two (£26.10) </p>
<p>
<input type="checkbox" name="Item3" value="Item3_chosen" onclick="tally()" />
Item Three (£26) </p>
<p>
<label>
<select name="prints">
<option>Option</option>
<option value="Print1">Print 1</option>
<option value="Print2">Print 2</option>
<option value="Print3">Print 3</option>
</select>
</label>
</p>
<p> </p></td>
</tr>
<tr>
<td> Total</td>
<td><input type="text" name="Total" value="£0" size="7" /></td>
</tr>
<tr>
<td>Contact Name:</td>
<td><input name="Name" type="Text" id="Name" size="20" /></td>
</tr>
<tr>
<td>Address</td>
<td><input type="Text" name="Street" size="20" maxlength="40" /></td>
</tr>
<tr>
<td>City</td>
<td><input type="Text" name="City" size="20" maxlength="20" /></td>
</tr>
<tr>
<td>Post Code</td>
<td><input type="text" name="Code" size="9" maxlength="10" /></td>
</tr>
<tr>
<td>Email Address</td>
<td><p>
<input type="Text" name="Email" size="30" maxlength="30" />
</p> </td>
</tr>
<tr>
<td colspan="2" height="3"><hr /></td>
</tr>
<tr>
<td colspan="2" align="center"><input name="Submit" type="Submit" value="Send Order" />
Or
<input name="RESET" type="reset" value="Reset Order" /></td>
</tr>
</table>
</form>
|
|
|
|
|
Do not try write your own shop if you do not understand how to develop. Monetary functions need to be handled with the greatest of care.
Brad
Australian
- Bradml on "The ADOTD"
Hey all, did you just use/read an acronym? Pots it HERE, at the ADOTD[^]
|
|
|
|
|
You should never do anything in javascript that isn't double checked on the server side. And, like Brad said, you probably should pay someone to do this, rather that try to learn web development over a weekend. Especially where money is involved.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I want to know how i can integrate a J2EE app with microsoft Sharepoint.
Vikram Verma
|
|
|
|