|
Thanks, could you give me an example of your implementation of the script?
Brad
Australian
By contacting your lawyer you negate the right to sue me.
|
|
|
|
|
Brad,
Of course:
<HTML>
<head>
<title>Aquarel</title>
<script type="text/javascript" src="../script/lightbox.js"></script>
<link href="../styles/margo.css" rel="stylesheet" type="text/css" />
</head>
<body>
<a href="images/Boom.jpg" rel="lightbox" title="Boompie<BR>aquarel 2001"><img src="thumbnails/Boom.jpg" border=0 align="bottom"></a>
<a href="images/Brug.jpg" rel="lightbox" title="Brug in de mist<br>aquarel 1996"><img src="thumbnails/Brug.jpg" border=0 align="bottom"></a>
<a href="images/Landschap.jpg" rel="lightbox" title="Landschap<br>aquarel 1999"><img src="thumbnails/Landschap.jpg" border=0 align="bottom"></a>
<a href="images/Raam.jpg" rel="lightbox" title="Raam in Venetië<br>aquarel 2002"><img src="thumbnails/Raam.jpg" border=0 align="bottom"></a>
<a href="images/Schilderij I crop.jpg" rel="lightbox" title="Blauw<BR>Aquarel 2003 ca. 125x85"><img src="thumbnails/Schilderij I crop.jpg" border=0 align="bottom"></a>
<a href="images/Schilderij II crop.jpg" rel="lightbox" title="Rood<br>aquarel 2003"><img src="thumbnails/Schilderij II crop.jpg" border=0 align="bottom"></a>
<a href="images/Schilderij III crop.jpg" rel="lightbox" title="Engel<br>aquarel 2005<br>met 24kt bladgoud"><img src="thumbnails/Schilderij III crop.jpg" border=0 align="bottom"></a>
<a href="images/Straat.jpg" rel="lightbox" title="Straat in Venetië<br>aquarel 1990"><img src="thumbnails/Straat.jpg" border=0 align="bottom"></a>
</body>
</HTML>
In itself, this works just fine. The only problem is that this html file is within a frame (which is within another frame within yet another frame) and that the function of "lightbox" is only within the current frame, where I would like it work within the entire window and to center the image on the entire window.
Regards,
William
|
|
|
|
|
I am a little slow tonight.
From what I can see from that script (and im sure I missed something) is that you have a collection of flames that make up your page. You then have images that, when clicked, will show the full image.
Is this correct.
Please note that I'm not familiar with the Java product you said you were using earlier.
Brad
Australian
By contacting your lawyer you negate the right to sue me.
|
|
|
|
|
Brad,
You are absolutely right. What I am trying to do is to have page as follows:
+---------------------------------------------------------------------+
| header frame |
+---------+------------+---------------------------------+------------+
| | Menu frame | Main image and info frame | |
| blank | | | blank |
| frame | | | frame |
| | | | |
+---------+------------+---------------------------------+------------+
| footer frame (just to leave some space at the bottom) |
+---------------------------------------------------------------------+
All these frames remain the same, but for the main image and info frame. Based on selections from the menu buttons in the menu frame, I select different html pages in that frame. One of those is a page with a number of thumbnails on which the user may click. When he does that, I would like to show the full image pertaining to that thumbnail, using this lightbox mechanism. And again: it does work, but it only works in this main image frame whereas I would like it to work on the full window.
regards,
William
|
|
|
|
|
hmm.. Well I do not have an extensive knowledge of how lightbox works, are you able to specify a target for the image?
Can you please (if possible) give me a link to your current project so I can get a better feel for the implementation.
Brad
Australian
By contacting your lawyer you negate the right to sue me.
|
|
|
|
|
Brad,
Thanks for your reply. I unfortunately do not yet have anything of this all on-line, it still resides on my d: disk (which I cannot open to the outside world) I would be happy to send you a zipfile with the complete content 357 kb). If you would like me to do that, then please send me an email to: wim.engberts@centric.nl to which I can then reply with this zipfile.
Thanks in advance
William
|
|
|
|
|
Brad,
To be complete, I also give you the main "index.htm", from which the html that I just posted is called:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link href="Styles/Margo.css" rel="stylesheet" type="text/css" />
<title>Margo Engberts</title>
</head>
<frameset framespacing="0" border="0" frameborder="0" rows="2%,*,2%" name="MainFrame">
<Frame src="Blank.htm" noresize scrolling="No" />
<frameset framespacing="0" border="0" frameborder="0" cols="20%,*,20%">
<Frame src="blank.htm" noresize scrolling="No"/>
<frameset framespacing="0" border="0" frameborder="0" rows="22%,*">
<frame src="Margo.htm" name="TopFrame" noresize scrolling="No" />
<Frameset framespacing="0" border="1" frameborder="0" name="middenFrame" cols="25%,*">
<Frame src="Menu.htm" name="MenuFrame" noresize scrolling="No"/>
<Frame src="Home.htm" name="BodyFrame" noresize scrolling="Yes"/>
</Frameset>
</Frameset>
<Frame src="Blank.htm" noresize scrolling="No"/>
</frameset>
<Frame src="Blank.htm" noresize scrolling="No"/>
</Frameset>
</html>
The call to "Aquarel/index.htm (which I posted earlier) is done when the menu-item "Aquarel" is selected from menu.htm:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link href="Styles/Margo.css" rel="stylesheet" type="text/css" />
<title>Margo Engberts</title>
</head>
<body>
<!-- menubalk -->
<Center>
<TABLE class=inner cellSpacing=0 cellPadding=0 border=0>
<TR>
<TD class=navi colSpan=1>
<UL class=navi>
<LI><A title="Home"
href="Home.htm" target="BodyFrame">Home</A></LI>
<LI><A title="Biografie"
href="Biografie.htm" target="BodyFrame">Biografie</A></LI>
<LI><A title="Olieverf schilderijen"
href="Olieverf/Index.htm" target="BodyFrame">Olieverf</A></LI>
<LI><A title="Aquarellen"
href="Aquarel/Index.htm" target="BodyFrame">Aquarellen</A></LI>
<LI><A title="Links"
href="links.htm" target="BodyFrame">Links</A></LI>
<LI><A title="Kontakt"
href="Kontakt.htm" target="BodyFrame">Kontakt</A></LI>
</UL>
</TD>
</TR>
</table>
</Center>
</body>
</html>
Hope this will help.
Regards,
William
|
|
|
|
|
hi, i got the problem with updating my database via php
its like the new one doesnt change with the old one is there anything wrong with that?
$query = "UPDATE friends set lastname = @lastname where firstname = @firstname ";
$result = mysql_query($query) or die("query failed : ".mysql_error() );
|
|
|
|
|
Here is how that SQL statement should be structured:
$query = 'UPDATE friends SET lastname = "@lastname" WHERE firstname = "@firstname";';<br />
<br />
$result = mysql_query($query) or die("query failed : ".mysql_error() );
Also why have you used "@"? that is not a variable declaration from what I can remember.
Good on you for starting on PHP though.
Brad
Australian
By contacting your lawyer you negate the right to sue me.
|
|
|
|
|
when calling a url through xmlHttp repeatedly using setInterval
to perform some operation on database .But it is functioning correctly when setting a break point on the url page other wise it wont executing.
|
|
|
|
|
Can you repeat that? and try too make sense.
Brad
Australian
By contacting your lawyer you negate the right to sue me.
|
|
|
|
|
I am developing an online webchat using xmlHttp Request.
I created the following script to get message from database
function getMessage()
{
clearInterval(interval);
frm = document.forms[0];
var xmlHttp=XHRFactory.getInstance();
sessionId=getCookie("chatSession");
from=getCookie("chatFrom");
//alert("hi");
url="chatprocess.aspx?msg="+from+ "&option=4&sessionID="+ sessionId;
xmlHttp.open("GET",url,true);
xmlHttp.onreadystatechange=function ()
{
if (xmlHttp.readyState == 4 && xmlHttp.status == 200)
{
// alert("hihi");
if((window.ActiveXObject))
{
if(xmlHttp.responseBody != null )
{
isok=xmlHttp.responseText;
}
else
{
isok=xmlHttp.responseText;
}
}
else
{
if(xmlHttp.responseText.length != 0)
{
isok=xmlHttp.responseText;
}
else
{
isok="Not";
}
}
}
// isok=xmlHttp.responseText;
} ;
//alert(isok);
if(isok=="ok")
{
closeWindow();
}
else
{
getchatmessage();
}
xmlHttp.send();
return false;
}
In chatprocess.aspx i wrote the following code to fetch the content from database
private void GetMessage()
{
sql = "SELECT Chat_temp_From.Message FROM Chat_temp_From INNER JOIN Chat_Session ON Chat_temp_From.Session_ID = Chat_Session.Session_ID WHERE (Chat_Session.Session_Status = '1') and Chat_temp_From.Session_ID=" + sessionId+" and Chat_temp_From.Status=1";
msg = objDl.RetrieveMessage(sql);
sql = "update Chat_temp_From set Status=0 where Session_ID=" + sessionId;
bool deleteSuccessfully = objDl.ExecuteSQL(sql, ref rowsAffected);
if (!deleteSuccessfully)
{
Response.Write("Error");
}
Response.Write(msg);
}
But its not continusly calling the getmessage function in the javascript.
in the form load i am calling the following client script
function startChat()
{
interval=setInterval("getMessage()",10000);
}
but its not working
|
|
|
|
|
Can you define "not working".
Do you receive error messages? What happens when you run it? Do u have a web based testing server that I could see it run on?
Brad
Australian
By contacting your lawyer you negate the right to sue me.
|
|
|
|
|
the control is going to the server code for fetching the database only once. after that the js function is repetedly executing and displaying the first message from the database.
I am doing this as part of my post graduation course. we dont have facility to upload this to any server
|
|
|
|
|
Ok can you please define the problem you are having.
Brad
Australian
By contacting your lawyer you negate the right to sue me.
|
|
|
|
|
but some times its not repetedly calling the js function. so it wont fetch from database
|
|
|
|
|
Ok so now i think i understand your problem.
Your AJAX call does not keep refreshing correct?
If this is the case then I noticed you have a startChat() function.
After you process the received data call this function.
This will mean that the process is restarted.
Hope that works for you.
Brad
Australian
By contacting your lawyer you negate the right to sue me.
|
|
|
|
|
It looks like your retrieving the items from the existing session. Since each user has a different session, you'll never get the other messages.
|
|
|
|
|
Hey all,
I am working on a personal site atm and have built it a user system. I have a Group/Access system and users are able to log in now.
But now I am facing the challenge of allowing continued sessions, like how we can log into the code project once and not having to do it again until we Sign Out or delete cookies.
ATM I have a system where when the user logs in a 100 character random password is set and stored with their user ID. This is a system that works very well, but it means that If you log on from 2 locations one person will get kicked.
This may not seem like a bad thing except that what if you have two computers, then only one will be able to stay connected at a time.
Another thing is that I don't want to use PHP sessions because then a malicious user could guess the Session ID of another user and not have to know their user ID to login.
Can someone (especially Chris) recommend a way of implementing this?
Brad
Australian
By contacting your lawyer you negate the right to sue me.
|
|
|
|
|
I want to use a local language font in my web page. how to install that font in web so that very user can enjoy that font. plz. Help me.
Bharat Bhusanam
|
|
|
|
|
Sorry, if the user has not installed the font themselves then you can use it. You could offer it as a download though.
Brad
Australian
By contacting your lawyer you negate the right to sue me.
|
|
|
|
|
Hi everyone!
I need help understanding how to add overlays and tiles over my google map... is there a way to overlay only one image instead of mapping the url's of each tile? Many many thanks in advance!
Nila
"...for that, I will need a large cup of coffee and a brand muffin!" -Samantha Bea
|
|
|
|
|
I am generally aware that the use of tables is discouraged and have even seen an ad for a web developer stateing "Table-less layouts and CSS tips and tricks a must". Curiously, when I took a look at the source for their site there was one table specified.
Can anyone tell me the reason for not using tables?
I'm on-line therefore I am.
JimmyRopes
|
|
|
|
|
Good question. Tables were at one time used to align parts of web pages, organize text and display data. But now, CSS makes the whole alignment process easier by using containers and alignments. Tables are to hard to manage, and the code for a table tends to get messy and hard to manage. Plus, you don't have nearly as much control over tables as you do style sheets, and they don't look very modern either, just a big block in the middle of your web page.
Besides, the purpose of HTML has changed over the years. It's mostly used now as just a shell for CSS, Javascript and all other web languages.
Another good reason for using CSS is, if you have an external Style Sheet, you can easily change the styles for table in several pages (for example, a menu). When otherwise you would have to go through each individual page and change the table.
|
|
|
|
|
Thanks for the information.
I'm on-line therefore I am.
JimmyRopes
|
|
|
|