Ha, sometimes ;) Figured you'd know it, but like you said, with some poosters you cant assume anything :) But, thats what the site is here for.
Scott Prelewicz
Web Developer
COMAND Solutions
it would set the top and left to be the top and left of whatever currElem is, I'm guessing you're passing this by onMouseOver(), with something like -
<area onMouseOver="popUpDiv(this)"/>
To be honest, I've never done this with image maps so I cant guarantee how it will work, but hopefully...
I'm not sure I exactly understand your requirement, but I think you want to get the location of the element that was clicked on (or hovered over, whatever) instead of the mouse position (where the event occurred)?
if so, instead of
popUpWin.top = parseInt(evt.y);
popUpWin.left =...
You can get the height of the window with this:
function wHeight() {
var windowHeight = 0;
if( typeof( window.innerWidth ) == 'number' ) {
windowHeight = window.innerHeight;
} else if( document.documentElement && ( document.documentElement.clientWidth ||...
From MySQL manual:
You can combine transaction-safe and non-transaction-safe tables in the same statements to get the best of both worlds. However, although MySQL supports several transaction-safe storage engines, for best results, you should not mix different storage engines within a...
I'm sure you'll figure it out, but theres some typos in my message. Remove the , after the first line, and the second line needs a semi-colon :)
Scott Prelewicz
Web Developer
COMAND Solutions
That exact way, I would guess not, as the Hash doesnt exist yet. If you did
$article{'title'} = 'The Root Cause';,
then
$article{'headline'} = $article{'title'}
Would work, but if you need to do it as you described, I would guess that would be impossible, as that hash doesn't exists...
Oh yeah, forgot about that part :)
I dont have time right now to look to deep into it, but at a quick glance I think that if in this:
function sm2f(id) {
var indexOfSelect = document.getElementById(id).selectedIndex;
var other = (id == 'select02') ? 'select04' : 'select02'...
Those are all good points. I assumed he had good reason to do what he wants, and now he knows to do what he wants.
But after reading your post he'll maybe find a better way to do it.
Scott Prelewicz
Web Developer
COMAND Solutions
Hey Mikey,
We're generally on the same page. I didnt even see your reply before I made mine.
I personally dont like having to manipulate the DOM either. It would be the OP preference, but now he should have enough info to go forward.
Scott Prelewicz
Web Developer
COMAND Solutions
You would have to get a bit creative. A user refreshing the page is the same action as a user adding the product to the cart in the first place. Off the top of my mind, I would try creating a unique value that is passed along with the product information and storing this in the session. If this...
You could ise Javascript to do this. You'd have to trap the onSubmit event, get the value of the div
var output = document.getElementById('mydiv').innerHTML
add it to the querystring/postbody and submit via javascript. One way to add it would be to create a hidden field on the fly with JS...
You have this block in a single quote, which won't interpolate.
print '<form action="otro.php" method="post">
<input type="submit" name="enviar">
<input type="text" name="texto" value="$temp">
<input type="text" name="texto2">';
Fix by doing:
print '<form...
This is getting way off the original topic, but driving me crazy. You programmers know how that is. :) Let me try again, because I'm still not seeing it. I'll assume you're right, because it must be working for you, I'm going by your original code posted.
<?php
require_once ('db.php')...
That will fix that issue, but there still seems to be another.
if ($currentPass["password"] != $cpass) {
header("location: ../setup.php?code=5");
exit();
}
//The problem starts here. This is an if/else block so one or the other will always...
Yes, that is one way to do it. You could have a link to the "File Boweser Application" from your index that points to /filefarm/filebrowser.php. Or, as suggested above, setup your webserver to look at /filefarm/filebrowser.php as your index.
Scott Prelewicz
Web Developer
COMAND Solutions
Okay, here's hoping that we finally have it :) The following will take whatever is selected in one select, and select the corresponding value (by index) in the other. Have we finally found a solution?
<html>
<head>
<script>
function sm2f(id) {
var indexOfSelect =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.