|
Bradml wrote: but how did you stumble apon that post?
It's this strange thing called searching, yea I know weird eh? I knew the answer was out there in the great intermess. Just a matter of finding it (and learning to work with CP search functionality).
I'd love to help, but unfortunatley I have prior commitments monitoring the length of my grass. :Andrew Bleakley:
|
|
|
|
|
I don't know why I made the assumption you were using tableless design when I suggested using "clear both". I don't know if it works inside tables.
Try using the [tfoot] tag insteaad of [tr][td] for your footer information.
I'm on-line therefore I am.
JimmyRopes
|
|
|
|
|
JimmyRopes wrote: I don't know why I made the assumption you were using tableless design when I suggested using "clear both". I don't know if it works inside tables.
I don't have to use tables, I was just showing the layout I was after using the old school way. If I can get a footer that doesn't overlap and works in all or most major browsers I'll be happy to dump tables and HTML.
|
|
|
|
|
try "clear: both;"
as in [div styles="clear: both;" /]
I'm on-line therefore I am.
JimmyRopes
|
|
|
|
|
That's only with floats
Brad
Australian
"Keyboard? Ha! I throw magnets over the RAM chips!" - peterchen
|
|
|
|
|
Bradml wrote: That's only with floats
Isn't that what he is talking about; floating elements?
I'm on-line therefore I am.
JimmyRopes
|
|
|
|
|
with absolute position....
Brad
Australian
"Keyboard? Ha! I throw magnets over the RAM chips!" - peterchen
|
|
|
|
|
Ask Jeremy! It was just a suggestion.
I'm on-line therefore I am.
JimmyRopes
|
|
|
|
|
In the end I just want a footer that doesn't overlap. I don't really care how it's implemented as long as its supported by most major browsers. TIA btw.
|
|
|
|
|
i have created a website but i am facing problem to create option "remember password on same computer"
if anyone have idea or code to use the same option please send me.
thank you!!!
contact me: ashish.0619@gmail.com
|
|
|
|
|
You would have to use a Session Cookie . See here
|
|
|
|
|
Please don't cross post.
---
It's amazing to see how much work some people will go through just to avoid a little bit of work.
|
|
|
|
|
I want to upload some multimedia file to my website. Just like Youtube does. However, I searched google and didn't find any samples. It seems like there is a control called CSUpload Controls in .Net 2.0. But not sure whether it can load video file.
|
|
|
|
|
I'm not too sure about ASP, but basically the way YouTube does it is:
You upload using the "files" input type (HTML).
They use php.
In php to get a file that was uploaded you call the global variable "$_FILES['filename']"
once they file passes a serious of security checks it is stored in a temporary directory. They then connect to Macromedia Flash encoder using PHP's command line abilities.
When it is encoded into flash it is stored on a server ready to be requested by TouTubers.
See:
Here for Uploading in PHP[^]
Here for PHP command line stuff[^]
Here for info on the Flash encoder[^]
Brad
Australian
"Keyboard? Ha! I throw magnets over the RAM chips!" - peterchen
|
|
|
|
|
mujin03 wrote: But not sure whether it can load video file.
Right... because a "video file" is not a "file".
mujin03 wrote: I searched google and didn't find any samples.
Yes I can understand your difficulty since they hide that information in the documentation[^]
led mike
|
|
|
|
|
|
hi friends
i am retriving data from xml .i got all the xml value
in dropdown list.i have done this
<asp:dropdownlist id="dropdl" autopostback="true" runat="server" onselectedindexchanged="rnd">
asp:DropDownList id="dropdl"
AutoPostBack="true" runat="server"
OnSelectedIndexChanged ="rnd"
but when i select any value from dropdownlist it gives only first value
even if i am selected other value
why???????????????????????
|
|
|
|
|
Yes, this is very annoying. Can't tell you why it happens, but I usually avoid the problem by using .selecteditem instead of .selectedvalue.
|
|
|
|
|
I have html text document.Obviously it contains tag at the end of each sentence.
I will select some part of the text.
My requirement is to insert an image at the starting point of selected text.So iam considering starting and ending indexes of the selected text in the document as input for inserting an image.
Some conflicts are occuring when i select more than one line.
So i thought of filtering out the all html tags that appears.
So how do u fliter these html tags out of the html document.
|
|
|
|
|
Could you please provide your source code so you that we can know more about what you are trying to do.
Brad
Australian
"Keyboard? Ha! I throw magnets over the RAM chips!" - peterchen
|
|
|
|
|
I think you didn't understand the problem.My source code will help you nothing.
I have document in html format.So we will have "BR" in between <> at the end of each sentence.I want to filter all these "BR" tags from my document.
My question is are there any filters to filters these kind of tags like "BR" ...............?????
Hope you understood now!!!!!!!!!!
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Registration Page
//////////////////
getTableValue("memberId ","membertable ","m_userName ='$VARS[uname]'")!="")
$errmsg = "User Already Exist";
elseif($dbc->getTableValue("memberId","membertable ","m_emailAddr ='$VARS[email]'")!="")
$errmsg = "E_mail Already Exist";
if (strlen($errmsg)==0) {
$now = time();
$insertArray = array("m_firstName"=>$VARS[fname],"m_lastName"=>$VARS[lname],"m_userName"=>$VARS[uname],
"m_password"=>$VARS[pword],"m_address"=>$VARS[address],"m_emailAddr"=>$VARS[email],
"m_jointDate"=>$now,"m_city"=>$VARS[city],"m_zipcode"=>$VARS[zip],"m_phone"=>$VARS[phone], "m_mobile"=>$VARS[mobile],"m_accountStatus"=>"A","accountType"=>"M");
$dbc->InsertQuery("membertable",$insertArray);
header("location:index.php");
}
echo $errmsg;
}
?>
| |
Member Registration |
| * Fields are mandatory | First Name* | | Last Name* | | Address* | | City | | Zip | | Phone | | Mobile | | Email* | | Username* | | Password* | | | |
|
|
function emailok(str,form,inputval)
{
var reg1 = /(@.*@)|(\.\.)|(@\.)|(\.@)|(^\.)/; // not valid
var reg2 = /^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/; // valid
if (!reg1.test(str) && reg2.test(str))
{
return true;
}
else{
alert("\"" + str + "\" is an invalid e-mail!");
form = eval("document."+ form );
eval("form."+inputval+".focus()");
return false;
}
}
function formValidate() {
if(document.frm1.fname.value=="") {
alert("Please enter the Firstname");
document.frm1.fname.focus();
return false;
} else if(document.frm1.lname.value=="") {
alert("Please enter the Lastname");
document.frm1.lname.focus();
return false;
} else if(document.frm1.address.value=="") {
alert("Please enter the Address");
document.frm1.address.focus();
return false;
} else if(Trim(frm1.email.value)==0) {
alert("Please enter Contactemail");
frm1.email.focus();
return false;
} else if (!emailok(frm1.email.value,"frm1","email")) {
return false;
} else if(document.frm1.uname.value=="") {
alert("Please enter the Username");
document.frm1.uname.focus();
return false;
} else if(document.frm1.pword.value=="") {
alert("Please enter the Password");
document.frm1.pword.focus();
return false;
} else return true;
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
To Update the registration details
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
$VARS[fname],"m_lastName"=>$VARS[lname],"m_userName"=>$VARS[uname],
"m_password"=>$VARS[pword],"m_address"=>$VARS[address],"m_emailAddr"=>$VARS[email],
"m_updateDate"=>$now,"m_city"=>$VARS[city],"m_zipcode"=>$VARS[zip],
"m_phone"=>$VARS[phone],"m_mobile"=>$VARS[mobile],"m_accountStatus"=>"A",
"accountType"=>"M");
}
else {
$updateArray = array("m_firstName"=>$VARS[fname],"m_lastName"=>$VARS[lname],"m_userName"=>$VARS[uname],
"m_address"=>$VARS[address],"m_emailAddr"=>$VARS[email],
"m_updateDate"=>$now,"m_city"=>$VARS[city],"m_zipcode"=>$VARS[zip],
"m_phone"=>$VARS[phone],"m_mobile"=>$VARS[mobile],"m_accountStatus"=>"A",
"accountType"=>"M");
}
$dbc->UpdateQuery("membertable",$updateArray,"memberId ='$memId'");
$errmsg = "Your profile updated.";
}
$query = "SELECT * FROM membertable WHERE memberId='$memId'";
$result = mysql_query($query);
//$result = $dbc->ExecuteQuery($query);
$row = mysql_fetch_array($result);
?>
| |
Update Profile Details |
| * Fields are mandatory | First Name* | " size="30"> | Last Name* | " size="30"> | Address* | <?=$row["m_address"]?> | City | " size="30"> | Zip | " size="20"> | Phone | " size="20"> | Mobile | " size="20"> | Email* | " size="30"> | Username* | " size="30"> | Password* | | |
|
|
/////////////////////////////////
To display it in Admin Side.
//////////////////////////////////
";
}elseif($sby=='D'){
$sortquery = " ORDER BY m_firstName DESC, memberId DESC";
$sby="A";
$fnamesortarrow = "";
}
break;
case "lname":// Member lastname sorting...
if ($sby=='A'){
$sortquery = " ORDER BY m_lastName ASC, memberId ASC";
$sby="D";
$lnamesortarrow = "";
}elseif($sby=='D'){
$sortquery = " ORDER BY m_lastName DESC, memberId DESC";
$sby="A";
$lnamesortarrow = "";
}
break;
case "email":// Member email sorting...
if ($sby=='A'){
$sortquery = " ORDER BY m_emailAddr ASC, memberId ASC";
$sby="D";
$emailsortarrow = "";
}elseif($sby=='D'){
$sortquery = " ORDER BY m_emailAddr DESC, memberId DESC";
$sby="A";
$emailsortarrow = "";
}
break;
case "uname":// Member username sorting...
if ($sby=='A'){
$sortquery = " ORDER BY m_userName ASC, memberId ASC";
$sby="D";
$unamesortarrow = "";
}elseif($sby=='D'){
$sortquery = " ORDER BY m_userName DESC, memberId DESC";
$sby="A";
$unamesortarrow = "";
}
break;
case "accstatus":// Member accountstatus sorting...
if ($sby=='A'){
$sortquery = " ORDER BY m_accountStatus ASC, memberId ASC";
$sby="D";
$accstatussortarrow = "";
}elseif($sby=='D'){
$sortquery = " ORDER BY m_accountStatus DESC, memberId DESC";
$sby="A";
$accstatussortarrow = "";
}
break;
default: //Default , it will be in the posted order...
$sortquery = " ORDER BY m_firstName DESC, memberId DESC";
$sby="A";
$namesortarrow = "";
break;
}
$query = "SELECT * FROM membertable WHERE accountType='M' and memberId IS NOT NULL $sortquery ";
//$query = "SELECT mem.*,con.country_name FROM membertable mem LEFT JOIN country_list con
// ON mem.m_country = con.country_id WHERE accountType='M' and memberId IS NOT NULL $sortquery ";
//echo $query ;
//$res=mysql_query($sql);
$result = $dbc->ExecuteQuery($query);
?>
function ChangeStatus(id,status) {
switch(status) {
case "A":
str = "Do you want to de-activate this account?";
break;
case "D":
str = "Do you want to acitvate this account?";
break;
}
if (confirm(str)) {
document.location.href='aord.php?memberId='+id;
}
}
//////////////////
Active or deactive
//////////////////
getTableValue("m_accountStatus","membertable ","memberId ='$id'");
//$accountType = $dbc->getTableValue("accountType","membertable ","memberId ='$id'");
if($status=='A'){
$updateArray = array("m_accountStatus" => "D");
$dbc->UpdateQuery("membertable ",$updateArray,"memberId ='$id'");
}else {
$updateArray = array("m_accountStatus" => "A");
$dbc->UpdateQuery("membertable",$updateArray," memberId ='$id'");
}
//if($accountType=='M')
header("location:display.php");
//else
// header("location:displayadmin.php");
//exit();
?>
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
I only read through the first section which was to add a user. I read it quickly, but from what i saw you have no server side input validation.
It is incredibly important to validate user input ON THE SERVER because the user can simply turn javascript off or create their own form.
You have left the database wide open to attacks.
Also it appeared as though a lot of script was missing. Did you copy and paste everything?
(By script I mean some things like "<?php" were missing in a couple of instances.)
-- modified at 2:34 Friday 15th December, 2006
Brad
Australian
I assume Microsoft would not use doors, because using Windows is faster.
|
|
|
|
|
That's a really long page!
I'm on-line therefore I am.
JimmyRopes
|
|
|
|
|
Hi,
I have an application (ASP.net with C#) which allows users to view 3 pages with data in GridViews. Page 1 shows GridView A, page 2 shows GridView B, and page 3 shows both A & B to allow comparison. In order to do this I have created 2 UserControls to show the GridViews.
The database is also linked to by a separate application, which may make changes while the user is viewing the data in a GridView. Therefore, I am using AJAX and have placed the GridViews inside an UpdatePanel within the UserControls.
AJAX refreshes the UpdatePanels every 5 seconds. It also refreshes the scroll position of the page.
I have managed to prevent re-setting the scroll position for the whole page by using the Page directive MaintainScrollPositionOnPostback="true" on the pages which use the UpdatePanels.
However, page 3 (the comparison page) users 2 ContentPlaceHolders, one above the other, which each display one of the UserControls. While I can prevent the whole page scroll position resetting, I can't stop the scroll position of these ContentPlaceHolders (or is it the UserControls?) resetting.
Anyone got any ideas how to do this? It's really important that my users are able to scroll through the contents of both ContentPlaceHolders to where they want them, and then look at them for more than the few seconds they get before the scroll position.
Thanks ever so much,
Alice
|
|
|
|