|
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
................
|
|
|
|
|
This might help: PHP Database
Trinity: Neo... nobody has ever done this before.
Neo: That's why it's going to work.
|
|
|
|
|
Thank for your reply back
................
|
|
|
|
|
I have nothing to add on the technical side, however I would like to advise you against using Access. You are much better off using a better quality project such as MySQL, Oracle, Postgre or MsSQL [Express]. These products are much more accepted in the community, Access is a toy.
Brad
Australian
- Bradml on "MVP Status"
If this was posted in a programming board please rate my answer
|
|
|
|
|
Thanks in advanced i'll try my best
Socheat
................
|
|
|
|
|
Bradml wrote: Access is a toy
Not really. You can a considerably DB-intensive busy website on Access with no issues. You get a benefit of portability and being able to FTP down/up a full snapshot of the DB. Not quite as simple to do with My/MS-SQL. However I admit that in many other areas, Access doesn't shine at all compared to actual database servers.
"For fifty bucks I'd put my face in their soup and blow." - George Costanza CP article: SmartPager - a Flickr-style pager control with go-to-page popup layer.
|
|
|
|
|
Hi there .i just need a way to make different kinds of links
Give an example please,if u have the time
thanks
|
|
|
|
|
In what way do you want the links to be different?
---
single minded; short sighted; long gone;
|
|
|
|