|
As far as I know, you cannot do that. All you can do is to make an init function that loads the images that is triggered on the ONLOAD event of the BODY. Then do everything else after that function has been executed...
theJazzyBrain
Excelence is not an act, but a habbit Aristotle
|
|
|
|
|
You could tell the system to wait, and execute another method after a specified delay. If you really wanted to get into it, you could use some JavaScript to determine the user's bandwidth and then use that to determine about how long it will take to load the image based on its size.
...but, that all sounds like a lot of hassle.
Michael Flanakin
Web Log
|
|
|
|
|
hi ...
i want to ask about making of html design approach in Frontpage program
that based on building tables inside tables to insert images and banners and so on...
i face some problems to keep all cells with no
destruction,
so when i try to change the properties
of some cells such as : width or hight of any cell,
the prperties of other are changing also
than you for your help
soka
|
|
|
|
|
haitham_rasheed wrote:
when i try to change the properties
of some cells such as : width or hight of any cell,
the prperties of other are changing also
Yea... when the property of the inner table increases beyond the containing cell... it obviously affests the outer property also... I am not sure about fising this problem
I was born intelligent Education ruined me!.
|
|
|
|
|
hi ...
i want to ask about making of html design approach
that based on building tables inside tables to insert images and banners and so on...
i face some problems to keep all cells with no
destruction,
so when i try to change the properties
of some cells such as : width or hight of any cell,
the prperties of other are changing also
than you for your help
soka
|
|
|
|
|
I'm a total newbie to regex...actually I use it all the time and just never bothered to learn it...but instead just find regex around the net and copy paste
Anyways...I need a regex for verifying a home mailing address...
123 Test Rd.
This is what I have so far...
[^0-9A-Za-z]
At the very minimum I need to allow single white spaces..
Actually that's all I need....if you can show me how I would add the ability to check for whitespace too that would be great
Cheers
How do I print my voice mail?
|
|
|
|
|
For whitespace use \s
So you got one or more decimals: \d+
followed by a single whitespace \s
followed by one or more characters \w+
followed by a single whitespace \s
followed by one or more characters \w+
making this: \d+\s\w+\s\w+
There are some tools for building and testing regular expressions around the web. Perhaps you should try one.
|
|
|
|
|
Further to the other posters answer - try the Expresso tool right here on CP
Ian Darling
"The trouble with the world is that the stupid are cocksure and the intelligent are full of doubt." - Bertrand Russell
|
|
|
|
|
I have a form in which there are numerous fields and when I handle those fields on the server side of things (prior to sending to a database) I typically use a PHP function addslashes() which escapes characters which may be harful to a SQL database. However without even calling addslashes() it appears IE is doing this for me??? I don't remember this happeneing in the past...is this a new feature in IE6???
I sent an email addy as an example using
nuweb1@hotm'ail.com
and echoing my email before securing it myself using any PHP
I get
nuweb1@hotm\'ail.com
Can anyone explain whats going on...should I still escape my input data before sending to a database?
When I do then I get something like:
nuweb1@hotm\\\'ail.com
Which requires me to call stripslashes() twice
I've since switched to just checking all email with a advanced regex and just don't let it through if it's wrong. However what should I do with message text's type fields??? Does the htmlentities function convert single quote chars into html entities as well...?
so ' would be $xxx; and so on...?
Thanks
How do I print my voice mail?
|
|
|
|
|
hi, all
is 123@123.123 a valid email?
any website having validation to identity this as email validation ?
as i know codeproject says nothing about it in registration. u can give all numbers
like 12123@1212.12323 etc for email while registration
thnx
harinath mallepally
Harinath
Cybernet software systems pvt. ltd.
3, Bishop wallers avenue east,
mylapore
chennai
India-600004
|
|
|
|
|
There are quite a few common examples of regular expression validators or custom validators for use with JavaScript and ASP or ASP.NET that you might find with a few minutes of searching using google or something; for a clear definition of what constitutes a valid email address, you'll have to find the RFC on that subject.
What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.
|
|
|
|
|
Hi everybody
I have a page with an asp repeater that consists of a list of radio buttons. I am using javascript in order to find the radio button that was checked. Everything works fine in IE but when I try it in NN 7.1 the following piece of code will produce an error.
if (browser == "N")
OnShipOptionChange(RadioButton_GetSelectedNN(window.document.getElementById("<%=m_methodid.UniqueID%>"))); <--this called
else
OnShipOptionChange(RadioButton_GetSelected(window.document.getElementById("<%=m_methodid.UniqueID%>")));
function RadioButton_GetSelectedNN(obj) <--the function called by the code above.
{
for(var idx = 0, max = obj.attributes.length; idx < max; idx++)
{
if(obj[idx].checked == true) <-- line that gives the error
return obj[idx];
}
return null;
}
The Error Message is: "obj[idx] has no properties". I have tried everything and I cannot make it to work. Any help will be highly appreciated. Thank you very much for your time
Spiros Prantalos
Miami the place to be!!
|
|
|
|
|
Hello,
When the user pushes a button, I would like to pop up a dialog box which asks them if they would like to continue or not. It the user chooses to continue, then the code on the server will run. I attempted to do this using the Javascript confirm() method. Here is my script:
<br />
function ConfirmDelete()<br />
{<br />
var msg = "Are you sure you want to delete the account?";<br />
if(confirm(msg))<br />
{<br />
<%DeleteAccount();%><br />
}<br />
}<br />
Here is the html:
<br />
<INPUT id="DelAcc" onclick="ConfirmDelete();" type="button" value="Delete Account" name="DelAcc"><br />
For some reason, the code in the ConfirmDelete function is being called immediately when the page loads (this includes the DeleteAccount server code), instead of just when the button is pushed. Is there something wrong with my code? Or, is there a different way to do this?
Thanks,
RC
|
|
|
|
|
If I put the following into <script> tags in the <head> section of a plain-ol' vanilla HTML page, like so:
<script>
function ConfirmDelete()
{
var msg = "Are you sure you want to delete the account?";
if(confirm(msg))
{
}
}
</script>
and the following in a plain HTML button:
<input type="button" id="blah" onClick="ConfirmDelete();" name="blah" value="Click">
...it works just fine, at least with IE6.x on W2K.
What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.
|
|
|
|
|
By the way, the only way you can execute code stored in a server-side ASP function from a client-side JavaScript is to make the JavaScript post back to the server, either by posting a form or navigating to a URL with a query string.
What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.
|
|
|
|
|
I think the reason my code was not working is because I was attempting to run server script from the client in the <%DeleteAccount()%> line of the code. I found a different way to make it work using the javascript doPostBack function.
Thanks for your input!
RC
|
|
|
|
|
Would like to display a map (image ie png, jpg file) then place Images (hotspots) on the map that drive mouseclick events. Would also like to add mouseover events for displaying hotspot info.
How do I put images on an image in web based project?
Is it possible to have an image then add image buttons to it dynamically?
Using webservices, c# in Visual Studio 2003
|
|
|
|
|
Look into creating HTML ImageMaps. It allows you to setup hotspots on images with URLs and tooltip info.
It won't do rollovers though, if you need to do that then you need to slice your image up. Or you can float an image (use CSS, position: absolute ) over with onmouseover/onmouseout events.
I recommend you use Macromedia Fireworks for either of these. It has an ImageMap/Hotspot tool as well as a image-slice tool which programmes in rollovers and the works.
regards,
Paul Watson
Bluegrass
South Africa
Christopher Duncan quoted:
"...that would require my explaining Einstein's Fear of Relatives"
Crikey! ain't life grand?
Einstein says...
|
|
|
|
|
I am trying to build the layout of my page without using TABLES.
I need to set the HEIGHT of a DIV element to 100% of its container. When I set it to 100%, I think that it takes the height of the BODY element and not its container's height..
Any ideas ?
Thank you
theJazzyBrain
Excelence is not an act, but a habbit Aristotle
|
|
|
|
|
It will take the height of it's container...so if BODY is your container it should take up the whole screen...
Test my theories and set the border: 1px solid black
Trial and error works best I find...
Cheers
How do I print my voice mail?
|
|
|
|
|
Well, it doesnt take the height of its container, thats what I though initially too.
<br />
<Body><br />
<div style="height:100%;"><br />
<div style="height:100px;">Some text here</div><br />
<div style="height:100%;">Some text here</div><br />
<div style="height:100px;">Some text here</div><br />
</div><br />
</body><br />
The above code will make my page to scroll... and I dont want it to scroll... any ideas?
theJazzyBrain
Excelence is not an act, but a habbit Aristotle
|
|
|
|
|
Actually, yes it does, but you have to nest the DIV's inside of other containers, and you can't have one that has 100% height along with two that have pixel height...
<div style="height:100%; border: 1px solid #000000">
<div style="height:100px; border: 1px solid #000000">Some text here
<div style="height:100%; border: 1px solid #000000">Some text here
<div style="height:100px; border: 1px solid #000000">Some text here </div>
</div>
</div>
</div>
|
|
|
|
|
ok... I see... So unless you specify the height of the container the DIV will expand to the height of the BODY if set to height:100%; ???..
So, what if (in your example) you want to have another DIV of height 100px at the bottom of the page while keeping the outermost DIV at 100% height?
What I am trying to do is to have a header DIV a footer DIV and a DIV in the middle that will expand to 100%.
theJazzyBrain
Excelence is not an act, but a habbit Aristotle
|
|
|
|
|
OK, the closest I could get to your goal is this:
<div style="height:100%; border: 1px solid #000000">
<div style="height:100px; border: 1px solid #000000">
</div>
<div style="height:75%; border: 1px solid #000000">
<p>Content Goes Here</p>
<p>Content Goes Here</p>
<p>Content Goes Here</p>
<p>Content Goes Here</p>
<p>Content Goes Here</p>
<p>Content Goes Here</p>
<p>Content Goes Here</p>
</div>
<div style="height:100px; border: 1px solid #000000">
</div>
</div>
Try it out and see if it works for you.
What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.
|
|
|
|
|
I thought of that myself too...
So there is no way to do it properly without using TABLES, unless if I detect the size using JavaScript and the DOM and set it accordingly each time I load a page, refresh it or even when I resize the window...
theJazzyBrain
Excelence is not an act, but a habbit Aristotle
|
|
|
|