|
hi there
i have a table-repeated region(php) inside a div.
i need it to show 3 records and the other ones below-scrollable
ofcourse i won't make framesets!
how will i make it scrollable??
backround:scroll or backround-attachment:scroll won't work
thanks
ninja coding
|
|
|
|
|
Set the div's style to "overflow:scroll;"
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Thanks John it works,but how will i get rid of the horizontal scroll
that is completely useless??
ninja coding
|
|
|
|
|
As far as I know, you can't (in this case, you gotta take the good with the bad). I use the same technique to constrain my web page content so that the header/menu and footer are always displayed. The content scrolls, but the page itself does not.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Before anyone jumps in moaning bout bars they don't want, there's also an overflow-x / overflow-y....oops too late
"Knock me down, I'll get straight back up again, I'll come back stronger than a powered up pacman"
(Lilly Allen / Kaiser Chiefs)
|
|
|
|
|
thanks it works...but..there's always a but
shows perfect on mozilla ,any solution for IE5-6?
ninja coding
|
|
|
|
|
My web site works in ie and mozilla and i don't recall doing anything special to make this work in both browsers.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
yeah the scroll works but i don't have a bar!!
the div is scrollable with no bar in IE6
i think it looks cool but as i was fooled ,i'm sure my visitors also will be and will not try to scroll
any comments?
ninja coding
|
|
|
|
|
Looking at your further questions, what exactly are you doing? Under ie6 / 7 in our app, we use the following:
<div style="overflow-x:scroll; overflow-y:none">
Which works beautifully, providing only one scrollbar...are you sure your content is big enough to need a scroll?
"Knock me down, I'll get straight back up again, I'll come back stronger than a powered up pacman"
(Lilly Allen / Kaiser Chiefs)
|
|
|
|
|
o yes it works after all...sorry
but if u have the time please browse this demo from Ie and mozzila and see the difference on the right side of my content-scrollbar-
http://boatguide.gr/view.php?cat=2
if i place another div in the right of my main table it goes right on top of the scrollbar in IE offcourse,in mozzilla everything is smooth as always
Any css advise would be much appreciated
thanks for your time
ninja coding
|
|
|
|
|
Ahhhhh - I see what you mean - looks like it's caused by the old IE / MOZ border problem (IE considers the border to be outside the area of an element, moz inside, so the widths ofter go a little screwy) - do a quick google for CSS Box Hacks and you should find something...
"Knock me down, I'll get straight back up again, I'll come back stronger than a powered up pacman"
(Lilly Allen / Kaiser Chiefs)
|
|
|
|
|
Hi Guys,
Can you help me, do you have any example on how to upload the image(jpg) and save it into mssql2000?
Thanks in advance Guys
hifiger2004
|
|
|
|
|
|
I already solved it
hifiger2004
|
|
|
|
|
if (FileUploadPicture3.PostedFile.ContentLength!=0)
{
//cmd==command
//Add picture3 in Database
Stream imgStream2 = FileUploadPicture3.PostedFile.InputStream;
int imgLen2 = FileUploadPicture3.PostedFile.ContentLength;
byte[] imgBinaryData2 = new byte[imgLen2];
int o = imgStream2.Read(imgBinaryData2, 0, imgLen2);
SqlParameter param5 = new SqlParameter("@Picture3", SqlDbType.Image);
param5.Value = imgBinaryData2;
cmd.Parameters.Add(param5);
//for retriev image:
try
{
byte[] barrImg3 = (byte[])rrd.GetValue(rrd.GetOrdinal("Picture3"));
string strfn3 = root + @"\iimage\" + rrd.GetValue(rrd.GetOrdinal("Picture3")).ToString() + "c3.gif";
FileStream fs3 = new FileStream(strfn3, FileMode.Create, FileAccess.Write);
fs3.Write(barrImg3, 0, barrImg3.Length);
fs3.Flush();
string strpath3 = "~/iimage/" + rrd.GetValue(rrd.GetOrdinal("Picture3")).ToString() + "c3.gif";
//thumbnail #3
if (fs3.Length != 0)
{
fs3.Close();
System.Drawing.Image img3 = System.Drawing.Image.FromFile(Server.MapPath(strpath3));
System.Drawing.Image thumbnailImage3 = img3.GetThumbnailImage(100, 100, new System.Drawing.Image.GetThumbnailImageAbort(ThumbnailCallBack), IntPtr.Zero);
MemoryStream imageStream3 = new MemoryStream();
thumbnailImage3.Save(Server.MapPath("~/image/thumbc3.gif"), System.Drawing.Imaging.ImageFormat.Gif);
byte[] imageContant3 = new byte[imageStream3.Length];
Response.Clear();
h3.ImageUrl = "~/image/thumbc3.gif";
h3.NavigateUrl = "show_picture.aspx?id=" + id + "&type=cp3&name=church&profile=adminupdate";
}
else
{
h3.Visible = false;
}
}
catch (Exception ex) { }
|
|
|
|
|
Hi,
I develop a site named www.abc.com . When I want to do a specific job on this site the full URL is shown such as www.abc.com/abc/abc. But I only want to see www.abc.com in URL not the full path. Please help me with code in PHP or Java Script.
Kunal maity
|
|
|
|
|
There are only a few ways to do this. You can either:
A) create the index page so that it is actually the whole site (bad idea)
B) use a frame in the main page to call the other pages (still a bad idea)
Brad
Australian
- bryce on "Problems with Code Project"
*sigh* Maunder's been coding again...
|
|
|
|
|
use Server.Redirect() for new pages..
|
|
|
|
|
|
You tell To use Server.Redirect() But How I use this please tell. Waiting for ur replay
|
|
|
|
|
Use this javascript function
its a bit dutch (cause i am) but you can use it like this:
getPage('http://yoursite.com/yourpage.html','divID')
and tadaa! it fills the div with the content of the page
var xmlHttp
function GetXmlHttpObject()
{
// XML object maken
var objXMLHttp=null
if (window.XMLHttpRequest) // FireFox
{
objXMLHttp=new XMLHttpRequest()
}
else if (window.ActiveXObject) // IE
{
objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
}
return objXMLHttp
}
function getPage(str,doel)
{
if (str.length==0)
{
document.getElementById(doel).innerHTML=""
return
}
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
{
alert ("Browser does not support HTTP Request")
return
}
var url=str;
xmlHttp.onreadystatechange = function stateChanged()
{
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{
document.getElementById(doel).innerHTML=xmlHttp.responseText
}
}
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}
Stef
|
|
|
|
|
Hi,
Can any one tell me how to validate an HTML form which
contains fields like Name,Address, Email,phone no.
preventing the user from enterig incorrect data.
thanks and regards
prashant
|
|
|
|
|
That would involve using a scripting language like PHP or Javascript. Here are a few examples that might help:
PHP Mail
Javascript Form Validation
Trinity: Neo... nobody has ever done this before.
Neo: That's why it's going to work.
|
|
|
|
|
There are 2 ways to do it
1) at server side
2) st client side
If security is not the concern and efficiency is more important use client side scripting like javascript
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Can anyone give me an example how to connect to MsAccess and retrive it to size paging wit PHP?
Thanks
&nbps;Socheat
................
|
|
|
|